/* ===========================
   CSS Custom Properties
   =========================== */
:root {
    --bg:          #faf5eb;
    --bg-2:        #f3ecd6;
    --surface:     #ffffff;
    --surface-2:   #fdf8f0;
    --accent:      #4a7c59;      /* sage / forest green */
    --accent-2:    #c8920f;      /* amber / honey */
    --accent-warm: #c25a35;      /* terracotta */
    --text:        #1c160a;
    --text-muted:  #7d6b52;
    --border:      rgba(120, 95, 55, 0.13);
    --border-hover: rgba(74, 124, 89, 0.38);
    --radius:      12px;
    --radius-lg:   20px;
    --shadow:      0 4px 24px rgba(60, 40, 10, 0.09);
    --nav-h:       72px;
    --transition:  0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Onest', system-ui, sans-serif;
    font-weight: 400;
    line-height: 1.65;
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
ul { list-style: none; }

/* ===========================
   Typography
   =========================== */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

/* Ensure hidden attribute is never overridden by author CSS */
[hidden] { display: none !important; }

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: 1.3rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }

p { max-width: 60ch; }

/* ===========================
   Layout helpers
   =========================== */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }

.services,
.why,
.local,
.faq,
.contact,
.footer-main,
.footer-bottom {
    content-visibility: auto;
    contain-intrinsic-size: 1px 900px;
}

/* ===========================
   Navigation
   =========================== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--nav-h);
    transition: background var(--transition), border-color var(--transition), backdrop-filter var(--transition);
    border-bottom: 1px solid transparent;
}

.nav.scrolled {
    background: rgba(250, 245, 235, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-color: var(--border);
}

.nav-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-logo { flex-shrink: 0; display: flex; align-items: center; }

.nav-logo path { fill: var(--text); transition: fill 0.3s; }
.nav-logo:hover path { fill: var(--accent); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--transition);
    letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--text); }

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 3px;
}

.lang-btn {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--text-muted);
    transition: all 0.2s;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active { background: var(--accent); color: #fff; }

.lang-sep { font-size: 0.7rem; color: var(--border-hover); user-select: none; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: var(--radius);
    font-family: 'Onest', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: all var(--transition);
    white-space: nowrap;
    cursor: pointer;
}
.btn-sm { padding: 9px 18px; font-size: 0.82rem; }
.btn-full { width: 100%; justify-content: center; }

.btn-primary {
    background: var(--accent);
    color: #fff;
    border: 1px solid transparent;
    box-shadow: 0 2px 12px rgba(74,124,89,0.18);
}
.btn-primary:hover {
    background: #3d6b4a;
    box-shadow: 0 4px 20px rgba(74,124,89,0.28);
    transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1.5px solid rgba(120,95,55,0.25);
}
.btn-ghost:hover {
    background: var(--surface);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    border-radius: 6px;
}
.nav-toggle span {
    display: block;
    width: 22px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
    transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(250, 245, 235, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    gap: 16px;
    z-index: 99;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.22,1,0.36,1),
                opacity 0.3s cubic-bezier(0.22,1,0.36,1),
                visibility 0.3s;
}
.mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}
.mobile-menu a {
    font-size: 1.05rem;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    transition: color 0.2s;
}
.mobile-menu a:last-child { border: none; }
.mobile-menu a:hover { color: var(--text); }
.mobile-menu .btn { justify-content: center; margin-top: 8px; }
.mobile-menu .btn-primary {
    color: #fff;
    border-bottom: none;
}
.mobile-menu .btn-primary:hover {
    color: #fff;
}

/* ===========================
   Hero
   =========================== */
.hero {
    position: relative;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(var(--nav-h) + 60px) 24px 80px;
    overflow: hidden;
}

/* Background */
.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.dot-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(74, 124, 89, 0.12) 1.5px, transparent 1.5px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

/* Subtle texture overlay */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
}

.orb { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }

.orb-1 {
    width: 580px; height: 580px;
    background: radial-gradient(circle, rgba(200, 146, 15, 0.18) 0%, transparent 70%);
    top: -180px; right: -100px;
    animation: orbFloat1 14s ease-in-out infinite alternate;
}
.orb-2 {
    width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(74, 124, 89, 0.14) 0%, transparent 70%);
    bottom: -60px; left: -60px;
    animation: orbFloat2 16s ease-in-out infinite alternate;
}
.orb-3 {
    width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(194, 90, 53, 0.1) 0%, transparent 70%);
    top: 50%; right: 18%;
    animation: orbFloat3 11s ease-in-out infinite alternate;
}

