/* =========================================================
   Table Rock Boat Lift Repair — site styles
   Plain CSS, no build step. Edit freely.
   Brand color and font are driven by CSS variables below so
   a single change re-themes the whole site.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@600;700;800&display=swap');

:root {
  /* --- brand (matched to the logo: navy + gold sun + teal wave) --- */
  --brand:        #f0a92c;   /* logo gold — accents, hero pill, gold CTA, footer band */
  --brand-dark:   #cf8c15;   /* darker gold for hovers on gold surfaces */
  --brand-ink:    #8a6410;   /* gold dark enough for text on white (AA) */

  --teal:         #1d94b8;   /* logo teal — kickers, links, icons */
  --teal-ink:     #0d6f8d;   /* teal dark enough for text/links on white (AA) */

  --navy:         #123258;   /* logo navy — primary buttons, footer, dark bands */
  --navy-600:     #1c4676;   /* lifted navy for hovers */
  --navy-900:     #0c2340;

  --ink:          #14232f;   /* headings / strong text */
  --ink-soft:     #4b5b68;   /* body copy */
  --line:         #e3e8ee;   /* hairlines / borders */
  --bg:           #ffffff;
  --bg-alt:       #f4f7fa;   /* alternating section background */
  --bg-sand:      #faf6ef;   /* warm tinted section background */

  --max:          1160px;    /* content max width */
  --radius:       14px;
  --radius-sm:    9px;
  --shadow:       0 1px 2px rgba(18,50,88,.06), 0 12px 30px rgba(18,50,88,.08);
  --shadow-lg:    0 20px 50px rgba(18,50,88,.16);

  --font-head: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink-soft);
  line-height: 1.65;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.14; color: var(--ink); letter-spacing: -.02em; }
h1 { font-size: clamp(2.15rem, 5.2vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; margin-bottom: .5em; }
h3 { font-size: 1.18rem; font-weight: 600; margin-bottom: .35em; color: var(--ink); }
h4 { font-size: 1rem; font-weight: 600; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
strong { color: var(--ink); font-weight: 600; }
a  { color: var(--teal-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* section kicker / eyebrow */
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  text-transform: uppercase; letter-spacing: .12em; font-size: .78rem;
  font-weight: 700; color: var(--teal-ink); margin-bottom: 14px;
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--teal); display: inline-block; }
.center .kicker::before { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--navy);
  color: #fff;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-family: var(--font-body);
  font-size: .98rem;
  border: 2px solid var(--navy);
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease, border-color .14s ease;
  box-shadow: 0 8px 20px rgba(18,50,88,.18);
}
.btn:hover { background: var(--navy-600); border-color: var(--navy-600); text-decoration: none; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(18,50,88,.26); color: #fff; }
.btn--lg { padding: 17px 34px; font-size: 1.05rem; }
.btn--gold { background: var(--brand); border-color: var(--brand); color: var(--navy-900); box-shadow: 0 10px 24px rgba(240,169,44,.4); }
.btn--gold:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: var(--navy-900); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); box-shadow: none; }
.btn--ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn--block { width: 100%; }

.muted { color: var(--ink-soft); font-size: .9rem; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(18,50,88,.1); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 12px 20px; max-width: var(--max); margin: 0 auto;
}
.nav__logo { display: flex; align-items: center; line-height: 1.1; color: var(--ink); }
.nav__logo:hover { text-decoration: none; }
.nav__logo img { height: 60px; width: auto; display: block; }
@media (max-width: 960px) { .nav__logo img { height: 46px; } }

.nav__links { display: flex; align-items: center; gap: 20px; list-style: none; }
.nav__links > li > a { color: var(--ink); font-weight: 500; font-size: .95rem; }
.nav__links > li > a:hover { color: var(--teal-ink); text-decoration: none; }

.nav__cta {
  background: var(--brand); color: var(--navy-900) !important; font-weight: 700 !important;
  padding: 10px 16px; border-radius: var(--radius-sm);
}
.nav__cta:hover { background: var(--brand-dark); text-decoration: none; }

.nav__call {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy); color: #fff !important;
  padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700; font-size: .95rem;
}
.nav__call:hover { background: var(--navy-600); text-decoration: none; }
.nav__call-ico { font-size: 1rem; }

/* dropdown for services */
.has-dropdown { position: relative; }
.dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  min-width: 250px; padding: 8px 0; box-shadow: var(--shadow-lg);
}
.has-dropdown::after {
  content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 14px; display: none;
}
.has-dropdown:hover::after { display: block; }
.has-dropdown:hover .dropdown { display: block; }
.dropdown li { list-style: none; }
.dropdown a { display: block; padding: 9px 18px; font-size: .92rem; color: var(--ink); }
.dropdown a:hover { background: var(--bg-alt); text-decoration: none; color: var(--teal-ink); }

