/* Coastal Peak Elite Services — website
   Flat, hairline-driven design. No gradients, no shadows. */

:root {
  --navy: #0D1B2A;
  --navy-2: #13263A;
  --navy-line: rgba(245, 245, 245, 0.14);
  --gold: #D4AF37;
  --gold-dim: rgba(212, 175, 55, 0.45);
  --ivory: #F5F5F5;
  --ink: #0D1B2A;
  --ink-soft: #4A5663;
  --line: #D9DCDF;
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Jost", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 88px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); background: var(--ivory); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--gold); color: var(--navy); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

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

/* ---------- Type ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 24px;
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--gold); flex: none; }
.eyebrow--light { color: rgba(245, 245, 245, 0.7); }
.display {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(42px, 6.4vw, 80px); line-height: 1.04; letter-spacing: -0.005em;
  max-width: 17ch;
}
.h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 4.8vw, 56px); line-height: 1.08; max-width: 18ch; }
.h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.2; }
.lead { font-size: 17px; color: var(--ink-soft); max-width: 52ch; margin-top: 20px; }
.lead--light { color: rgba(245, 245, 245, 0.72); }
.num { font-family: var(--serif); font-size: 18px; color: var(--gold); display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 2px;
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: #E0BE4F; }
.btn--line { border: 1px solid var(--gold-dim); color: var(--ivory); }
.btn--line:hover { border-color: var(--gold); background: var(--navy-2); }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  height: var(--header-h);
  background: var(--navy); color: var(--ivory);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.header.is-scrolled { border-bottom-color: var(--navy-line); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.header__logo img { height: 60px; width: auto; }
.nav { display: flex; gap: 34px; margin-left: auto; }
.nav a { font-size: 12.5px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(245, 245, 245, 0.78); padding: 6px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.nav a:hover { color: var(--ivory); border-bottom-color: var(--gold); }
.header__call { min-height: 44px; padding: 0 18px; }
.menu { display: none; width: 44px; height: 44px; position: relative; margin-left: auto; }
.menu span { position: absolute; left: 11px; right: 11px; height: 1px; background: var(--ivory); transition: transform .25s ease, top .25s ease; }
.menu span:first-child { top: 18px; }
.menu span:last-child { top: 25px; }

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .header__logo img { height: 40px; }
  .header__call { display: none; }
  .menu { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; margin: 0;
    background: var(--navy); flex-direction: column; gap: 0;
    padding: 24px var(--gutter);
    border-top: 1px solid var(--navy-line);
    opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s;
  }
  .nav a { font-family: var(--serif); text-transform: none; letter-spacing: 0; font-size: 34px; color: var(--ivory); padding: 16px 0; border-bottom: 1px solid var(--navy-line); }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-open .menu span:first-child { top: 21px; transform: rotate(45deg); }
  .menu-open .menu span:last-child { top: 21px; transform: rotate(-45deg); }
  .menu-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: var(--ivory); padding: calc(var(--header-h) + clamp(56px, 10vw, 120px)) 0 0; }
.hero__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; }
.hero__text { font-size: 18px; color: rgba(245, 245, 245, 0.74); max-width: 50ch; margin-top: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.creds { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 36px; }
.creds li { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: 0.08em; color: rgba(245, 245, 245, 0.82); }
.creds li::before { content: ""; width: 14px; height: 8px; border-left: 1px solid var(--gold); border-bottom: 1px solid var(--gold); transform: rotate(-45deg) translateY(-2px); flex: none; }
.hero__art { display: flex; justify-content: flex-end; }
.hero__frame {
  width: min(100%, 400px); aspect-ratio: 4 / 5;
  border: 1px solid var(--navy-line); position: relative;
  display: grid; place-items: center;
}
.hero__frame::before { content: ""; position: absolute; inset: 14px; border: 1px solid var(--gold-dim); }
.hero__frame img { width: 52%; opacity: 0.95; }

.audiences {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(64px, 9vw, 112px);
  border-top: 1px solid var(--navy-line);
}
.audiences li {
  padding: 26px 0 30px; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(245, 245, 245, 0.8); display: flex; align-items: center; gap: 12px;
}
.audiences li::before { content: ""; width: 5px; height: 5px; background: var(--gold); flex: none; }
@media (max-width: 1180px) { .audiences { grid-template-columns: 1fr 1fr; } .audiences li { padding: 20px 0; } }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { display: none; }
  .audiences { grid-template-columns: 1fr 1fr; }
  .audiences li { padding: 20px 0; }
}
@media (max-width: 520px) {
  .hero__actions .btn { width: 100%; }
  .audiences li { font-size: 10.5px; letter-spacing: 0.16em; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section--navy { background: var(--navy); color: var(--ivory); }
.section--rule { border-top: 1px solid var(--line); }
.section__head { display: grid; grid-template-columns: 1fr; margin-bottom: clamp(40px, 6vw, 72px); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.split .btn { margin-top: 36px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
@media (max-width: 1100px) { .split--contact { grid-template-columns: 1fr; } .split--contact .form { max-width: 640px; } }

/* Services */
.services { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.service { padding: 32px 28px 8px 0; }
.service + .service { padding-left: 28px; border-left: 1px solid var(--line); }
.service .h3 { margin: 18px 0 12px; }
.service p { color: var(--ink-soft); font-size: 15.5px; }
@media (max-width: 1180px) {
  .services { grid-template-columns: 1fr 1fr; }
  .service:nth-child(3) { padding-left: 0; border-left: 0; }
  .service:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 32px; }
}
@media (max-width: 600px) {
  .services { grid-template-columns: 1fr; }
  .service, .service + .service { padding: 28px 0; border-left: 0; margin-top: 0; }
  .service + .service { border-top: 1px solid var(--line); }
}

/* Builder steps */
.steps { list-style: none; border-top: 1px solid var(--navy-line); }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 28px 0; border-bottom: 1px solid var(--navy-line); }
.step .num { padding-top: 4px; }
.step p { color: rgba(245, 245, 245, 0.7); font-size: 15.5px; margin-top: 6px; }

