/* ==========================================================================
   Master Pool Decks — Premium theme (navy + sand)
   Shared design system for generated city/service pages.
   Tokens are mirrored in index.html's inline :root — keep values in sync.
   ========================================================================== */

:root {
    /* Palette */
    --navy-900: #0B2036;
    --navy-800: #10293F;
    --navy-700: #16324F;
    --navy-100: #DCE4EC;
    --sand-500: #C9A66B;
    --sand-600: #B08F52;
    --sand-300: #E4D3B0;
    --sand-100: #F1E9D8;
    --cream-50: #F7F3EC;
    --white: #FFFFFF;
    --ink-700: #2A2E33;
    --ink-500: #55606B;
    --success-green: #27ae60;
    --error-red: #c0392b;
    --border-subtle: rgba(11, 32, 54, 0.10);

    /* Type */
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Shape */
    --radius: 14px;
    --radius-sm: 8px;
    --shadow-card: 0 10px 40px rgba(11, 32, 54, 0.10);
    --shadow-soft: 0 4px 18px rgba(11, 32, 54, 0.07);
    --container: 1180px;
}

/* Base ------------------------------------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-primary);
    color: var(--ink-700);
    background: var(--cream-50);
    line-height: 1.65;
    font-size: 16.5px;
    -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--sand-600); }

h1, h2, h3 { font-family: var(--font-display); color: var(--navy-900); line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.3rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.skip-to-content {
    position: absolute; left: -9999px; top: 0; z-index: 10000;
    background: var(--navy-900); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip-to-content:focus { left: 0; color: #fff; }

/* Buttons ---------------------------------------------------------------- */
.btn-primary, .btn-secondary {
    display: inline-block; padding: 15px 32px; border-radius: 999px;
    font-weight: 600; font-size: 1rem; letter-spacing: 0.01em;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    text-align: center;
}
.btn-primary { background: var(--sand-500); color: var(--navy-900); box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: var(--sand-600); color: var(--navy-900); transform: translateY(-2px); }
.btn-secondary { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.65); }
.btn-secondary:hover { background: rgba(255,255,255,0.12); color: var(--white); transform: translateY(-2px); }

/* Nav -------------------------------------------------------------------- */
header { position: sticky; top: 0; z-index: 1000; }
nav {
    background: rgba(247, 243, 236, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    transition: transform .25s ease, box-shadow .25s ease;
}
nav.nav-scrolled { box-shadow: var(--shadow-soft); }
nav.nav-hidden { transform: translateY(-100%); }
.nav-container {
    max-width: var(--container); margin: 0 auto; padding: 10px 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { width: 54px; height: 54px; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; }
.logo-text .brand { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; color: var(--navy-900); }
.logo-text .slogan { font-size: 0.7rem; color: var(--ink-500); letter-spacing: 0.02em; }

.nav-menu { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-menu > li { position: relative; }
.nav-menu a { color: var(--navy-900); font-weight: 500; font-size: 0.95rem; }
.nav-menu a:hover { color: var(--sand-600); }
.nav-menu .quote-btn {
    background: var(--navy-900); color: var(--white); padding: 11px 22px; border-radius: 999px;
}
.nav-menu .quote-btn:hover { background: var(--navy-700); color: var(--white); }

/* Dropdowns (CSS-only, keyboard accessible via :focus-within) */
.nav-dropdown > a::after { content: " ▾"; font-size: 0.72em; }
.nav-dropdown .dropdown-panel {
    position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
    min-width: 260px; background: var(--white); border-radius: var(--radius-sm);
    box-shadow: var(--shadow-card); border: 1px solid var(--border-subtle);
    padding: 10px 0; list-style: none;
    opacity: 0; visibility: hidden; transition: opacity .15s ease;
}
.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel { opacity: 1; visibility: visible; }
.dropdown-panel li a { display: block; padding: 9px 20px; font-size: 0.92rem; }
.dropdown-panel li a:hover { background: var(--sand-100); color: var(--navy-900); }

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-toggle span { display: block; width: 24px; height: 2.5px; background: var(--navy-900); margin: 5px 0; border-radius: 2px; transition: .2s; }

.mobile-call-btn {
    display: none; position: fixed; bottom: 22px; right: 22px; z-index: 999;
    width: 58px; height: 58px; border-radius: 50%;
    background: var(--sand-500); color: var(--navy-900);
    align-items: center; justify-content: center; box-shadow: var(--shadow-card);
}

/* Breadcrumbs ------------------------------------------------------------ */
.breadcrumbs { padding: 14px 0; font-size: 0.85rem; color: var(--ink-500); }
.breadcrumbs a { color: var(--ink-500); }
.breadcrumbs a:hover { color: var(--sand-600); }
.breadcrumbs span[aria-current] { color: var(--navy-900); font-weight: 500; }

/* Hero ------------------------------------------------------------------- */
.hero {
    position: relative; color: var(--white);
    background: var(--navy-900);
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    filter: saturate(0.92);
}
.hero-bg::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(11,32,54,0.92) 0%, rgba(11,32,54,0.78) 45%, rgba(11,32,54,0.45) 100%);
}
.hero-grid {
    position: relative; z-index: 1;
    max-width: var(--container); margin: 0 auto; padding: 72px 24px 84px;
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 56px; align-items: center;
}
.hero-eyebrow {
    display: inline-block; margin-bottom: 18px;
    font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--sand-300);
    border: 1px solid rgba(228, 211, 176, 0.45); border-radius: 999px; padding: 7px 16px;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--sand-300); }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,0.88); max-width: 54ch; margin-bottom: 30px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-points { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 34px; padding: 0; list-style: none; }
