/* ==========================================================================
   George For Hire Theme — Core Styles
   Aesthetic: Rugged adventure / off-road rental
   Typography: Barlow Condensed (display) + DM Sans (body)
   Palette: Charcoal, sandstone, burnt amber, dust white
   ========================================================================== */

/* ----- Custom Properties ----- */
:root {
	/* Palette */
	--gfh-black:        #0d0d0d;
	--gfh-charcoal:     #1a1a1a;
	--gfh-slate:        #2c2c2c;
	--gfh-graphite:     #3d3d3d;
	--gfh-stone:        #6b6b6b;
	--gfh-sand:         #98b8b7;
	--gfh-dust:         #e8e0d6;
	--gfh-cream:        #f5f0eb;
	--gfh-white:        #faf8f5;
	--gfh-amber:        #149898;
	--gfh-amber-light:  #1bb3b3;
	--gfh-amber-dark:   #0e7070;
	--gfh-red:          #c0392b;
	--gfh-green:        #27ae60;

	/* Semantic */
	--gfh-bg:           var(--gfh-white);
	--gfh-bg-alt:       var(--gfh-cream);
	--gfh-bg-dark:      var(--gfh-charcoal);
	--gfh-text:         var(--gfh-charcoal);
	--gfh-text-muted:   var(--gfh-stone);
	--gfh-text-on-dark: var(--gfh-cream);
	--gfh-accent:       var(--gfh-amber);
	--gfh-accent-hover: var(--gfh-amber-dark);
	--gfh-border:       var(--gfh-dust);

	/* Typography */
	--gfh-font-display: 'Barlow Condensed', 'Impact', sans-serif;
	--gfh-font-body:    'DM Sans', 'Helvetica Neue', sans-serif;

	/* Sizing */
	--gfh-header-height: 72px;
	--gfh-radius:       6px;
	--gfh-radius-lg:    12px;
	--gfh-shadow:       0 2px 12px rgba(0, 0, 0, .08);
	--gfh-shadow-lg:    0 8px 32px rgba(0, 0, 0, .12);
	--gfh-transition:   200ms ease;
	--gfh-max-width:    1280px;
}

/* ----- Reset & Base ----- */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	font-size: 16px;
	scroll-behavior: smooth;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body.gfh-body {
	font-family: var(--gfh-font-body);
	font-weight: 400;
	line-height: 1.6;
	color: var(--gfh-text);
	background-color: var(--gfh-bg);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--gfh-accent);
	text-decoration: none;
	transition: color var(--gfh-transition);
}

a:hover,
a:focus-visible {
	color: var(--gfh-accent-hover);
}

/* ----- Typography ----- */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--gfh-font-display);
	font-weight: 700;
	line-height: 1.15;
	color: var(--gfh-charcoal);
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 900; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.125rem; }

p + p { margin-top: 1em; }

/* ----- Buttons (shared between theme + plugin) ----- */
.gfh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	padding: 0.75em 1.75em;
	font-family: var(--gfh-font-display);
	font-size: 1rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	border: 2px solid transparent;
	border-radius: var(--gfh-radius);
	cursor: pointer;
	transition: background-color var(--gfh-transition),
	            color var(--gfh-transition),
	            border-color var(--gfh-transition),
	            transform var(--gfh-transition);
	text-decoration: none;
	line-height: 1.2;
}

.gfh-btn:hover {
	transform: translateY(-1px);
}

.gfh-btn:active {
	transform: translateY(0);
}

.gfh-btn--primary {
	background-color: var(--gfh-amber);
	color: var(--gfh-white);
	border-color: var(--gfh-amber);
}

.gfh-btn--primary:hover,
.gfh-btn--primary:focus-visible {
	background-color: var(--gfh-amber-dark);
	border-color: var(--gfh-amber-dark);
	color: var(--gfh-white);
}

.gfh-btn--secondary {
	background-color: transparent;
	color: var(--gfh-amber);
	border-color: var(--gfh-amber);
}

