/* ============================================================
   Surf City Epoxy — Huntington Beach, CA
   Editorial one-pager. Motion: transform + opacity only.
   ============================================================ */

:root {
  /* Brand colors sampled from the real logo (#007EC7) and the
     marbled epoxy background artwork. */
  --paper:      #F4F2ED;
  --paper-2:    #EAE7E0;
  --ink:        #0B1220;
  --navy:       #0B1526;
  --navy-2:     #142033;
  --blue:       #007EC7;   /* logo blue — graphic use only */
  --blue-ink:   #00629E;   /* 5.8:1 on paper — safe for text */
  --blue-btn:   #0070B2;   /* white text on it = 5.3:1 */
  --blue-btn-h: #00629E;
  --blue-lite:  #6FC2F0;   /* 9.3:1 on navy */
  --muted:      #4F5A66;   /* 6.3:1 on paper */
  --muted-inv:  #A9B4C2;   /* 8.7:1 on navy */
  --rule:       rgba(11, 18, 32, .16);
  --rule-inv:   rgba(255, 255, 255, .18);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", "Arial Nova", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Palladio,
                Georgia, "Times New Roman", serif;

  /* Strong curves — the built-in CSS easings are too weak. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  --pad: 20px;
}

@media (min-width: 768px) { :root { --pad: 32px; } }
@media (min-width: 1200px) { :root { --pad: 40px; } }

/* ── Reset ──────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }

h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.032em; line-height: 1.04; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: var(--blue-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}
.cta :focus-visible,
.site-footer :focus-visible { outline-color: var(--blue-lite); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { left: 12px; top: 12px; }

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

.eyebrow {
  margin: 0 0 20px;
  font-family: var(--font-serif);
  font-size: 14px;
  font-style: italic;
  letter-spacing: 0.01em;
  color: var(--muted);
}
.eyebrow--inv { color: var(--muted-inv); }
.eyebrow .dot { padding-inline: 4px; }

/* ── Icons ──────────────────────────────────────────────── */

.ico { width: 17px; height: 17px; flex: none; fill: currentColor; }
.ico--arrow { fill: none; }

/* ── Buttons ────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 20px;
  border: 1px solid transparent;
  border-radius: 3px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.012em;
  text-decoration: none;
  white-space: nowrap;
  /* Press feedback: instant, 140ms, ease-out. */
  transition: transform 140ms var(--ease-out),
              background-color 140ms ease,
              border-color 140ms ease,
              color 140ms ease;
}
.btn:active { transform: scale(0.97); }

.btn--solid  { background: var(--blue-btn); color: #fff; }
.btn--ghost  { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn--outline{ background: transparent; color: #fff; border-color: rgba(255,255,255,.42); }

.btn--sm { padding: 9px 14px; font-size: 15px; }
.btn--xl { padding: 17px 26px; font-size: 18px; }

@media (hover: hover) and (pointer: fine) {
  .btn--solid:hover   { background: var(--blue-btn-h); }
  .btn--ghost:hover   { border-color: var(--ink); }
  .btn--outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }
  .btn:hover .ico--arrow { transform: translateX(3px); }
}
.ico--arrow { transition: transform 180ms var(--ease-out); }

/* ── Header ─────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  isolation: isolate;
}

/* Separate paint layer so the sticky background fades via opacity
   only — no layout or color animation on the header itself. */
.site-header__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(244, 242, 237, .88);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--rule);
  opacity: 0;
  transition: opacity 200ms var(--ease-out);
}
.site-header.is-stuck .site-header__bg { opacity: 1; }

/* Zero-height marker: the header earns its surface as soon as this
   scrolls under it, not when the whole hero has passed. */
.scroll-sentinel { display: block; height: 1px; margin-bottom: -1px; }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}

.brand { display: inline-flex; align-items: center; margin-right: auto; }
.brand img { width: auto; height: 36px; }

.site-nav { display: none; }

.site-header__cta-text { display: none; }

@media (min-width: 880px) {
  .site-header__inner { min-height: 78px; gap: 28px; }
  .brand img { height: 46px; }

  .site-nav { display: flex; gap: 26px; }
  .site-nav a {
    position: relative;
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    padding-block: 4px;
  }
  .site-nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1.5px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 180ms var(--ease-out);
  }
  .site-header__cta-text { display: inline; }
  .site-header__cta-short { display: none; }
}

@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover::after { transform: scaleX(1); }
}
.site-nav a:focus-visible::after { transform: scaleX(1); }

/* ── Hero ───────────────────────────────────────────────── */

.hero { padding-top: clamp(28px, 6vw, 64px); }

.hero__grid { display: grid; gap: clamp(32px, 6vw, 56px); }

.hero__title {
  font-size: clamp(2.3rem, 7.4vw, 5rem);
  line-height: 0.99;
  letter-spacing: -0.04em;
  margin-bottom: 22px;
  text-wrap: balance;
}

.hero__lede {
  max-width: 44ch;
  font-size: clamp(1.03rem, 2.4vw, 1.22rem);
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 28px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__figure {
  position: relative;
  margin: 0;
}
.hero__figure > img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 3px;
  background: var(--paper-2);
}

