/* ==========================================================================
   First Coast Roof Network, visual identity: "coastal daylight"
   Deep teal, warm sand, soft coral. Light hero with an SVG wave, rounded
   geometry, diffuse shadows, airy spacing, rounded-light sans headings.
   ========================================================================== */

:root{
  --teal:#0d6d75;
  --teal-deep:#084f56;
  --teal-ink:#0a3f45;
  --teal-soft:#dff0f0;
  --teal-tint:#f0f8f8;
  --coral:#e2725b;
  --coral-ink:#b8462f;
  --coral-soft:#fdeee9;
  --sand:#f6efe3;
  --sand-2:#fbf7f0;
  --sand-3:#ece0cd;
  --ink:#123037;
  --muted:#5b7178;
  --line:#e6ded1;
  --line-2:#f0e9de;
  --r:16px;
  --r-sm:12px;
  --r-pill:999px;
  --shadow:0 10px 30px -12px rgba(10,63,69,.18);
  --shadow-soft:0 18px 45px -20px rgba(10,63,69,.28);
  --max:1120px;
  --rounded:ui-rounded,"SF Pro Rounded","Hiragino Maru Gothic ProN","Avenir Next","Avenir","Segoe UI Variable Display","Segoe UI",system-ui,-apple-system,sans-serif;
  --body:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --wave:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0 46c120 26 240 34 360 22s240-46 360-46 240 34 360 46 240 8 360-22v44H0z' fill='%23ffffff'/%3E%3C/svg%3E");
  --wave-soft:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0 58c140-30 280-30 420-4s280 40 420 22 280-40 420-46 180 4 180 4v56H0z' fill='%230d6d75' fill-opacity='.10'/%3E%3C/svg%3E");
}

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

html{-webkit-text-size-adjust:100%}

body{
  font:16px/1.78 var(--body);
  color:var(--ink);
  background:#fff;
  -webkit-font-smoothing:antialiased;
}

img{max-width:100%;height:auto}
a{color:var(--teal)}
a:hover{color:var(--teal-deep)}

:focus-visible{outline:3px solid var(--coral-ink);outline-offset:3px;border-radius:6px}

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

h1,h2,h3,h4{
  font-family:var(--rounded);
  line-height:1.24;font-weight:600;letter-spacing:-.005em;color:var(--teal-ink);
}
h1{font-size:clamp(2rem,4vw,2.85rem);font-weight:600;margin-bottom:20px;line-height:1.16}
h2{font-size:clamp(1.45rem,2.7vw,2rem);margin-bottom:16px}
h3{font-size:1.14rem;font-weight:600;margin-bottom:10px}
h4{font-size:.98rem;font-weight:600}
p{margin-bottom:16px}
p:last-child{margin-bottom:0}

