/* ==========================================================================
   BAUDAK — homepage styles (v2, orange system)
   Colors, type, and layout ported 1:1 from "02 Website Home v2" mockup.
   Source of truth: Brand-Guidelines-FINAL.dc.html (Claude Design export).
   Theme via CSS variables on [data-theme]; toggled by assets/js/script.js.
   ========================================================================== */

/* ---- Reset / base -------------------------------------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root,
[data-theme="dark"] {
  --accent: #FA3E00;
  --black: #0F0F0F;
  --bone: #F7F6F3;

  --cbg: #0F0F0F;          /* page background */
  --cbg2: #0A0A0A;         /* footer background */
  --ctext: #F7F6F3;        /* primary text */
  --csurface: #161616;     /* testimonial band */
  --cborder: #262626;
  --chair: #1c1c1c;        /* hairlines */
  --cmuted: #9a9a9a;
  --scrim: 15, 15, 15;     /* hero scrim rgb */
  --ctextrgb: 247, 246, 243;
  --card4: #0F0F0F;        /* 4th service card */
  --track: #2a2a2a;        /* theme-toggle track */
}

[data-theme="light"] {
  --cbg: #EFEDE6;
  --cbg2: #262626;
  --ctext: #0F0F0F;
  --csurface: #FFFFFF;
  --cborder: #d8d3c6;
  --chair: #e4e1d8;
  --cmuted: #6f6f6b;
  --scrim: 255, 255, 255;
  --ctextrgb: 15, 15, 15;
  --card4: #262626;
  --track: #d8d4c8;
}

