/* ==========================================================================
   Seawall Tech Co. — main stylesheet
   Jacob: this file controls how every page LOOKS (colors, spacing, layout).
   Read it top to bottom: 1) fonts  2) color tokens  3) base  4) layout
   5) components (buttons, cards…)  6) sections  7) mobile tweaks.
   ========================================================================== */

/* 1) FONTS — self-hosted (faster + more private than loading from Google).
   font-display: swap = show text right away in a fallback font, then swap. */
@font-face{font-family:"Sora";src:url("/assets/fonts/sora-latin-700-normal.woff2") format("woff2");font-weight:700;font-display:swap}
@font-face{font-family:"Sora";src:url("/assets/fonts/sora-latin-800-normal.woff2") format("woff2");font-weight:800;font-display:swap}
@font-face{font-family:"Inter";src:url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Inter";src:url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2");font-weight:600;font-display:swap}

/* 2) COLOR TOKENS — change a color here and it changes everywhere.
   These are the brand colors from the brand guide. */
:root{
  --navy:#0B2A4A;        /* Harbor Navy: main brand color */
  --navy-2:#123A63;
  --teal:#08666F;        /* Gulf Teal, darkened so small text passes WCAG AA contrast on light backgrounds */
  --teal-brand:#0E9AA7;  /* Gulf Teal exactly as in the logo */
  --teal-light:#5FD0D8;
  --sand:#EADFC8;        /* Seawall Sand */
  --shell:#F7F2E7;       /* Shell White: page background */
  --signal:#C4470F;      /* Signal Orange, darkened so white button text passes WCAG AA contrast (4.9:1) */
  --signal-hover:#A53B0C;
  --ink:#13202E;         /* main text color */
  --muted:#4F5F70;       /* secondary text */
  --line:#E2D8C4;        /* borders */
  --card:#FFFFFF;
  --radius:14px;
  --shadow:0 8px 30px rgba(11,42,74,.10);
  --max:1120px;          /* max width of the content */
}

