/* Your Local Pool Doc — brand components layered on top of Tailwind utilities.
   Palette is sampled from the logo: aqua backing #7ECDDA, circle teal #2298B1,
   drop blue #43A8EE, wave blue #187BB3, with a derived navy #0B2F52 for depth. */

:root {
  --aqua-50: #EEF9FB;  --aqua-100: #D6F0F5; --aqua-200: #7ECDDA; --aqua-300: #5BBFD0;
  --teal-500: #2AA7C4; --teal-600: #2298B1; --teal-700: #157A96; --teal-800: #0F5F75;
  --brand-400: #43A8EE; --brand-600: #187BB3; --brand-700: #14679A;
  --navy-800: #0E3B69;  --navy-900: #0B2F52; --navy-950: #07203A;
  --ink-900: #0F2233;   --ink-700: #2B3F52;  --ink-600: #4A5B6A;
  --ease-out: cubic-bezier(.2,.8,.2,1);
  --dur-fast: 150ms; --dur-base: 220ms;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body { min-height: 100dvh; }
@media (max-width: 1023px) { body { padding-bottom: 76px; } }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--brand-400); outline-offset: 3px; border-radius: 4px; }

/* Skip link */
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .6rem 1rem; background: var(--navy-900); color: #fff; border-radius: .5rem; font-weight: 600; transition: top var(--dur-fast); }
.skip-link:focus { top: 1rem; }

