/* ============================================================================
   North Star Flooring & Construction — "True North"
   Tokens first; see DESIGN.md. Plain CSS, no build.
   ========================================================================== */
:root {
  --night: #0b1422;
  --night-2: #08101b;
  --surface: #111d2e;
  --surface-2: #172538;
  --line: rgba(216, 178, 110, .18);
  --line-strong: rgba(216, 178, 110, .4);
  --ivory: #f4efe6;
  --mist: #b9c1cc;
  --muted: #7f8a99;
  --gold: #d6b06f;
  --gold-bright: #ecd09a;
  --gold-deep: #a9823f;
  --gold-grad: linear-gradient(135deg, var(--gold-bright), var(--gold) 50%, var(--gold-deep));
  --oak: #c89a64;

  --f-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --f-label: 'Marcellus SC', Georgia, serif;
  --f-body: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1180px;
  --gutter: 20px;
  --header-h: 80px;
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--mist);
  font-family: var(--f-body);
  font-size: 1.02rem;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-bright); }
h1, h2, h3 { font-family: var(--f-display); color: var(--ivory); font-weight: 500; letter-spacing: -.01em; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 600; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
address { font-style: normal; }
::selection { background: var(--oak); color: var(--night); }

:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--gold-bright); color: var(--night); padding: 12px 18px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  font-family: var(--f-label);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 .9rem;
}

/* ---------- Compass heading device ---------- */
.compass { display: flex; align-items: center; gap: 14px; max-width: 320px; margin: 0 auto 1rem; }
.compass span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-deep)); }
.compass span:last-child { background: linear-gradient(270deg, transparent, var(--gold-deep)); }
.compass svg { width: 20px; height: 20px; fill: var(--gold); flex: none; transition: transform .9s ease; }
.compass.left { margin-left: 0; margin-right: 0; }
.compass.left span { background: linear-gradient(90deg, var(--gold-deep), transparent); }
.fade-in:not(.visible) .compass svg, .compass.fade-in:not(.visible) svg { transform: rotate(0deg); }
.fade-in.visible .compass svg { transform: rotate(45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 26px;
  border-radius: var(--radius);
  font-family: var(--f-body); font-weight: 600; font-size: .98rem; letter-spacing: .02em;
  text-decoration: none; text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn-gold { background: var(--gold-grad); color: var(--night); border: 1px solid transparent; }
.btn-gold:hover { color: var(--night); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(214, 176, 111, .25); }
.btn-gold:active { background: var(--gold-deep); }
.btn-ghost { border: 1px solid var(--gold); color: var(--ivory); background: transparent; }
.btn-ghost:hover { color: var(--ivory); border-color: var(--gold-bright); background: rgba(214, 176, 111, .08); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-row.center { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 20, 34, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { height: 64px; width: auto; }

.nav-toggle {
  width: 48px; height: 48px; background: none; border: 1px solid var(--line-strong); border-radius: var(--radius);
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ivory); transition: transform .25s ease, opacity .2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--night-2); border-bottom: 1px solid var(--line);
  display: none; flex-direction: column; padding: 8px var(--gutter) 20px;
}
.nav.open { display: flex; }
.nav a {
  display: flex; align-items: center; min-height: 48px;
  font-family: var(--f-label); font-size: .82rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ivory); text-decoration: none; border-bottom: 1px solid var(--line);
}
.nav a:hover { color: var(--gold-bright); }
.nav .nav-phone { margin-top: 14px; border: 1px solid var(--gold); justify-content: center; border-radius: var(--radius); color: var(--gold-bright); letter-spacing: .08em; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .nav { position: static; display: flex; flex-direction: row; align-items: center; gap: 26px; background: none; border: 0; padding: 0; }
  .nav a { border: 0; min-height: 44px; }
  .nav .nav-phone { margin: 0 0 0 6px; padding: 0 20px; background: var(--gold-grad); color: var(--night); border: 0; font-family: var(--f-body); font-size: .95rem; font-weight: 600; letter-spacing: .02em; text-transform: none; }
  .nav .nav-phone:hover { color: var(--night); }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 56px 0 72px; background: radial-gradient(900px 500px at 85% 20%, rgba(214, 176, 111, .09), transparent 70%), var(--night); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-deep), transparent); }
.hero-grid { display: grid; gap: 44px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--gold); font-weight: 500; display: block; }
.lead { font-size: 1.12rem; max-width: 34em; margin: 1.4rem 0 1.8rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: .92rem; }
.trust-row li { display: flex; gap: 6px; }
.trust-row strong { color: var(--ivory); font-weight: 600; }

@media (min-width: 900px) {
  .hero { padding: 88px 0 104px; }
  .hero-grid { grid-template-columns: 1.25fr .75fr; gap: 64px; }
}

/* ---------- Photo frames (never full-bleed) ---------- */
.frame { position: relative; margin: 0; padding: 0; border: 0; background: var(--surface); border-radius: var(--radius); }
.frame img { border-radius: var(--radius); width: 100%; }
.frame::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(236, 208, 154, .55); border-radius: var(--radius); pointer-events: none; }
.hero-photo { max-width: 354px; width: 100%; justify-self: center; box-shadow: 18px 18px 0 -1px var(--surface-2), 18px 18px 0 0 var(--line-strong); }
.hero-photo figcaption { position: absolute; left: 16px; bottom: 16px; z-index: 1; font-family: var(--f-label); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ivory); background: rgba(8, 16, 27, .78); padding: 4px 10px; border-radius: var(--radius); }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-sub { margin: 1rem auto 0; }
.note { text-align: center; margin: 2.4rem 0 0; color: var(--muted); }
.note { color: var(--mist); }

