/* ═══════════════════════════════════════════════════════
   Coastal Construction — buildcarmel.com
   ═══════════════════════════════════════════════════════ */

:root {
  --ink:        #14212a;
  --ink-soft:   #2c3f4b;
  --sea:        #2f6b7d;
  --sea-deep:   #1d4b59;
  --sand:       #c8a86b;
  --sand-pale:  #efe6d6;
  --paper:      #fbf9f6;
  --paper-alt:  #f3efe8;
  --line:       #e0d8cc;
  --body:       #4a5560;
  --white:      #ffffff;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1140px;
  --r: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin-bottom: .4em; }
h3 { font-size: 1.22rem; }

p { margin: 0 0 1.1em; }

a { color: var(--sea); }

.skip {
  position: absolute;
  width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
  background: var(--ink); color: #fff; padding: 12px 20px; z-index: 100;
}
.skip:focus {
  width: auto; height: auto; overflow: visible;
  clip-path: none; left: 12px; top: 12px;
}

/* ── Eyebrow ─────────────────────────────────────────── */
.eyebrow {
  font-size: .74rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--sand);
  margin: 0 0 1.1em;
}
.eyebrow-dark { color: var(--sea); }

/* ── Header ──────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,249,246,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 76px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
}
.brand-mark { width: 38px; height: 38px; color: var(--sea); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--serif); font-weight: 600;
  font-size: 1.22rem; color: var(--ink); letter-spacing: -0.01em;
}
.brand-sub {
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--sand); font-weight: 600;
}

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a {
  text-decoration: none; color: var(--ink-soft);
  font-size: .93rem; font-weight: 500; white-space: nowrap;
}
.site-nav a:hover { color: var(--sea); }
.nav-cta {
  background: var(--ink); color: #fff !important;
  padding: 10px 20px; border-radius: var(--r);
}
.nav-cta:hover { background: var(--sea-deep); }

.nav-toggle { display: none; }
.nav-button { display: none; }

/* ── Hero ────────────────────────────────────────────── */
.hero {
  position: relative;
  color: #fff;
  padding: clamp(96px, 16vw, 186px) 0 clamp(84px, 13vw, 140px);
  overflow: hidden;
  background-color: var(--ink);
  background-image:
    linear-gradient(105deg, rgba(12,22,29,.92) 0%, rgba(16,40,50,.80) 46%, rgba(20,50,62,.52) 100%),
    url("img/hero-coast.jpg");
  background-size: cover;
  background-position: center 58%;
}
.hero-inner { position: relative; max-width: 780px; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--sand); }
.lede {
  font-size: clamp(1.04rem, 1.9vw, 1.2rem);
  color: rgba(255,255,255,.88);
  max-width: 60ch; margin-bottom: 2.1em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-block; text-decoration: none;
  padding: 15px 30px; border-radius: var(--r);
  font-weight: 600; font-size: .97rem; letter-spacing: .01em;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary { background: var(--sand); color: var(--ink); }
.btn-primary:hover { background: #d9bd85; }
.btn-ghost {
  border: 1.5px solid rgba(255,255,255,.55); color: #fff;
}
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-block { display: block; text-align: center; margin-top: 22px; }

/* ── Trust bar ───────────────────────────────────────── */
.trustbar { background: var(--ink); border-top: 1px solid rgba(255,255,255,.08); }
.trustbar-inner {
  display: flex; flex-wrap: wrap; gap: 14px 56px;
  padding-top: 24px; padding-bottom: 24px;
}
.trust-item { display: flex; flex-direction: column; }
.trust-label {
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.5); font-weight: 600;
}
.trust-value { color: #fff; font-weight: 600; font-size: 1.02rem; }
.trust-value a { color: #fff; text-decoration: none; }
.trust-value a:hover { color: var(--sand); }

.band {
  height: clamp(200px, 26vw, 330px);
  background-image:
    linear-gradient(rgba(20,33,42,.18), rgba(20,33,42,.18)),
    url("img/band-coast.jpg");
  background-size: cover;
  background-position: center 62%;
  background-attachment: scroll;
}

/* ── Emergency services ──────────────────────────────── */
.section-emergency {
  background: var(--sea-deep);
  background-image: linear-gradient(165deg, #1d4b59 0%, #17414e 60%, #12333e 100%);
}
.section-emergency h2 { color: #fff; }
.section-emergency .section-lede { color: rgba(255,255,255,.84); }

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }

.ecard {
  background: var(--white);
  border-radius: var(--r);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 14px 34px rgba(6,22,28,.22);
}
.ecard img {
  width: 100%; height: 190px; object-fit: cover; display: block;
  background: var(--paper-alt);
}
.ecard-body { padding: 28px 28px 32px; }
.ecard-tag {
  display: inline-block;
  font-size: .66rem; letter-spacing: .15em; text-transform: uppercase;
  font-weight: 600; color: var(--sea);
  background: var(--sand-pale);
  padding: 5px 10px; border-radius: 2px;
}
.ecard h3 { margin: .7em 0 .2em; font-size: 1.34rem; }
.ecard-lic {
  font-weight: 600; color: var(--ink); font-size: .88rem;
  margin: 0 0 1.2em; padding-bottom: 1em;
  border-bottom: 1px solid var(--line);
}

.ticks { list-style: none; padding: 0; margin: 0 0 1.3em; }
.ticks li {
  position: relative; padding-left: 27px; margin-bottom: .8em;
  font-size: .96rem; line-height: 1.6;
}
.ticks li:last-child { margin-bottom: 0; }
.ticks li::before {
  content: ""; position: absolute; left: 3px; top: .5em;
  width: 9px; height: 5px;
  border-left: 2.2px solid var(--sand); border-bottom: 2.2px solid var(--sand);
  transform: rotate(-45deg);
}
.ticks strong { color: var(--ink); }
.ecard-more {
  margin: 0; font-size: .92rem; color: #6f7a84;
  padding-top: 1.1em; border-top: 1px solid var(--line);
}
.ecard-more a { font-weight: 600; white-space: nowrap; }

.ecall {
  margin-top: 34px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r);
  padding: 24px 30px;
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 18px;
}
.ecall-label {
  display: block;
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--sand); font-weight: 600;
}
.ecall-num {
  font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.15rem);
  font-weight: 600; color: #fff; text-decoration: none; line-height: 1.2;
}
.ecall-num:hover { color: var(--sand); }

/* ── Sections ────────────────────────────────────────── */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-alt { background: var(--paper-alt); }
.section-lede {
  font-size: 1.08rem; max-width: 68ch; margin-bottom: 2.6em;
}
.section-dark { background: var(--ink); }
.section-dark h2 { color: #fff; }
.section-dark .section-lede { color: rgba(255,255,255,.82); }

/* ── Grid + cards ────────────────────────────────────── */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(285px, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.card:hover {
  border-color: var(--sand); transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(20,33,42,.10);
}
.card img {
  width: 100%; height: 208px; object-fit: cover; display: block;
  background: var(--paper-alt);
}
.card-body { padding: 26px 26px 30px; }
.card h3 { margin-bottom: .45em; }
.card p { margin: 0; font-size: .97rem; }

/* ── Team ────────────────────────────────────────────── */
.team-grid { align-items: stretch; }
.partner {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.partner img {
  width: 100%; height: 180px; object-fit: cover; display: block;
  background: var(--paper-alt);
}
.partner-body {
  padding: 26px 26px 30px;
  border-top: 3px solid var(--line);
}
.partner-lead .partner-body { border-top-color: var(--sand); }
.partner-role {
  font-size: .68rem; letter-spacing: .15em; text-transform: uppercase;
  font-weight: 600; color: var(--sea);
}
.partner h3 { margin: .55em 0 .15em; }
.partner-lic {
  font-family: var(--sans); font-weight: 600;
  color: var(--ink); font-size: .93rem;
  margin-bottom: 1em;
  padding-bottom: .9em; border-bottom: 1px solid var(--line);
}
.partner p:last-child { margin: 0; font-size: .96rem; }

.fineprint {
  margin-top: 30px; font-size: .88rem; color: #7d8791;
}

/* ── Steps ───────────────────────────────────────────── */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  counter-reset: step;
}
.steps li {
  border-top: 2px solid var(--sand);
  padding-top: 22px;
}
.step-num {
  font-family: var(--serif); font-size: .95rem;
  color: var(--sand); font-weight: 600; letter-spacing: .06em;
}
.steps h3 { margin: .35em 0 .4em; }
.steps p { margin: 0; font-size: .97rem; }

/* ── Service area ────────────────────────────────────── */
.area-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 12px 24px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.area-list li {
  color: rgba(255,255,255,.9);
  padding: 13px 0 13px 26px;
  border-bottom: 1px solid rgba(255,255,255,.13);
  position: relative;
  font-weight: 500;
}
.area-list li::before {
  content: ""; position: absolute; left: 2px; top: 50%;
  width: 8px; height: 8px; margin-top: -4px;
  border: 2px solid var(--sand); border-radius: 50%;
}

/* ── Contact ─────────────────────────────────────────── */
.contact-grid {
  display: grid; gap: 46px;
  grid-template-columns: 1fr minmax(300px, 400px);
  align-items: start;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--sand);
  border-radius: var(--r);
  padding: 34px 30px;
}
.contact-card dl { margin: 0; }
.contact-card dt {
  font-size: .68rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--sea); font-weight: 600; margin-top: 20px;
}
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd {
  margin: 4px 0 0; color: var(--ink); font-weight: 500;
}
.big-link {
  font-family: var(--serif); font-size: 1.28rem;
  color: var(--ink); text-decoration: none; font-weight: 600;
  word-break: break-word;
}
.big-link:hover { color: var(--sea); }

/* ── Footer ──────────────────────────────────────────── */
.site-footer {
  background: var(--ink); color: rgba(255,255,255,.72);
  padding: 56px 0 26px; font-size: .93rem;
}
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 34px;
  justify-content: space-between;
  padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.13);
}
.site-footer .brand-name { color: #fff; display: block; margin-bottom: .5em; }
.site-footer a { color: rgba(255,255,255,.88); }
.site-footer a:hover { color: var(--sand); }
.site-footer p { margin: 0 0 .5em; }
.footer-lic { max-width: 46ch; }
.footer-lic strong { color: #fff; }
.footer-legal { padding-top: 20px; }
.footer-legal p { margin: 0; font-size: .85rem; color: rgba(255,255,255,.5); }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 860px) {
  .nav-button {
    display: flex; flex-direction: column; justify-content: center;
    gap: 5px; width: 44px; height: 44px; cursor: pointer;
    border: 1px solid var(--line); border-radius: var(--r); padding: 0 10px;
  }
  .nav-button span {
    display: block; height: 2px; background: var(--ink); border-radius: 2px;
  }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
  }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { text-align: center; margin-top: 14px; border-bottom: 0; }
  .header-inner { position: relative; flex-wrap: wrap; }

  .contact-grid { grid-template-columns: 1fr; }
  .trustbar-inner { gap: 18px 36px; }
  .ecall { flex-direction: column; align-items: stretch; text-align: center; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .btn { display: block; text-align: center; }
  .hero-actions { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
}
