/* ============================================
   FLYTRAP FENCE - GLOBAL STYLES
   ============================================ */

/* ---------- DISABLE AOS ANIMATIONS ---------- */
/* AOS library is loaded but animations are disabled site-wide
   for consistency. Remove this block to re-enable them. */
[data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* ---------- CSS VARIABLES ---------- */
:root {
    /* Green palette — warm forest green */
    --green-900: #0c2b1c;
    --green-800: #164029;
    --green-700: #265e3d;
    --green-600: #377b4d;
    --green-500: #4a965d;
    --green-400: #67b073;
    --green-300: #96c496;
    --green-200: #c3d8bf;
    --green-100: #e3ebdf;
    --green-50: #f4f6f2;

    /* Accent palette — warm orange for CTAs */
    --accent-900: #7c2d12;
    --accent-800: #9a3412;
    --accent-700: #c2410c;
    --accent-600: #ea580c;
    --accent-500: #f97316;
    --accent-400: #fb923c;
    --accent-300: #fdba74;
    --accent-200: #fed7aa;
    --accent-100: #ffedd5;
    --accent-50: #fff7ed;

    /* Brand palette — logo lime-green, secondary accent */
    --brand-900: #293511;
    --brand-800: #3a4b1a;
    --brand-700: #516826;
    --brand-600: #6f9130;
    --brand-500: #aedb5b;
    --brand-400: #bee475;
    --brand-300: #cce69d;
    --brand-200: #deecc4;
    --brand-100: #ebf2dd;
    --brand-50: #f6f8f0;

    /* Neutral palette — clean whites & grays */
    --cream-900: #111827;
    --cream-800: #1f2937;
    --cream-700: #374151;
    --cream-600: #4b5563;
    --cream-500: #6b7280;
    --cream-400: #9ca3af;
    --cream-300: #d1d5db;
    --cream-200: #e5e7eb;
    --cream-100: #f3f4f6;
    --cream-50: #f9fafb;

    /* Text colors */
    --text-dark: #0a2e1a;
    --text-medium: #374151;
    --text-light: #6b7280;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(10, 46, 26, 0.08);
    --shadow-md: 0 4px 16px rgba(10, 46, 26, 0.12);
    --shadow-lg: 0 12px 40px rgba(10, 46, 26, 0.16);

    /* Typography */
    --font-heading: 'Barlow Condensed', sans-serif;
    --font-body: 'DM Sans', sans-serif;

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 10px;
    --radius-full: 9999px;

    /* Layout */
    --nav-height: clamp(60px, 8vw, 72px);
}

/* ---------- RESET / BASE ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--cream-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    text-wrap: balance;
    text-transform: uppercase;
    line-height: 1.1;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

.accent { color: var(--green-600); }

p {
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Inline links inside body paragraphs / FAQ answers — inherits surrounding
   text color so it works on any background (light or dark). Weight + underline
   provides the visual differentiation. Simple, scalable. */
p a:not(.btn):not(.nav-link):not(.nav-cta),
.faq-answer a:not(.btn),
.styles-intro a:not(.btn),
.story-content a:not(.btn),
.pricing-main a:not(.btn),
.benefit-card a:not(.btn),
.style-content a:not(.btn),
.intro-container a:not(.btn),
.values a:not(.btn),
.svc-why a:not(.btn),
.trust a:not(.btn) {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: text-decoration-thickness 0.15s ease, opacity 0.15s ease;
}

p a:not(.btn):not(.nav-link):not(.nav-cta):hover,
.faq-answer a:not(.btn):hover,
.styles-intro a:not(.btn):hover,
.story-content a:not(.btn):hover,
.pricing-main a:not(.btn):hover,
.benefit-card a:not(.btn):hover,
.style-content a:not(.btn):hover,
.intro-container a:not(.btn):hover,
.values a:not(.btn):hover,
.svc-why a:not(.btn):hover,
.trust a:not(.btn):hover {
    text-decoration-thickness: 2px;
    opacity: 0.85;
}

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

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.75rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--accent-600);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-700);
}

.btn-secondary {
    background: white;
    color: var(--green-700);
    border: 2px solid var(--green-400);
}

.btn-secondary:hover {
    border-color: var(--green-600);
    background: var(--cream-100);
}

.btn-outline-light {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--green-800);
    border: 2px solid var(--green-300);
}

.btn-outline:hover {
    background: var(--cream-100);
    border-color: var(--green-500);
}

