/* Brett's Kitchen & Bath - homepage concept
   Design language: #8 Vibrant Energy (type, spacing, composition, motion ONLY)
   Palette: prospect's real brand colors. Navy #002169 and gold #ad8400 from their logo. */

:root {
  --navy:        #0a1638;  /* their logo navy #002169, deepened for dark bands */
  --navy-2:      #060d22;
  --cream:       #f7f4ee;
  --paper:       #efe9dd;
  --gold:        #d9a821;  /* their logo gold #ad8400, brightened for dark-band use */
  --gold-deep:   #6e5507;  /* gold deepened for text on light bands (5.2:1 worst-case) */
  --gold-muted:  rgba(217,168,33,0.28);
  --text-dark:   #101a36;
  --text-body:   #454b5e;
  --text-muted:  #6b7080;
  --text-light:  rgba(255,255,255,0.92);
  --text-light-muted: rgba(255,255,255,0.62);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Space Grotesk', sans-serif;

  --wrap: min(90%, 1100px);
  --pad-section: clamp(3.5rem, 7vw, 6rem);
  --nav-h: 76px;

  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { width: var(--wrap); margin-inline: auto; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  height: var(--nav-h);
  transition: background .35s var(--ease-smooth), box-shadow .35s var(--ease-smooth);
}
.nav--solid {
  background: rgba(6,13,34,0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}
.nav__inner {
  width: var(--wrap); margin-inline: auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.nav__logo { width: auto; height: 40px; max-width: 190px; object-fit: contain; filter: brightness(0) invert(1); }
.nav__links { display: flex; align-items: center; gap: clamp(1.2rem, 2.5vw, 2.2rem); }
.nav__link {
  color: var(--text-light); font-weight: 500; font-size: 0.95rem;
  letter-spacing: 0.02em; opacity: 0.85; transition: opacity .25s;
}
.nav__link:hover { opacity: 1; }
.nav__cta {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: var(--gold); color: var(--navy-2);
  font-weight: 700; font-size: 0.9rem;
  padding: 0.6rem 0.65rem 0.6rem 1.15rem; border-radius: 999px;
  transition: transform .35s var(--ease-bounce), background .25s;
}
.nav__cta:hover { transform: translateY(-2px); background: #eec23c; }
.nav__cta-icon {
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--navy-2); color: var(--gold);
}
.nav__cta-icon svg { width: 13px; height: 13px; }
.nav__burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 10px; z-index: 300;
}
.nav__burger span { width: 26px; height: 2px; background: #fff; transition: transform .3s, opacity .3s; }
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 250;
  background: var(--navy-2);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3rem;
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease-smooth), visibility .35s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu__links { display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }
.mobile-menu__link {
  color: var(--text-light); font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.8rem, 7vw, 2.6rem); letter-spacing: -0.02em;
}
.mobile-menu__link--cta { color: var(--gold); }
.mobile-menu__meta { color: var(--text-light-muted); font-size: 0.95rem; letter-spacing: 0.06em; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(217,168,33,0.14), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--text-light);
  display: flex; flex-direction: column;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero__grid {
  width: var(--wrap); margin-inline: auto; flex: 1;
  display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,0.95fr);
  align-items: center; gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(2.5rem, 5vh, 4rem);
}
.hero__eyebrow {
  color: var(--gold); font-weight: 500; font-size: 0.85rem;
  letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 1.4rem;
}
.hero__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  line-height: 1.02; letter-spacing: -0.03em;
}
.hero__title span { display: block; }
.hero__title em { font-style: normal; color: var(--gold); }
.hero__sub {
  margin-top: 1.6rem; max-width: 46ch;
  color: var(--text-light-muted); font-size: clamp(1rem, 1.4vw, 1.15rem); font-weight: 300;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }
.hero__media { position: relative; }
.hero__img {
  width: 100%; aspect-ratio: 4/4.4; object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.45);
}
.hero__tag {
  position: absolute; left: -14px; bottom: 26px; max-width: 100%;
  background: var(--gold); color: var(--navy-2);
  font-weight: 700; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.7rem 1.1rem; border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}