/* ------- Non-affiliation banner: REQUIRED, must stay clearly visible ----- */
.notaffiliated{
  background:#fff6e2;
  border-bottom:3px solid var(--coral-ink);
  color:#4a2e1e;
  font-size:.88rem;
  line-height:1.6;
  padding:14px 0;
}
.notaffiliated .container{max-width:var(--max)}
.notaffiliated strong{color:#2f1a0e;font-weight:700}

/* ---------------------------- Urgent bar --------------------------------- */
.urgent-bar{
  background:var(--teal-deep);color:#eaf7f6;
  text-align:center;padding:11px 20px;
  font-size:.89rem;font-weight:500;letter-spacing:.005em;
  display:flex;gap:12px;justify-content:center;align-items:center;flex-wrap:wrap;
}
.urgent-bar a{color:#fff;font-weight:700;text-decoration:underline;text-underline-offset:4px}
.urgent-bar a:hover{color:#fff}

/* ------------------------------ Header ----------------------------------- */
.site-header{
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line-2);
  position:sticky;top:0;z-index:50;
}
.header-inner{
  max-width:var(--max);margin:0 auto;padding:18px 24px;
  display:flex;align-items:center;gap:24px;flex-wrap:wrap;
}
.site-logo{
  display:flex;align-items:center;gap:12px;
  font-family:var(--rounded);font-weight:600;font-size:1.1rem;letter-spacing:-.01em;
  color:var(--teal-ink);text-decoration:none;
}
.site-logo:hover{color:var(--teal)}
.logo-mark{
  width:40px;height:40px;flex:0 0 40px;border-radius:var(--r-pill);
  background:linear-gradient(145deg,var(--teal),var(--teal-deep));
  color:#fff;display:grid;place-items:center;
  font-family:var(--rounded);font-size:1.1rem;font-weight:600;
  box-shadow:0 6px 16px -6px rgba(13,109,117,.6);
}
.site-nav{display:flex;gap:28px;margin-left:auto;flex-wrap:wrap;align-items:center}
.site-nav a{
  color:var(--muted);text-decoration:none;font-weight:500;font-size:.96rem;
  border-radius:var(--r-pill);padding:6px 2px;
}
.site-nav a:hover{color:var(--teal)}
.header-phone{
  background:var(--coral-ink);color:#fff;
  padding:11px 22px;border-radius:var(--r-pill);
  font-weight:600;text-decoration:none;font-size:.94rem;white-space:nowrap;
  box-shadow:0 8px 20px -10px rgba(184,70,47,.9);
}
.header-phone:hover{background:#a13c27;color:#fff}

/* ------------------- Hero: LIGHT, sand, wave separator ------------------- */
.hero{
  position:relative;
  background:linear-gradient(180deg,var(--sand-2) 0%,var(--sand) 62%,var(--sand) 100%);
  color:var(--ink);
  padding:76px 0 118px;
  overflow:hidden;
}
.hero::after{
  content:"";position:absolute;left:0;right:0;bottom:-1px;height:88px;
  background:var(--wave) center bottom/100% 100% no-repeat;
  pointer-events:none;
}
.hero::before{
  content:"";position:absolute;left:0;right:0;bottom:52px;height:90px;
  background:var(--wave-soft) center bottom/100% 100% no-repeat;
  pointer-events:none;
}
.hero .container{position:relative;z-index:2}
.hero h1{color:var(--teal-ink)}
.hero p{color:#3f5b62;font-size:1.08rem;max-width:60ch;line-height:1.8}
.hero a:not(.btn){color:var(--teal-deep)}

.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:52px;align-items:center}
.hero-badge{
  display:inline-block;
  background:#fff;border:1px solid var(--teal-soft);
  color:var(--teal);
  padding:8px 18px;border-radius:var(--r-pill);
  font-size:.85rem;font-weight:600;
  margin-bottom:22px;
  box-shadow:0 6px 18px -12px rgba(10,63,69,.5);
}
.trust-pills{display:flex;gap:10px;flex-wrap:wrap;margin-top:28px}
.trust-pills span{
  background:#fff;border:1px solid var(--line);
  color:var(--muted);
  padding:8px 16px;border-radius:var(--r-pill);
  font-size:.84rem;font-weight:500;
  box-shadow:0 4px 14px -10px rgba(10,63,69,.5);
}
.hero-form{
  background:#fff;color:var(--ink);
  border:0;border-radius:24px;
  padding:30px;
  box-shadow:var(--shadow-soft);
}
.hero-form h3{font-size:1.28rem;color:var(--teal-ink)}

/* ----------------------------- Sections ---------------------------------- */
.section{padding:84px 0}
.section-alt{background:var(--teal-tint)}
.section-header{margin-bottom:42px;max-width:62ch}
.section-header p{color:var(--muted);font-size:1.02rem}
.section-tag{
  display:inline-block;color:var(--coral-ink);
  font-weight:600;font-size:.82rem;letter-spacing:.05em;
  margin-bottom:12px;
  background:var(--coral-soft);border-radius:var(--r-pill);padding:5px 15px;
}

/* ------------------------------ Buttons ---------------------------------- */
.btn{
  display:inline-block;padding:14px 28px;border-radius:var(--r-pill);
  font-family:var(--rounded);font-weight:600;font-size:1rem;
  text-decoration:none;text-align:center;
  border:2px solid transparent;cursor:pointer;
  transition:transform .18s ease,box-shadow .18s ease,background-color .18s ease;
}
.btn:hover{transform:translateY(-2px)}
.btn-accent{background:var(--coral-ink);color:#fff;box-shadow:0 12px 26px -14px rgba(184,70,47,.95)}
.btn-accent:hover{background:#a13c27;color:#fff;box-shadow:0 16px 32px -14px rgba(184,70,47,.95)}
.btn-outline{background:transparent;border-color:var(--teal);color:var(--teal)}
.btn-outline:hover{background:var(--teal);color:#fff}
.btn-white{background:#fff;color:var(--teal-deep);box-shadow:var(--shadow)}
.btn-white:hover{background:var(--teal-soft);color:var(--teal-deep)}
.btn-lg{padding:17px 34px;font-size:1.06rem}
.btn-full{width:100%;display:block}

/* ------------------- Cards: very rounded, soft shadows ------------------- */
.grid{display:grid;gap:26px}
.grid-3{grid-template-columns:repeat(auto-fit,minmax(290px,1fr))}
.grid-4{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.card{
  background:#fff;border:1px solid var(--line-2);border-radius:var(--r);
  padding:30px;box-shadow:var(--shadow);
  transition:transform .2s ease,box-shadow .2s ease;
}
a.card{color:inherit;display:block}
a.card:hover{transform:translateY(-4px);box-shadow:var(--shadow-soft)}
.card h3{color:var(--teal-ink)}
.card p{color:var(--muted);font-size:.95rem;margin:0}
.card-icon{
  font-size:1.5rem;line-height:1;margin-bottom:16px;
  display:grid;place-items:center;width:52px;height:52px;
  background:var(--teal-tint);border-radius:var(--r-pill);
}

/* ---------------------------- Directory ---------------------------------- */
.dir-list{display:grid;gap:26px;grid-template-columns:repeat(auto-fit,minmax(330px,1fr))}
.dir-card{
  background:#fff;border:1px solid var(--line-2);border-radius:var(--r);
  padding:28px;box-shadow:var(--shadow);
}
.dir-card-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;flex-wrap:wrap}
.dir-card h3{color:var(--teal-ink);margin:0}
.dir-rating{display:flex;align-items:center;gap:7px;font-size:.87rem;white-space:nowrap}
.dir-rating strong{font-size:1.1rem;color:var(--teal)}
.dir-stars{color:#d99a24}
.dir-count{color:var(--muted)}
.dir-addr{color:var(--muted);font-size:.92rem;margin:12px 0 0}
.dir-review{
  background:var(--teal-tint);border-left:0;border-radius:var(--r-sm);
  padding:16px 18px;margin-top:16px;
  font-size:.94rem;color:#3f5b62;font-style:italic;
}
.dir-review cite{display:block;margin-top:9px;font-style:normal;font-size:.82rem;color:var(--muted)}
.dir-attrib{margin-top:24px;font-size:.82rem;color:var(--muted);max-width:80ch;line-height:1.7}

/* -------------------------- CTA + lead form ------------------------------ */
.match-cta{
  background:#fff;border:0;border-radius:26px;
  padding:42px;box-shadow:var(--shadow-soft);
  border-top:5px solid var(--coral);
}
.match-cta p{color:var(--muted)}

.lead-form{display:grid;gap:18px;margin-top:22px}
.lf-row{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.lead-form label{display:block;font-weight:600;font-size:.9rem;color:var(--teal-ink)}
.lead-form input,.lead-form select,.lead-form textarea{
  width:100%;margin-top:7px;padding:13px 16px;
  border:1px solid var(--line);border-radius:var(--r-sm);
  font:inherit;font-weight:400;color:var(--ink);background:var(--sand-2);
}
.lead-form input:focus,.lead-form select:focus,.lead-form textarea:focus{
  outline:0;background:#fff;border-color:var(--teal);
  box-shadow:0 0 0 4px rgba(13,109,117,.15);
}
.lead-form label.lf-consent,.lf-consent{display:flex;gap:12px;align-items:flex-start;font-weight:400;font-size:.8rem;color:var(--muted);line-height:1.65}
.lf-consent input{width:auto;margin-top:4px;flex:0 0 auto;accent-color:var(--teal)}
.lf-alt{text-align:center;font-size:.92rem;color:var(--muted);margin:0}
.lf-success{
  background:var(--teal-tint);border:1px solid var(--teal-soft);
  border-radius:var(--r);padding:34px;text-align:center;
}
.lf-success h3{color:var(--teal-deep)}

/* --------------------------- Emergency band ------------------------------ */
.emergency-band{
  background:var(--coral-soft);
  border-top:0;border-bottom:0;
  padding:26px 0;
}
.emergency-band .container{
  display:flex;gap:22px;align-items:center;justify-content:space-between;flex-wrap:wrap;
  background:#fff;border-radius:22px;padding:24px 30px;
  box-shadow:var(--shadow);
}
.emergency-band strong{font-family:var(--rounded);font-size:1.12rem;font-weight:600;color:var(--coral-ink)}

/* -------------------------------- FAQ ------------------------------------ */
.faq-item{
  background:#fff;border:1px solid var(--line-2);border-radius:var(--r);
  margin-bottom:14px;overflow:hidden;box-shadow:0 6px 20px -14px rgba(10,63,69,.4);
}
.faq-q{
  padding:20px 26px;font-weight:600;cursor:pointer;
  display:flex;justify-content:space-between;gap:16px;color:var(--teal-ink);
}
.faq-q::after{
  content:"+";color:var(--coral-ink);font-size:1.4rem;line-height:1;font-weight:400;
  flex:0 0 auto;transition:transform .2s ease;
}
.faq-item.open{border-color:var(--teal-soft)}
.faq-item.open .faq-q::after{content:"−"}
.faq-a{padding:0 26px;max-height:0;overflow:hidden;color:var(--muted);font-size:.96rem;transition:max-height .28s ease,padding .28s ease}
.faq-item.open .faq-a{padding:0 26px 24px;max-height:720px}

/* ----------------------------- Link grid --------------------------------- */
.link-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px}
.link-grid a{
  background:#fff;border:1px solid var(--line-2);border-radius:var(--r-pill);
  padding:12px 20px;text-decoration:none;font-size:.92rem;font-weight:500;color:var(--teal-deep);
  box-shadow:0 4px 14px -12px rgba(10,63,69,.6);
}
.link-grid a:hover{background:var(--teal);color:#fff;border-color:var(--teal)}

/* ---------------------------- Breadcrumb --------------------------------- */
.breadcrumb{background:var(--sand-2);border-bottom:1px solid var(--line-2);padding:14px 0;font-size:.88rem}
.breadcrumb ol{display:flex;gap:10px;list-style:none;flex-wrap:wrap;max-width:var(--max);margin:0 auto;padding:0 24px}
.breadcrumb li{color:var(--muted)}
.breadcrumb li+li::before{content:"~";margin-right:10px;color:var(--teal)}
.breadcrumb a{color:var(--muted);text-decoration:none}
.breadcrumb a:hover{color:var(--teal);text-decoration:underline}

/* ------------------------------- Prose ----------------------------------- */
.prose{max-width:68ch;line-height:1.85}
.prose h2{margin-top:44px}
.prose h3{margin-top:32px;font-size:1.1rem;color:var(--teal)}
.prose ul,.prose ol{margin:0 0 18px 24px}
.prose li{margin-bottom:9px}

/* ------------------------------- Stats ----------------------------------- */
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:18px;margin-top:36px}
.stat{
  background:var(--teal-tint);border:0;border-radius:var(--r);
  padding:26px 20px;text-align:center;box-shadow:none;
}
.stat strong{
  display:block;font-family:var(--rounded);font-size:1.7rem;font-weight:600;
  color:var(--teal);line-height:1.2;margin-bottom:6px;
}
.stat span{font-size:.85rem;color:var(--muted);line-height:1.5;display:block}

/* ------------------------------ Footer ----------------------------------- */
.site-footer{
  position:relative;
  background:var(--teal-deep);color:#c3ddde;
  padding:70px 0 0;font-size:.93rem;
}
.site-footer::before{
  content:"";position:absolute;left:0;right:0;top:-1px;height:56px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 14c150 26 300 30 450 12s300-26 450-8 300 30 450 14 90-14 90-14V0H0z' fill='%23ffffff'/%3E%3C/svg%3E") center top/100% 100% no-repeat;
  pointer-events:none;
}
.site-footer .container{position:relative;z-index:2}
.footer-grid{display:grid;grid-template-columns:1.8fr 1fr 1fr 1fr;gap:44px;padding-bottom:44px}
.footer-brand{font-family:var(--rounded);font-weight:600;color:#fff;font-size:1.22rem;margin-bottom:12px}
.site-footer p{color:#b0d2d3}
.site-footer h4{
  font-family:var(--rounded);color:#fff;font-size:.98rem;font-weight:600;
  text-transform:none;letter-spacing:0;margin-bottom:14px;
}
.site-footer ul{list-style:none}
.site-footer li{margin-bottom:9px}
.site-footer a{color:#c3ddde;text-decoration:none}
.site-footer a:hover{color:#fff;text-decoration:underline}
.footer-phone{margin-top:14px}
.footer-phone a{color:#fff;font-family:var(--rounded);font-weight:600;font-size:1.08rem}
.footer-legal{
  border-top:1px solid rgba(255,255,255,.16);padding:22px 24px 30px;
  font-size:.81rem;line-height:1.75;color:#a9caca;
  max-width:var(--max);margin:0 auto;
}

/* ------------------------------ Photos -----------------------------------
   Coastal daylight identity: generous radii, diffuse shadows, no dark veils.
   The hero stays LIGHT, so the photo is a rounded panel inside it rather than
   a backdrop behind the text. Captions use the darker ink for AA contrast on
   sand and on the teal tint.
   ------------------------------------------------------------------------ */
.hero-photo{position:relative;z-index:2;margin:46px auto 0;max-width:var(--max)}
.hero-photo img{
  display:block;width:100%;height:clamp(200px,26vw,330px);object-fit:cover;
  border-radius:26px;box-shadow:var(--shadow-soft);background:var(--teal-tint);
}
.hero-photo figcaption{
  margin-top:14px;font-size:.86rem;line-height:1.6;color:#3f5b62;text-align:center;
}

/* Triptych: three rounded cards, soft shadow, same rhythm as .card. */
.photo-strip{
  display:grid;gap:26px;
  grid-template-columns:repeat(auto-fit,minmax(258px,1fr));
  margin:0 0 38px;
}
.photo-strip figure{margin:0}
.photo-strip img{
  display:block;width:100%;height:218px;object-fit:cover;
  border-radius:20px;box-shadow:var(--shadow);background:var(--teal-tint);
}
.photo-strip figcaption{margin-top:14px;font-size:.9rem;line-height:1.65;color:#3f5b62}

/* Single rounded panel, used on city and emergency pages. */
.photo-plate{margin:0 0 30px}
.photo-plate img{
  display:block;width:100%;height:clamp(190px,25vw,300px);object-fit:cover;
  border-radius:22px;box-shadow:var(--shadow);background:var(--teal-tint);
}
.photo-plate figcaption{margin-top:12px;font-size:.86rem;line-height:1.6;color:#3f5b62}

/* Pexels attribution, footer. */
.photo-credits{margin-top:14px;font-size:.8rem;line-height:1.7;color:#a9caca}
.photo-credits a{color:#fff;text-decoration:underline;text-underline-offset:3px}
.photo-credits a:hover{color:#fff}

/* --------------------------- Sticky mobile CTA --------------------------- */
.sticky-call{display:none}

/* ------------------------------ Responsive ------------------------------- */
@media(max-width:1024px){
  .hero-grid{gap:38px}
  .footer-grid{grid-template-columns:1fr 1fr;gap:34px}
}
@media(max-width:860px){
  .hero{padding:52px 0 96px}
  .hero-grid{grid-template-columns:1fr;gap:34px}
  .section{padding:60px 0}
  .lf-row{grid-template-columns:1fr}
  .site-nav{order:3;width:100%;margin-left:0;gap:20px;justify-content:center;
            border-top:1px solid var(--line-2);padding-top:14px;margin-top:2px}
  .header-phone{margin-left:auto}
  .emergency-band .container{flex-direction:column;text-align:center;align-items:stretch}
  body{padding-bottom:64px}
  .sticky-call{
    display:block;position:fixed;left:12px;right:12px;bottom:12px;
    background:var(--coral-ink);color:#fff;
    text-align:center;padding:16px;border-radius:var(--r-pill);
    font-family:var(--rounded);font-weight:600;text-decoration:none;z-index:60;
    box-shadow:0 14px 34px -12px rgba(10,63,69,.7);
  }
}
@media(max-width:560px){
  .container{padding:0 20px}
  .header-inner{padding:14px 20px;gap:14px}
  .breadcrumb ol{padding:0 20px}
  .footer-grid{grid-template-columns:1fr;gap:30px}
  .hero-form{padding:22px;border-radius:20px}
  .hero-photo{margin-top:34px}
  .hero-photo img{border-radius:20px}
  .photo-strip img{height:190px;border-radius:18px}
  .photo-plate img{border-radius:18px}
  .match-cta{padding:26px 20px;border-radius:20px}
  .emergency-band .container{padding:22px 20px}
  .card{padding:24px}
  .site-nav{gap:16px;font-size:.9rem}
  .btn{padding:13px 20px;font-size:.95rem}
  .btn-lg{padding:15px 22px;font-size:1rem}
}
@media(prefers-reduced-motion:reduce){
  *{transition:none !important}
  .btn:hover,a.card:hover{transform:none}
}