/* ---------- NAVIGATION ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    height: var(--nav-height);
    background: rgba(249, 250, 251, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(10, 46, 26, 0.08);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: max(2rem, env(safe-area-inset-left));
    padding-right: max(2rem, env(safe-area-inset-right));
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-img {
    height: clamp(38px, 5vw, 44px);
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
    text-transform: uppercase;
}

.nav-links a:not(.nav-cta):hover {
    color: var(--green-600);
}

/* Services Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
}

.nav-dropdown-trigger svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 100;
    margin-top: 0.5rem;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown:hover .nav-dropdown-trigger svg,
.nav-dropdown.open .nav-dropdown-trigger svg {
    transform: rotate(180deg);
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.625rem 1.25rem !important;
    font-size: 0.9375rem !important;
    color: var(--text-dark) !important;
    transition: background 0.15s ease !important;
}

.nav-dropdown-menu a:hover {
    background: var(--cream-100);
    color: var(--green-700) !important;
}

.nav-cta {
    background: var(--accent-600);
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: var(--radius-sm);
    font-weight: 700 !important;
    transition: background 0.2s ease !important;
}

.nav-cta:hover {
    background: var(--accent-700);
}

/* ---------- HAMBURGER MENU ---------- */
.hamburger {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    position: relative;
    min-width: 44px;
    min-height: 44px;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--green-700);
    transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- MOBILE MENU ---------- */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cream-50);
    z-index: 1050;
    padding-top: var(--nav-height);
}

.mobile-menu.open {
    display: block;
}

.mobile-menu-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 2rem;
    padding-bottom: 2rem;
    padding-left: max(2rem, env(safe-area-inset-left));
    padding-right: max(2rem, env(safe-area-inset-right));
    overflow-y: auto;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-menu-links > a {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--green-800);
    text-decoration: none;
    text-transform: uppercase;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--cream-200);
    transition: color 0.2s ease;
}

.mobile-menu-links > a:hover {
    color: var(--green-600);
}

/* Mobile Services Dropdown */
.mobile-dropdown {
    border-bottom: 1px solid var(--cream-200);
}

.mobile-dropdown-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 0;
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--green-800);
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.2s ease;
}

.mobile-dropdown-trigger:hover {
    color: var(--green-600);
}

.mobile-dropdown-trigger svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.mobile-dropdown-trigger.open svg {
    transform: rotate(180deg);
}

.mobile-dropdown-menu {
    display: none;
    padding: 0.5rem 0 1rem 1rem;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-dropdown-menu.open {
    display: flex;
}

.mobile-dropdown-menu a {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-medium);
    text-decoration: none;
    padding: 0.75rem 0;
    transition: color 0.2s ease;
}

.mobile-dropdown-menu a:hover {
    color: var(--green-600);
}

/* Mobile Menu CTA Section */
.mobile-menu-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--cream-200);
    margin-top: auto;
}

.mobile-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--green-700);
    text-decoration: none;
    padding: 0.75rem;
    background: var(--cream-100);
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
}

.mobile-phone:hover {
    background: var(--green-100);
}

.mobile-phone svg {
    width: 20px;
    height: 20px;
}

/* ---------- FOOTER ---------- */
.footer {
    background: var(--green-900);
    color: white;
    padding: 4rem 2rem 1.5rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo-img {
    height: 48px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.95;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    margin-top: 1rem;
    color: var(--green-200);
    font-size: 0.9375rem;
    line-height: 1.6;
    max-width: 280px;
}

.footer-section h4 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    text-transform: uppercase;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.625rem;
}

.footer-section a {
    color: var(--green-200);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--green-300);
    font-size: 0.875rem;
}

.footer-credit {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 1.25rem;
    padding-top: 1rem;
    text-align: center;
}

.footer-credit p {
    color: var(--green-300);
    font-size: 0.8125rem;
    opacity: 0.7;
    margin: 0;
}

.footer-credit a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: opacity 0.2s ease;
}

.footer-credit a:hover {
    opacity: 1;
    color: var(--accent, #fff);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--green-300);
    transition: color 0.2s ease;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    color: white;
}

.social-links svg {
    width: 20px;
    height: 20px;
}

/* ---------- SECTION STYLES ---------- */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--cream-100);
    color: var(--green-700);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.section-label svg {
    width: 16px;
    height: 16px;
}

/* Dark background variant */
.section-label--dark {
    background: rgba(255, 255, 255, 0.15);
    color: var(--green-100);
    border-color: rgba(255, 255, 255, 0.1);
}

.section-label--dark svg {
    color: var(--green-200);
}