.hero__ticker {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-block: 1.1rem; overflow: hidden; white-space: nowrap;
}
.hero__ticker-track {
  display: inline-flex; align-items: center; gap: 2.2rem;
  animation: ticker 26s linear infinite;
}
.hero__ticker-track span {
  color: var(--text-light-muted); font-weight: 500;
  font-size: 0.9rem; letter-spacing: 0.18em; text-transform: uppercase;
}
.hero__ticker-track i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex-shrink: 0;
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Buttons ---------- */
.btn-pill {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-weight: 700; font-size: 0.98rem;
  padding: 0.85rem 0.85rem 0.85rem 1.5rem; border-radius: 999px;
  transition: transform .35s var(--ease-bounce), background .25s, color .25s, border-color .25s;
}
.btn-pill:hover { transform: translateY(-3px); }
.btn-pill__icon {
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  transition: transform .35s var(--ease-bounce);
}
.btn-pill:hover .btn-pill__icon { transform: rotate(-45deg); }
.btn-pill__icon svg { width: 15px; height: 15px; }
.btn-pill--gold { background: var(--gold); color: var(--navy-2); }
.btn-pill--gold:hover { background: #eec23c; }
.btn-pill--gold .btn-pill__icon { background: var(--navy-2); color: var(--gold); }
.btn-pill--ghost {
  border: 1.5px solid rgba(255,255,255,0.35); color: var(--text-light);
  padding-right: 1.5rem;
}
.btn-pill--ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Shared section bits ---------- */
.eyebrow {
  color: var(--gold-deep); font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.24em; text-transform: uppercase; margin-bottom: 1rem;
}
.eyebrow--light { color: var(--gold); }
.section-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; letter-spacing: -0.025em;
  color: var(--text-dark);
}
.section-title--light { color: var(--text-light); }
.section-sub { margin-top: 1.1rem; max-width: 60ch; color: var(--text-body); font-size: 1.05rem; }
.section-sub--light { color: var(--text-light-muted); }

/* ---------- Intro ---------- */
.intro { background: var(--cream); padding-block: var(--pad-section); }
.intro__grid {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
}
.intro__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.08; letter-spacing: -0.025em;
}
.intro__body p { color: var(--text-body); font-size: 1.05rem; }
.intro__body p + p { margin-top: 1.1rem; }

/* ---------- Services ---------- */
.services { background: var(--paper); padding-block: var(--pad-section) 0; }
.services > .wrap { padding-bottom: clamp(2rem, 4vw, 3.5rem); }
.service {
  width: var(--wrap); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}
.service + .service { border-top: 1px solid rgba(16,26,54,0.1); }
.service--flip .service__media { order: 2; }
.service__media img {
  width: 100%; aspect-ratio: 4/3.2; object-fit: cover; border-radius: 16px;
  box-shadow: 0 24px 60px rgba(10,22,56,0.18);
  transition: transform .5s var(--ease-smooth);
}
.service__media:hover img { transform: scale(1.02); }
.service__num {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: 0.95rem; color: var(--gold-deep); letter-spacing: 0.2em; margin-bottom: 0.8rem;
}
.service__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.6rem, 2.8vw, 2.3rem); letter-spacing: -0.02em; margin-bottom: 1rem;
}
.service__copy p { color: var(--text-body); font-size: 1.05rem; max-width: 52ch; }

/* ---------- Work rail ---------- */
.work { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); padding-block: var(--pad-section); }
.work__head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.work__rail {
  display: flex; gap: clamp(1rem, 2vw, 1.6rem);
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-inline: max(5vw, calc((100vw - 1100px)/2));
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.work__rail::-webkit-scrollbar { display: none; }
.work__card {
  flex: 0 0 clamp(260px, 34vw, 460px); scroll-snap-align: start;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
.work__card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .5s var(--ease-smooth); }
.work__card:hover img { transform: scale(1.04); }

/* ---------- Story / timeline ---------- */
.story { background: var(--cream); padding-block: var(--pad-section); }
.story__grid {
  display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,0.9fr);
  gap: clamp(2.5rem, 6vw, 5rem); align-items: center;
}
.story__text { margin-top: 1.2rem; color: var(--text-body); font-size: 1.05rem; max-width: 56ch; }
.story__timeline { display: flex; flex-direction: column; gap: 1.2rem; }
.milestone {
  background: #fff; border: 1px solid rgba(16,26,54,0.08);
  border-left: 4px solid var(--gold);
  border-radius: 14px; padding: 1.4rem 1.6rem;
  box-shadow: 0 14px 40px rgba(10,22,56,0.08);
  transition: transform .35s var(--ease-bounce);
}
.milestone:hover { transform: translateX(6px); }
.milestone__year {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 3.4vw, 2.8rem); letter-spacing: -0.03em; color: var(--text-dark);
  line-height: 1;
}
.milestone__label { margin-top: 0.4rem; color: var(--text-body); font-size: 0.98rem; }

