/* ============================================================
   Generations Outdoor — main.css
   Structured: Reset → Tokens → Layout → Components → Pages
   ============================================================ */

/* ── 1. Reset ── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { hanging-punctuation: first last; }
body { line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, video, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; line-height: 1.2; }
p, li { text-wrap: pretty; max-width: 75ch; }
a { color: inherit; }
p.gform_required_legend {
    display: none;
}
input#gform_submit_button_1 {
    background-color: #031C31;
	transition: 0.3s ease-in-out;
}
input#gform_submit_button_1:hover {
    background-color: #FC8422;
}

/* ── 2. Design Tokens ── */
:root {
	/* Brand palette */
	--color-orange:    #FC8422;
	--color-orange-dk: #c4650e;
	--color-dark:      #031C31;
	--color-dark-2:    #031C31;
	--color-bark:      #1a1a1a;
	--color-sage:      #7a9b57;
	--color-accent:    #FC8422;
	--color-sky:       #e8f4f8;

	/* Semantic */
	--color-primary:   #FC8422;
	--color-secondary: #c4650e;
	--color-text:      #031C31;
	--color-text-muted:#666666;
	--color-bg:        #ffffff;
	--color-bg-alt:    #f9f9f9;
	--color-white:     #ffffff;
	--color-border:    #e2e2e2;

	/* Typography */
	--font-sans:    'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-heading: 'Montserrat', system-ui, sans-serif;
	--font-mono:    ui-monospace, "Cascadia Code", monospace;

	/* Fluid type scale */
	--text-xs:   clamp(0.75rem,  0.7rem + 0.25vw, 0.875rem);
	--text-sm:   clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
	--text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
	--text-lg:   clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
	--text-xl:   clamp(1.25rem,  1.1rem  + 0.75vw, 1.5rem);
	--text-2xl:  clamp(1.5rem,   1.3rem  + 1vw,    2rem);
	--text-3xl:  clamp(1.875rem, 1.5rem  + 1.875vw,2.5rem);
	--text-4xl:  clamp(2.25rem,  1.75rem + 2.5vw,  3.5rem);
	--text-5xl:  clamp(3rem,     2rem    + 5vw,     5rem);

	/* Fluid spacing scale */
	--space-2xs: clamp(0.25rem, 0.2rem + 0.25vw, 0.375rem);
	--space-xs:  clamp(0.5rem,  0.45rem + 0.25vw, 0.625rem);
	--space-sm:  clamp(0.75rem, 0.65rem + 0.5vw,  1rem);
	--space-md:  clamp(1rem,    0.9rem  + 0.5vw,  1.5rem);
	--space-lg:  clamp(1.5rem,  1.25rem + 1.25vw, 2.5rem);
	--space-xl:  clamp(2rem,    1.5rem  + 2.5vw,  4rem);
	--space-2xl: clamp(3rem,    2rem    + 5vw,     6rem);
	--space-3xl: clamp(4rem,    2.5rem  + 7.5vw,   9rem);

	/* Layout */
	--content-width: 1671px;
	--narrow-width:  720px;
	--wide-width:    1800px;

	/* UI */
	--radius-sm:  4px;
	--radius-md:  8px;
	--radius-lg:  16px;
	--radius-full: 9999px;
	--shadow-sm:  0 1px 2px 0 rgb(0 0 0 / 0.05);
	--shadow-md:  0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
	--shadow-lg:  0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
	--shadow-xl:  0 20px 25px -5px rgb(0 0 0 / 0.15), 0 8px 10px -6px rgb(0 0 0 / 0.1);
	--transition-fast: 150ms ease;
	--transition-base: 250ms ease;
	--transition-slow: 400ms ease;
	--header-height:  72px;

	/* Z-index scale */
	--z-below:   -1;
	--z-base:     0;
	--z-raised:   10;
	--z-overlay:  100;
	--z-modal:    1000;
	--z-toast:    2000;
}

/* ── 3. Base Styles ── */
html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-height) + var(--space-md));
}

body {
	font-family: var(--font-sans);
	font-size: var(--text-base);
	color: var(--color-text);
	background-color: var(--color-dark);
}

#main section {
	padding-left: 24px;
	padding-right: 24px;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	color: var(--color-text);
	font-weight: 700;
	letter-spacing: -0.01em;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

a:not([class]) {
	color: var(--color-primary);
	text-decoration: underline;
	text-underline-offset: 3px;
}
a:not([class]):hover { color: var(--color-earth); }

p { margin-bottom: var(--space-md); }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.5em; }