/* Header */
.nav-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .9rem; border-radius: .6rem; font-weight: 500; font-size: .95rem; color: var(--ink-700); transition: color var(--dur-fast), background var(--dur-fast); }
.nav-link:hover { color: var(--navy-900); background: var(--aqua-50); }
.nav-link[aria-current="page"] { color: var(--teal-700); font-weight: 600; box-shadow: inset 0 -3px 0 var(--teal-600); border-radius: .6rem .6rem 0 0; }
.nav-menu { position: absolute; left: 0; top: calc(100% + 6px); min-width: 16rem; padding: .5rem; background: #fff; border: 1px solid var(--aqua-100); border-radius: .9rem; box-shadow: 0 2px 4px rgba(11,47,82,.08), 0 20px 40px -12px rgba(11,47,82,.28); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), visibility 0s linear var(--dur-base); }
.nav-menu a { display: block; padding: .6rem .8rem; border-radius: .5rem; font-size: .93rem; font-weight: 500; color: var(--ink-700); }
.nav-menu a:hover, .nav-menu a:focus-visible { background: var(--aqua-50); color: var(--teal-700); }
.nav-dropdown:hover .nav-menu, .nav-dropdown:focus-within .nav-menu { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: .75rem; color: var(--navy-900); background: var(--aqua-50); transition: background var(--dur-fast); }
.icon-btn:hover { background: var(--aqua-100); }
.mobile-nav { border-top: 1px solid var(--aqua-100); background: #fff; max-height: calc(100dvh - 76px); overflow-y: auto; }
.mobile-link { display: flex; align-items: center; min-height: 48px; padding: 0 .75rem; border-radius: .6rem; font-family: Outfit, sans-serif; font-weight: 600; font-size: 1.05rem; color: var(--navy-900); }
.mobile-link[aria-current="page"] { color: var(--teal-700); background: var(--aqua-50); }
.mobile-sublink { display: flex; align-items: center; min-height: 44px; padding: 0 .5rem; font-size: .95rem; color: var(--ink-600); }
.mobile-sublink:hover { color: var(--teal-700); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .75rem 1.4rem; border-radius: .8rem; font-family: Outfit, sans-serif; font-weight: 700; font-size: 1rem; line-height: 1.1; text-align: center; cursor: pointer; border: 2px solid transparent; touch-action: manipulation; transition: background var(--dur-fast), color var(--dur-fast), transform var(--dur-fast), box-shadow var(--dur-fast); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--brand-600); color: #fff; box-shadow: 0 6px 16px -6px rgba(24,123,179,.6); }
.btn-primary:hover { background: var(--brand-700); }
.btn-secondary { background: var(--aqua-100); color: var(--navy-900); }
.btn-secondary:hover { background: var(--aqua-200); }
.btn-white { background: #fff; color: var(--navy-900); }
.btn-white:hover { background: var(--aqua-100); }
.btn-outline-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-lg { min-height: 56px; padding: 1rem 1.8rem; font-size: 1.08rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Typography helpers */
.eyebrow { font-family: Outfit, sans-serif; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-700); }
.eyebrow-light { color: var(--aqua-200); }
.h2 { font-family: Outfit, sans-serif; font-weight: 800; font-size: clamp(1.9rem, 1.3rem + 2vw, 2.75rem); line-height: 1.1; color: var(--navy-900); letter-spacing: -.01em; text-wrap: balance; }
.lead { font-size: 1.1rem; line-height: 1.65; color: var(--ink-600); }
.prose-site p + p { margin-top: 1rem; }
.prose-site p { line-height: 1.7; }

/* Sections */
.section { padding: 4rem 0; }
@media (min-width: 768px) { .section { padding: 5rem 0; } }
@media (min-width: 1024px) { .section { padding: 6rem 0; } }
.section-tint { background: var(--aqua-50); }
.section-navy { background: var(--navy-900); color: #fff; }

/* Hero */
.hero { position: relative; isolation: isolate; color: #fff; background: var(--navy-900); overflow: hidden; }
.hero-photo { position: absolute; inset: 0; overflow: hidden; z-index: -2; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 55%; }
@media (max-width: 767px) { .hero-img { object-position: 50% 60%; } }
.hero-scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7,32,58,.94) 0%, rgba(7,32,58,.82) 38%, rgba(7,32,58,.42) 68%, rgba(7,32,58,.18) 100%); }
.hero-scrim::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(180deg, transparent, rgba(7,32,58,.55)); }
@media (max-width: 767px) { .hero-scrim { background: linear-gradient(180deg, rgba(7,32,58,.9) 0%, rgba(7,32,58,.8) 55%, rgba(7,32,58,.6) 100%); } }
.hero-title { font-family: Outfit, sans-serif; font-weight: 800; line-height: .98; letter-spacing: -.02em; font-size: clamp(2.7rem, 1.5rem + 5.2vw, 5.6rem); text-wrap: balance; }
.hero-title .accent { display: block; color: var(--aqua-200); font-size: .5em; font-weight: 700; letter-spacing: -.005em; margin-top: .4em; line-height: 1.12; }
.trust-pill { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .85rem; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); font-size: .88rem; font-weight: 500; color: #fff; backdrop-filter: blur(6px); }
/* Floating proof card in the hero (desktop only) */
.hero-proof { position: relative; width: 22rem; padding: .85rem; border-radius: 1.25rem; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(10px); box-shadow: 0 24px 60px -20px rgba(0,0,0,.55); }
.hero-proof .ba-pair { border-radius: .85rem; }
.hero-proof-caption { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem .35rem .15rem; font-size: .85rem; color: rgba(255,255,255,.9); }
.hero-proof-caption strong { display: block; font-family: Outfit, sans-serif; font-weight: 700; color: #fff; font-size: .95rem; }
.hero-proof-caption a { font-weight: 600; color: var(--aqua-200); white-space: nowrap; }
.hero-proof-caption a:hover { color: #fff; }

/* Before / after components */
.ba-pair, .ba-trio { display: grid; gap: 3px; overflow: hidden; border-radius: 1.1rem; background: var(--navy-950); position: relative; }
.ba-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ba-trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ba-shot { position: relative; margin: 0; min-width: 0; }
.ba-shot img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; object-position: center 60%; }
.ba-trio .ba-shot img { aspect-ratio: 9 / 14; }
.ba-label { position: absolute; top: .6rem; left: .6rem; padding: .28rem .6rem; border-radius: .45rem; font-family: Outfit, sans-serif; font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: rgba(7,32,58,.78); backdrop-filter: blur(4px); }
.ba-label-after { background: var(--teal-600); }
.ba-arrow { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; background: #fff; color: var(--navy-900); box-shadow: 0 6px 18px -4px rgba(0,0,0,.45); z-index: 1; }
.ba-arrow svg { width: 20px; height: 20px; }
@media (max-width: 639px) { .ba-label { font-size: .68rem; padding: .22rem .45rem; top: .45rem; left: .45rem; letter-spacing: .08em; } .ba-arrow { width: 32px; height: 32px; } .ba-arrow svg { width: 16px; height: 16px; } }
.ba-job { display: flex; flex-direction: column; gap: 1rem; }
.ba-job-caption { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.ba-job-caption h3 { font-family: Outfit, sans-serif; font-weight: 700; font-size: 1.12rem; color: var(--navy-900); }
.ba-job-caption p { margin-top: .2rem; color: var(--ink-600); font-size: .95rem; line-height: 1.55; }
.ba-chip { flex-shrink: 0; padding: .3rem .65rem; border-radius: 999px; background: var(--aqua-100); color: var(--teal-800); font-family: Outfit, sans-serif; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
@media (max-width: 639px) { .ba-job-caption { flex-direction: column-reverse; align-items: flex-start; gap: .6rem; } }

/* Page hero (inner pages) */
.page-hero { position: relative; background: var(--navy-900); color: #fff; overflow: hidden; }
.page-hero .wave-bg { opacity: .35; }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .85rem; color: rgba(255,255,255,.7); }
.crumbs a:hover { color: #fff; }

/* Decorative wave field for dark bands */
.wave-bg { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='24' viewBox='0 0 120 24'%3E%3Cpath d='M0 12c15-10 30-10 45 0s30 10 45 0 30-10 45 0' fill='none' stroke='%237ECDDA' stroke-opacity='.18' stroke-width='2'/%3E%3C/svg%3E");
  background-size: 120px 24px; mask-image: linear-gradient(180deg, transparent, #000 40%, #000 60%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, #000 60%, transparent); }

/* Cards */
.card { background: #fff; border: 1px solid var(--aqua-100); border-radius: 1.1rem; box-shadow: 0 1px 2px rgba(11,47,82,.06), 0 8px 24px -8px rgba(11,47,82,.18); }
.service-card { display: flex; flex-direction: column; gap: 1rem; padding: 1.6rem; transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base); }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(11,47,82,.08), 0 20px 40px -12px rgba(11,47,82,.28); border-color: var(--aqua-200); }
.service-card h3 { font-family: Outfit, sans-serif; font-weight: 700; font-size: 1.25rem; color: var(--navy-900); }
.service-card .more { margin-top: auto; display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; color: var(--teal-700); }
.service-card:hover .more { color: var(--brand-700); }
.icon-tile { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 1rem; background: linear-gradient(135deg, var(--aqua-100), var(--aqua-50)); color: var(--teal-700); border: 1px solid var(--aqua-100); }
.icon-tile svg { width: 28px; height: 28px; }
.icon-tile-dark { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.15); color: var(--aqua-200); }

/* Owner portrait */
.portrait { position: relative; margin: 0; border-radius: 1.25rem; overflow: hidden; box-shadow: 0 2px 4px rgba(11,47,82,.08), 0 30px 60px -20px rgba(0,0,0,.45); background: var(--navy-950); }
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.portrait figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.4rem 1.25rem 1.1rem; background: linear-gradient(180deg, transparent, rgba(7,32,58,.88)); color: rgba(255,255,255,.85); font-size: .9rem; }
.portrait figcaption strong { display: block; font-family: Outfit, sans-serif; font-weight: 700; font-size: 1.1rem; color: #fff; }

/* Feature list (why choose us) */
.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature .icon-tile { flex-shrink: 0; width: 48px; height: 48px; border-radius: .8rem; }
.feature .icon-tile svg { width: 24px; height: 24px; }
.feature h3 { font-family: Outfit, sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--navy-900); }
.feature p { margin-top: .25rem; color: var(--ink-600); line-height: 1.6; }

/* Check list */
.checks { display: grid; gap: .75rem; }
.checks li { display: flex; gap: .7rem; align-items: flex-start; line-height: 1.55; }
.checks svg { flex-shrink: 0; width: 22px; height: 22px; margin-top: .1rem; color: var(--teal-600); }

/* Reviews */
.review { display: flex; flex-direction: column; gap: 1rem; padding: 1.6rem; height: 100%; }
.stars { display: inline-flex; gap: 2px; color: #F5B301; }
.stars svg { width: 18px; height: 18px; }
.review blockquote { font-size: 1.02rem; line-height: 1.65; color: var(--ink-700); }
.review footer { margin-top: auto; display: flex; align-items: center; gap: .75rem; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 999px; background: var(--teal-600); color: #fff; font-family: Outfit, sans-serif; font-weight: 700; }
.google-badge { display: inline-flex; align-items: center; gap: .6rem; padding: .6rem 1rem; border-radius: 999px; background: #fff; border: 1px solid var(--aqua-100); box-shadow: 0 1px 2px rgba(11,47,82,.06), 0 8px 24px -8px rgba(11,47,82,.18); font-weight: 600; color: var(--navy-900); }

/* Service area */
.area-list { columns: 2; column-gap: 1.5rem; font-size: .97rem; line-height: 1.9; color: var(--ink-700); }
@media (min-width: 640px) { .area-list { columns: 3; } }
.map-frame { border-radius: 1.1rem; overflow: hidden; border: 1px solid var(--aqua-100); box-shadow: 0 1px 2px rgba(11,47,82,.06), 0 8px 24px -8px rgba(11,47,82,.18); background: var(--aqua-50); aspect-ratio: 4 / 3; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* FAQ */
.faq { border: 1px solid var(--aqua-100); border-radius: 1rem; background: #fff; overflow: hidden; }
.faq + .faq { margin-top: .75rem; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem; cursor: pointer; list-style: none; font-family: Outfit, sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--navy-900); min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--teal-700); transition: transform var(--dur-base) var(--ease-out); }
.faq[open] summary svg { transform: rotate(45deg); }
.faq[open] summary { background: var(--aqua-50); }
.faq .answer { padding: .25rem 1.3rem 1.3rem; color: var(--ink-600); line-height: 1.7; }

/* Forms */
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-weight: 600; font-size: .93rem; color: var(--ink-900); }
.field .hint { font-size: .85rem; color: var(--ink-600); }
.field .req { color: var(--brand-600); }
.input { width: 100%; min-height: 48px; padding: .7rem .9rem; border-radius: .7rem; border: 1.5px solid #CFE3EA; background: #fff; font-size: 1rem; color: var(--ink-900); transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.input:focus { outline: none; border-color: var(--brand-600); box-shadow: 0 0 0 4px rgba(24,123,179,.18); }
.input[aria-invalid="true"] { border-color: #C0392B; }
textarea.input { min-height: 130px; resize: vertical; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234A5B6A' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.5rem; }
.error-text { display: none; font-size: .85rem; color: #B03A2E; font-weight: 500; }
.field.has-error .error-text { display: block; }
.form-status { display: none; padding: 1rem 1.2rem; border-radius: .8rem; font-weight: 500; line-height: 1.5; }
.form-status.ok { display: block; background: #E8F7EE; color: #1F6B3A; border: 1px solid #BFE6CD; }
.form-status.err { display: block; background: #FCEDEA; color: #8F2A1F; border: 1px solid #F3C6BE; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Contact tiles */
.contact-tile { display: flex; gap: 1rem; align-items: flex-start; padding: 1.3rem; }
.contact-tile > div { min-width: 0; overflow-wrap: anywhere; }
.contact-tile > .icon-tile { flex-shrink: 0; }
.contact-tile a { display: inline-block; padding: .2rem 0; font-weight: 600; color: var(--navy-900); }
.contact-tile a:hover { color: var(--brand-700); }
.crumbs a, .hero-proof-caption a { display: inline-block; padding: .25rem 0; }

/* Steps */
.step { position: relative; padding-left: 3.6rem; }
.step-num { position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--navy-900); color: #fff; font-family: Outfit, sans-serif; font-weight: 800; }
.step h3 { font-family: Outfit, sans-serif; font-weight: 700; font-size: 1.12rem; color: var(--navy-900); }
.step p { margin-top: .3rem; color: var(--ink-600); line-height: 1.6; }

/* Footer */
.footer-heading { font-family: Outfit, sans-serif; font-weight: 700; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--aqua-200); margin-bottom: 1rem; }
.footer-list { display: grid; gap: .55rem; font-size: .95rem; }
.footer-list a { display: inline-block; padding: .2rem 0; color: rgba(255,255,255,.82); transition: color var(--dur-fast); }
.footer-list a:hover { color: #fff; }

/* Mobile sticky CTA */
.mobile-cta { display: none; }
@media (max-width: 1023px) {
  .mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: .6rem; padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--aqua-100); backdrop-filter: blur(8px); }
}

/* Placeholders — visible reminders of content the owner still needs to supply.
   Search the src/ folder for "PLACEHOLDER" to find every one. */
.placeholder { border: 2px dashed #E0A800; background: #FFF8DC; color: #6B4E00; border-radius: .8rem; padding: 1rem 1.2rem; font-size: .95rem; line-height: 1.55; }
.placeholder-inline { display: inline-block; padding: .1rem .45rem; border: 1.5px dashed #E0A800; background: #FFF8DC; color: #6B4E00; border-radius: .35rem; font-size: .8em; }
.placeholder-photo { display: flex; align-items: center; justify-content: center; text-align: center; padding: 1.5rem; border: 2px dashed #E0A800; background: repeating-linear-gradient(135deg, #FFF8DC 0 12px, #FFF3C4 12px 24px); color: #6B4E00; border-radius: 1.1rem; font-weight: 500; }

/* Reveal on scroll (progressively enhanced; static without JS) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.reveal.in, .no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