/* ---------- Reviews ---------- */
.reviews { background: linear-gradient(180deg, var(--navy-2) 0%, var(--navy) 100%); padding-block: var(--pad-section); }
.reviews__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: clamp(1.2rem, 2.5vw, 2rem); margin-top: clamp(2rem, 4vw, 3rem);
}
.review {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; padding: 1.8rem;
  display: flex; flex-direction: column; gap: 1.2rem;
  transition: transform .35s var(--ease-bounce), border-color .3s;
}
.review:hover { transform: translateY(-6px); border-color: var(--gold-muted); }
.review p { color: var(--text-light); font-size: 1.02rem; font-weight: 300; line-height: 1.7; }
.review cite { color: var(--gold); font-style: normal; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- CTA ---------- */
.cta { background: var(--paper); padding-block: var(--pad-section); }
.cta__grid {
  display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,0.9fr);
  gap: clamp(2.5rem, 6vw, 5rem); align-items: center;
}
.cta__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; letter-spacing: -0.025em;
}
.cta__sub { margin-top: 1.2rem; color: var(--text-body); font-size: 1.05rem; max-width: 52ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.cta .btn-pill--ghost { border-color: rgba(16,26,54,0.3); color: var(--text-dark); }
.cta .btn-pill--ghost:hover { border-color: var(--gold-deep); color: var(--gold-deep); }
.cta__media img {
  width: 100%; aspect-ratio: 4/4.6; object-fit: cover; border-radius: 18px;
  box-shadow: 0 30px 70px rgba(10,22,56,0.22);
}

/* ---------- Footer ---------- */
.footer { background: var(--navy-2); color: var(--text-light); padding-top: var(--pad-section); }
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem); padding-bottom: 3rem;
}
.footer__logo { width: auto; height: 44px; max-width: 200px; object-fit: contain; filter: brightness(0) invert(1); margin-bottom: 1.1rem; }
.footer__tag { color: var(--text-light-muted); font-size: 0.95rem; max-width: 34ch; }
.footer__nav { display: flex; flex-direction: column; gap: 0.2rem; }
.footer__link { color: var(--text-light-muted); transition: color .25s; display: inline-block; padding-block: 0.35rem; }
.footer__link:hover { color: var(--gold); }
.footer__contact p { color: var(--text-light-muted); font-size: 0.95rem; }
.footer__contact p + p { margin-top: 0.9rem; }
.footer__base {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-block: 1.4rem;
  color: var(--text-light-muted); font-size: 0.85rem;
}

/* ---------- Reveal animation base ---------- */
.reveal, .reveal-hero { opacity: 0; }
.no-js .reveal, .no-js .reveal-hero { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; padding-block: 2rem 3rem; }
  .hero { min-height: 0; }
  .hero__img { aspect-ratio: 4/3; }
  .hero__tag { left: 12px; bottom: 14px; }
  .intro__grid, .story__grid, .cta__grid { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1fr; gap: 1.6rem; }
  .service--flip .service__media { order: 0; }
  .reviews__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .cta__media { order: -1; }
  .cta__media img { aspect-ratio: 4/3; }
}
@media (max-width: 480px) {
  .hero__actions .btn-pill { width: 100%; justify-content: space-between; }
  .hero__actions .btn-pill--ghost { justify-content: center; }
  .cta__actions .btn-pill { width: 100%; justify-content: space-between; }
  .cta__actions .btn-pill--ghost { justify-content: center; }
  .footer__link { padding-block: 0.65rem; }
  .work__card { flex-basis: 82vw; }
}