/* ── 4. Layout Utilities ── */
.container {
	max-width: var(--content-width);
	margin-inline: auto;
	/* padding-inline: clamp(1.5rem, 3vw, 2.5rem); */
}
.container--narrow { max-width: var(--narrow-width); }
.container--wide   { max-width: var(--wide-width); }

.grid-auto {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: var(--space-lg);
}

.section {
	padding-block: var(--space-2xl);
}
.section--alt {
	background-color: var(--color-bg-alt);
}

.section-header {
	text-align: center;
	margin-bottom: var(--space-xl);
}
.section-header__title {
	font-size: var(--text-3xl);
	color: var(--color-text);
}
.section-header__subtitle {
	margin-top: var(--space-sm);
	color: var(--color-text-muted);
	font-size: var(--text-lg);
	max-width: 60ch;
	margin-inline: auto;
}

/* Screen reader utilities */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}
.screen-reader-text:focus {
	background-color: var(--color-bg);
	clip: auto !important;
	clip-path: none;
	color: var(--color-text);
	display: block;
	font-size: var(--text-base);
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: var(--space-sm) var(--space-md);
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: var(--z-toast);
}

/* ── 5. Buttons ── */
.btn {
	display: inline-flex;
	align-items: center;
	gap: var(--space-xs);
	padding: 0.6em 1.4em;
	font-family: var(--font-heading);
	font-size: var(--text-sm);
	font-weight: 600;
	letter-spacing: 0.03em;
	text-decoration: none;
	border: 2px solid transparent;
	border-radius: var(--radius-md);
	cursor: pointer;
	transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
	white-space: nowrap;
	user-select: none;
}
.btn:focus-visible {
	outline: 3px solid var(--color-accent);
	outline-offset: 3px;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
	background-color: var(--color-primary);
	color: var(--color-white);
	border-color: var(--color-primary);
}
.btn--primary:hover {
	background-color: var(--color-bark);
	border-color: var(--color-bark);
	color: var(--color-white);
}

.btn--secondary {
	background-color: var(--color-secondary);
	color: var(--color-white);
	border-color: var(--color-secondary);
}
.btn--secondary:hover {
	background-color: var(--color-bark);
	border-color: var(--color-bark);
	color: var(--color-white);
}

.btn--outline {
	background-color: transparent;
	color: var(--color-primary);
	border-color: var(--color-primary);
}
.btn--outline:hover {
	background-color: var(--color-primary);
	color: var(--color-white);
}

.btn--white {
	background-color: var(--color-white);
	color: var(--color-primary);
	border-color: var(--color-white);
}
.btn--white:hover {
	background-color: var(--color-bg);
	border-color: var(--color-bg);
}

.btn--sm  { font-size: var(--text-xs); padding: 0.45em 1em; }
.btn--lg  { font-size: var(--text-lg); padding: 0.75em 2em; }

/* ── 6. Announcement Bar ── */
.announcement-bar {
	background-color: var(--color-primary);
	color: var(--color-white);
	text-align: center;
	padding: var(--space-xs) var(--space-md);
	font-size: var(--text-sm);
}
.announcement-bar__text {
	color: var(--color-white);
	text-decoration: none;
}
.announcement-bar__text:hover { text-decoration: underline; }

/* ── 7. Site Header ── */
.site-header {
	position: relative;
	z-index: var(--z-overlay);
	background-color: var(--color-white);
	box-shadow: var(--shadow-sm);
	transition: background-color var(--transition-base), box-shadow var(--transition-base);
}

.site-header--sticky {
	position: sticky;
	top: 0;
}

.site-header--transparent {
	background-color: var(--color-bg);
	box-shadow: none;
	color: var(--color-white);
}
.site-header--transparent .site-header__site-name,
.site-header--transparent .site-nav a { color: var(--color-white); }

.site-header.is-sticky {
	background-color: var(--color-white) !important;
	box-shadow: var(--shadow-md) !important;
	color: var(--color-text) !important;
}
.site-header.is-sticky .site-nav a,
.site-header.is-sticky .site-header__site-name { color: var(--color-text) !important; }

.site-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-sm);
	min-height: var(--header-height);
	padding-block: 20px;
}

@media (max-width: 507px) {
	.site-header__inner {
		justify-content: center;
	}
}

.site-header__branding {
	flex-shrink: 0;
	min-width: 0;
}
.site-header__branding .custom-logo {
	height: auto;
	width: 100%;
	max-width: clamp(150px, 40vw, 275px);
	display: block;
}
.site-header__site-name {
	font-family: var(--font-heading);
	font-size: var(--text-xl);
	font-weight: 700;
	text-decoration: none;
	color: var(--color-text);
	white-space: nowrap;
}
.site-header__tagline {
	font-size: var(--text-xs);
	color: var(--color-text-muted);
	margin: 0;
}