.gfh-btn--secondary:hover,
.gfh-btn--secondary:focus-visible {
	background-color: var(--gfh-amber);
	color: var(--gfh-white);
}

.gfh-btn--dark {
	background-color: var(--gfh-charcoal);
	color: var(--gfh-cream);
	border-color: var(--gfh-charcoal);
}

.gfh-btn--dark:hover,
.gfh-btn--dark:focus-visible {
	background-color: var(--gfh-black);
	border-color: var(--gfh-black);
	color: var(--gfh-cream);
}

/* ----- Forms Base ----- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="url"],
input[type="search"],
select,
textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	font-family: var(--gfh-font-body);
	font-size: 1rem;
	color: var(--gfh-text);
	background: var(--gfh-white);
	border: 2px solid var(--gfh-border);
	border-radius: var(--gfh-radius);
	transition: border-color var(--gfh-transition), box-shadow var(--gfh-transition);
	appearance: none;
}

input:focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: var(--gfh-amber);
	box-shadow: 0 0 0 3px rgba(212, 131, 47, 0.15);
}

label {
	display: block;
	font-weight: 500;
	margin-bottom: 0.35rem;
	font-size: 0.9rem;
	color: var(--gfh-text);
}

select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b6b6b' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	padding-right: 2.5rem;
}

textarea {
	resize: vertical;
	min-height: 120px;
}

/* ----- Header ----- */
.gfh-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1003;
	height: var(--gfh-header-height);
	background: rgba(26, 26, 26, 0.95);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	transition: background-color 300ms ease, backdrop-filter 300ms ease, -webkit-backdrop-filter 300ms ease;
}

.gfh-body--nav-open .gfh-header {
	background: transparent;
	backdrop-filter: blur(0px);
	-webkit-backdrop-filter: blur(0px);
}

.gfh-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: var(--gfh-max-width);
	margin: 0 auto;
	padding: 0 1.5rem;
	height: 100%;
}

.gfh-header__brand {
	display: flex;
	align-items: center;
	text-decoration: none;
}

.gfh-header__brand .custom-logo {
	height: 60px;
	width: auto;
}

.gfh-header__logo-img {
	height: 60px;
	width: auto;
	display: block;
}

.gfh-header__logo-text {
	font-family: var(--gfh-font-display);
	font-weight: 900;
	font-size: 1.5rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--gfh-cream);
}

.gfh-header__toggle {
	display: none;
	background: none;
	border: none;
	color: var(--gfh-cream);
	cursor: pointer;
	padding: 0.25rem;
}

.gfh-header__toggle-icon--close {
	display: none;
}

.gfh-nav {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.gfh-nav__list {
	display: flex;
	list-style: none;
	gap: 0;
}

.gfh-nav__link {
	display: block;
	padding: 0.5rem 1rem;
	font-family: var(--gfh-font-display);
	font-size: 0.95rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--gfh-sand);
	transition: color var(--gfh-transition);
}

.gfh-nav__link:hover,
.gfh-nav__link:focus-visible,
.gfh-nav__item--active .gfh-nav__link {
	color: var(--gfh-amber-light);
}

.gfh-nav__cta {
	margin-left: 1rem;
	padding: 0.5em 1.25em;
	font-size: 0.85rem;
}

/* ----- Main content push below fixed header ----- */
.gfh-page {
	padding-top: var(--gfh-header-height);
}

.gfh-page--home {
	padding-top: 0; /* Hero goes behind header */
}

/* ----- 404 ----- */
.gfh-404 {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 60vh;
	text-align: center;
	padding: 4rem 1.5rem;
}

.gfh-404__title {
	font-size: clamp(5rem, 15vw, 12rem);
	font-weight: 900;
	color: var(--gfh-dust);
	line-height: 1;
}

.gfh-404__subtitle {
	font-family: var(--gfh-font-display);
	font-size: clamp(1.25rem, 3vw, 2rem);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--gfh-charcoal);
	margin: 0.5rem 0 1rem;
}

