/* =====================================================================
   COVENANT COATINGS 323 — LANDING PAGE STYLES
   ---------------------------------------------------------------------
   Google Ads landing page. No site nav, no outbound links (except the
   footer privacy-policy link). Call is the primary CTA everywhere; the
   estimate form is a secondary safety net.
   Brand colors sampled from the logo: navy #0A2A3C, gold #B8954F.
   ===================================================================== */

/* =========================================================
   TOKENS
   ========================================================= */
:root{
  /* Surfaces */
  --bg: #FFFFFF;
  --surface: #F6F3EC;        /* warm cream off-white */
  --surface-2: #ECE6DA;      /* deeper cream */

  /* Brand */
  --navy: #0A2A3C;           /* primary brand */
  --navy-deep: #06202D;      /* footer / deepest */
  --navy-soft: #16455C;      /* hover / card tints on dark */
  --gold: #C29A4E;           /* accent — CTA fills (use navy text on it) */
  --gold-deep: #8A6A2E;      /* gold that passes AA as text on white */

  /* Text */
  --ink: #15252E;            /* primary text on light */
  --ink-soft: #51626B;       /* secondary text on light */
  --on-dark: #EEF3F6;        /* primary text on navy */
  --on-dark-soft: #B4C5CF;   /* secondary text on navy */

  /* Lines */
  --rule: rgba(10,42,60,.12);
  --rule-strong: rgba(10,42,60,.20);
  --rule-on-dark: rgba(255,255,255,.16);

  /* Type */
  --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  /* Layout */
  --maxw: 1200px;
  --gut: clamp(20px, 4vw, 56px);
  --bar-h: 68px;
  --radius: 14px;
  --shadow: 0 18px 50px -22px rgba(6,32,45,.45);
}