/* Header actions */
.site-header__actions {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

/* Phone button */
.site-header__phone-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background-color: var(--color-dark, #031C31);
	color: var(--color-white);
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: clamp(1rem, 0.9787rem + 0.122vw, 1.125rem);
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 10px 15px;
	border-radius: 4px;
	white-space: nowrap;
	transition: background-color 150ms ease;
}
.site-header__phone-btn svg { flex-shrink: 0; color: var(--color-white, #ffffff); }
.site-header__phone-btn:hover { background-color: var(--color-orange, #FC8422); }
.site-header__phone-btn:hover svg { color: var(--color-white); }

/* Hide phone label text on very small screens — icon only */
@media (max-width: 360px) {
	.site-header__phone-label { display: none; }
	.site-header__phone-btn { padding: 0.6em; border-radius: 50%; }
}

/* Mobile toggle — hidden (no nav on this landing page) */
.mobile-menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: var(--space-xs);
	margin-left: auto;
}
.mobile-menu-toggle__bar {
	display: block;
	width: 22px;
	height: 2px;
	background-color: currentColor;
	border-radius: var(--radius-full);
	transition: transform var(--transition-fast), opacity var(--transition-fast);
}
.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle__bar:nth-child(2) { opacity: 0; }
.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── 8. Hero ── */
.hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(380px, 55vw, 680px);
	overflow: hidden;
	background-color: var(--color-bark);
	color: var(--color-white);
}
.hero--has-image .hero__content { position: relative; z-index: 1; }

.hero__image-wrap {
	position: absolute;
	inset: 0;
}
.hero__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}
.hero__overlay {
	position: absolute;
	inset: 0;
	background-color: var(--color-bark);
}

.hero__content {
	width: 100%;
	padding-block: var(--space-2xl);
}
.hero__headline {
	font-size: var(--text-5xl);
	color: var(--color-white);
	text-shadow: 0 2px 8px rgb(0 0 0 / 0.3);
	margin-bottom: var(--space-md);
	max-width: 18ch;
}
.hero__subheadline {
	font-size: var(--text-xl);
	color: rgba(255,255,255,0.9);
	margin-bottom: var(--space-lg);
	max-width: 55ch;
}
.hero__actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; }

/* ── 9. Project Cards ── */
.project-card {
	background: var(--color-white);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.project-card:hover {
	box-shadow: var(--shadow-xl);
	transform: translateY(-4px);
}
.project-card__image-wrap {
	overflow: hidden;
	aspect-ratio: 4/3;
}
.project-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--transition-slow);
}
.project-card:hover .project-card__image { transform: scale(1.06); }

.project-card__body { padding: var(--space-md); }
.project-card__cats {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2xs);
	margin-bottom: var(--space-sm);
}
.project-card__cat {
	font-size: var(--text-xs);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--color-primary);
	text-decoration: none;
	background: color-mix(in srgb, var(--color-primary) 10%, transparent);
	padding: 2px 8px;
	border-radius: var(--radius-full);
}
.project-card__title {
	font-size: var(--text-xl);
	margin-bottom: var(--space-sm);
}
.project-card__title a { text-decoration: none; color: inherit; }
.project-card__title a:hover { color: var(--color-primary); }
.project-card__meta {
	display: flex;
	gap: var(--space-md);
	font-size: var(--text-xs);
	color: var(--color-text-muted);
	margin-bottom: var(--space-sm);
}
.project-card__location { display: flex; align-items: center; gap: 4px; }
.project-card__excerpt  { font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: var(--space-md); }
.project-card__cta      { margin-top: auto; }

/* ── 10. Post Cards ── */
.post-card {
	background: var(--color-white);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	display: flex;
	flex-direction: column;
	transition: box-shadow var(--transition-base);
}
.post-card:hover { box-shadow: var(--shadow-lg); }
.post-card__image-wrap {
	overflow: hidden;
	aspect-ratio: 16/9;
}
.post-card__image { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: var(--space-md); display: flex; flex-direction: column; flex: 1; }
.post-card__meta { font-size: var(--text-xs); color: var(--color-text-muted); margin-bottom: var(--space-sm); }
.post-card__title { font-size: var(--text-xl); margin-bottom: var(--space-sm); }
.post-card__title a { text-decoration: none; color: inherit; }
.post-card__title a:hover { color: var(--color-primary); }
.post-card__excerpt { color: var(--color-text-muted); font-size: var(--text-sm); flex: 1; margin-bottom: var(--space-md); }
.post-card__read-more { align-self: flex-start; margin-top: auto; }