.gfh-404__text {
	color: var(--gfh-text-muted);
	margin-bottom: 2rem;
	max-width: 32ch;
}

/* ----- Footer ----- */
.gfh-footer {
	background: var(--gfh-charcoal);
	color: var(--gfh-sand);
	padding: 4rem 0 0;
}

.gfh-footer__inner {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1fr;
	gap: 3rem;
	max-width: var(--gfh-max-width);
	margin: 0 auto;
	padding: 0 1.5rem 3rem;
}

.gfh-footer__logo {
	font-family: var(--gfh-font-display);
	font-weight: 900;
	font-size: 1.5rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--gfh-cream);
	display: block;
	margin-bottom: 0.75rem;
}

.gfh-footer__address {
	font-style: normal;
	font-size: 0.9rem;
	line-height: 1.6;
	color: var(--gfh-stone);
}

.gfh-footer__heading {
	font-family: var(--gfh-font-display);
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--gfh-amber);
	margin-bottom: 1.25rem;
}

.gfh-footer__nav {
	list-style: none;
}

.gfh-footer__nav li + li {
	margin-top: 0.5rem;
}

.gfh-footer__nav a {
	color: var(--gfh-sand);
	font-size: 0.9rem;
	transition: color var(--gfh-transition);
}

.gfh-footer__nav a:hover {
	color: var(--gfh-cream);
}

.gfh-footer__contact-list {
	list-style: none;
}

.gfh-footer__contact-list li {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.9rem;
}

.gfh-footer__contact-list li + li {
	margin-top: 0.6rem;
}

.gfh-footer__contact-list svg {
	color: var(--gfh-amber);
	flex-shrink: 0;
}

.gfh-footer__contact-list a {
	color: var(--gfh-sand);
}

.gfh-footer__contact-list a:hover {
	color: var(--gfh-cream);
}

.gfh-footer__social-icons {
	display: flex;
	gap: 0.75rem;
}

.gfh-footer__social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--gfh-slate);
	color: var(--gfh-sand);
	transition: background-color var(--gfh-transition), color var(--gfh-transition);
}

.gfh-footer__social-link:hover {
	background: var(--gfh-amber);
	color: var(--gfh-white);
}

.gfh-footer__bottom {
	border-top: 1px solid var(--gfh-graphite);
	text-align: center;
	padding: 1.25rem 1.5rem;
	font-size: 0.8rem;
	color: var(--gfh-stone);
}

/* ----- Article (default index) ----- */
.gfh-site-main {
	padding-top: var(--gfh-header-height);
	min-height: 60vh;
}

.gfh-article {
	max-width: 48rem;
	margin: 0 auto;
	padding: 3rem 1.5rem;
}

.gfh-article__title {
	margin-bottom: 1.5rem;
}

.gfh-article__content {
	font-size: 1.05rem;
}

/* ----- Page content wrapper ----- */
.gfh-page__content {
	max-width: var(--gfh-max-width);
	margin: 0 auto;
	padding: 2rem 1.5rem 4rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
	.gfh-footer__inner {
		grid-template-columns: 1fr 1fr;
	}
}