body {
  background: var(--cbg);
  color: var(--ctext);
  font-family: 'Montserrat', sans-serif;
  transition: background .3s;
}
::selection { background: var(--accent); color: #fff; }
img, video { display: block; }

.container { max-width: 1180px; margin: 0 auto; }

/* ---- Type helpers -------------------------------------------------------- */
.kicker {
  font: 800 11px 'Montserrat';
  letter-spacing: .24em;
  color: var(--accent);
}
.h2 {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: 56px;
  line-height: .95;
  letter-spacing: -.03em;
  color: var(--ctext);
  margin-top: 10px;
}
.on-bone { color: #0F0F0F; }
.on-dark { color: #F7F6F3; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
}
.section-intro {
  font: 400 14px/1.6 'Montserrat';
  color: #555;
  max-width: 360px;
}
.section-intro-wide { max-width: 400px; }

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-block;
  font: 800 12px 'Montserrat';
  letter-spacing: .06em;
  border-radius: 11px;
  text-decoration: none;
  text-align: center;
  transition: background .2s cubic-bezier(.2,.7,.2,1), color .2s,
              border-color .2s, transform .2s cubic-bezier(.2,.7,.2,1), box-shadow .2s;
}
.btn-solid { background: var(--accent); color: #fff; padding: 16px 30px; }
.btn-solid:hover {
  background: #0F0F0F; color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(15,15,15,.4);
}
.btn-nav { padding: 11px 20px; font-size: 11px; border-radius: 9px; margin-left: 6px; }
.btn-nav:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15,15,15,.35); }
.btn-outline {
  border: 2px solid rgba(var(--ctextrgb), .4);
  color: var(--ctext);
  padding: 13px 24px;
  font-size: 11px;
}
.btn-outline:hover { background: #0F0F0F; color: #fff; border-color: #0F0F0F; }
.btn-lg { padding: 16px 30px; font-size: 12px; }
.btn-outline.btn-lg { padding: 14px 26px; }
.btn-outline-accent {
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 14px;
  border-radius: 10px;
}
.btn-outline-accent:hover { background: #0F0F0F; color: #fff; border-color: #0F0F0F; }
.btn-block { display: block; margin-top: 24px; }
.btn-black { background: #0F0F0F; color: #fff; padding: 18px 40px; font-size: 13px; border-radius: 12px; }
.btn-black:hover {
  background: #fff; color: #0F0F0F;
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(15,15,15,.35);
}

/* ---- Nav ------------------------------------------------------------------ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--cbg);
  border-bottom: 1px solid var(--chair);
  transition: background .3s;
}
.nav-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 40px;
}
.wordmark {
  font-family: 'Archivo', sans-serif;
  font-weight: 900; font-size: 24px; letter-spacing: -.01em;
  text-decoration: none; line-height: 1;
}
.wordmark .bau { color: var(--accent); }
.wordmark .dak { color: var(--ctext); }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-link {
  padding: 9px 14px;
  font: 700 11px 'Montserrat';
  letter-spacing: .06em;
  color: var(--ctext);
  text-decoration: none;
  border-radius: 8px;
  transition: background .16s;
}
.nav-link:hover { background: rgba(var(--ctextrgb), .1); }

/* Theme toggle */
.theme-toggle {
  cursor: pointer;
  width: 60px; height: 30px;
  border: none; border-radius: 30px;
  padding: 4px; margin-right: 4px;
  display: flex; align-items: center;
  background: var(--track);
  transition: background .3s;
  flex: none;
}
.theme-knob {
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #0F0F0F;
  box-shadow: 0 1px 3px rgba(0,0,0,.4);
  transition: transform .3s;
}
.theme-knob::before { content: "☀"; }
[data-theme="light"] .theme-knob { transform: translateX(30px); }
[data-theme="light"] .theme-knob::before { content: "☾"; }

/* ---- Hero ------------------------------------------------------------------ */
/* Reels + scrim bleed to the full window width; copy stays in the container. */
.hero { position: relative; overflow: hidden; }
/* Reel width scales with the viewport (fluid between 150-220px);
   the loop distance below is derived from the same variable. */
.hero-media { position: absolute; inset: 0; --reelw: clamp(150px, 14vw, 220px); }
.hero-frame { position: relative; min-height: 640px; z-index: 2; }
.hero-reels {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  overflow: hidden;
}
/* One set = 5 reels x (reel width + 8px gap); translating by exactly
   that makes the loop seamless at any reel size. 4 sets cover ultrawide. */
.reels-track {
  display: flex; gap: 8px;
  align-items: center;
  width: max-content;
  padding: 20px 0;
  animation: baudakreels 90s linear infinite;
  will-change: transform;
}
@keyframes baudakreels {
  to { transform: translateX(calc(-5 * (var(--reelw, 220px) + 8px))); }
}
@media (prefers-reduced-motion: reduce) {
  .reels-track, .ticker-track { animation: none; }
}
.reel {
  flex: none; width: var(--reelw, 220px); aspect-ratio: 9/16;
  border-radius: 8px; overflow: hidden; background: #222;
}
.reel img, .reel video { width: 100%; height: 100%; object-fit: cover; }

.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(var(--scrim), 1) 0%,
    rgba(var(--scrim), .95) 28%,
    rgba(var(--scrim), .55) 64%,
    rgba(var(--scrim), 0) 100%);
}
.hero-copy {
  position: absolute; left: 40px; top: 50%;
  transform: translateY(-50%);
  max-width: 620px;
}
.kicker-hero { font-size: 12px; letter-spacing: .28em; }
.hero-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 900; letter-spacing: -.02em;
  color: var(--ctext);
  margin-top: 28px;
}
.hero-pre {
  display: block;
  font-size: 33px; line-height: 1.1;
  color: #8a8a8a; font-weight: 700; letter-spacing: -.01em;
}
.hero-main { display: block; font-size: 86px; line-height: .96; margin-top: 18px; }
.hero-main em { font-style: normal; color: var(--accent); }
.hero-sub {
  font: 400 16px/1.7 'Montserrat';
  color: var(--cmuted);
  max-width: 440px; margin-top: 32px;
}
.hero-ctas { display: flex; align-items: center; gap: 16px; margin-top: 40px; }

/* Ticker */
@keyframes baudakticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker {
  position: relative; z-index: 3;
  background: var(--accent);
  overflow: hidden; white-space: nowrap;
  border-top: 1px solid rgba(15,15,15,.18);
}
.ticker-track {
  display: inline-flex; align-items: center; gap: 28px;
  padding: 13px 0;
  animation: baudakticker 80s linear infinite;
  font: 800 12px 'Archivo';
  letter-spacing: .22em;
  color: #0F0F0F;
  will-change: transform;
}

