/* ============================================================
   HAMMERS & HALOS — "neutral + yellow" warm theme
   Charcoal #1F1F1F · Warm White #F7F5F2 · Halo Gold #C9A86A
   Deep Navy #24364B · Sage Green #8A9B7A
   ============================================================ */

:root {
  --cream:    #F4EEE3;   /* main background */
  --cream-2:  #ECE3D4;   /* alternating sections */
  --paper:    #FBF8F1;   /* cards / lightest */
  --charcoal: #1E1E1F;   /* dark sections / footer — neutral charcoal */
  --charcoal-2:#2A2A2C;

  --ink:      #221F18;
  --muted:    #6E6557;
  --faint:    #968B79;
  --line:     rgba(34, 31, 24, 0.12);
  --line-soft:rgba(34, 31, 24, 0.07);

  --gold:      #C9A86A;
  --gold-deep: #A9863F;   /* readable gold text on light */
  --gold-soft: #DBC18C;
  --sage:      #8A9B7A;
  --navy:      #24364B;

  --container: 1400px;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --r: 22px;
  --r-lg: 30px;
  --shadow: 0 22px 50px -26px rgba(40, 30, 12, .35);
  --shadow-lg: 0 40px 80px -36px rgba(40, 30, 12, .45);

  --font-display: 'Barlow Condensed', 'Barlow', sans-serif;
  --font-head: 'Barlow Semi Condensed', 'Barlow', sans-serif;
  --font-body: 'Barlow', system-ui, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ---------- type helpers ---------- */
.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase; letter-spacing: .26em;
  font-size: .72rem; font-weight: 600; color: var(--gold-deep);
  display: inline-flex; align-items: center; gap: .8rem; margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold-deep); opacity: .8; }
.display {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.1rem, 5.4vw, 4rem); line-height: .98; letter-spacing: .005em; color: var(--ink);
}
.gold { color: var(--gold-deep); }
.head { max-width: 720px; margin: 0 auto clamp(2.8rem, 6vw, 4.5rem); text-align: center; }
.head .eyebrow { justify-content: center; }
.head__lead { margin-top: 1.2rem; color: var(--muted); font-size: 1.1rem; }
.section { padding: clamp(4.5rem, 10vw, 8rem) 0; }