@keyframes orbFloat1 { from { transform: translate(0,0) scale(1); } to { transform: translate(-30px, 50px) scale(1.08); } }
@keyframes orbFloat2 { from { transform: translate(0,0) scale(1); } to { transform: translate(50px,-30px) scale(1.06); } }
@keyframes orbFloat3 { from { transform: translate(0,0); } to { transform: translate(-20px, 28px); } }

/* Decorative botanical leaf */
.deco-leaf-hero {
    position: absolute;
    bottom: -30px;
    right: 4%;
    width: 260px;
    height: auto;
    opacity: 0.07;
    pointer-events: none;
    transform: rotate(8deg);
}

/* Hero content */
.hero-content {
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 44px;
}

/* Logo animation */
.hero-logo-wrap { position: relative; }

.hero-svg .lp {
    fill: var(--text);
    opacity: 0;
    transform: translateY(12px);
    filter: blur(4px);
    animation: lpIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-svg .lp-6 { animation-delay: 0.3s; }
.hero-svg .lp-5 { animation-delay: 0.42s; }
.hero-svg .lp-4 { animation-delay: 0.54s; }
.hero-svg .lp-3 { animation-delay: 0.66s; }
.hero-svg .lp-2 { animation-delay: 0.78s; }
.hero-svg .lp-1 { animation-delay: 0.9s; }

@keyframes lpIn {
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}


/* Hero text */
.hero-text { max-width: 680px; }

.hero-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(74,124,89,0.1);
    border: 1px solid rgba(74,124,89,0.22);
    padding: 5px 12px;
    border-radius: 100px;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeUp 0.7s 1.1s cubic-bezier(0.22,1,0.36,1) forwards;
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.7s 1.25s cubic-bezier(0.22,1,0.36,1) forwards;
}
.hero-title .line { display: block; }

.accent-line {
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 36px;
    opacity: 0;
    animation: fadeUp 0.7s 1.4s cubic-bezier(0.22,1,0.36,1) forwards;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    opacity: 0;
    animation: fadeUp 0.7s 1.55s cubic-bezier(0.22,1,0.36,1) forwards;
}

.hero-local-proof {
    margin-top: 18px;
    max-width: 62ch;
    color: var(--accent);
    font-size: 0.92rem;
    font-weight: 500;
    opacity: 0;
    animation: fadeUp 0.7s 1.7s cubic-bezier(0.22,1,0.36,1) forwards;
}

.hero-art {
    position: absolute;
    right: -36px;
    top: 50%;
    width: min(42vw, 520px);
    transform: translateY(-46%);
    pointer-events: none;
    opacity: 0;
    animation: fadeInArt 1s 1.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-swirl {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 24px 44px rgba(74, 124, 89, 0.12));
}

.hero-swirl path,
.hero-swirl circle {
    transform-origin: 50% 50%;
}

.hero-swirl path:first-of-type {
    animation: swirlFloat 14s ease-in-out infinite alternate;
}

.hero-swirl path:nth-of-type(2) {
    animation: swirlFloat 18s ease-in-out infinite alternate-reverse;
}

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

@keyframes fadeInArt {
    from { opacity: 0; transform: translateY(-42%) scale(0.96); }
    to { opacity: 1; transform: translateY(-46%) scale(1); }
}

@keyframes swirlFloat {
    from { transform: rotate(-2deg) translateY(-6px); }
    to { transform: rotate(3deg) translateY(8px); }
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 32px; left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeIn 1s 2s forwards;
}

.scroll-track {
    width: 1px; height: 48px;
    background: rgba(120,95,55,0.2);
    position: relative;
    overflow: hidden;
    border-radius: 1px;
}
.scroll-track::after {
    content: '';
    position: absolute;
    top: -100%; left: 0; right: 0;
    height: 100%;
    background: var(--accent);
    border-radius: 1px;
    animation: scrollLine 2s 2.5s ease-in-out infinite;
}

@keyframes scrollLine {
    0%      { top: -100%; }
    50%     { top: 100%; }
    50.01%  { top: -100%; }
    100%    { top: -100%; }
}
@keyframes fadeIn { to { opacity: 1; } }


/* ===========================
   Section Headers
   =========================== */
.section-header { text-align: center; margin-bottom: 64px; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; margin: 16px auto 0; max-width: 52ch; }

.section-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}

/* ===========================
   Services Section
   =========================== */
.services {
    background: #f4f8f2;  /* very pale sage green */
    position: relative;
    overflow: hidden;
}