/* ---- Bands ----------------------------------------------------------------- */
.band-bone { background: #F7F6F3; }
.band-gray { background: #262626; }
.band-surface { background: var(--csurface); transition: background .3s; }
.band-bone .kicker { color: var(--accent); }
.section-pad { padding: 64px 56px; }
.work-pad { padding: 36px 56px; }

/* ---- Services --------------------------------------------------------------- */
.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px; margin-top: 44px;
}
.service-card {
  background: #fff;
  border: 1px solid #e4e1d8;
  border-radius: 16px;
  padding: 32px 28px;
}
.service-num { font-family: 'Archivo'; font-weight: 900; font-size: 20px; color: var(--accent); }
.service-card h3 {
  font-family: 'Archivo'; font-weight: 700; font-size: 22px;
  color: #0F0F0F; margin-top: 14px;
}
.service-card p { font: 400 13px/1.6 'Montserrat'; color: #555; margin-top: 10px; }
.service-card-dark { background: var(--card4); border: none; transition: background .3s; }
.service-card-dark h3 { color: #F7F6F3; }
.service-card-dark p { color: #c9c6bf; }

/* ---- Work -------------------------------------------------------------------- */
.work-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 16px; margin-top: 40px;
}
.work-tile {
  aspect-ratio: 9/16;
  border-radius: 14px; overflow: hidden; background: #222;
}
.work-tile img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Process ------------------------------------------------------------------ */
.process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; margin-top: 44px;
}
.process-num {
  font-family: 'Archivo'; font-weight: 900; font-size: 48px;
  color: #F7F6F3;
  border-bottom: 3px solid var(--accent);
  display: inline-block; padding-bottom: 8px;
}
.process-step h3 {
  font-family: 'Archivo'; font-weight: 700; font-size: 22px;
  color: #F7F6F3; margin-top: 16px;
}
.process-step p { font: 400 13px/1.6 'Montserrat'; color: #b5b5b5; margin-top: 8px; }

/* ---- Testimonial ---------------------------------------------------------------- */
.testimonial {
  padding: 52px 48px;
  display: flex; gap: 48px; align-items: center;
}
.testimonial-photo {
  flex: none; width: 260px; height: 320px;
  border-radius: 16px; overflow: hidden; background: #222;
}
.testimonial-photo img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-body blockquote {
  font-family: 'Archivo'; font-weight: 800; font-size: 38px;
  line-height: 1.1; letter-spacing: -.02em;
  color: var(--ctext);
}
.testimonial-body blockquote em { font-style: normal; color: var(--accent); }
.testimonial-attr { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.testimonial-name { font: 800 13px 'Montserrat'; color: var(--ctext); }
.dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.testimonial-co { font: 500 13px 'Montserrat'; color: var(--cmuted); }

/* ---- Packages --------------------------------------------------------------------- */
.pricing-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 18px; margin-top: 44px;
}
.price-card {
  background: #fff;
  border: 1px solid #e4e1d8;
  border-radius: 16px;
  padding: 38px 34px;
  display: flex; flex-direction: column;
}
.price-card-featured { border: 2px solid var(--accent); position: relative; }
.price-badge {
  position: absolute; top: 0; right: 24px;
  transform: translateY(-50%);
  background: var(--accent); color: #fff;
  font: 800 10px 'Montserrat'; letter-spacing: .16em;
  padding: 6px 12px; border-radius: 5px;
}
.price-label { font: 800 11px 'Montserrat'; letter-spacing: .2em; color: #8a8a8a; }
.price-label-accent { color: var(--accent); }
.price-row { display: flex; align-items: flex-end; gap: 8px; margin-top: 18px; }
.price {
  font-family: 'Archivo'; font-weight: 900; font-size: 64px;
  line-height: .85; color: #0F0F0F;
}
.price-per { font: 600 15px 'Montserrat'; color: #8a8a8a; padding-bottom: 10px; }
.price-terms { font: 500 13px 'Montserrat'; color: #8a8a8a; margin-top: 8px; }
.price-divider { height: 1px; background: #e4e1d8; margin: 26px 0; }
.feature-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 12px;
  font: 400 14px/1.4 'Montserrat'; color: #333;
}
.feature-list li { display: flex; gap: 11px; }
.feature-list li::before {
  content: "✓";
  color: var(--accent);
  flex: none; font-weight: 700;
}

.refresh-bar {
  background: #fff;
  border: 1px dashed #cfcabd;
  border-radius: 16px;
  padding: 28px 34px; margin-top: 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.refresh-title { font-family: 'Archivo'; font-weight: 800; font-size: 24px; color: #0F0F0F; line-height: 1; }
.refresh-title span { color: var(--accent); }
.refresh-sub { font: 400 13px/1.5 'Montserrat'; color: #555; margin-top: 6px; max-width: 620px; }
.refresh-link {
  font: 800 11px 'Montserrat'; letter-spacing: .08em;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px; white-space: nowrap; text-decoration: none;
}

/* ---- Honest fit -------------------------------------------------------------------- */
.fit-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 18px; margin-top: 44px;
}
.fit-card {
  background: #262626;
  border: 1px solid #333;
  border-radius: 16px;
  padding: 34px 32px;
}
.fit-card-yes { border-left: 4px solid var(--accent); }
.fit-title-yes { font-family: 'Archivo'; font-weight: 700; font-size: 24px; color: var(--accent); }
.fit-title-no { font-family: 'Archivo'; font-weight: 700; font-size: 24px; color: #8a8a8a; }
.fit-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 13px;
  margin-top: 20px;
  font: 400 14px/1.5 'Montserrat';
}
.fit-list li { display: flex; gap: 11px; }
.fit-list-yes { color: #F7F6F3; }
.fit-list-yes li::before { content: "✓"; color: var(--accent); flex: none; font-weight: 700; }
.fit-list-no { color: #b5b5b5; }
.fit-list-no li::before { content: "✕"; flex: none; }

/* ---- FAQ ------------------------------------------------------------------------ */
.faq-heading { margin-bottom: 32px; }
.faq-list { max-width: 900px; }
.faq-item { border-top: 1px solid #ddd9ce; }
.faq-item:last-child { border-bottom: 1px solid #ddd9ce; }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0;
  background: none; border: none; cursor: pointer;
  font-family: 'Archivo'; font-weight: 700; font-size: 22px;
  color: #0F0F0F; text-align: left;
  transition: color .16s;
}
.faq-item.open .faq-q { color: var(--accent); }
.faq-icon {
  font-family: 'Archivo'; font-weight: 900; font-size: 26px;
  color: var(--accent); flex: none;
}
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  padding-bottom: 0;
  transition: grid-template-rows .35s cubic-bezier(.2,.7,.2,1),
              padding-bottom .35s cubic-bezier(.2,.7,.2,1);
  font: 400 14px/1.6 'Montserrat'; color: #555;
  max-width: 760px;
}
.faq-a > p { overflow: hidden; min-height: 0; }
.faq-item.open .faq-a {
  grid-template-rows: 1fr;
  padding-bottom: 22px;
}

/* ---- CTA band --------------------------------------------------------------------- */
.cta-band {
  background: var(--accent);
  padding: 64px 48px;
  text-align: center;
}
.cta-title {
  font-family: 'Archivo'; font-weight: 900; font-size: 64px;
  line-height: .9; letter-spacing: -.03em;
  color: #0F0F0F;
}
.cta-sub { font: 400 16px/1.6 'Montserrat'; color: rgba(15,15,15,.75); margin-top: 16px; }
.cta-band .btn { margin-top: 30px; }

/* ---- Footer -------------------------------------------------------------------------- */
.footer { background: var(--cbg2); padding: 56px 40px 40px; transition: background .3s; }
.footer-top {
  display: flex; justify-content: space-between; gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--chair);
}
.footer-brand { max-width: 320px; }
.wordmark-footer { font-size: 26px; }
.dak-footer { color: #F7F6F3; }
.footer-descriptor {
  font: 800 10px 'Montserrat'; letter-spacing: .36em;
  color: #8a8a8a; margin-top: 6px;
}
.footer-blurb { font: 400 13px/1.6 'Montserrat'; color: #8a8a8a; margin-top: 16px; }
.footer-cols { display: flex; gap: 64px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
  font: 800 10px 'Montserrat'; letter-spacing: .2em;
  color: #F7F6F3; margin-bottom: 4px;
}
.footer-col a {
  font: 400 13px 'Montserrat'; color: #8a8a8a;
  text-decoration: none;
}
.footer-col a:hover { color: #F7F6F3; }

.footer-areas { margin-top: 30px; }
.footer-areas-label {
  font: 800 10px 'Montserrat'; letter-spacing: .24em;
  color: var(--accent); margin-bottom: 18px;
}
.areas-grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: 12px 14px;
}
.areas-grid span { font: 500 8px 'Montserrat'; letter-spacing: .04em; color: #8a8a8a; }

.footer-legal {
  display: flex; justify-content: space-between;
  margin-top: 28px;
  font: 500 11px 'Montserrat'; color: #5a5a5a;
}

/* ---- Draft badge (remove at launch sign-off) ------------------------------ */
.draft-badge {
  position: fixed;
  right: 16px; bottom: 16px;
  z-index: 200;
  background: var(--accent);
  color: #0F0F0F;
  font: 800 10px 'Montserrat';
  letter-spacing: .14em;
  padding: 8px 12px;
  border-radius: 7px;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
  pointer-events: none;
}

/* ==========================================================================
   Responsive — mockup is desktop; these breakpoints adapt it down.
   ========================================================================== */
@media (max-width: 1024px) {
  /* 2 reel sets are enough to keep the loop seamless at this width */
  .reels-track > .reel:nth-child(n+11) { display: none; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(3, 1fr); }
  .work-grid .work-tile:nth-child(n+4) { display: none; }
  .process-grid { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .areas-grid { grid-template-columns: repeat(6, 1fr); }
  .hero-main { font-size: 72px; }
}

@media (max-width: 768px) {
  .nav-inner { padding: 16px 20px; }
  .nav-link { display: none; }
  .section-pad { padding: 48px 24px; }
  .work-pad { padding: 32px 24px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .h2 { font-size: 40px; }

  .hero-frame { min-height: 560px; }
  .hero-copy {
    position: relative; left: 0; top: 0; transform: none;
    padding: 56px 24px 48px;
  }
  /* Phone: single static reel — the carpenter video (hero-center.mp4) —
     centered and filling the entire hero */
  .reels-track {
    animation: none;
    width: 100%; height: 100%;
    padding: 0; justify-content: center;
  }
  .reels-track > .reel { display: none; }
  .reels-track > .reel:nth-child(5) {
    display: block;
    width: 100%; height: 100%;
    aspect-ratio: auto;
    border-radius: 0;
  }
  .hero-pre { font-size: 24px; }
  .hero-main { font-size: 52px; }
  .hero-sub { font-size: 15px; }
  .hero-scrim {
    background: linear-gradient(90deg,
      rgba(var(--scrim), 1) 0%,
      rgba(var(--scrim), .92) 55%,
      rgba(var(--scrim), .6) 100%);
  }
  .hero-ctas { flex-wrap: wrap; }

  .services-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid .work-tile:nth-child(n+4) { display: block; }
  .work-grid .work-tile:nth-child(n+5) { display: none; }
  .process-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .fit-grid { grid-template-columns: 1fr; }

  .testimonial { flex-direction: column; align-items: flex-start; padding: 40px 24px; }
  .testimonial-body blockquote { font-size: 28px; }

  .refresh-bar { flex-direction: column; align-items: flex-start; }
  .faq-q { font-size: 18px; }

  .cta-title { font-size: 44px; }
  .footer { padding: 40px 24px 32px; }
  .footer-top { flex-direction: column; }
  .footer-cols { flex-wrap: wrap; gap: 32px; }
  .areas-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-legal { flex-direction: column; gap: 6px; }
}