/* Why */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.why__item { padding: 32px 32px 0 0; }
.why__item + .why__item { padding-left: 32px; border-left: 1px solid var(--line); }
.why__item .h3::after { content: ""; display: block; width: 28px; height: 1px; background: var(--gold); margin: 18px 0; }
.why__item p { color: var(--ink-soft); font-size: 15.5px; }
@media (max-width: 800px) {
  .why { grid-template-columns: 1fr; }
  .why__item, .why__item + .why__item { padding: 28px 0; border-left: 0; }
  .why__item + .why__item { border-top: 1px solid var(--line); }
}

/* Area */
.areas { list-style: none; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.areas li { padding: 22px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 24px; }
.areas li:nth-child(odd) { padding-right: 20px; }
.areas li:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
.area-note { margin-top: 20px; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ink-soft); }
@media (max-width: 420px) { .areas li { font-size: 20px; } }

/* Contact */
.contact-list { list-style: none; margin-top: 40px; border-top: 1px solid var(--navy-line); }
.contact-list li { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--navy-line); align-items: baseline; }
.contact-list__label { font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: rgba(245, 245, 245, 0.55); }
.contact-list a { font-size: 17px; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; }
@media (max-width: 480px) { .contact-list li { grid-template-columns: 1fr; gap: 4px; } }

.form { background: var(--ivory); color: var(--ink); padding: clamp(24px, 4vw, 40px); border-radius: 2px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 2px; padding: 12px 14px;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A5663' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 40px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); }
.form .btn { margin-top: 8px; }
.form__error { color: #9B2C2C; font-size: 14px; margin-bottom: 8px; }
.form__note { font-size: 13px; color: var(--ink-soft); margin-top: 12px; text-align: center; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: var(--ivory); border-top: 1px solid var(--navy-line); padding: 64px 0 calc(40px + env(safe-area-inset-bottom)); }
.footer__inner { display: grid; justify-items: center; text-align: center; gap: 18px; }
.footer__logo { width: 200px; }
.footer__tag { font-family: var(--serif); font-style: italic; font-size: 20px; color: rgba(245, 245, 245, 0.8); }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; font-size: 14px; color: rgba(245, 245, 245, 0.75); margin-top: 8px; }
.footer__links a:hover { color: var(--gold); }
.footer__note { font-size: 11.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.footer__legal { font-size: 12px; letter-spacing: 0.06em; color: rgba(245, 245, 245, 0.5); margin-top: 18px; }

/* ---------- Mobile call bar ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  display: none; grid-template-columns: 1fr 1fr;
  background: var(--navy); border-top: 1px solid var(--gold-dim);
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(110%); transition: transform .3s ease;
}
.callbar a { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; color: var(--ivory); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; }
.callbar a:first-child { background: var(--gold); color: var(--navy); }
.callbar svg { width: 16px; height: 16px; }
.callbar.is-visible { transform: translateY(0); }
@media (max-width: 900px) { .callbar { display: grid; } .footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