/* ── 11. Service Cards ── */
.service-card {
	background: var(--color-white);
	border-radius: var(--radius-lg);
	padding: var(--space-lg);
	box-shadow: var(--shadow-sm);
	text-align: center;
	transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.service-card:hover {
	box-shadow: var(--shadow-lg);
	transform: translateY(-2px);
}
.service-card__icon {
	width: 64px;
	height: 64px;
	margin: 0 auto var(--space-md);
	display: flex;
	align-items: center;
	justify-content: center;
	background: color-mix(in srgb, var(--color-primary) 10%, transparent);
	border-radius: var(--radius-md);
}
.service-card__title { font-size: var(--text-xl); margin-bottom: var(--space-sm); }
.service-card__desc  { color: var(--color-text-muted); font-size: var(--text-sm); margin-bottom: var(--space-md); }

/* ── 12. Testimonial Cards ── */
.testimonial-card {
	background: var(--color-white);
	border-radius: var(--radius-lg);
	padding: var(--space-lg);
	box-shadow: var(--shadow-sm);
	display: flex;
	flex-direction: column;
	gap: var(--space-md);
}
.testimonial-card__quote {
	font-style: italic;
	color: var(--color-text);
	font-size: var(--text-base);
	line-height: 1.7;
	flex: 1;
	margin: 0;
}
.testimonial-card__quote p { margin: 0; max-width: none; }
.testimonial-card__author {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
	margin-top: auto;
}
.testimonial-card__photo {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}
.testimonial-card__name { display: block; font-weight: 700; font-size: var(--text-sm); }
.testimonial-card__location { display: block; font-size: var(--text-xs); color: var(--color-text-muted); }

/* Star Rating */
.star-rating { display: flex; gap: 2px; }
.star { font-size: 1.1em; line-height: 1; }
.star--filled { color: #f59e0b; }
.star--empty  { color: var(--color-border); }

/* ── 13. CTA Band ── */
.cta-band {
	background-color: var(--color-primary);
	color: var(--color-white);
	padding-block: var(--space-2xl);
}
.cta-band__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-lg);
	flex-wrap: wrap;
}
.cta-band__heading {
	color: var(--color-white);
	font-size: var(--text-3xl);
	margin-bottom: var(--space-sm);
}
.cta-band__subtext { color: rgba(255,255,255,0.85); margin: 0; max-width: none; }
.cta-band__btn { flex-shrink: 0; }

/* ── 14. Archive & Filter ── */
.archive-header {
	background: var(--color-bg-alt);
	padding-block: var(--space-xl);
	margin-bottom: var(--space-xl);
}
.archive-header__title { font-size: var(--text-4xl); margin-bottom: var(--space-sm); }
.archive-header__subtitle { color: var(--color-text-muted); font-size: var(--text-lg); max-width: none; }
.archive-header__description { color: var(--color-text-muted); }

.project-filter { margin-bottom: var(--space-xl); }
.project-filter__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-xs);
}
.project-filter__tab {
	display: inline-flex;
	padding: 0.4em 1em;
	font-size: var(--text-sm);
	font-weight: 500;
	border-radius: var(--radius-full);
	text-decoration: none;
	color: var(--color-text-muted);
	border: 1px solid var(--color-border);
	transition: all var(--transition-fast);
}
.project-filter__tab:hover,
.project-filter__tab.is-active {
	background-color: var(--color-primary);
	border-color: var(--color-primary);
	color: var(--color-white);
}

/* ── 15. Single Project ── */
.project-meta-bar { padding-block: var(--space-lg); }
.project-meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-lg);
	margin-top: var(--space-md);
}
.project-meta__item { display: flex; flex-direction: column; gap: 2px; }
.project-meta__label { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--color-text-muted); }
.project-meta__value { font-size: var(--text-base); font-weight: 500; }

.project-body { padding-bottom: var(--space-2xl); }
.project-body__description { margin-bottom: var(--space-xl); }

.project-gallery { margin-bottom: var(--space-xl); }
.project-gallery__title { margin-bottom: var(--space-lg); }
.project-gallery__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
	gap: var(--space-sm);
}
.project-gallery__item { display: block; overflow: hidden; border-radius: var(--radius-md); aspect-ratio: 4/3; }
.project-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.project-gallery__item:hover img { transform: scale(1.05); }