/* mobile nav toggle */
.nav__toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); line-height: 1; }
@media (max-width: 960px) {
  .nav__links { display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px 20px 16px;
    box-shadow: var(--shadow-lg); }
  .nav__links.open { display: flex; }
  .nav__links li { width: 100%; padding: 7px 0; border-bottom: 1px solid var(--line); }
  .nav__links li:last-child { border-bottom: 0; }
  .dropdown { position: static; display: block; box-shadow: none; border: 0; padding: 4px 0 4px 14px; min-width: 0; }
  .nav__toggle { display: block; }
  .nav__cta, .nav__call { display: block; text-align: center; margin-top: 8px; }
}

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, rgba(10,32,54,.9) 0%, rgba(10,32,54,.72) 45%, rgba(10,32,54,.4) 100%);
}
.hero__inner { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; padding: 96px 20px 90px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  text-transform: uppercase; letter-spacing: .13em; font-size: .8rem; font-weight: 700;
  color: #fff; background: rgba(240,169,44,.22); border: 1px solid rgba(240,169,44,.5);
  padding: 7px 14px; border-radius: 999px;
}
.hero h1 { color: #fff; margin: 20px 0 16px; max-width: 20ch; }
.hero p { color: rgba(255,255,255,.92); font-size: 1.18rem; max-width: 48ch; }
.hero__cta { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* hero trust chips (after .hero__cta) */
.hero__trust {
  margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.2);
  display: flex; flex-wrap: wrap; gap: 10px 22px;
}
.hero__trust span { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 500; color: rgba(255,255,255,.92); }
.hero__trust span::before { content: "\2713"; color: var(--brand); font-weight: 800; }

/* ---------- trust strip (injected below hero) ---------- */
.trust-strip { background: var(--navy); color: #fff; }
.trust-strip__inner {
  max-width: var(--max); margin: 0 auto; padding: 18px 20px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 24px;
}
.trust-strip__item { display: flex; align-items: center; gap: 11px; font-size: .92rem; font-weight: 500; color: rgba(255,255,255,.9); }
.trust-strip__item svg { flex: none; width: 22px; height: 22px; stroke: var(--brand); }
@media (max-width: 820px) { .trust-strip__inner { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .trust-strip__inner { grid-template-columns: 1fr; } }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
/* pages with no hero: soften the gap under the sticky header */
.site-header + .section, .site-header + .section--alt { padding-top: 44px; background: linear-gradient(180deg, var(--bg-alt), var(--bg) 160px); }
.section--tight { padding: 44px 0; }
.section--alt { background: var(--bg-alt); }
.section--sand { background: var(--bg-sand); }
.section--dark { background: var(--navy); color: rgba(255,255,255,.82); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark .kicker { color: var(--brand); }
.section--dark .kicker::before { background: var(--brand); }
.section__lead { max-width: 66ch; font-size: 1.06rem; }
.center { text-align: center; }
.center .section__lead { margin-left: auto; margin-right: auto; }
.center .kicker { justify-content: center; }

/* two-column split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.split--form { grid-template-columns: 1fr 1.05fr; align-items: start; }
@media (max-width: 860px) { .split, .split--form { grid-template-columns: 1fr; gap: 32px; } }

.media-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.media-frame img { width: 100%; }

/* ---------- grids / cards ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #d9e0e8; }
.card h3 { margin-bottom: .4em; }
.card__ico {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-sand); border: 1px solid #ecdcc2;
}
.card__ico svg { width: 24px; height: 24px; stroke: var(--teal-ink); fill: none; }
.card--link { display: block; color: inherit; }
.card--link:hover { text-decoration: none; }
.card--link .more { color: var(--teal-ink); font-weight: 600; font-size: .92rem; display: inline-flex; gap: 6px; margin-top: 12px; }
.card--link:hover .more { gap: 10px; }

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 8px; }
.steps--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 820px) { .steps, .steps--4 { grid-template-columns: 1fr; } }
.step {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 24px 24px; box-shadow: var(--shadow);
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -18px; left: 24px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
  box-shadow: 0 8px 18px rgba(18,50,88,.28);
}
.step h3 { margin-top: 8px; }

/* ---------- stats ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 820px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; padding: 20px 14px; }
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: 2.1rem; color: #fff; line-height: 1; }
.stat__label { margin-top: 8px; font-size: .92rem; color: rgba(255,255,255,.78); }

/* ---------- testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 8px; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }
.quote {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px;
}
.quote__stars { color: var(--brand); letter-spacing: 2px; font-size: 1rem; }
.quote p { font-size: 1rem; color: var(--ink); }
.quote__who { margin-top: auto; font-size: .9rem; color: var(--ink-soft); }
.quote__who strong { display: block; color: var(--ink); }

/* ---------- service / area link list ---------- */
.linklist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; list-style: none; }
@media (max-width: 800px) { .linklist { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .linklist { grid-template-columns: 1fr; } }
.linklist a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 15px 18px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: #fff; color: var(--ink); font-weight: 600;
  box-shadow: var(--shadow); transition: transform .14s ease, border-color .14s ease, color .14s ease;
}
.linklist a::after { content: "\2192"; color: var(--teal-ink); transition: transform .14s ease; }
.linklist a:hover { border-color: var(--teal); color: var(--teal-ink); text-decoration: none; transform: translateY(-2px); }
.linklist a:hover::after { transform: translateX(4px); }

/* ---------- cost table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: .96rem; }
th { background: var(--navy); font-family: var(--font-body); font-weight: 600; color: #fff; letter-spacing: .01em; }
td { color: var(--ink-soft); }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--bg-alt); }

/* ---------- FAQ ---------- */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 2px 22px; margin-bottom: 12px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 600; font-family: var(--font-head); font-size: 1.05rem; color: var(--ink); padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal-ink); font-size: 1.5rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2013"; }
.faq details > p { padding-bottom: 18px; margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; background: var(--navy); color: #fff; text-align: center; padding: 66px 20px; isolation: isolate; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background: radial-gradient(600px 200px at 50% 0%, rgba(240,169,44,.5), transparent 70%);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.88); max-width: 52ch; margin-left: auto; margin-right: auto; }
.cta-band .hero__cta { justify-content: center; }

/* ---------- estimate / contact form ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-lg); }
.form-card__head { margin-bottom: 20px; }
.form-card__head h2 { font-size: 1.4rem; margin-bottom: 6px; }
.form-card__head p { font-size: .93rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid #ccd6de; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: #fff;
  transition: border-color .14s ease, box-shadow .14s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(240,169,44,.25);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-note { margin-top: 12px; font-size: .82rem; color: var(--ink-soft); text-align: center; }

/* ---------- footer ---------- */
.footer-cta {
  background: var(--brand);
  color: var(--navy-900);
  text-align: center; padding: 40px 20px;
}
.footer-cta h2 { color: var(--navy-900); font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 8px; }
.footer-cta p { color: rgba(14,32,54,.8); margin-bottom: 20px; }
.footer-cta .btn { background: var(--navy); border-color: var(--navy); color: #fff; }
.footer-cta .btn:hover { background: var(--navy-900); border-color: var(--navy-900); }

.site-footer { background: var(--navy-900); color: rgba(255,255,255,.72); padding: 58px 0 28px; }
.footer-logo { height: 74px; width: auto; margin-bottom: 16px; border-radius: 8px; }
.site-footer h4 { color: #fff; margin-bottom: 14px; font-family: var(--font-body); font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.1fr; gap: 32px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer p { color: rgba(255,255,255,.72); }
.site-footer a { color: rgba(255,255,255,.72); font-size: .93rem; }
.site-footer a:hover { color: #fff; }
.footer-phone { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: #fff !important; margin-bottom: 6px; }
.footer-phone:hover { text-decoration: none; color: var(--brand) !important; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 42px; padding-top: 20px; font-size: .85rem; color: rgba(255,255,255,.5); }

/* ---------- article pages (about, FAQ, how-this-works, legal) ---------- */
.article { max-width: 820px; }
.article h1 { margin-bottom: 14px; }
.article h2 { margin-top: 42px; }
.article h3 { margin-top: 26px; }
.article p, .article li { color: var(--ink-soft); }
.article ul, .article ol { margin: 0 0 1rem 1.3em; }
.article li { margin-bottom: .45rem; }
.article__lead { font-size: 1.1rem; }
.article__date { margin-top: 4px; font-size: .85rem; }
.faq-page h2 { font-size: 1.35rem; margin-top: 34px; }

.contact-list { list-style: none; margin: 22px 0; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }

.team-grid { margin-top: 24px; }
.team-card .avatar { width: 58px; height: 58px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-head); margin-bottom: 14px; }
.team-card .role { color: var(--teal-ink); font-weight: 600; font-size: .9rem; margin-bottom: 8px; }

/* phone link — class is a stable hook for WhatConverts dynamic number insertion */
.wc-phone { font-weight: 700; white-space: nowrap; }

/* ---------- mobile sticky call bar (injected by main.js) ---------- */
.mcta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.97); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(18,50,88,.12);
}
.mcta a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 10px; border-radius: var(--radius-sm); font-weight: 700; font-size: .95rem;
  text-decoration: none;
}
.mcta__call { background: var(--navy); color: #fff; }
.mcta__quote { background: var(--brand); color: var(--navy-900); }
@media (max-width: 720px) {
  .mcta { display: grid; }
  body { padding-bottom: 76px; }
}

/* ---------- utilities ---------- */
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
