/* =========================================================
   Coral Coast Home Services - multi-trade contractor template
   Re-skin per client by editing the tokens in :root below.
   ========================================================= */

:root {
  /* ---- BRAND TOKENS (swap these per client) ---- */
  --ink:        #0d1b2a;   /* deep base used for dark sections + headings */
  --ink-2:      #16263a;
  --accent:     #f59e0b;   /* primary action / highlight color */
  --accent-press: #d97706;
  --accent-soft: #fff4e0;

  /* ---- NEUTRALS ---- */
  --bg:         #ffffff;
  --bg-soft:    #f5f8fc;
  --text:       #1d2733;
  --text-soft:  #56646f;
  --line:       #e7edf3;
  --white:      #ffffff;

  /* ---- SHAPE ---- */
  --radius:     16px;
  --radius-sm:  10px;
  --maxw:       1160px;
  --shadow-sm:  0 1px 2px rgba(13,27,42,.06), 0 2px 6px rgba(13,27,42,.06);
  --shadow-md:  0 10px 30px -12px rgba(13,27,42,.22);
  --shadow-lg:  0 30px 64px -28px rgba(13,27,42,.5);

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.12; margin: 0; font-weight: 800; letter-spacing: -0.025em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

/* ---- KICKER (plain label, no pill, no dot) ---- */
.kicker {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent-press);
  margin-bottom: 14px;
}

/* ---- SCROLL REVEAL ---- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.cards .reveal:nth-child(2), .steps .reveal:nth-child(2), .reviews .reveal:nth-child(2) { transition-delay: .08s; }
.cards .reveal:nth-child(3), .steps .reveal:nth-child(3), .reviews .reveal:nth-child(3) { transition-delay: .16s; }
.cards .reveal:nth-child(5) { transition-delay: .08s; }
.cards .reveal:nth-child(6) { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700; font-size: .98rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 15px 28px; font-size: 1.04rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--accent); color: var(--ink); box-shadow: 0 6px 18px -6px rgba(245,158,11,.6); }
.btn-primary:hover { background: var(--accent-press); color: var(--white); box-shadow: 0 8px 22px -6px rgba(217,119,6,.6); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }

.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: #eef2f7; }

/* ============================ HEADER ============================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 76px; position: relative; }

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--ink); color: var(--accent);
}
.brand-name { display: flex; flex-direction: column; font-weight: 800; color: var(--ink); font-size: 1.12rem; line-height: 1.05; letter-spacing: -0.01em; }
.brand-sub { font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-soft); }

.nav { display: flex; gap: 26px; margin-left: 14px; }
.nav a { font-weight: 600; color: var(--text); font-size: .98rem; transition: color .15s ease; }
.nav a:hover { color: var(--accent-press); }

.header-cta { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.phone-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); }
.phone-link:hover { color: var(--accent-press); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; margin-left: auto; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }

/* ============================ HERO ============================ */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
  padding: 70px 0 78px; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(680px circle at 88% 12%, rgba(245,158,11,.16), transparent 58%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-copy h1 { font-size: clamp(2.4rem, 4.8vw, 3.6rem); margin-bottom: 18px; }
.lede { font-size: 1.18rem; color: var(--text-soft); max-width: 33ch; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 12px 26px; }
.hero-trust li { position: relative; font-weight: 600; color: var(--ink); padding-left: 26px; }
.hero-trust li::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.hero-visual { position: relative; }
.hero-photo { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); object-fit: cover; object-position: center 25%; aspect-ratio: 4 / 5; }
.rating-card {
  position: absolute; left: -22px; bottom: 28px;
  background: var(--white); border-radius: 14px; padding: 14px 18px;
  box-shadow: var(--shadow-md); border: 1px solid var(--line);
}
.rating-stars { display: flex; gap: 2px; color: var(--accent); }
.rating-text { display: flex; flex-direction: column; margin-top: 6px; line-height: 1.2; }
.rating-text strong { color: var(--ink); font-size: 1.02rem; }
.rating-text span { color: var(--text-soft); font-size: .84rem; }

/* ============================ TRUST BAR ============================ */
.trustbar { background: var(--ink); color: #dce6f2; }
.trustbar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 22px 24px; }
.trust-item { display: flex; align-items: center; gap: 12px; justify-content: center; font-weight: 600; }
.trust-item svg { color: var(--accent); flex-shrink: 0; }