.before-after { margin-bottom: var(--space-xl); }
.before-after__title { margin-bottom: var(--space-lg); }
.before-after__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.before-after__item { position: relative; }
.before-after__label {
	position: absolute;
	top: var(--space-sm);
	left: var(--space-sm);
	background: rgba(0,0,0,0.7);
	color: var(--color-white);
	font-size: var(--text-xs);
	font-weight: 700;
	padding: 4px 10px;
	border-radius: var(--radius-full);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	z-index: 1;
}
.before-after__item img { width: 100%; border-radius: var(--radius-md); object-fit: cover; }

.project-scope, .project-materials { margin-bottom: var(--space-xl); }
.project-scope__title, .project-materials__title { margin-bottom: var(--space-md); }

.materials-table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--text-sm);
}
.materials-table th, .materials-table td {
	padding: var(--space-sm) var(--space-md);
	border-bottom: 1px solid var(--color-border);
	text-align: left;
}
.materials-table th {
	font-weight: 700;
	background: var(--color-bg-alt);
	color: var(--color-bark);
}
.materials-table tr:last-child td { border-bottom: none; }

.related-projects { background: var(--color-bg-alt); }
.related-projects__title { margin-bottom: var(--space-xl); }

/* ── 16. Page Content ── */
.page-container { padding-block: var(--space-xl); }
.page-container--has-sidebar {
	display: grid;
	gap: var(--space-xl);
	align-items: start;
}
.page-container--sidebar-right  { grid-template-columns: 1fr 300px; }
.page-container--sidebar-left   { grid-template-columns: 300px 1fr; }
.page-container--sidebar-left .page-content { order: 2; }
.page-container--sidebar-left .widget-area  { order: 1; }

.page-content__header { margin-bottom: var(--space-xl); }
.page-content__title  { font-size: var(--text-4xl); margin-bottom: var(--space-md); }
.page-content__intro  { font-size: var(--text-lg); color: var(--color-text-muted); }

/* Entry content prose styles */
.entry-content > * + * { margin-top: var(--space-md); }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: var(--space-xl); }
.entry-content ul, .entry-content ol { padding-left: 1.5em; }
.entry-content li + li { margin-top: var(--space-xs); }
.entry-content img { border-radius: var(--radius-md); }
.entry-content a:not(.btn) {
	color: var(--color-primary);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.entry-content blockquote {
	border-left: 4px solid var(--color-accent);
	padding-left: var(--space-md);
	font-style: italic;
	color: var(--color-text-muted);
}
.entry-content code {
	font-family: var(--font-mono);
	font-size: 0.9em;
	background: var(--color-bg-alt);
	padding: 2px 6px;
	border-radius: var(--radius-sm);
}
.entry-content pre {
	background: var(--color-bark);
	color: var(--color-white);
	padding: var(--space-md);
	border-radius: var(--radius-md);
	overflow-x: auto;
	font-family: var(--font-mono);
}
.entry-content pre code { background: none; padding: 0; }
.entry-content table {
	width: 100%;
	border-collapse: collapse;
}
.entry-content table th, .entry-content table td {
	padding: var(--space-sm);
	border: 1px solid var(--color-border);
}
.entry-content table th { background: var(--color-bg-alt); }

/* ── 17. Single Post ── */
.single-post__featured-image img {
	width: 100%;
	max-height: 520px;
	object-fit: cover;
}
.single-post__header { padding-block: var(--space-xl); background: var(--color-bg-alt); margin-bottom: var(--space-xl); }
.single-post__meta { font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: var(--space-sm); }
.single-post__title { font-size: var(--text-4xl); }
.single-post__body  { padding-bottom: var(--space-2xl); }
.single-post__tags { display: flex; gap: var(--space-xs); flex-wrap: wrap; margin-top: var(--space-xl); }
.tag-link {
	font-size: var(--text-xs);
	padding: 4px 12px;
	background: var(--color-bg-alt);
	border-radius: var(--radius-full);
	text-decoration: none;
	color: var(--color-text-muted);
	transition: background var(--transition-fast), color var(--transition-fast);
}
.tag-link:hover {
	background: var(--color-primary);
	color: var(--color-white);
}

/* Post navigation */
.post-navigation {
	padding-block: var(--space-xl);
	border-top: 1px solid var(--color-border);
}
.nav-links { display: flex; justify-content: space-between; gap: var(--space-md); }
.nav-previous, .nav-next { max-width: 48%; }
.nav-next { margin-left: auto; text-align: right; }
.nav-subtitle { display: block; font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--color-text-muted); margin-bottom: 4px; }
.nav-title { font-weight: 600; text-decoration: none; color: var(--color-primary); }