/* Services */
.service-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; transition: border-color .25s ease, transform .25s ease; }
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card .icon { width: 30px; height: 30px; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.card h3 { font-size: 1.45rem; margin-bottom: .4rem; }
.card p { margin: 0; font-size: .97rem; }
.card-cta { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: .4rem; background: transparent; border-color: var(--line-strong); }
.card-cta .btn { margin-top: 1rem; }
@media (min-width: 600px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }

/* Gallery */
.gallery { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, 1fr); gap: 22px; } }
.g-item { display: block; width: 100%; cursor: zoom-in; font: inherit; color: inherit; text-align: left; }
.g-item img { aspect-ratio: 4 / 5; object-fit: cover; }
.g-item .cap {
  position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 1;
  font-family: var(--f-label); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ivory);
  background: rgba(8, 16, 27, .82); padding: 5px 9px; border-radius: var(--radius); width: fit-content; max-width: calc(100% - 28px);
}
.g-item:hover .frame::after, .g-item:hover::after { border-color: var(--gold-bright); }
.g-item:focus-visible { outline-offset: 4px; }

/* Process */
.steps { display: grid; gap: 28px; grid-template-columns: 1fr; counter-reset: s; }
.steps li { padding-top: 22px; border-top: 1px solid var(--line-strong); }
.step-n { font-family: var(--f-display); font-size: 2.6rem; color: var(--gold); line-height: 1; display: block; margin-bottom: .6rem; }
.steps h3 { font-size: 1.5rem; margin-bottom: .4rem; }
.steps p { margin: 0; }
@media (min-width: 600px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 34px; } }

/* About */
.about-grid { display: grid; gap: 28px; }
.about-copy p { font-size: 1.08rem; }
.about-copy p:last-child { margin-bottom: 0; }
@media (min-width: 900px) { .about-grid { grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; } }

/* Reviews */
.quote { max-width: 820px; margin: 0 auto; padding: 36px 26px 30px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); position: relative; }
.quote::before { content: "\201C"; position: absolute; top: -4px; left: 18px; font-family: var(--f-display); font-size: 6rem; line-height: 1; color: var(--gold-deep); opacity: .6; }
.quote blockquote { margin: 0; }
.quote blockquote p { font-family: var(--f-display); font-size: clamp(1.2rem, 2.3vw, 1.5rem); line-height: 1.5; color: var(--ivory); margin: 1.2rem 0 0; }
.quote figcaption { margin-top: 1.4rem; font-family: var(--f-label); letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; color: var(--gold); }
.quote figcaption span { color: var(--muted); }
@media (min-width: 700px) { .quote { padding: 48px 48px 38px; } }

/* Service area */
.area .section-head { margin-bottom: 0; }
.area { padding: 72px 0; }

/* Contact */
.contact { background: radial-gradient(800px 400px at 50% 0, rgba(214, 176, 111, .1), transparent 70%), var(--surface); border-top: 1px solid var(--line); }
.contact-grid { display: grid; gap: 28px; margin: 3.2rem auto 0; max-width: 900px; text-align: center; }
.contact-grid dt { font-family: var(--f-label); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: .4rem; }
.contact-grid dd { margin: 0; color: var(--ivory); overflow-wrap: anywhere; }
.contact-grid a { display: inline-block; min-height: 44px; line-height: 44px; }
.contact-grid address + a { margin-top: .3rem; }
@media (min-width: 800px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }

/* Footer */
.site-footer { background: var(--night-2); border-top: 1px solid var(--line); padding: 56px 0 0; font-size: .95rem; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
.f-brand img { width: 145px; height: auto; margin-bottom: 12px; }
.f-brand p { font-family: var(--f-display); font-style: italic; font-size: 1.2rem; color: var(--ivory); margin: 0; }
.f-title { font-family: var(--f-label); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: 0 0 .8rem; font-weight: 400; }
.site-footer a { display: inline-block; min-height: 32px; padding: 3px 0; }
.site-footer ul li a { min-height: 44px; display: inline-flex; align-items: center; }
.legal { margin-top: 40px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.2fr 1.4fr .8fr .8fr; } }

/* ---------- Mobile call/text bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 720px) {
  body { padding-bottom: 72px; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgba(8, 16, 27, .96); border-top: 1px solid var(--line-strong);
    transition: transform .3s ease, visibility .3s;
  }
  .mobile-bar.is-hidden { transform: translateY(100%); visibility: hidden; }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: var(--radius); font-weight: 600; text-decoration: none; letter-spacing: .04em; }
  .mb-call { background: var(--gold-grad); color: var(--night); }
  .mb-text { border: 1px solid var(--gold); color: var(--ivory); }
}

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(5, 9, 16, .94); display: flex; align-items: center; justify-content: center; padding: 64px 16px; }
.lightbox[hidden] { display: none; }
.lb-fig { margin: 0; max-width: min(92vw, 900px); text-align: center; }
.lb-fig img { max-height: 76vh; width: auto; margin: 0 auto; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.lb-fig figcaption { margin-top: 14px; font-family: var(--f-label); letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; color: var(--ivory); }
.lb-btn { position: absolute; width: 48px; height: 48px; background: rgba(17, 29, 46, .9); border: 1px solid var(--line-strong); color: var(--ivory); font-size: 1.8rem; line-height: 1; border-radius: var(--radius); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lb-btn:hover { border-color: var(--gold-bright); color: var(--gold-bright); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
body.lb-open { overflow: hidden; }

/* ---------- Reveal motion ---------- */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: none; }
.no-js .fade-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .fade-in { opacity: 1; transform: none; }
}