.hero-points li { font-size: 0.9rem; color: rgba(255,255,255,0.85); display: flex; align-items: center; gap: 8px; }
.hero-points li::before { content: "✓"; color: var(--sand-300); font-weight: 700; }

/* Quote form card -------------------------------------------------------- */
.quote-card {
    background: var(--white); border-radius: var(--radius);
    box-shadow: var(--shadow-card); padding: 30px 28px;
    color: var(--ink-700);
}
.quote-card h2 { font-size: 1.45rem; margin-bottom: 4px; }
.quote-card > p { font-size: 0.9rem; color: var(--ink-500); margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { margin-bottom: 12px; position: relative; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--navy-700); margin-bottom: 5px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px 14px; border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-sm); font-family: var(--font-primary); font-size: 0.95rem;
    background: var(--cream-50); color: var(--ink-700);
    transition: border-color .15s ease, background .15s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--sand-500); background: var(--white);
}
.form-group input.error, .form-group select.error { border-color: var(--error-red); }
.form-error { display: none; font-size: 0.75rem; color: var(--error-red); margin-top: 3px; }
.form-error.show { display: block; }
.form-submit {
    width: 100%; padding: 15px; border: none; border-radius: 999px;
    background: var(--navy-900); color: var(--white);
    font-family: var(--font-primary); font-size: 1.02rem; font-weight: 600; cursor: pointer;
    transition: background .18s ease, transform .18s ease;
}
.form-submit:hover { background: var(--navy-700); transform: translateY(-1px); }
.form-submit:disabled { opacity: 0.7; cursor: wait; }
.recaptcha-notice { font-size: 0.72rem; color: var(--ink-500); margin-top: 12px; }
.recaptcha-notice a { text-decoration: underline; }
.message { display: none; padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 14px; font-size: 0.92rem; }
.message.show { display: block; }
.message.success { background: #e8f6ee; color: var(--success-green); }
.message.error { background: #fbeeec; color: var(--error-red); }

/* Sections --------------------------------------------------------------- */
section { padding: 76px 0; }
.section-header { max-width: 720px; margin: 0 auto 46px; text-align: center; }
.section-header .kicker {
    display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--sand-600); margin-bottom: 12px;
}
.section-header p { color: var(--ink-500); margin-top: 12px; }
.section-alt { background: var(--white); }
.section-navy { background: var(--navy-900); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: rgba(255,255,255,0.82); }
.section-navy .section-header .kicker { color: var(--sand-300); }

.prose { max-width: 760px; margin: 0 auto; }
.prose p { margin-bottom: 18px; }

/* Card grids ------------------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.feature-card {
    background: var(--white); border: 1px solid var(--border-subtle);
    border-radius: var(--radius); padding: 26px;
    box-shadow: var(--shadow-soft);
    transition: transform .18s ease, box-shadow .18s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { font-size: 0.93rem; color: var(--ink-500); }

.link-card {
    display: block; background: var(--white); border: 1px solid var(--border-subtle);
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft);
    transition: transform .18s ease, box-shadow .18s ease;
}
.link-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.link-card .link-card-img { height: 190px; background-size: cover; background-position: center; }
.link-card .link-card-body { padding: 20px 22px; }
.link-card h3 { margin-bottom: 6px; }
.link-card p { font-size: 0.9rem; color: var(--ink-500); }
.link-card .link-card-cta { display: inline-block; margin-top: 12px; font-weight: 600; font-size: 0.9rem; color: var(--sand-600); }

/* Process steps ---------------------------------------------------------- */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; counter-reset: step; }
.process-step { position: relative; background: var(--white); border-radius: var(--radius); padding: 28px 24px 24px; border: 1px solid var(--border-subtle); box-shadow: var(--shadow-soft); }
.process-step::before {
    counter-increment: step; content: counter(step, decimal-leading-zero);
    font-family: var(--font-display); font-size: 2rem; font-weight: 600;
    color: var(--sand-500); display: block; margin-bottom: 10px;
}
.process-step h3 { font-size: 1.08rem; margin-bottom: 6px; }
.process-step p { font-size: 0.9rem; color: var(--ink-500); }