/* ── 18. Pagination ── */
.pagination {
	margin-top: var(--space-xl);
}
.nav-links { display: flex; align-items: center; gap: var(--space-xs); flex-wrap: wrap; }
.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding-inline: var(--space-sm);
	border-radius: var(--radius-md);
	font-size: var(--text-sm);
	font-weight: 500;
	text-decoration: none;
	color: var(--color-text);
	transition: all var(--transition-fast);
}
.page-numbers:hover { background: var(--color-bg-alt); }
.page-numbers.current {
	background: var(--color-primary);
	color: var(--color-white);
}
.page-numbers.prev, .page-numbers.next {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2xs);
	padding-inline: var(--space-md);
	border: 1px solid var(--color-border);
}
.page-numbers.prev:hover,
.page-numbers.next:hover {
	background: var(--color-primary);
	color: var(--color-white);
	border-color: var(--color-primary);
}

/* ── 19. Footer ── */
.site-footer {
	background-color: var(--color-dark, #0d1b2a);
	color: rgba(255,255,255,0.85);
}

/* Main area: centered logo + tagline */
.site-footer__main {
	padding-block: clamp(2.5rem, 5vw, 4rem);
	text-align: center;
}
.site-footer__brand {
	display: flex;
	flex-direction: column;
	align-items: center;
}
.site-footer__logo-link { display: inline-block; text-decoration: none; }
.site-footer__logo {
	height: auto;
	max-height: 100px;
	width: auto;
	max-width: 280px;
}
.site-footer__site-name {
	font-family: var(--font-heading);
	font-size: var(--text-xl);
	color: var(--color-white);
	font-weight: 700;
}
.site-footer__tagline {
	color: var(--color-white);
	font-family: var(--font-heading);
	font-size: var(--text-sm);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-top: var(--space-sm);
}

/* Social icons (centered) */
.site-footer__social {
	display: flex;
	justify-content: center;
	gap: var(--space-sm);
	margin-top: var(--space-lg);
}
.site-footer__social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: var(--radius-md);
	background: rgba(255,255,255,0.1);
	color: rgba(255,255,255,0.8);
	text-decoration: none;
	transition: background var(--transition-fast), color var(--transition-fast);
}
.site-footer__social-link:hover {
	background: var(--color-accent);
	color: var(--color-white);
}

/* Bottom bar: copyright + nav, centered */
.site-footer__bottom {
	border-top: 1px solid rgba(255,255,255,0.1);
	padding-block: var(--space-md);
	text-align: center;
}
.site-footer__bottom .container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-sm);
}
.site-footer__copyright {
	font-size: clamp(0.875rem, 0.8537rem + 0.122vw, 1rem);
	color: var(--color-white);
	margin: 0;
	max-width: none;
}
.site-footer__nav {
	display: flex;
	gap: var(--space-md);
	flex-wrap: wrap;
	justify-content: center;
}
.site-footer__nav a {
	font-size: var(--text-sm);
	color: rgba(255,255,255,0.55);
	text-decoration: none;
}
.site-footer__nav a:hover { color: var(--color-white); }

/* ── 20. Search Form ── */
.search-form { display: flex; max-width: 480px; width: 100%; }
.search-field {
	flex: 1;
	padding: 0.65em var(--space-md);
	font-size: var(--text-base);
	border: 2px solid var(--color-border);
	border-right: none;
	border-radius: var(--radius-md) 0 0 var(--radius-md);
	background: var(--color-white);
	color: var(--color-text);
	outline: none;
	transition: border-color var(--transition-fast);
}
.search-field:focus { border-color: var(--color-primary); }
.search-submit {
	padding: 0.65em var(--space-md);
	background: var(--color-primary);
	color: var(--color-white);
	border: 2px solid var(--color-primary);
	border-radius: 0 var(--radius-md) var(--radius-md) 0;
	cursor: pointer;
	font-weight: 600;
	font-size: var(--text-sm);
	transition: background var(--transition-fast);
}
.search-submit:hover { background: var(--color-bark); border-color: var(--color-bark); }

/* ── 21. Sidebar / Widgets ── */
.widget-area { padding-top: var(--space-xs); }
.widget { margin-bottom: var(--space-xl); }
.widget-title { font-size: var(--text-lg); border-bottom: 2px solid var(--color-accent); padding-bottom: var(--space-xs); margin-bottom: var(--space-md); }
.widget ul { list-style: none; padding: 0; }
.widget ul li { padding-block: var(--space-xs); border-bottom: 1px solid var(--color-border); }
.widget ul li:last-child { border-bottom: none; }
.widget a { text-decoration: none; color: var(--color-text); }
.widget a:hover { color: var(--color-primary); }