/* Mobile */
@media (max-width: 768px) {
	:root {
		--gfh-header-height: 64px;
	}

	/* Mobile nav */
	.gfh-header__toggle {
		display: block;
		z-index: 1002;
	}

	.gfh-nav {
		position: fixed;
		inset: 0;
		background: rgba(13, 13, 13, 0.75);
		backdrop-filter: blur(24px);
		-webkit-backdrop-filter: blur(24px);
		flex-direction: column;
		justify-content: center;
		align-items: center;
		gap: 0;
		opacity: 0;
		visibility: hidden;
		/* Close: fade-out, then hide */
		transition: opacity 250ms ease, visibility 0ms 250ms;
		z-index: 1001;
	}

	.gfh-nav--open {
		opacity: 1;
		visibility: visible;
		/* Open: fade-in, visibility instant */
		transition: opacity 300ms ease, visibility 0ms;
	}

	/* Nav items — staggered slide on open, quick fade on close */
	.gfh-nav__list {
		flex-direction: column;
		align-items: center;
		gap: 0;
	}

	.gfh-nav__item {
		opacity: 0;
		transform: translateY(12px);
		/* Close: fast fade, transform snaps after */
		transition: opacity 150ms ease, transform 0ms 150ms;
	}

	.gfh-nav--open .gfh-nav__item {
		opacity: 1;
		transform: translateY(0);
		/* Open: smooth slide + fade */
		transition: opacity 300ms ease, transform 300ms ease;
	}

	.gfh-nav--open .gfh-nav__item:nth-child(1) { transition-delay: 60ms; }
	.gfh-nav--open .gfh-nav__item:nth-child(2) { transition-delay: 120ms; }
	.gfh-nav--open .gfh-nav__item:nth-child(3) { transition-delay: 180ms; }
	.gfh-nav--open .gfh-nav__item:nth-child(4) { transition-delay: 240ms; }
	.gfh-nav--open .gfh-nav__item:nth-child(5) { transition-delay: 300ms; }

	.gfh-nav__link {
		font-size: 1.6rem;
		padding: 0.6rem 1.5rem;
		color: var(--gfh-cream);
		position: relative;
	}

	.gfh-nav__link::after {
		content: '';
		position: absolute;
		bottom: 0.25rem;
		left: 50%;
		width: 0;
		height: 2px;
		background: var(--gfh-amber);
		transition: width 250ms ease, left 250ms ease;
	}

	.gfh-nav__link:hover::after,
	.gfh-nav__link:focus-visible::after,
	.gfh-nav__item--active .gfh-nav__link::after {
		width: 60%;
		left: 20%;
	}

	.gfh-nav__link:hover,
	.gfh-nav__link:focus-visible {
		color: var(--gfh-amber-light);
	}

	/* CTA in overlay */
	.gfh-nav__cta {
		margin-left: 0;
		margin-top: 2rem;
		font-size: 0.95rem;
		padding: 0.7em 2em;
		opacity: 0;
		transform: translateY(12px);
		/* Close: fast fade, transform snaps after */
		transition: opacity 150ms ease, transform 0ms 150ms,
		            background-color var(--gfh-transition), color var(--gfh-transition),
		            border-color var(--gfh-transition);
	}

	.gfh-nav--open .gfh-nav__cta {
		opacity: 1;
		transform: translateY(0);
		/* Open: smooth slide + fade, delayed after items */
		transition: opacity 300ms ease 320ms, transform 300ms ease 320ms,
		            background-color var(--gfh-transition), color var(--gfh-transition),
		            border-color var(--gfh-transition);
	}

	/* Toggle icons */
	.gfh-header__toggle[aria-expanded="true"] .gfh-header__toggle-icon--open {
		display: none;
	}

	.gfh-header__toggle[aria-expanded="true"] .gfh-header__toggle-icon--close {
		display: block;
	}

	/* Footer */
	.gfh-footer__inner {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
}

/* Small mobile */
@media (max-width: 375px) {
	html {
		font-size: 15px;
	}
}

/* ----- Breadcrumb ----- */
.gfh-breadcrumb {
	padding: 1rem 0;
}

.gfh-breadcrumb__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .25rem;
	list-style: none;
	padding: 0;
	margin: 0;
	font-size: .875rem;
	color: var(--gfh-text-muted);
}

.gfh-breadcrumb__item a {
	color: var(--gfh-accent);
	text-decoration: none;
}

.gfh-breadcrumb__item a:hover {
	text-decoration: underline;
}

.gfh-breadcrumb__item + .gfh-breadcrumb__item::before {
	content: '/';
	margin-right: .25rem;
	color: var(--gfh-text-muted);
}

.gfh-breadcrumb__item[aria-current="page"] {
	color: var(--gfh-text);
	font-weight: 500;
}