.hero__badge {
  position: absolute;
  left: -6px;
  bottom: -18px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 18px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 3px;
}
.hero__badge-num {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--blue-ink);
}
.hero__badge-label {
  font-family: var(--font-serif);
  font-size: 13px;
  line-height: 1.25;
  color: var(--muted);
}

/* Between phone and desktop the single-column images would run
   absurdly tall — cap them before the two-column layout kicks in. */
@media (min-width: 600px) and (max-width: 899px) {
  .hero__figure > img { aspect-ratio: 16 / 10; }
  .about__portrait,
  .about__detail { max-width: 420px; }
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: end;
  }
  .hero__copy { padding-bottom: 10px; }
  .hero__figure > img { aspect-ratio: 3 / 4; }
  .hero__badge { left: -34px; bottom: 34px; }
}

/* Facts strip under the hero */
.facts {
  display: grid;
  gap: 0;
  margin-top: clamp(56px, 9vw, 96px);
  border-top: 1px solid var(--rule);
}
.facts li { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.facts strong { display: block; font-size: 16px; letter-spacing: -0.015em; }
.facts span { display: block; margin-top: 3px; font-size: 15px; color: var(--muted); }

@media (min-width: 760px) {
  .facts { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--rule); }
  .facts li { padding: 24px 26px; border-bottom: 0; border-left: 1px solid var(--rule); }
  .facts li:first-child { padding-left: 0; border-left: 0; }
}

/* ── Sections ───────────────────────────────────────────── */

.section { padding-block: clamp(64px, 10vw, 128px); }

.section__head {
  margin-bottom: clamp(32px, 5vw, 56px);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}
.section__num {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-serif);
  font-size: 14px;
  font-style: italic;
  color: var(--blue-ink);
}
.section__title { font-size: clamp(1.9rem, 5.2vw, 3.1rem); }
.section__note {
  margin: 14px 0 0;
  max-width: 52ch;
  font-size: 16px;
  color: var(--muted);
}

@media (min-width: 900px) {
  .section__head {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    align-items: start;
    column-gap: 24px;
  }
  .section__num { margin: 9px 0 0; }
  .section__note { grid-column: 2; }
}

/* ── About ──────────────────────────────────────────────── */

.about__grid { display: grid; gap: clamp(28px, 4vw, 44px); }

.about__portrait { margin: 0; }
.about__portrait img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 3px;
  background: var(--paper-2);
}
.about__portrait figcaption,
.about__detail figcaption {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
}

.about__detail { margin: 0; }
.about__detail img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 3px;
}

.about__lede {
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  line-height: 1.4;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.about__body p { max-width: 58ch; color: var(--muted); }
.about__body .about__lede { color: var(--ink); }

.pull {
  margin: 32px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--rule);
}
.pull p {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 3.6vw, 1.9rem);
  font-style: italic;
  line-height: 1.24;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.pull cite {
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (min-width: 900px) {
  .about__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    column-gap: clamp(40px, 5vw, 72px);
    align-items: stretch;
  }
  /* The portrait runs the full height of the column beside it, so the
     text and the detail strip never leave a void under the picture. */
  .about__portrait {
    grid-column: 1;
    grid-row: 1 / span 2;
    display: flex;
    flex-direction: column;
  }
  .about__portrait img {
    flex: 1 1 auto;
    aspect-ratio: auto;
    min-height: 460px;
    object-position: center 18%;
  }
  .about__body   { grid-column: 2; grid-row: 1; }
  .about__detail { grid-column: 2; grid-row: 2; align-self: end; }
  .about__detail img { aspect-ratio: 16 / 7; }
}

/* ── Service cards ──────────────────────────────────────── */

.cards { display: grid; gap: clamp(20px, 3vw, 28px); }

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 220ms var(--ease-out), border-color 220ms ease;
}

.card__media { overflow: hidden; background: var(--paper-2); }
.card__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 260ms var(--ease-out);
}

.card__body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.card__num {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-serif);
  font-size: 13px;
  font-style: italic;
  color: var(--blue-ink);
}
.card__title { font-size: clamp(1.15rem, 2.6vw, 1.4rem); margin-bottom: 10px; }
.card__body p { color: var(--muted); font-size: 15.5px; margin-bottom: 18px; }

.card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  color: var(--blue-ink);
}

.card--note {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  justify-content: center;
}
.card--note .card__body { padding: 30px 24px; }
.card--note .card__num { color: var(--blue-lite); }
.card--note p { color: var(--muted-inv); }
.card--note .card__link { color: var(--blue-lite); }

@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-3px); border-color: rgba(11,18,32,.32); }
  .card--note:hover { border-color: var(--navy-2); }
  .card:hover .card__media img { transform: scale(1.045); }
  .card__link:hover .ico--arrow { transform: translateX(3px); }
}