/* Faint concentric rings top-right */
.services::before {
    content: '';
    position: absolute;
    width: 480px; height: 480px;
    border-radius: 50%;
    border: 1px solid rgba(74,124,89,0.1);
    top: -180px; right: -140px;
    pointer-events: none;
}
.services::after {
    content: '';
    position: absolute;
    width: 700px; height: 700px;
    border-radius: 50%;
    border: 1px solid rgba(74,124,89,0.06);
    top: -290px; right: -250px;
    pointer-events: none;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(74,124,89,0.05) 0%, rgba(200,146,15,0.03) 100%);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.service-card:hover {
    border-color: rgba(74,124,89,0.3);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(60,40,10,0.1);
    background: var(--surface);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
    width: 52px; height: 52px;
    background: rgba(74,124,89,0.1);
    border: 1.5px solid rgba(74,124,89,0.18);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent);
    transition: all var(--transition);
}
.service-card:hover .service-icon {
    background: rgba(74,124,89,0.16);
    border-color: rgba(74,124,89,0.35);
    transform: scale(1.05);
}

.service-card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.service-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; margin-bottom: 18px; max-width: none; }


/* ===========================
   Why Albytes
   =========================== */
.why {
    background: var(--bg-2);
    position: relative;
    overflow: hidden;
}

/* Decorative organic rings bottom-left */
.why::before {
    content: '';
    position: absolute;
    width: 360px; height: 360px;
    border-radius: 50%;
    border: 1px solid rgba(74,124,89,0.1);
    bottom: -120px; left: -100px;
    pointer-events: none;
}
.why::after {
    content: '';
    position: absolute;
    width: 560px; height: 560px;
    border-radius: 50%;
    border: 1px solid rgba(74,124,89,0.06);
    bottom: -220px; left: -200px;
    pointer-events: none;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
    align-items: start;
}

.why-left { position: sticky; top: calc(var(--nav-h) + 40px); }
.why-left .section-tag { display: block; }
.why-left h2 { margin: 14px 0 20px; }
.why-left p { color: var(--text-muted); margin-bottom: 32px; }

.why-right { display: flex; flex-direction: column; }

.why-item {
    display: flex;
    gap: 24px;
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
}
.why-item:first-child { padding-top: 0; }
.why-item:last-child { border-bottom: none; }
.why-item:hover .why-num { color: var(--accent); }

.why-num {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: rgba(120,95,55,0.35);
    flex-shrink: 0;
    padding-top: 4px;
    transition: color var(--transition);
    min-width: 28px;
}

.why-body h4 { margin-bottom: 8px; font-size: 1.05rem; }
.why-body p { color: var(--text-muted); font-size: 0.9rem; max-width: none; }

/* ===========================
   Local SEO
   =========================== */
.local {
    background:
        radial-gradient(circle at top left, rgba(200,146,15,0.08), transparent 32%),
        linear-gradient(180deg, #fffdf8 0%, #f7f1e3 100%);
}

.local-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    gap: 40px;
    align-items: start;
}

.local-copy h2 { margin: 14px 0 18px; }
.local-copy p { color: var(--text-muted); }
.local-copy p + p { margin-top: 16px; }

.local-panel {
    background: rgba(255,255,255,0.72);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 32px;
    backdrop-filter: blur(8px);
}

.local-panel h3 {
    margin-bottom: 18px;
    font-size: 1.2rem;
}

.local-list {
    display: grid;
    gap: 14px;
}

.local-list li {
    position: relative;
    padding-left: 22px;
    color: var(--text-muted);
}

.local-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

/* ===========================
   FAQ
   =========================== */
.faq {
    background: var(--surface);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 14px;
}

.faq-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0 22px;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 22px 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.12rem;
    font-weight: 700;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item p {
    max-width: none;
    color: var(--text-muted);
    padding: 0 0 22px;
}

.faq-item[open] {
    border-color: var(--border-hover);
    box-shadow: 0 10px 30px rgba(60, 40, 10, 0.06);
}

/* ===========================
   Contact Section
   =========================== */
.contact {
    background: var(--surface);
    position: relative;
    overflow: hidden;
}

/* Faint leaf watermark top-right */
.contact::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(74,124,89,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 80px;
    align-items: start;
}

.contact-info .section-tag { display: block; }
.contact-info h2 { margin: 14px 0 16px; }
.contact-info > p { color: var(--text-muted); margin-bottom: 32px; }

.contact-details { display: flex; flex-direction: column; gap: 12px; }

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.92rem;
    transition: color var(--transition);
}
.contact-link:hover { color: var(--accent); }
.contact-link svg { flex-shrink: 0; color: var(--accent); }

/* Form */
.contact-form-wrap {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.contact-form { display: flex; flex-direction: column; gap: 20px; }

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

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}
.optional { font-weight: 400; opacity: 0.6; }

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 12px 14px;
    font-family: 'Onest', sans-serif;
    font-size: 0.9rem;
    color: var(--text);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
}