/* ── 22. 404 Page ── */
.error-404 { padding-block: var(--space-3xl); text-align: center; }
.error-404__code {
	display: block;
	font-size: clamp(6rem, 20vw, 12rem);
	font-family: var(--font-heading);
	font-weight: 900;
	color: var(--color-bg-alt);
	line-height: 1;
	margin-bottom: var(--space-md);
}
.error-404__title { font-size: var(--text-3xl); margin-bottom: var(--space-md); }
.error-404__text  { color: var(--color-text-muted); margin-bottom: var(--space-xl); }
.error-404__actions { display: flex; flex-direction: column; align-items: center; gap: var(--space-lg); }
.error-404__links { display: flex; gap: var(--space-sm); flex-wrap: wrap; justify-content: center; }

/* ── 23. Content None ── */
.content-none { padding-block: var(--space-2xl); text-align: center; }
.content-none__title { font-size: var(--text-3xl); margin-bottom: var(--space-md); }
.content-none__text  { color: var(--color-text-muted); margin-bottom: var(--space-xl); }

/* ── 24. Breadcrumbs ── */
.breadcrumbs { margin-bottom: var(--space-md); }
.breadcrumbs__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-xs);
	list-style: none;
	padding: 0;
	font-size: var(--text-sm);
	color: var(--color-text-muted);
}
.breadcrumbs__item a { text-decoration: none; color: var(--color-primary); }
.breadcrumbs__item a:hover { text-decoration: underline; }
.breadcrumbs__item:not(:last-child)::after { content: "/"; margin-left: var(--space-xs); color: var(--color-border); }
.breadcrumbs__item:last-child { color: var(--color-text-muted); }

/* Featured Projects Homepage */
.featured-projects { padding-block: var(--space-2xl); }
.featured-projects__cta { text-align: center; margin-top: var(--space-xl); }
.projects-grid { margin-bottom: var(--space-md); }

/* ── 25. Gutenberg Block Overrides ── */
.wp-block-image img { border-radius: var(--radius-md); }
.wp-block-pullquote { border-top: 4px solid var(--color-accent); border-bottom: 4px solid var(--color-accent); }
.wp-block-button__link {
	background-color: var(--color-primary) !important;
	border-radius: var(--radius-md) !important;
}
.is-style-outline .wp-block-button__link {
	background-color: transparent !important;
	color: var(--color-primary) !important;
	border-color: var(--color-primary) !important;
}
.alignfull {
	margin-left: calc(-50vw + 50%);
	width: 100vw;
	max-width: 100vw;
}
.alignwide {
	margin-left: calc((-100vw + var(--content-width)) / 2);
	width: 100vw;
	max-width: min(100vw, var(--wide-width));
}

/* ── 26. Responsive ── */
@media (max-width: 768px) {

	.hero__headline { font-size: var(--text-4xl); }

	.cta-band__inner { flex-direction: column; text-align: center; align-items: center; }

	.before-after__grid { grid-template-columns: 1fr; }

	.page-container--has-sidebar { grid-template-columns: 1fr; }
	.page-container--sidebar-left .page-content { order: 1; }
	.page-container--sidebar-left .widget-area  { order: 2; }

}

@media (max-width: 480px) {
	.grid-auto { grid-template-columns: 1fr; }
	.btn--lg { font-size: var(--text-base); padding: 0.65em 1.5em; }
	.hero__headline { font-size: var(--text-3xl); }
	.hero__actions { flex-direction: column; }
	.hero__actions .btn { width: 100%; justify-content: center; }
	.nav-links { flex-direction: column; gap: var(--space-md); }
	.nav-next { margin-left: 0; text-align: left; }
}

/* ── 26. Contact Popup ── */
.popup-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: rgba(10, 18, 30, 0.82);
	backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	animation: popup-fade-in 0.25s ease both;
}
.popup-overlay[hidden] { display: none; }

@keyframes popup-fade-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