.section-title {
    color: var(--green-900);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- GLASS CARD ---------- */
/* Reusable frosted glass card for dark sections */
.glass-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    transition: background 0.3s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* ---------- STYLE TAGS (pill badges) ---------- */
.style-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.style-tag {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background: var(--cream-100);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--green-700);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* ---------- ICON CARDS ---------- */
/* Reusable card with icon - use for benefits, features, values, etc. */
.icon-card {
    padding: 2rem;
    background: var(--cream-50);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .icon-card:hover {
        box-shadow: var(--shadow-md);
    }
}

.icon-card--white {
    background: white;
    box-shadow: var(--shadow-sm);
}

.icon-card--centered {
    text-align: center;
}

.icon-box {
    width: 56px;
    height: 56px;
    background: var(--green-700);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.icon-card--centered .icon-box {
    margin-left: auto;
    margin-right: auto;
}

.icon-box svg {
    width: 28px;
    height: 28px;
    color: white;
}

.icon-box--light {
    background: var(--cream-100);
}

.icon-box--light svg {
    color: var(--green-700);
}

.icon-box--round {
    border-radius: 50%;
}

.icon-box--transparent {
    background: rgba(255, 255, 255, 0.1);
}

.icon-box--transparent svg {
    color: var(--green-300);
}

.icon-card h3 {
    font-size: 1.25rem;
    color: var(--green-800);
    margin-bottom: 0.75rem;
}

.icon-card p {
    font-size: 0.9375rem;
    color: var(--text-medium);
    line-height: 1.6;
}

/* ---------- FAQ SECTION + ACCORDION ---------- */
/* Single source of truth — do not duplicate in page-level CSS */

.faq {
    padding: 5rem 2rem;
    background: var(--cream-50);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq h2 {
    font-size: 2rem;
    color: var(--green-900);
    margin-bottom: 1rem;
    text-align: center;
}

.faq-list {
    max-width: 800px;
    margin: 2rem auto 0;
}

.faq-item {
    background: white;
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: white;
    border: none;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--green-900);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: var(--cream-50);
}

.faq-question svg {
    width: 20px;
    height: 20px;
    color: var(--green-600);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.open .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 1rem 1.5rem 1.5rem;
    color: var(--text-medium);
    line-height: 1.7;
    font-size: 0.9675rem;
    border-top: 1px solid var(--cream-200);
}

.faq-item.open .faq-answer {
    display: block;
}

/* Legacy wrapper — estimate page nests this inside .faq-answer */
.faq-answer-content {
    color: inherit;
    line-height: inherit;
}

@media (max-width: 768px) {
    .faq {
        padding: 3.5rem 1.5rem;
    }

    .faq-question {
        font-size: 1rem;
        padding: 1.125rem 1.25rem;
    }

    .faq-answer {
        padding: 1rem 1.25rem 1.25rem;
    }
}

/* ---------- FOCUS-VISIBLE FOR INTERACTIVE CARDS ---------- */
.gallery-item:focus-visible,
.portfolio-item:focus-visible,
.faq-question:focus-visible,
.svc-type-card:focus-visible,
.svc-cat-card:focus-visible,
.svc-specialty-card:focus-visible {
    outline: 2px solid var(--green-700, #1a4a32);
    outline-offset: 2px;
}

/* ---------- FORM STYLES ---------- */
.form-field label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--green-800);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid var(--cream-300);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--green-600);
}

.form-field textarea {
    resize: vertical;
    min-height: 100px;
}

.form-field--lg input,
.form-field--lg select {
    padding: 1rem;
    font-size: 1.125rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) and (min-width: 769px) {
    .form-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.btn-full {
    width: 100%;
}

.form-note {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 1rem;
}

.form-note svg {
    width: 14px;
    height: 14px;
    vertical-align: middle;
    margin-right: 0.25rem;
}

/* ---------- TRUST BADGES ---------- */
.trust-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--green-700);
    font-weight: 600;
}

.trust-item svg {
    width: 18px;
    height: 18px;
    color: var(--green-600);
}

/* ---------- CARD GRID LAYOUTS ---------- */
.card-grid {
    display: grid;
    gap: 2rem;
}

.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Footer brand spans full row so the 4 link sections sit in 2x2 below */
    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* Hamburger / mobile menu kicks in earlier so iPad portrait gets touch-friendly nav */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}