/* =========================================================
   RESET / BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
a { color: var(--navy); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 800; margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap{ width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section{ padding-block: clamp(56px, 8vw, 104px); }
.eyebrow{
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-deep); margin: 0 0 14px;
}
.eyebrow.on-dark{ color: var(--gold); }
.section-head{ max-width: 640px; margin: 0 0 clamp(28px,4vw,48px); }
.section-head h2{ font-size: clamp(28px, 4.2vw, 44px); }
.section-head p{ color: var(--ink-soft); font-size: clamp(16px,1.7vw,19px); margin-top: 14px; }

.visually-hidden{
  position:absolute!important; width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 17px; line-height: 1; text-decoration: none;
  padding: 16px 26px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .12s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }
.btn .ic{ width: 19px; height: 19px; flex: none; }

/* Primary = CALL. Gold fill, navy text. High visibility on both light + dark. */
.btn-call{ background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-call:hover{ background: #d3ab5d; border-color: #d3ab5d; color: var(--navy); }

/* Secondary = form / scroll. Ghost styles, context-aware. */
.btn-ghost{ background: transparent; color: var(--navy); border-color: var(--rule-strong); }
.btn-ghost:hover{ border-color: var(--navy); background: var(--navy); color: #fff; }
.btn-ghost.on-dark{ color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost.on-dark:hover{ background: #fff; color: var(--navy); border-color:#fff; }

.btn-solid{ background: var(--navy); color:#fff; border-color: var(--navy); }
.btn-solid:hover{ background: var(--navy-soft); border-color: var(--navy-soft); }

.btn-sm{ padding: 11px 18px; font-size: 15px; }

/* =========================================================
   STICKY BRAND BAR (no nav links — logo + call only)
   ========================================================= */
.lp-bar{
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.lp-bar .wrap{ display: flex; align-items: center; justify-content: space-between; height: var(--bar-h); gap: 16px; }
.lp-bar__brand{ display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.lp-bar__brand img{ height: 44px; width: 44px; }
.lp-bar__name{ font-weight: 800; font-size: 17px; letter-spacing: -.01em; line-height: 1.05; }
.lp-bar__name span{ display:block; font-weight: 600; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); }
.lp-bar__cta{ display:flex; align-items:center; gap: 12px; }
.lp-bar__phone{ font-weight: 800; font-size: 18px; color: var(--navy); text-decoration: none; }
.lp-bar__phone:hover{ color: var(--gold-deep); }

/* =========================================================
   HERO
   ========================================================= */
.hero{ position: relative; isolation: isolate; color: #fff; overflow: hidden; }
.hero__bg{ position: absolute; inset: 0; z-index: -2; }
.hero__bg picture{ display: block; width: 100%; height: 100%; }
.hero__bg img{ display: block; width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after{
  content:""; position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(6,32,45,.78) 0%, rgba(6,32,45,.55) 45%, rgba(6,32,45,.72) 100%),
    linear-gradient(90deg, rgba(6,32,45,.65) 0%, rgba(6,32,45,.15) 75%);
}
.hero__inner{ padding-block: clamp(56px, 11vw, 132px); max-width: 760px; }
.hero h1{ font-size: clamp(34px, 6vw, 60px); color:#fff; }
.hero__lede{ font-size: clamp(17px, 2.2vw, 22px); color: var(--on-dark); margin-top: 20px; max-width: 600px; }
.hero__cta{ display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; align-items: center; }
.hero__cta .btn-call{ font-size: 19px; padding: 18px 30px; }
.hero__subnote{ margin-top: 14px; font-size: 14px; color: var(--on-dark-soft); }
.hero__trust{
  display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px;
  padding-top: 26px; border-top: 1px solid var(--rule-on-dark);
  list-style: none; padding-left: 0;
}
.hero__trust li{ display:flex; align-items:center; gap: 9px; font-weight: 600; font-size: 15px; color: var(--on-dark); }
.hero__trust .ic{ width: 18px; height: 18px; color: var(--gold); flex:none; }
.hero__areas{ margin-top: 18px; font-size: 14px; line-height: 1.7; color: var(--on-dark-soft); max-width: 640px; }

/* =========================================================
   SERVICES
   ========================================================= */
.svc-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 26px); }
.svc{
  background: var(--bg); border: 1px solid var(--rule); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.svc:hover{ transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.svc__img{ aspect-ratio: 3 / 2; flex: 0 0 auto; min-height: 0; }
.svc__img picture{ display:block; width:100%; height:100%; }
.svc__img img{ display:block; width:100%; height:100%; object-fit: cover; }
.svc__body{ padding: 20px 22px 24px; flex: 1 1 auto; }
.svc__body h3{ font-size: 21px; }
.svc__body p{ color: var(--ink-soft); font-size: 15.5px; margin-top: 8px; }
.svc-note{
  margin-top: clamp(24px,3vw,34px); text-align: center; color: var(--ink-soft); font-size: 16px;
}
.svc-note strong{ color: var(--ink); font-weight: 700; }

/* =========================================================
   WHY (navy band)
   ========================================================= */
.why{ background: var(--navy); color: var(--on-dark); }
.why .section-head h2{ color:#fff; }
.why .section-head p{ color: var(--on-dark); }
.why-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap: clamp(18px,2.5vw,30px); }
.why-card .ic-badge{
  width: 50px; height: 50px; border-radius: 12px; display:grid; place-items:center;
  background: rgba(194,154,78,.16); color: var(--gold); margin-bottom: 14px;
}
.why-card .ic-badge svg{ width: 26px; height: 26px; }
.why-card h3{ color:#fff; font-size: 19px; }
.why-card p{ color: var(--on-dark-soft); font-size: 15px; margin-top: 8px; }

/* =========================================================
   TEAM
   ========================================================= */
.team{ background: var(--surface); }
.team__grid{ display:grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px,4vw,56px); align-items:center; }
.team__photo{ border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow); }
.team__photo img{ width:100%; height:100%; object-fit: cover; }
.team__body h2{ font-size: clamp(26px,3.6vw,40px); }
.team__body p{ color: var(--ink-soft); font-size: 17px; margin-top: 16px; }
.scripture{
  margin-top: 22px; padding-left: 18px; border-left: 3px solid var(--gold);
  font-style: italic; color: var(--ink); font-size: 16px;
}
.team__body .btn{ margin-top: 26px; }

/* =========================================================
   REVIEW (pull quote)
   ========================================================= */
.review{ text-align:center; }
.review .stars{ color: var(--gold); letter-spacing: 4px; font-size: 22px; }
.review blockquote{
  margin: 18px auto 0; max-width: 760px; font-size: clamp(22px,3vw,32px);
  font-weight: 700; letter-spacing: -.01em; line-height: 1.3; color: var(--ink);
}
.review cite{ display:block; margin-top: 22px; font-style: normal; font-weight: 600; color: var(--ink-soft); }
.review__sub{ margin-top: 26px; color: var(--ink-soft); font-size: 15px; }

/* =========================================================
   HOW IT WORKS
   ========================================================= */
.how{ background: var(--surface); }
.steps{ display:grid; grid-template-columns: repeat(3,1fr); gap: clamp(18px,3vw,34px); }
.step{ position: relative; padding-top: 8px; }
.step__n{
  font-weight: 800; font-size: 18px; width: 44px; height: 44px; border-radius: 50%;
  display:grid; place-items:center; background: var(--navy); color:#fff; margin-bottom: 16px;
}
.step h3{ font-size: 20px; }
.step p{ color: var(--ink-soft); margin-top: 8px; font-size: 15.5px; }

/* =========================================================
   ESTIMATE / CTA + FORM
   ========================================================= */
.estimate{ background: var(--navy); color: var(--on-dark); scroll-margin-top: var(--bar-h); }
.estimate__grid{ display:grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,4vw,60px); align-items:center; }
.estimate__pitch .eyebrow{ color: var(--gold); }
.estimate__pitch h2{ color:#fff; font-size: clamp(28px,4vw,42px); }
.estimate__pitch p{ color: var(--on-dark); font-size: 17px; margin-top: 16px; }
.estimate__call{
  display:flex; flex-wrap:wrap; align-items:center; gap: 14px 20px; margin-top: 28px;
}
.estimate__callnum{ font-size: clamp(24px,3vw,34px); font-weight:800; color:#fff; text-decoration:none; letter-spacing:-.01em; }
.estimate__callnum:hover{ color: var(--gold); }
.estimate__meta{ margin-top: 26px; display:flex; flex-wrap:wrap; gap: 8px 24px; list-style:none; padding:0; }
.estimate__meta li{ display:flex; gap:8px; align-items:center; font-size:14px; color: var(--on-dark-soft); }
.estimate__meta .ic{ width:16px; height:16px; color: var(--gold); flex:none; }

/* Form card (mock GHL — replace inner with real embed later) */
.form-card{ background:#fff; color: var(--ink); border-radius: var(--radius); padding: clamp(22px,3vw,34px); box-shadow: var(--shadow); scroll-margin-top: calc(var(--bar-h) + 16px); }
.form-card__head{ font-size: 21px; font-weight: 800; color: var(--navy); }
.form-card__sub{ font-size: 14px; color: var(--ink-soft); margin-top: 6px; margin-bottom: 18px; }
/* GoHighLevel form iframe. The iframe is transparent; .form-card supplies the
   white card chrome. min-height is only a pre-load floor to prevent layout
   jump — form_embed.js sets the real height after init. Do NOT raise it to
   "match" the form; an oversized floor leaves dead whitespace under Submit. */
.qf-embed iframe{ display:block; width:100%; min-height:320px; border:0; background:transparent; border-radius:3px; }

/* =========================================================
   FOOTER (no nav links; only external privacy link)
   ========================================================= */
.foot{ background: var(--navy-deep); color: var(--on-dark-soft); padding-block: clamp(40px,5vw,60px); }
.foot__grid{ display:flex; flex-wrap:wrap; justify-content:space-between; gap: 28px; align-items:flex-start; }
.foot__brand{ display:flex; align-items:center; gap: 14px; }
.foot__brand img{ height: 56px; width: 56px; }
.foot__brand .nm{ font-weight:800; font-size: 18px; color:#fff; line-height:1.1; }
.foot__brand .tag{ font-size: 13px; color: var(--gold); margin-top: 4px; }
.foot__col{ font-size: 14px; line-height: 1.9; }
.foot__col h3{ font-size: 13px; letter-spacing:.1em; text-transform:uppercase; color: var(--on-dark-soft); font-weight:700; margin-bottom: 8px; }
.foot__col a{ color: #fff; text-decoration: none; }
.foot__col a:hover{ color: var(--gold); }
.foot__bottom{ margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--rule-on-dark); display:flex; flex-wrap:wrap; gap: 8px 20px; justify-content:space-between; font-size: 13px; }
.foot__bottom a{ color: var(--on-dark-soft); text-decoration: underline; }
.foot__bottom a:hover{ color:#fff; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px){
  .svc-grid{ grid-template-columns: repeat(2,1fr); }
  .why-grid{ grid-template-columns: repeat(2,1fr); }
  .team__grid{ grid-template-columns: 1fr; }
  .estimate__grid{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr; }

  /* Icon/number beside the text instead of on top */
  .why-card{ display:grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items:start; }
  .why-card .ic-badge{ grid-column: 1; grid-row: 1 / 3; margin-bottom: 0; }
  .why-card h3, .why-card p{ grid-column: 2; }

  .step{ display:grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items:start; }
  .step__n{ grid-column: 1; grid-row: 1 / 3; margin-bottom: 0; }
  .step h3, .step p{ grid-column: 2; }
}
@media (max-width: 620px){
  .lp-bar__name{ display:none; }
  .lp-bar__phone{ display:none; }            /* keep the button, drop the long number */
  .svc-grid{ grid-template-columns: 1fr; }
  .why-grid{ grid-template-columns: 1fr; }
  .hero__cta{ gap: 12px; }
  .hero__cta .btn{ width: 100%; }
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .svc, .btn{ transition: none; }
}