/* Gallery ---------------------------------------------------------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.gallery-grid figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); background: var(--white); }
.gallery-grid img { width: 100%; height: 260px; object-fit: cover; transition: transform .35s ease; }
.gallery-grid figure:hover img { transform: scale(1.04); }
.gallery-grid figcaption { padding: 10px 14px; font-size: 0.8rem; color: var(--ink-500); }

/* Neighborhoods ---------------------------------------------------------- */
.hood-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.hood-card { background: var(--white); border-left: 3px solid var(--sand-500); border-radius: var(--radius-sm); padding: 20px 22px; box-shadow: var(--shadow-soft); }
.hood-card h3 { font-size: 1.02rem; margin-bottom: 5px; }
.hood-card p { font-size: 0.88rem; color: var(--ink-500); }
.hood-card a { font-weight: 600; font-size: 0.85rem; color: var(--sand-600); }

/* FAQ -------------------------------------------------------------------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { background: var(--white); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; }
.faq-item summary {
    list-style: none; cursor: pointer; padding: 18px 22px;
    font-weight: 600; color: var(--navy-900); font-size: 1.02rem;
    display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-display); font-size: 1.4rem; color: var(--sand-600); flex-shrink: 0; transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-answer { padding: 0 22px 20px; color: var(--ink-500); font-size: 0.95rem; }

/* Link mesh (nearby cities / other services) ----------------------------- */
.mesh-block { margin-top: 34px; }
.mesh-block h3 { font-size: 1rem; margin-bottom: 12px; color: var(--navy-900); }
.chip-list { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.chip-list a {
    display: inline-block; padding: 9px 18px; border-radius: 999px;
    background: var(--white); border: 1px solid var(--border-subtle);
    font-size: 0.88rem; font-weight: 500; color: var(--navy-700);
    transition: background .15s ease, border-color .15s ease;
}
.chip-list a:hover { background: var(--sand-100); border-color: var(--sand-500); color: var(--navy-900); }

/* CTA band --------------------------------------------------------------- */
.cta-band { background: var(--navy-900); text-align: center; }
.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.82); margin-bottom: 26px; }
.cta-band .hero-buttons { justify-content: center; }

/* Footer ----------------------------------------------------------------- */
footer { background: var(--navy-900); color: rgba(255,255,255,0.82); padding: 64px 0 0; }
.footer-content {
    max-width: var(--container); margin: 0 auto; padding: 0 24px 44px;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 36px;
}
.footer-section h3 { color: var(--sand-300); font-size: 1.02rem; margin-bottom: 14px; }
.footer-section ul { list-style: none; }
.footer-section li { margin-bottom: 9px; font-size: 0.9rem; }
.footer-section a { color: rgba(255,255,255,0.82); }
.footer-section a:hover { color: var(--sand-300); }
.social-links { display: flex; gap: 12px; margin-top: 14px; }
.social-links a {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,0.08); color: var(--white);
}
.social-links a:hover { background: var(--sand-500); color: var(--navy-900); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding: 22px 24px; text-align: center; font-size: 0.82rem; color: rgba(255,255,255,0.6);
}
.footer-bottom a { color: var(--sand-300); }

/* Cookie banner ---------------------------------------------------------- */
#cookieConsent {
    display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    background: rgba(11, 32, 54, 0.97); color: #fff; padding: 16px 20px;
    font-size: 14px; box-shadow: 0 -4px 20px rgba(0,0,0,0.3); backdrop-filter: blur(10px);
}
#cookieConsent .cookie-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
#cookieConsent p { margin: 0; flex: 1; min-width: 200px; }
#cookieConsent a { color: var(--sand-300); text-decoration: underline; }
#cookieConsent .cookie-accept {
    background: var(--sand-500); color: var(--navy-900); border: none; padding: 13px 26px;
    border-radius: 999px; font-weight: 600; cursor: pointer; font-size: 15px; min-height: 44px;
}
#cookieConsent .cookie-decline {
    background: transparent; color: #ccc; border: 1px solid #557; padding: 13px 26px;
    border-radius: 999px; cursor: pointer; font-size: 15px; min-height: 44px;
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; padding: 56px 24px 64px; }
    .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
    .nav-menu {
        position: fixed; top: 74px; left: 0; right: 0; bottom: 0;
        background: var(--cream-50); flex-direction: column; align-items: flex-start;
        padding: 26px 30px; gap: 18px; overflow-y: auto;
        transform: translateX(100%); transition: transform .25s ease;
    }
    .nav-menu.active { transform: translateX(0); }
    .mobile-toggle { display: block; }
    .mobile-call-btn { display: flex; }
    .nav-dropdown .dropdown-panel {
        position: static; transform: none; opacity: 1; visibility: visible;
        box-shadow: none; border: none; background: transparent; padding: 6px 0 0 14px;
    }
    section { padding: 56px 0; }
}