@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-brand p {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-bottom {
        justify-content: center;
        text-align: center;
    }

    /* Card grids */
    .card-grid--4,
    .card-grid--3,
    .card-grid--2 {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Form layouts */
    .form-row,
    .form-grid-3 {
        grid-template-columns: 1fr;
    }

    /* Trust badges */
    .trust-row {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
}


/* ============================================================
   MULTI-STEP QUOTE FORM COMPONENT
   ============================================================ */

/* Container variants */
.qf {
    background: white;
    border-radius: var(--radius-sm);
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
}

.qf--hero {
    padding: 1.5rem;
}

.qf--section {
    max-width: 640px;
    margin: 0 auto;
}

/* Header (non-hero only) */
.qf-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.qf-heading {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--green-900);
    margin-bottom: 0.25rem;
}

.qf-subheading {
    font-size: 0.9375rem;
    color: var(--text-light);
}

/* Progress indicator */
.qf-progress {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.qf-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--cream-200);
    border-radius: 2px;
    overflow: hidden;
}

.qf-progress-fill {
    height: 100%;
    background: var(--green-600);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.qf-progress-step {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.625rem 0.75rem;
    min-height: 44px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: var(--text-light);
    transition: all 0.2s;
}

.qf-progress-step:hover {
    background: var(--cream-100);
}

.qf-progress-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.75rem;
    background: var(--cream-200);
    color: var(--text-light);
    transition: all 0.2s;
}

.qf-progress-step.active .qf-progress-num {
    background: var(--green-600);
    color: white;
}

.qf-progress-step.completed .qf-progress-num {
    background: var(--green-400);
    color: white;
}

.qf-progress-step.active .qf-progress-label,
.qf-progress-step.completed .qf-progress-label {
    color: var(--text-dark);
    font-weight: 600;
}

.qf-progress-label {
    display: none;
}

@media (min-width: 480px) {
    .qf-progress-label { display: inline; }
}

/* Steps */
.qf-step {
    display: none;
}

.qf-step--active {
    display: block;
    animation: qfFadeIn 0.25s ease;
}

@keyframes qfFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.qf-step-question {
    font-size: 1rem;
    color: var(--text-medium);
    margin-bottom: 0.5rem;
    text-align: center;
}

.qf-step-hint {
    font-size: 0.85rem;
    color: var(--text-medium);
    opacity: 0.75;
    margin: 0 0 1.25rem;
    text-align: center;
    font-style: italic;
}

/* Fence type cards — 2x2 grid */
.qf-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.qf-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    padding: 1.125rem 0.75rem;
    background: var(--cream-50);
    border: 2px solid var(--cream-200);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s;
    font-family: var(--font-body);
    text-align: center;
}

.qf-card:hover {
    border-color: var(--green-400);
    background: var(--cream-100);
}

.qf-card.selected {
    border-color: var(--green-600);
    background: var(--cream-100);
    box-shadow: 0 0 0 2px var(--green-200);
}

.qf-card svg {
    width: 28px;
    height: 28px;
    color: var(--green-700);
}

.qf-card.selected svg {
    color: var(--green-600);
}

.qf-card-label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--green-900);
}

.qf-card-desc {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Form fields */
.qf-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 480px) {
    .qf-field-row {
        grid-template-columns: 1fr;
    }
}

.qf-field-group {
    margin-bottom: 1rem;
}

.qf-label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.qf-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--cream-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--cream-50);
    transition: border-color 0.15s;
    box-sizing: border-box;
}

.qf-input:focus {
    outline: none;
    border-color: var(--green-500);
    box-shadow: 0 0 0 3px var(--green-100);
}

.qf-input--error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px #fee2e2;
}

.qf-error {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.875rem 1rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-sm);
    color: #991b1b;
    font-size: 0.9375rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.qf-error svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    color: #ef4444;
}

.qf-error a {
    color: #991b1b;
    font-weight: 600;
    text-decoration: underline;
}

.qf-input::placeholder {
    color: var(--cream-400);
}

/* Toggle groups (project type, timeline) */
.qf-toggle-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.qf-toggle {
    flex: 1;
    min-width: 100px;
    padding: 0.625rem 1rem;
    background: var(--cream-50);
    border: 2px solid var(--cream-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-medium);
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
}

.qf-toggle:hover {
    border-color: var(--green-400);
}

.qf-toggle.selected {
    background: var(--cream-100);
    border-color: var(--green-600);
    color: var(--green-800);
}

/* Navigation row */
.qf-nav-row {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.qf-nav-row .btn {
    flex: 1;
}

.qf-nav-row .qf-back {
    flex: 0 0 auto;
}

/* Single next button */
.qf-next {
    width: 100%;
}

.qf-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Submit */
.qf-submit {
    flex: 1;
}

/* Success state */
.qf-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
    gap: 0.75rem;
}

.qf-success-icon svg {
    width: 56px;
    height: 56px;
    color: var(--green-500);
}

.qf-success h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green-900);
}

.qf-success p {
    color: var(--text-medium);
    max-width: 360px;
}