/* ============================================================ BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .12em;
  font-size: .82rem; font-weight: 600; padding: 1rem 1.9rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
  white-space: nowrap;
}
.btn--sm { padding: .68rem 1.3rem; font-size: .74rem; }
.btn--lg { padding: 1.15rem 2.4rem; font-size: .9rem; }
.btn--block { width: 100%; }
.btn--gold { background: var(--gold); color: #25200f; box-shadow: 0 12px 28px -12px rgba(201,168,106,.7); }
.btn--gold:hover { background: #fff; color: #1f1d1a; transform: none; box-shadow: 0 12px 28px -10px rgba(0,0,0,.35); }
.btn--ghost-dark { border-color: var(--line); color: var(--ink); }
.btn--ghost-dark:hover { border-color: var(--gold-deep); color: var(--gold-deep); transform: translateY(-3px); }

/* ============================================================ NAV */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
/* No scroll bar / no background — just the floating button. */
.nav__inner { display: flex; align-items: center; justify-content: flex-end; width: 100%; padding-inline: clamp(1.25rem, 3.5vw, 3.25rem); height: 86px; }
.nav__cta:hover { background: #fff; color: #1f1d1a; transform: none; box-shadow: 0 12px 28px -10px rgba(0,0,0,.35); }
.brand { display: inline-flex; align-items: center; }
/* Logo hidden over the hero; fades in once the user scrolls (.is-scrolled) */
.brand__logo { height: 44px; width: auto; display: block; opacity: 0; transform: translateY(-4px); pointer-events: none; transition: height .4s var(--ease), opacity .4s var(--ease), transform .4s var(--ease); }
.nav.is-scrolled .brand__logo { opacity: 1; transform: none; pointer-events: auto; }
.brand:hover .brand__logo { opacity: .8; }
.nav__links { display: flex; align-items: center; gap: 1.8rem; flex: 1; }
.nav__cta { margin-left: auto; }
.nav__links > a:not(.btn) {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .1em;
  font-size: .8rem; font-weight: 600; color: var(--muted); position: relative; padding: .25rem 0;
  transition: color .3s var(--ease);
}
/* At the top, over the dark hero photo: white nav links + white hamburger */
.nav:not(.is-scrolled) .nav__links > a:not(.btn) { color: rgba(255,255,255,.88); }
.nav:not(.is-scrolled) .nav__links > a:not(.btn):hover { color: #fff; }
.nav:not(.is-scrolled) .nav__toggle span { background: #fff; }
.nav__links > a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px; background: var(--gold-deep); transition: width .3s var(--ease); }
.nav__links > a:not(.btn):hover { color: var(--ink); }
.nav__links > a:not(.btn):hover::after { width: 100%; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 26px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================ HERO */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column;
  text-align: center; background: transparent;
}
/* Fixed B&W backdrop: stays locked to the viewport while the hero content
   and every following (opaque) section scroll up over it. */
.hero-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.hero-bg__img {
  position: absolute; inset: 0;
  background:
    url('./assets/Landing2_HammersAndHalos.jpg') center/cover no-repeat,
    var(--charcoal);
  filter: grayscale(1) brightness(.8);
  transform: scale(1.06); animation: heroZoom 20s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-bg__scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(85% 75% at 50% 42%, rgba(15,13,10,.32) 0%, rgba(15,13,10,.60) 100%),
    linear-gradient(0deg, rgba(15,13,10,.85) 0%, rgba(15,13,10,.25) 36%, rgba(15,13,10,.42) 100%);
}
.hero__center {
  position: relative; z-index: 2; flex: 1; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 96px var(--pad) 0;
}
/* Sized by width AND height so it scales up on large screens but never
   collides with the nav or the caption on short/wide viewports. */
.hero__logo { width: min(86vw, 52vh, 620px); height: auto; }
.hero__caption {
  position: relative; z-index: 2; padding: 0 var(--pad) clamp(2rem, 6vh, 4rem);
}
.hero__title {
  margin: 0 auto .9rem; max-width: 1120px; text-wrap: balance;
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.25rem, 3.2vw, 2.35rem); line-height: 1.05; letter-spacing: .1em;
  color: #F6F1E6; text-shadow: 0 2px 30px rgba(0,0,0,.5);
}
.hero__sub {
  margin: 0 auto; max-width: 620px;
  font-size: clamp(.98rem, 1.7vw, 1.2rem); line-height: 1.6;
  color: rgba(246,241,230,.86); text-shadow: 0 2px 20px rgba(0,0,0,.55);
}

/* ============================================================ ABOUT */
.about { background: var(--charcoal); color: var(--cream); text-align: center; }
.about__inner { max-width: 820px; margin-inline: auto; }
.about .eyebrow { justify-content: center; color: var(--gold); }
.about .eyebrow::before { background: var(--gold); }
.about .display { color: #F6F1E6; }
.about .gold { color: var(--gold); }
.about__lead { margin-top: 1.6rem; font-size: clamp(1.1rem, 1.9vw, 1.35rem); color: #D7CEBE; line-height: 1.7; }
.about__mantra {
  margin-top: 2.2rem; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .2em;
  font-size: .95rem; color: var(--faint);
}
.about__mantra span { color: var(--gold); }

/* ============================================================ SHOWCASE IMAGE */
.showcase { background: var(--charcoal); padding-bottom: clamp(4rem, 9vw, 7rem); }
.showcase__frame { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.showcase__img {
  height: clamp(320px, 52vw, 620px);
  background-image: var(--img);
  background-size: cover; background-position: center; background-color: var(--charcoal-2);
}
.showcase__quote {
  position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(1.5rem, 4vw, 3rem);
  font-family: var(--font-head); font-weight: 500; color: #fff;
  font-size: clamp(1.2rem, 2.6vw, 2rem); line-height: 1.25; max-width: 760px;
}
.showcase__mark { color: var(--gold); font-size: 2em; line-height: 0; vertical-align: -.3em; margin-right: .2em; }

/* ============================================================ SERVICES */
.services-sec { background: var(--cream); }
.services { max-width: 1040px; margin-inline: auto; }
.svc {
  display: grid; grid-template-columns: minmax(200px, 1fr) 2fr; gap: 1.4rem 3rem;
  padding: 2.2rem 0; border-top: 1px solid var(--line); align-items: start;
}
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc h3 {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .04em;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 600; color: var(--ink); line-height: 1.1;
}
.svc p { color: var(--muted); font-size: 1.05rem; max-width: 62ch; }
.service {
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.service:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.service__media {
  height: 210px; background-image: var(--img); background-size: cover; background-position: center; background-color: var(--cream-2);
  transition: transform .6s var(--ease);
}
.service:hover .service__media { transform: scale(1.05); }
.service__body { padding: 1.9rem; display: flex; flex-direction: column; flex: 1; }
.service__body h3 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .04em; font-size: 1.4rem; font-weight: 600; margin-bottom: .55rem; }
.service__body > p { color: var(--muted); margin-bottom: 1.3rem; }
.service__body ul { list-style: none; display: grid; gap: .5rem; margin-top: auto; }
.service__body li { font-size: .94rem; padding-left: 1.4rem; position: relative; }
.service__body li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; background: var(--gold); border-radius: 2px; transform: rotate(45deg); }

/* ============================================================ TEAM */
.team-sec { background: var(--cream-2); }
.team { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6rem 2rem; }
.member { flex: 1 1 280px; max-width: 340px; }
.member { text-align: left; }
.member__photo {
  aspect-ratio: 4/5; border-radius: var(--r); overflow: hidden; margin-bottom: 1.2rem;
  background-image: linear-gradient(180deg, rgba(20,16,8,0), rgba(20,16,8,.18)), var(--img);
  background-size: cover; background-position: center top; background-color: var(--cream);
  box-shadow: var(--shadow); filter: grayscale(.15);
  transition: transform .45s var(--ease), filter .45s var(--ease), box-shadow .45s var(--ease);
}
.member:hover .member__photo { transform: translateY(-6px); filter: grayscale(0); box-shadow: var(--shadow-lg); }
.member h3 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .04em; font-size: 1.3rem; font-weight: 600; }
.member__role { color: var(--gold-deep); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin: .15rem 0 .7rem; }
.member__bio { color: var(--muted); font-size: .95rem; }
/* Stagger by column so BOTH rows build left → right (overrides the generic
   .reveal:nth-child delays, which made row 2 appear right → left). */
.team .member.reveal:nth-child(3n+1) { transition-delay: 0s; }
.team .member.reveal:nth-child(3n+2) { transition-delay: .1s; }
.team .member.reveal:nth-child(3n+3) { transition-delay: .2s; }

.values { margin-top: clamp(3rem, 6vw, 5rem); text-align: center; border-top: 1px solid var(--line); padding-top: clamp(2.5rem, 5vw, 4rem); }
.values__label { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .22em; font-size: .74rem; color: var(--gold-deep); margin-bottom: 1.4rem; }
.values__list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem 1rem; }
.values__list li {
  font-family: var(--font-display); text-transform: uppercase; font-weight: 700; letter-spacing: .02em;
  font-size: clamp(1.3rem, 3vw, 2.1rem); color: var(--ink);
}
.values__list li:not(:last-child)::after { content: "·"; color: var(--gold); margin-left: 1rem; }

/* ============================================================ TESTIMONIALS */
.testimonials-sec { background: var(--cream); }
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.testimonial {
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r);
  padding: 2.2rem 2rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 1.1rem;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.testimonial:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.testimonial__stars { color: var(--gold); letter-spacing: .18em; }
.testimonial blockquote { font-size: 1.1rem; line-height: 1.6; flex: 1; }
.testimonial figcaption { display: flex; flex-direction: column; gap: .15rem; }
.testimonial__name { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.testimonial__meta { font-size: .8rem; letter-spacing: .05em; color: var(--gold-deep); text-transform: uppercase; }

/* ============================================================ BEFORE & AFTER */
.ba-sec { background: var(--cream-2); }
.ba {
  position: relative; max-width: 980px; margin-inline: auto;
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 16/9; user-select: none; touch-action: none;
}
.ba__img { position: absolute; inset: 0; background-image: var(--img); background-size: cover; background-position: center; background-color: var(--charcoal-2); }
/* Full-size and stationary; the swipe just clips it to reveal the "after" beneath. */
.ba__before { clip-path: inset(0 50% 0 0); }
.ba__tag {
  position: absolute; bottom: 1rem; z-index: 4;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; font-weight: 600;
  background: rgba(20,16,8,.72); color: #fff; padding: .4rem .85rem; border-radius: 999px; backdrop-filter: blur(4px);
}
.ba__tag--before { left: 1rem; }
.ba__tag--after { right: 1rem; }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%);
  background: var(--gold); z-index: 5; pointer-events: none;
}
.ba__grip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%; background: var(--gold); color: #25200f;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.ba__grip::before, .ba__grip::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; border-block: 6px solid transparent; }
.ba__grip::before { left: 11px; border-right: 8px solid #25200f; transform: translateY(-50%); }
.ba__grip::after  { right: 11px; border-left: 8px solid #25200f; transform: translateY(-50%); }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 6; margin: 0; }

/* ============================================================ CONTACT */
.contact-sec { background: var(--cream); }
.contact { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact__intro .display { margin-bottom: 1.3rem; }
.contact__lead { color: var(--muted); font-size: 1.08rem; }
.contact__meta { list-style: none; margin-top: 2.2rem; display: grid; gap: 1rem; }
.contact__meta li { color: var(--ink); }
.contact__meta strong { display: block; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; color: var(--gold-deep); margin-bottom: .15rem; }
.contact__meta a:hover { color: var(--gold-deep); }
.contact__form { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r); padding: clamp(1.75rem, 4vw, 2.6rem); display: grid; gap: 1.4rem; box-shadow: var(--shadow); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.field { position: relative; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--cream); border: 1px solid var(--line); border-radius: 12px;
  color: var(--ink); font-family: var(--font-body); font-size: 1rem; padding: 1.35rem 1rem .65rem;
  transition: border-color .3s var(--ease), background .3s var(--ease); appearance: none;
}
.field textarea { padding-top: 1.5rem; resize: vertical; min-height: 120px; }
.field select { padding-top: 1.35rem; cursor: pointer; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-deep); background: #fff; }
/* Every field uses a persistent label at the top (matching the Project Type
   dropdown) so all fields look consistent. */
.field label {
  position: absolute; left: 1rem; top: .62rem; pointer-events: none;
  color: var(--gold-deep); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
}
.form__note { color: var(--sage); font-size: .92rem; text-align: center; }

/* ============================================================ FOOTER */
.footer { background: var(--charcoal); color: #D7CEBE; padding-top: clamp(3.5rem, 7vw, 5.5rem); }
.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 2.5rem; padding-bottom: 3.5rem; border-bottom: 1px solid rgba(247,245,242,.08); }
/* Footer logo is always visible (overrides the nav's hidden-until-scroll logo). */
.footer__brand .brand__logo { height: 84px; margin-bottom: 1.4rem; opacity: 1; transform: none; pointer-events: auto; }
.footer__tag { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .16em; font-size: .92rem; color: var(--gold); margin-bottom: .5rem; }
.footer__mantra { color: var(--faint); max-width: 340px; font-size: 1.08rem; }
.footer__lic { margin-top: 1rem; color: var(--faint); font-size: .95rem; }
.footer__lic a:hover { color: var(--gold); }
.footer__nav { display: flex; flex-direction: column; gap: .9rem; align-items: flex-start; }
.footer__nav h4 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .14em; font-size: .84rem; color: var(--gold); margin-bottom: .3rem; }
.footer__nav a:not(.btn) { color: #C7BEAE; transition: color .3s var(--ease); font-size: 1.08rem; }
.footer__nav a:not(.btn):hover { color: var(--gold); }
.footer__base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 2rem; color: var(--faint); font-size: .82rem; }

/* ============================================================ REVEAL */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .06s; }
.reveal:nth-child(3) { transition-delay: .12s; }
.reveal:nth-child(4) { transition-delay: .18s; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================ RESPONSIVE */
@media (max-width: 980px) {
  .team { grid-template-columns: 1fr 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.5rem;
    padding: 5rem var(--pad) 2rem; background: var(--cream); border-left: 1px solid var(--line);
    overflow-y: auto; transform: translateX(100%); transition: transform .4s var(--ease);
  }
  .nav__links.is-open { transform: translateX(0); box-shadow: -30px 0 60px rgba(40,30,12,.25); }
  .nav__links .btn { width: 100%; }
  .nav__toggle { display: flex; z-index: 101; }
  .nav.is-scrolled { backdrop-filter: none; }
}
@media (max-width: 720px) {
  .team { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .svc { grid-template-columns: 1fr; gap: .6rem; padding: 1.8rem 0; }
}
@media (max-width: 460px) {
  .team { grid-template-columns: 1fr; }
}