.popup-modal {
	position: relative;
	background: var(--color-white, #fff);
	border-radius: 10px;
	width: 100%;
	max-width: 580px;
	max-height: 90dvh;
	overflow-y: auto;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
	animation: popup-slide-up 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes popup-slide-up {
	from { opacity: 0; transform: translateY(28px) scale(0.97); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Orange top accent bar */
.popup-modal::before {
	content: '';
	display: block;
	height: 5px;
	background: var(--color-accent, #e87e1a);
	border-radius: 10px 10px 0 0;
}

.popup-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 2px solid var(--color-border, #e5e7eb);
	background: transparent;
	color: var(--color-text-muted, #6b7280);
	cursor: pointer;
	transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
	z-index: 1;
}
.popup-close:hover {
	background: var(--color-accent, #e87e1a);
	border-color: var(--color-accent, #e87e1a);
	color: var(--color-white, #fff);
}
.popup-close:focus-visible {
	outline: 3px solid var(--color-accent, #e87e1a);
	outline-offset: 2px;
}

.popup-body {
	padding: clamp(1.5rem, 4vw, 2.5rem);
	padding-top: clamp(1.25rem, 3vw, 2rem);
}

/* Gravity Forms inside popup */
.popup-body .gform_title {
	font-family: var(--font-heading, 'Poppins', sans-serif);
	font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--color-dark, #0d1b2a);
	margin-bottom: 1.25rem;
}
.popup-body .gform_body .gfield_label {
	font-weight: 600;
	font-size: 0.875rem;
	color: var(--color-text, #1f2937);
}
.popup-body .gform_body input,
.popup-body .gform_body select,
.popup-body .gform_body textarea {
	width: 100%;
	border: 1.5px solid var(--color-border, #e5e7eb);
	border-radius: 5px;
	padding: 0.65em 0.9em;
	font-size: 0.95rem;
	color: var(--color-text, #1f2937);
	transition: border-color 150ms ease, box-shadow 150ms ease;
}
.popup-body .gform_body input:focus,
.popup-body .gform_body select:focus,
.popup-body .gform_body textarea:focus {
	outline: none;
	border-color: var(--color-accent, #e87e1a);
	box-shadow: 0 0 0 3px rgba(232, 126, 26, 0.15);
}
.popup-body .gform_footer .gform_button,
.popup-body .gform_page_footer .gform_button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	background: var(--color-accent, #e87e1a);
	color: var(--color-white, #fff);
	font-family: var(--font-heading, 'Poppins', sans-serif);
	font-weight: 700;
	font-size: 0.875rem;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	border: none;
	border-radius: 4px;
	padding: 0.85em 2em;
	cursor: pointer;
	transition: background 150ms ease;
}
.popup-body .gform_footer .gform_button:hover,
.popup-body .gform_page_footer .gform_button:hover {
	background: var(--color-accent-dark, #c96a10);
}

@media (prefers-reduced-motion: reduce) {
	.popup-overlay,
	.popup-modal { animation: none; }
}

/* ── Thank You Popup ── */
.popup-modal--thankyou {
	max-width: 480px;
	text-align: center;
}

.popup-thankyou {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.25rem;
	padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 4vw, 2.5rem);
}

.popup-thankyou__icon {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background-color: var(--color-accent, #e87e1a);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.popup-thankyou__content {
	color: var(--color-text, #1f2937);
	font-size: 1rem;
	line-height: 1.7;
}
.popup-thankyou__content p { margin: 0; }
.popup-thankyou__content * + * { margin-top: 0.5rem; }

/* ── 27. Back to Top ── */
.back-to-top {
	position: fixed;
	bottom: clamp(1.25rem, 3vw, 2rem);
	right: clamp(1.25rem, 3vw, 2rem);
	z-index: var(--z-overlay, 900);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 2px solid var(--color-accent, #e87e1a);
	background-color: var(--color-dark, #0d1b2a);
	color: var(--color-accent, #e87e1a);
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
	opacity: 0;
	transform: translateY(12px) scale(0.9);
	transition:
		opacity 0.3s ease,
		transform 0.3s ease,
		background-color 0.2s ease,
		color 0.2s ease;
	pointer-events: none;
}
.back-to-top:not([hidden]) {
	opacity: 1;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}
.back-to-top:hover {
	background-color: var(--color-accent, #e87e1a);
	color: var(--color-white, #fff);
}
.back-to-top:active {
	transform: scale(0.93);
}
@media (prefers-reduced-motion: reduce) {
	.back-to-top { transition: none; }
}

/* ── 28. Print ── */
@media print {
	.site-header, .site-footer, .cta-band, .mobile-menu-toggle,
	.breadcrumbs, .project-filter, .pagination, .related-projects { display: none !important; }
	body { color: #000; background: #fff; }
	a { text-decoration: none; }
}

/* ── 28. Focus / Accessibility ── */
:focus-visible {
	outline: 3px solid var(--color-accent);
	outline-offset: 3px;
	border-radius: var(--radius-sm);
}