@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card--wide { grid-column: span 2; flex-direction: row; }
  .card--wide .card__media { flex: 1 1 52%; }
  .card--wide .card__media img { height: 100%; aspect-ratio: auto; min-height: 260px; }
  .card--wide .card__body { flex: 1 1 48%; justify-content: center; padding: clamp(24px, 3vw, 40px); }
  .card--wide .card__link { margin-top: 4px; }
  .card--wide .card__title { font-size: clamp(1.4rem, 2.6vw, 1.85rem); }
}

/* ── Before / after gallery ─────────────────────────────── */

.gallery { column-gap: clamp(18px, 2.4vw, 26px); }

.shot {
  margin: 0 0 clamp(18px, 2.4vw, 26px);
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}
.shot img {
  width: 100%;
  border-radius: 3px;
  border: 1px solid var(--rule);
  background: var(--paper-2);
}
.shot figcaption {
  margin-top: 11px;
  font-size: 14.5px;
  color: var(--muted);
}
.shot__tag {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 8px;
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: 1px;
}

@media (min-width: 640px) { .gallery { columns: 2; } }
@media (min-width: 1040px) { .gallery { columns: 3; } }

/* ── Social proof ───────────────────────────────────────── */

.section--proof { padding-top: 0; }

.proof { display: grid; border-top: 1px solid var(--rule); }
.proof li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 16px;
}
.proof strong { font-weight: 650; letter-spacing: -0.015em; }

.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 16px; height: 16px; fill: var(--blue); }

@media (min-width: 860px) {
  .proof { grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--rule); }
  .proof li {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 26px 24px;
    border-bottom: 0;
    border-left: 1px solid var(--rule);
  }
  .proof li:first-child { padding-left: 0; border-left: 0; }
}

/* ── CTA band ───────────────────────────────────────────── */

.cta {
  position: relative;
  isolation: isolate;
  padding-block: clamp(56px, 9vw, 104px);
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}
.cta__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(9, 17, 30, .84), rgba(9, 17, 30, .9)),
                    url("./assets/epoxybackground.jpg");
  background-size: cover;
  background-position: center;
}
.cta__inner { display: grid; gap: clamp(28px, 4vw, 48px); }
.cta__title {
  font-size: clamp(2rem, 6vw, 3.4rem);
  letter-spacing: -0.038em;
  margin-bottom: 14px;
  text-wrap: balance;
}
.cta__note { color: var(--muted-inv); max-width: 40ch; margin: 0; font-size: 16.5px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; align-content: center; }

@media (min-width: 900px) {
  .cta__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 64px;
  }
  .cta__actions { flex-direction: column; align-items: stretch; }
}

/* ── Footer ─────────────────────────────────────────────── */

.site-footer {
  background: var(--navy);
  color: var(--muted-inv);
  padding-top: clamp(48px, 7vw, 80px);
  padding-bottom: 28px;
  border-top: 1px solid var(--rule-inv);
  font-size: 15.5px;
}
.site-footer__grid { display: grid; gap: 34px; }
.site-footer__brand img { width: auto; height: 58px; margin-bottom: 16px; }
.site-footer__brand p { max-width: 32ch; margin: 0; }

.site-footer__col h2 {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}
.site-footer__col li { padding: 4px 0; }
.site-footer a { color: var(--muted-inv); text-decoration: none; }

@media (hover: hover) and (pointer: fine) {
  .site-footer a:hover { color: #fff; text-decoration: underline; }
}

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  justify-content: space-between;
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: 20px;
  border-top: 1px solid var(--rule-inv);
  font-size: 14px;
}
.site-footer__base p { margin: 0; }

@media (min-width: 760px) {
  .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
}

/* ── Mobile call bar ────────────────────────────────────── */

.callbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: rgba(11, 21, 38, .96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--rule-inv);
  color: #fff;
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom, 0px));
  /* Enters from the edge it lives on, exits the same way. */
  transform: translateY(110%);
  transition: transform 190ms var(--ease-out); /* exit: snappy */
}
.callbar.is-in {
  transform: translateY(0);
  transition-duration: 280ms;                  /* enter: a beat slower */
}

.callbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1240px;
  margin-inline: auto;
}
.callbar__text strong { display: block; font-size: 15px; }
.callbar__text span { font-size: 13px; color: var(--muted-inv); }

@media (min-width: 880px) { .callbar { display: none; } }

/* ── Scroll reveal ──────────────────────────────────────── */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 380ms var(--ease-out), transform 380ms var(--ease-out);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ── Reduced motion: gentler, not zero ──────────────────── */

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

  /* Keep the opacity fades that bridge state changes; drop movement. */
  .js .reveal { transform: none; transition: opacity 240ms ease; }
  .js .reveal.is-in { transform: none; }

  .btn:active { transform: none; }
  .btn:hover .ico--arrow,
  .card__link:hover .ico--arrow { transform: none; }
  .card:hover { transform: none; }
  .card:hover .card__media img { transform: none; }
  .site-nav a::after { transition: opacity 160ms ease; transform: scaleX(1); opacity: 0; }
  .site-nav a:hover::after,
  .site-nav a:focus-visible::after { opacity: 1; }

  .callbar { transform: none; opacity: 0; pointer-events: none; transition: opacity 200ms ease; }
  .callbar.is-in { opacity: 1; pointer-events: auto; }
}