.form-group 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' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237d6b52' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(125,107,82,0.4); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(74,124,89,0.12);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error { border-color: #c25a35; }

.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select option { background: var(--surface); }

.btn-spinner { animation: spin 0.8s linear infinite; display: flex; align-items: center; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-msg {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.5;
}
.form-msg.success {
    background: rgba(74,124,89,0.08);
    border: 1px solid rgba(74,124,89,0.25);
    color: var(--accent);
}
.form-msg.error {
    background: rgba(194,90,53,0.08);
    border: 1px solid rgba(194,90,53,0.25);
    color: var(--accent-warm);
}

/* ===========================
   Footer
   =========================== */
.footer { border-top: 1px solid var(--border); }

/* CTA bar — rich warm forest green */
.footer-cta-bar {
    background: #2d5237;
    padding: 48px 24px;
}

.footer-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-cta-inner p {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #e8f0e3;
    max-width: none;
}

.footer-cta-bar .btn-primary {
    background: var(--accent-2);
    color: #1c160a;
    box-shadow: 0 2px 16px rgba(200,146,15,0.3);
}
.footer-cta-bar .btn-primary:hover {
    background: #d9a020;
    box-shadow: 0 4px 24px rgba(200,146,15,0.4);
}

/* Footer main */
.footer-main {
    background: var(--bg-2);
    padding: 60px 24px;
}

.footer-logo path { fill: var(--text); }

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-top: 16px;
    max-width: 28ch;
}

.footer-col { display: flex; flex-direction: column; gap: 10px; }

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.footer-col a, .footer-col span { font-size: 0.88rem; color: var(--text-muted); transition: color var(--transition); }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    padding: 20px 24px;
}
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); max-width: none; }

/* ===========================
   Policy Pages
   =========================== */
.policy-page {
    min-height: 100dvh;
    background:
        radial-gradient(circle at top left, rgba(74, 124, 89, 0.08), transparent 28%),
        linear-gradient(180deg, #fffdf8 0%, #f7f1e3 100%);
}

.policy-shell {
    max-width: 860px;
    margin: 0 auto;
    padding: 56px 24px 88px;
}

.policy-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 28px;
}

.policy-card {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(60, 40, 10, 0.08);
    padding: 40px;
    backdrop-filter: blur(10px);
}

.policy-card h1 {
    margin-bottom: 14px;
}

.policy-intro {
    color: var(--text-muted);
    margin-bottom: 28px;
}

.policy-meta {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.policy-section + .policy-section {
    margin-top: 28px;
}

.policy-section h2 {
    margin-bottom: 12px;
    font-size: clamp(1.45rem, 2.6vw, 2rem);
}

.policy-section p,
.policy-section li {
    color: var(--text-muted);
}

.policy-section ul {
    list-style: disc;
    padding-left: 20px;
}

.policy-section li + li,
.policy-section p + p {
    margin-top: 10px;
}

.policy-note {
    margin-top: 32px;
    padding: 16px 18px;
    background: rgba(74,124,89,0.08);
    border: 1px solid rgba(74,124,89,0.16);
    border-radius: 14px;
    color: var(--text);
}

/* ===========================
   Scroll reveal
   =========================== */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal].revealed { opacity: 1; transform: translateY(0); }

[data-reveal][data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal][data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal][data-reveal-delay="3"] { transition-delay: 0.15s; }
[data-reveal][data-reveal-delay="4"] { transition-delay: 0.25s; }
[data-reveal][data-reveal-delay="5"] { transition-delay: 0.3s; }

/* ===========================
   Responsive
   =========================== */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: 1fr; gap: 48px; }
    .why-left { position: static; }
    .local-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    :root { --nav-h: 64px; }
    .section { padding: 72px 0; }

    .nav-links, .nav-right .btn-primary { display: none; }
    .nav-toggle { display: flex; }
    .nav-inner {
        gap: 16px;
    }
    .nav-right {
        justify-content: flex-end;
    }

    .hero { padding: calc(var(--nav-h) + 40px) 24px 72px; }
    .hero-svg { width: 320px; height: auto; }
    .hero-local-proof { margin-top: 14px; }
    .hero-art { display: none; }

    .services-grid { grid-template-columns: 1fr; }

    .local-panel { padding: 24px; }

    .form-row { grid-template-columns: 1fr; }
    .contact-form-wrap { padding: 24px; }

    .footer-grid { grid-template-columns: 1fr; }
    .footer-cta-inner { flex-direction: column; text-align: center; }
    .footer-cta-inner p { font-size: 1.15rem; }
    .policy-card { padding: 28px 22px; }

    .stat { padding: 12px 20px; }
    .stat-divider { height: 24px; }
}

@media (max-width: 480px) {
    .hero-ctas { flex-direction: column; }
    .hero-ctas .btn { justify-content: center; }
    .hero-svg { width: 260px; height: auto; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .orb,
    .hero-art,
    .hero-scroll { display: none; }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