/* ============================ STATS ============================ */
.stats { background: var(--white); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: 34px 16px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-num { display: block; font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 800; color: var(--ink); letter-spacing: -0.03em; }
.stat-label { display: block; margin-top: 4px; color: var(--text-soft); font-weight: 600; font-size: .95rem; }

/* ============================ SECTIONS ============================ */
.section { padding: 84px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.section-sub { color: var(--text-soft); font-size: 1.1rem; margin-top: 14px; }

/* ---- SERVICE CARDS ---- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card-icon {
  display: grid; place-items: center; width: 52px; height: 52px;
  border-radius: 13px; background: var(--accent-soft); color: var(--accent-press);
  margin-bottom: 18px;
}
.card h3 { font-size: 1.22rem; margin-bottom: 8px; }
.card p { color: var(--text-soft); }

/* ---- SPLIT ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); object-fit: cover; aspect-ratio: 5 / 4; }
.split-copy h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin-bottom: 16px; }
.checks { display: grid; gap: 16px; margin: 26px 0 30px; }
.checks li { display: flex; gap: 13px; align-items: flex-start; }
.checks svg { color: var(--accent-press); flex-shrink: 0; margin-top: 2px; }
.checks strong { color: var(--ink); }

/* ---- STEPS ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; }
.step-num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--ink); color: var(--accent); font-weight: 800; font-size: 1.15rem; margin-bottom: 16px;
}
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--text-soft); }

/* ---- REVIEWS ---- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.rating-stars-amber { color: var(--accent); margin-bottom: 14px; }
.review-text { color: var(--text); margin-bottom: 18px; }
.review-by { display: flex; flex-direction: column; line-height: 1.3; }
.review-by strong { color: var(--ink); }
.review-by span { color: var(--text-soft); font-size: .9rem; }

/* ---- SERVICE AREA ---- */
.area-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 20px; margin: 24px 0 30px; }
.area-list li { position: relative; padding-left: 22px; font-weight: 600; color: var(--ink); }
.area-list li::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; border-radius: 50%; background: var(--accent-soft);
  border: 3px solid var(--accent);
}

/* ============================ CTA BAND ============================ */
.ctaband { background: var(--ink); color: var(--white); }
.ctaband-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 56px 24px; flex-wrap: wrap; }
.ctaband h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); }
.ctaband p { color: #c4d2e2; margin-top: 8px; }
.ctaband-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================ QUOTE FORM ============================ */
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.quote-points { display: grid; gap: 14px; margin-top: 26px; }
.quote-points li { display: flex; gap: 12px; align-items: center; font-weight: 600; color: var(--ink); }
.quote-points svg { color: var(--accent-press); }

.quote-form {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-md);
}
.field { display: flex; flex-direction: column; margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-weight: 600; color: var(--ink); font-size: .92rem; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--text);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-soft); transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245,158,11,.18); background: var(--white);
}
.field textarea { resize: vertical; }
.form-fineprint { color: var(--text-soft); font-size: .82rem; margin-top: 14px; text-align: center; }
.form-success { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent-press); font-weight: 700; text-align: center; }

/* ============================ FOOTER ============================ */
.site-footer { background: var(--ink); color: #b9c7d8; padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer .brand-name, .site-footer .brand-sub { color: var(--white); }
.site-footer .brand-mark { background: rgba(255,255,255,.08); }
.footer-blurb { margin-top: 16px; max-width: 38ch; color: #9fb0c4; }
.footer-col h4 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.footer-col a, .footer-col p { display: block; color: #b9c7d8; margin-bottom: 9px; transition: color .15s ease; }
.footer-col a:hover { color: var(--accent); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; padding-top: 22px; flex-wrap: wrap; font-size: .88rem; color: #8497ab; }
.footer-credit a { color: var(--accent); font-weight: 700; }

/* ============================ MOBILE CALL BAR ============================ */
.mobile-call { display: none; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 460px; }
  .lede { max-width: none; }
  .cards, .steps, .reviews { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split-media { order: -1; max-width: 560px; }
  .quote-grid { grid-template-columns: 1fr; gap: 36px; }
  .trustbar-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 720px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-header.open .nav {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px; margin: 0; box-shadow: var(--shadow-md);
  }
  .site-header.open .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .section { padding: 60px 0; }
  .hero { padding: 44px 0 56px; }
  .cards, .steps, .reviews { grid-template-columns: 1fr; }
  .area-list { grid-template-columns: repeat(2, 1fr); }
  .ctaband-inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .field-row { grid-template-columns: 1fr; }
  .rating-card { left: 12px; bottom: 12px; }

  /* sticky call bar */
  body { padding-bottom: 74px; }
  .mobile-call {
    display: flex; gap: 10px;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    padding: 10px 14px;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(13,27,42,.12);
  }
  .mobile-call .btn { flex: 1; }
}

@media (max-width: 420px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}