/* 3) BASE — sensible defaults for every page */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{animation:none!important;transition:none!important}}
body{margin:0;background:var(--shell);color:var(--ink);font:400 17px/1.6 Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
img,svg{max-width:100%;height:auto;display:block}
h1,h2,h3{font-family:Sora,Inter,system-ui,sans-serif;line-height:1.15;color:var(--navy);margin:0 0 .5em}
h1{font-weight:800;font-size:clamp(2rem,5.2vw,3.3rem);letter-spacing:-.02em}
h2{font-weight:800;font-size:clamp(1.6rem,3.6vw,2.3rem);letter-spacing:-.01em}
h3{font-weight:700;font-size:1.15rem}
p{margin:0 0 1em}
a{color:var(--teal)}
a:hover{color:var(--navy)}
/* Visible focus outline for keyboard users (accessibility) */
:focus-visible{outline:3px solid var(--teal-brand);outline-offset:3px;border-radius:6px}
.skip{position:absolute;left:-999px;top:8px;background:#fff;padding:8px 12px;border-radius:8px;z-index:100}
.skip:focus{left:8px}

/* 4) LAYOUT */
.container{max-width:var(--max);margin:0 auto;padding:0 20px}
section{padding:72px 0}
.eyebrow{display:inline-block;font:600 .8rem Inter;letter-spacing:.14em;text-transform:uppercase;color:var(--teal);margin-bottom:10px}
.lead{font-size:1.15rem;color:var(--muted);max-width:640px}
.grid{display:grid;gap:20px}
.grid-3{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.grid-2{grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}
.center{text-align:center}.center .lead{margin-inline:auto}

/* 5) COMPONENTS */
/* Buttons — orange = call (the #1 action), outline = secondary */
.btn{display:inline-flex;align-items:center;gap:10px;min-height:48px;padding:12px 22px;border-radius:12px;font:700 1rem Sora,Inter,sans-serif;text-decoration:none;border:2px solid transparent;cursor:pointer;transition:transform .15s ease,background .15s ease}
.btn:hover{transform:translateY(-1px)}
.btn-call{background:var(--signal);color:#fff}
.btn-call:hover{background:var(--signal-hover);color:#fff}
.btn-ghost{border-color:currentColor;color:#fff;background:transparent}
.btn-ghost:hover{background:rgba(255,255,255,.1);color:#fff}
.btn-outline{border-color:var(--navy);color:var(--navy)}
.btn-outline:hover{background:var(--navy);color:#fff}
.btn svg{width:20px;height:20px}

.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:26px;box-shadow:var(--shadow)}
.card .icon{width:48px;height:48px;border-radius:12px;background:#E6F5F6;color:var(--teal);display:grid;place-items:center;margin-bottom:14px}
.card .icon svg{width:26px;height:26px}
.card p{color:var(--muted);margin:0}
.price{font:800 1.5rem Sora,Inter;color:var(--navy);margin:6px 0 4px}
.price small{font:600 .9rem Inter;color:var(--muted)}

/* HEADER */
.site-header{position:sticky;top:0;z-index:50;background:rgba(247,242,231,.92);backdrop-filter:saturate(1.4) blur(8px);border-bottom:1px solid var(--line)}
.site-header .container{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:68px}
.logo img{height:44px;width:auto}
.nav{display:flex;align-items:center;gap:22px}
.nav a{color:var(--navy);text-decoration:none;font-weight:600}
.nav a:hover{color:var(--teal)}
.nav .btn{padding:10px 16px;min-height:44px}
.nav .btn-call,.nav .btn-call:hover{color:#fff}
.menu-btn{display:none;background:none;border:0;padding:8px;color:var(--navy);cursor:pointer}
.menu-btn svg{width:28px;height:28px}

/* HERO (the big top section) */
.hero{position:relative;background:linear-gradient(160deg,var(--navy) 0%,var(--navy-2) 70%);color:#fff;padding:84px 0 150px;overflow:hidden}
.hero h1{color:#fff}
.hero .lead{color:#D5E2EE}
.hero .eyebrow{color:var(--teal-light)}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin:28px 0 22px}
.hero-points{display:flex;flex-wrap:wrap;gap:10px 22px;padding:0;margin:0;list-style:none;color:#D5E2EE;font-weight:600}
.hero-points li{display:flex;align-items:center;gap:8px}
.hero-points svg{width:20px;height:20px;color:var(--teal-light)}
.hero-wave{position:absolute;left:0;right:0;bottom:-1px;width:100%;height:110px}
.hero-shield{position:absolute;right:-40px;top:40px;width:360px;opacity:.07;pointer-events:none}

/* TRUST BAR */
.trust{margin-top:-60px;position:relative;z-index:2;padding:0}
.trust .grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);padding:22px;gap:14px;border:1px solid var(--line)}
.trust-item{display:flex;gap:12px;align-items:center}
.trust-item svg{flex:none;width:30px;height:30px;color:var(--teal)}
.trust-item b{display:block;font-family:Sora;color:var(--navy);font-size:.98rem}
.trust-item span{font-size:.88rem;color:var(--muted)}

/* STEPS */
.steps{counter-reset:step}
.step{position:relative;padding-left:64px}
.step::before{counter-increment:step;content:counter(step);position:absolute;left:0;top:0;width:46px;height:46px;border-radius:50%;background:var(--navy);color:#fff;display:grid;place-items:center;font:800 1.1rem Sora}

/* SAND SECTION */
.band-sand{background:var(--sand)}
.band-navy{background:var(--navy);color:#fff}
.band-navy h2,.band-navy h3{color:#fff}
.band-navy .lead{color:#D5E2EE}

/* REVIEW */
.review{max-width:760px;margin:0 auto;background:#fff;border-radius:var(--radius);padding:34px;box-shadow:var(--shadow);border:1px solid var(--line)}
.stars{color:#E8A317;font-size:1.3rem;letter-spacing:3px}
.review blockquote{margin:12px 0 14px;font-size:1.15rem;line-height:1.65;color:var(--ink)}
.review cite{font-style:normal;font-weight:600;color:var(--muted)}

/* ABOUT */
.about{display:grid;grid-template-columns:minmax(0,320px) 1fr;gap:40px;align-items:center}
.about-photo{aspect-ratio:1;border-radius:24px;background:linear-gradient(160deg,var(--navy),var(--navy-2));display:grid;place-items:center;box-shadow:var(--shadow)}
.about-photo img{width:44%}
.creds{display:flex;flex-wrap:wrap;gap:8px;padding:0;list-style:none;margin:16px 0 0}
.creds li{background:#E6F5F6;color:var(--navy);border-radius:999px;padding:6px 12px;font-weight:600;font-size:.9rem}

/* FAQ — uses <details>, works without JavaScript */
.faq details{background:#fff;border:1px solid var(--line);border-radius:12px;padding:0 20px;margin-bottom:12px}
.faq summary{cursor:pointer;list-style:none;padding:18px 0;font:700 1.05rem Sora,Inter;color:var(--navy);display:flex;justify-content:space-between;gap:12px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";font-size:1.4rem;line-height:1;color:var(--teal)}
.faq details[open] summary::after{content:"–"}
.faq details p{color:var(--muted);padding-bottom:16px;margin:0}

/* CONTACT FORM */
.form{display:grid;gap:14px}
.form label{font-weight:600;color:var(--navy);display:grid;gap:6px}
.form input,.form select,.form textarea{font:inherit;padding:13px 14px;border-radius:10px;border:1.5px solid #C9BFAC;background:#fff;color:var(--ink);width:100%}
.form textarea{min-height:120px;resize:vertical}
.form input:focus,.form select:focus,.form textarea:focus{border-color:var(--teal-brand);outline:none;box-shadow:0 0 0 3px rgba(14,154,167,.2)}
.hidden{position:absolute!important;left:-9999px!important}  /* spam trap field, hidden from people */
.form-note{font-size:.88rem;color:var(--muted)}

/* FOOTER */
.site-footer{background:#081F37;color:#B9C8D6;padding:56px 0 110px}
.site-footer a{color:#E3EDF5}
.site-footer .grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:28px}
.site-footer h3{color:#fff;font-size:1rem}
.site-footer ul{list-style:none;padding:0;margin:0}
.site-footer li{margin-bottom:8px}
.footer-bottom{border-top:1px solid #1C3A58;margin-top:36px;padding-top:20px;font-size:.9rem}

/* MOBILE CALL BAR — sticks to the bottom of phones so calling is always 1 tap */
.callbar{display:none}

/* 7) MOBILE TWEAKS */
@media (max-width:860px){
  .menu-btn{display:block}
  .nav{position:absolute;top:68px;left:0;right:0;background:var(--shell);flex-direction:column;align-items:stretch;padding:12px 20px 20px;gap:4px;border-bottom:1px solid var(--line);display:none}
  .nav.open{display:flex}
  .nav a{padding:12px 4px}
  .about{grid-template-columns:1fr}
  .about-photo{max-width:240px}
  .hero{padding:56px 0 130px}
  .hero-shield{display:none}
  section{padding:56px 0}
  .callbar{display:grid;grid-template-columns:1fr 1fr 1fr;position:fixed;left:0;right:0;bottom:0;z-index:60;background:var(--navy);box-shadow:0 -6px 20px rgba(0,0,0,.2);padding:8px 8px calc(8px + env(safe-area-inset-bottom));gap:8px}
  .callbar a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:52px;border-radius:10px;color:#fff;text-decoration:none;font:700 .85rem Sora,Inter}
  .callbar a svg{width:20px;height:20px}
  .callbar .cb-call{background:var(--signal)}
  body{padding-bottom:0}
}

/* ==========================================================================
   ADDED Oct 1: animated waves + sample report + checklist
   ========================================================================== */
/* ANIMATED HERO WAVES: a gentle "live wallpaper" made with CSS only (no video, so it stays fast).
   Each wave is twice as wide as the screen and slides left forever; the two layers move at
   different speeds so it feels like real water. Turned off for people who prefer less motion. */
.hero-wave{overflow:hidden}
.hero-wave .wave{position:absolute;left:0;bottom:0;width:200%;height:100%}
/* Each wave shape repeats every 960 units; the SVG is 2880 units wide (3 repeats).
   Sliding exactly one repeat (1/3 of the width) makes the loop seamless, with no visible jump.
   Slow speeds keep it calm, like water in the background, not a screensaver. */
.wave-back{animation:wave-slide 48s linear infinite}
.wave-front{animation:wave-slide 32s linear infinite}
@keyframes wave-slide{from{transform:translateX(0)}to{transform:translateX(-33.3333%)}}

/* CHECKLIST with teal check marks */
.checklist{list-style:none;padding:0;margin:18px 0 0}
.checklist li{position:relative;padding-left:32px;margin-bottom:10px;font-weight:600;color:var(--navy)}
.checklist li::before{content:"";position:absolute;left:0;top:3px;width:20px;height:20px;border-radius:50%;background:#E6F5F6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2308666F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat}

/* SAMPLE REPORT CARD: looks like the real report customers get */
.report-card{margin:0;background:#fff;border-radius:18px;box-shadow:0 20px 50px rgba(11,42,74,.18);overflow:hidden;border:1px solid var(--line);transform:rotate(-1.2deg);transition:transform .3s ease}
.report-card:hover{transform:rotate(0)}
.report-head{display:flex;align-items:center;gap:12px;background:var(--navy);color:#fff;padding:16px 20px}
.report-head b{display:block;font-family:Sora;font-size:1.05rem}
.report-head span{font-size:.82rem;color:#B9D4E4}
.report-head img{width:34px;height:34px}
.report-status{margin-left:auto;background:#157347;color:#fff!important;font:700 .8rem Sora,Inter!important;padding:6px 12px;border-radius:999px}
.report-body{margin:0;padding:8px 20px 16px}
.report-body div{display:grid;grid-template-columns:110px 1fr;gap:12px;padding:12px 0;border-bottom:1px dashed var(--line)}
.report-body div:last-child{border-bottom:0}
.report-body dt{font-weight:600;color:var(--teal);font-size:.9rem}
.report-body dd{margin:0;color:var(--ink);font-size:.95rem}
@media (max-width:860px){.report-card{transform:none}.report-body div{grid-template-columns:1fr;gap:2px}}