/* Trust badges */
.qf-trust {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--cream-200);
}

.qf-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
}

.qf-trust-badge svg {
    width: 14px;
    height: 14px;
    color: var(--green-600);
}

/* ---------- GOOGLE REVIEWS COMPONENT ---------- */
/* Shared review card + header component used on homepage, about, and reviews pages */

.google-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.google-header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.google-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.google-logo-icon {
    width: 32px;
    height: 32px;
}

.google-brand span {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
}

.google-rating {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rating-score {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--green-700);
}

.rating-stars {
    display: flex;
    gap: 0.125rem;
}

.rating-stars svg {
    width: 22px;
    height: 22px;
}

.star-filled {
    color: #f59e0b;
    fill: #f59e0b;
}

.rating-count {
    font-size: 0.875rem;
    color: var(--text-light);
    padding-left: 0.75rem;
    border-left: 1px solid var(--cream-300);
}

.review-cta,
.review-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    font-family: var(--font-heading);
}

.review-cta svg,
.review-cta-btn svg {
    width: 18px;
    height: 18px;
}

.reviews-grid,
.google-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.review-card {
    background: white;
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.review-card-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1rem;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green-100), var(--green-200));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--green-700);
    flex-shrink: 0;
}

.review-author-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--green-800);
    margin-bottom: 0.125rem;
}

.review-meta {
    font-size: 0.8125rem;
    color: var(--text-light);
}

.review-stars {
    display: flex;
    gap: 0.125rem;
    margin-bottom: 0.875rem;
}

.review-stars svg {
    width: 16px;
    height: 16px;
    color: #f59e0b;
    fill: #f59e0b;
}

.review-text {
    font-size: 0.9375rem;
    color: var(--text-medium);
    line-height: 1.65;
    flex: 1;
}

.review-source {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--cream-200);
    font-size: 0.75rem;
    color: var(--text-light);
}

.reviews-footer,
.google-footer {
    text-align: center;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--green-700);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9375rem;
}

.view-all-link:hover {
    color: var(--green-800);
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .reviews-grid,
    .google-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .google-header {
        flex-direction: column;
        text-align: center;
    }

    .google-header-left {
        flex-direction: column;
        gap: 1rem;
    }

    .rating-count {
        border-left: none;
        padding-left: 0;
    }
}

/* Quote form section wrapper (for non-homepage pages) */
.quote-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--cream-100) 0%, var(--cream-50) 100%);
}

.quote-section .section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.quote-section .section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--green-900);
    margin-bottom: 0.5rem;
}

.quote-section .section-header p {
    color: var(--text-medium);
    font-size: 1.0625rem;
    max-width: 540px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 480px) {
    .qf {
        padding: 1.25rem;
    }

    .qf-cards {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .qf-card {
        padding: 0.875rem 0.5rem;
    }

    .qf-card svg {
        width: 24px;
        height: 24px;
    }

    .qf-card-desc {
        font-size: 0.8125rem;
        line-height: 1.35;
    }

    .qf-toggle-group {
        flex-direction: column;
    }

    .qf-toggle {
        min-width: auto;
    }
}

@media (max-width: 380px) {
    .qf-card-desc {
        display: none;
    }
}

/* ---------- ACCESSIBILITY: REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- iOS NO-ZOOM INPUT FLOOR ---------- */
@media (max-width: 480px) {
    input, select, textarea {
        font-size: 16px !important;
    }
}

/* ---------- VALUES SECTION DARK-BG LAYOUT ---------- */
/* The values-bfc-link paragraph (Comparing fence companies callout) on the
   About page lives in a dark-bg section. Just needs centered layout +
   muted-but-legible color. Link styling is handled by the universal rule above
   (inherits this color + adds underline + weight). */
.values .values-bfc-link {
    text-align: center;
    margin-top: 2.5rem;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.78);
}

/* ---------- BUTTON GROUPS — STACK FULL-WIDTH ON MOBILE ---------- */
/* Hero CTAs, page-hero CTAs, and contact quick-actions all stack and go
   full-width on phones so they're easy to tap and visually match modern
   mobile patterns. Applies to .hero-ctas / .page-hero-ctas / .contact-quick-actions */
@media (max-width: 600px) {
    .hero-ctas,
    .page-hero-ctas,
    .contact-quick-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0.75rem;
    }

    .hero-ctas .btn,
    .page-hero-ctas .btn,
    .contact-quick-actions .btn,
    .contact-quick-actions a {
        width: 100%;
        justify-content: center;
    }
}

/* ---------- LOADING SPINNER (used by quote form submit feedback) ---------- */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
