/* ===== 40 North Renovations — Park-style immersive build ===== */
:root {
  --gold: #e5a93d;
  --gold-dark: #c98f24;
  --ink: #23211e;          /* warm near-black */
  --charcoal: #3a3733;
  --stone: #f3f0ea;        /* warm neutral background */
  --stone-2: #e9e4db;
  --paper: #ffffff;
  --muted: #807a70;
  --line: #e2ddd3;
  --dark: #211f1c;         /* dark sections */
  --nav-h: 84px;
  --maxw: 1240px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: "Barlow Condensed", sans-serif; font-weight: 600; line-height: 1.04; letter-spacing: .01em; }

/* ---- shared bits ---- */
.kicker {
  display: inline-block;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 18px;
}
.kicker-light { color: var(--gold); }

.btn {
  display: inline-block;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 15px 30px;
  border: 1.5px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: all .25s var(--ease);
}
.btn-solid { background: var(--gold); color: var(--ink); }
.btn-solid:hover { background: var(--gold-dark); transform: translateY(-2px); }
.btn-line { border-color: rgba(255,255,255,.85); color: #fff; }
.btn-line:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }

.link-arrow {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .95rem;
  color: var(--gold-dark);
  transition: color .2s, transform .2s;
}
.link-arrow:hover { color: var(--gold); transform: translateX(3px); }

/* ---- reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ===== Header ===== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 56px);
  z-index: 100;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), height .35s var(--ease);
}
.logo { height: 46px; transition: filter .35s; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)) brightness(0) invert(1); }
.site-header.scrolled { background: rgba(255,255,255,.96); box-shadow: 0 2px 24px rgba(0,0,0,.08); height: 72px; backdrop-filter: blur(6px); }
.site-header.scrolled .logo { filter: none; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  transition: color .2s;
}
.site-header.scrolled .nav-links a { color: var(--charcoal); }
.nav-links a:hover { color: var(--gold); }
.nav-cta { background: var(--gold); color: var(--ink) !important; padding: 10px 20px; border-radius: 2px; }
.nav-cta:hover { background: var(--gold-dark); color: var(--ink) !important; }
.site-header.scrolled .nav-cta { color: var(--ink) !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; }
.nav-toggle span { width: 26px; height: 2px; background: #fff; transition: background .3s; }
.site-header.scrolled .nav-toggle span { background: var(--charcoal); }

/* ===== Hero ===== */
.hero { position: relative; height: 100vh; min-height: 620px; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.25) 40%, rgba(0,0,0,.55) 100%); }
.hero-inner { position: relative; max-width: 900px; padding: 0 24px; }
.hero-h1 { font-size: clamp(3rem, 8vw, 6.4rem); font-weight: 700; text-shadow: 0 4px 30px rgba(0,0,0,.4); }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 300; margin: 22px auto 36px; max-width: 620px; color: rgba(255,255,255,.94); text-shadow: 0 2px 16px rgba(0,0,0,.4); }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.scroll-cue { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.7); border-radius: 14px; }
.scroll-cue span { position: absolute; top: 8px; left: 50%; width: 3px; height: 8px; background: #fff; border-radius: 2px; transform: translateX(-50%); animation: cue 1.6s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 14px); } }

/* ===== Intro statement ===== */
.statement { max-width: 980px; margin: 0 auto; padding: clamp(90px, 14vw, 160px) 24px; text-align: center; }
.statement-lead { font-size: clamp(1.5rem, 3.4vw, 2.5rem); font-family: "Barlow Condensed", sans-serif; font-weight: 500; line-height: 1.22; color: var(--ink); }

/* ===== Full-bleed bands ===== */
.band { position: relative; height: clamp(460px, 80vh, 760px); display: flex; align-items: flex-end; overflow: hidden; }
.band-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.6) 100%); }
.band-caption { position: relative; color: #fff; padding: clamp(36px, 6vw, 80px); max-width: 720px; }
.band-caption h2 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 700; text-shadow: 0 3px 22px rgba(0,0,0,.45); }
.band-caption p { font-size: clamp(1rem, 1.6vw, 1.2rem); font-weight: 300; margin-top: 14px; color: rgba(255,255,255,.95); max-width: 540px; }

/* ===== Alternating feature rows ===== */
.feature { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(30px, 6vw, 90px); max-width: var(--maxw); margin: 0 auto; padding: clamp(70px, 10vw, 130px) clamp(20px, 4vw, 40px); }
.feature-rev .feature-media { order: 2; }
.feature-media img { width: 100%; height: clamp(360px, 48vw, 560px); object-fit: cover; border-radius: 4px; box-shadow: 0 30px 60px rgba(0,0,0,.14); }
.feature-text h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; color: var(--ink); margin-bottom: 18px; }
.feature-text p { color: var(--muted); font-size: 1.08rem; margin-bottom: 26px; max-width: 520px; }

/* ===== Sections ===== */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(70px, 10vw, 130px) clamp(20px, 4vw, 40px); }
.section-stone { max-width: none; background: var(--stone); }
.section-stone > * { max-width: var(--maxw); margin-inline: auto; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; color: var(--ink); }
.section-lead { color: var(--muted); max-width: 620px; margin: 14px auto 0; font-size: 1.08rem; }
.section-lead.light { color: rgba(255,255,255,.8); }

/* ---- Work switch ---- */
.work-switch { position: relative; display: inline-flex; gap: 6px; padding: 6px; background: var(--stone); border: 1px solid var(--line); border-radius: 999px; margin: 0 auto 44px; left: 50%; transform: translateX(-50%); }
.switch-btn { position: relative; z-index: 2; border: 0; background: none; cursor: pointer; padding: 10px 26px; border-radius: 999px; font-family: "Barlow Condensed", sans-serif; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .95rem; color: var(--muted); transition: color .25s; }
.switch-btn.is-active { color: var(--ink); }
.switch-pill { position: absolute; z-index: 1; top: 6px; bottom: 6px; background: var(--paper); border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,.1); transition: left .3s var(--ease), width .3s var(--ease); }

/* ---- Gallery (big photos, masonry-ish) ---- */
.gallery { columns: 3; column-gap: 18px; }
.tile { position: relative; break-inside: avoid; margin-bottom: 18px; overflow: hidden; border-radius: 4px; }
.tile img { width: 100%; transition: transform .7s var(--ease); }
.tile:hover img { transform: scale(1.05); }
.tile figcaption { position: absolute; inset: auto 0 0 0; padding: 28px 22px 18px; color: #fff; background: linear-gradient(180deg, transparent, rgba(0,0,0,.72)); opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .35s; }
.tile:hover figcaption { opacity: 1; transform: none; }
.tile figcaption h3 { font-size: 1.5rem; font-weight: 600; }
.tile figcaption span { font-size: .92rem; color: rgba(255,255,255,.85); }

/* ---- Services (rounded cards, click to open modal) ---- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.service-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: 6px;
  padding: 30px 28px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover,
.service-card:focus-within { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(0,0,0,.12); z-index: 30; outline: none; }
.service-card h3 { font-size: 1.6rem; color: var(--charcoal); margin-bottom: 10px; }
.service-card p { color: var(--muted); }
.service-card .service-pop { display: none; }

/* brand line filling the empty bottom-right grid cells */
.services-note {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  text-align: right;
  padding: 10px 28px;
}
.services-note p {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 500;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height: 1.16;
  color: var(--charcoal);
  margin-bottom: 14px;
  max-width: 460px;
}

/* Centered service modal */
.service-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; }
.service-modal[hidden] { display: none; }
.service-modal__backdrop { position: absolute; inset: 0; background: rgba(20,20,20,.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .25s ease; }
.service-modal__dialog {
  position: relative; width: min(440px, 92vw);
  background: var(--paper); border-top: 4px solid var(--gold); border-radius: 14px;
  padding: 34px 36px; box-shadow: 0 30px 70px rgba(0,0,0,.35);
  opacity: 0; transform: translateY(16px) scale(.95);
  transition: opacity .25s ease, transform .25s ease; text-align: left;
}
.service-modal.is-open .service-modal__backdrop { opacity: 1; }
.service-modal.is-open .service-modal__dialog { opacity: 1; transform: translateY(0) scale(1); }
.service-modal__close {
  position: absolute; top: 12px; right: 14px; width: 38px; height: 38px;
  border: 0; background: transparent; font-size: 1.9rem; line-height: 1;
  color: var(--muted); cursor: pointer; border-radius: 50%;
  transition: color .2s ease, background .2s ease;
}
.service-modal__close:hover { color: var(--ink); background: var(--stone); }
.service-modal__body h4 {
  font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.9rem;
  letter-spacing: .02em; color: var(--charcoal); padding-bottom: 14px; margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.service-modal__body ul { list-style: none; display: grid; gap: 11px; margin-bottom: 22px; }
.service-modal__body li { position: relative; padding-left: 22px; font-size: 1rem; color: var(--ink); line-height: 1.45; }
.service-modal__body li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.service-pop-cta {
  display: inline-block; font-family: "Barlow Condensed", sans-serif; font-weight: 600;
  font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-dark);
  transition: color .2s ease, transform .2s ease;
}
.service-pop-cta:hover { color: var(--gold); transform: translateX(2px); }
body.modal-open { overflow: hidden; }

/* ---- Before / After ---- */
.ba-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.ba-card figcaption { text-align: center; margin-top: 14px; font-family: "Barlow Condensed", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--charcoal); }
.ba-compare { --pos: 50%; position: relative; aspect-ratio: 4/3; border-radius: 4px; overflow: hidden; cursor: ew-resize; box-shadow: 0 18px 40px rgba(0,0,0,.12); outline: none; }
.ba-compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before-wrap { position: absolute; inset: 0; width: 100%; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-before-wrap .ba-before { width: 100%; height: 100%; object-fit: cover; }
.ba-tag { position: absolute; top: 12px; font-family: "Barlow Condensed", sans-serif; letter-spacing: .1em; text-transform: uppercase; font-size: .72rem; padding: 5px 10px; background: rgba(0,0,0,.6); color: #fff; border-radius: 2px; }
.ba-tag-before { left: 12px; } .ba-tag-after { right: 12px; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff; transform: translateX(-1px); box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.ba-handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; background: #fff; border-radius: 50%; transform: translate(-50%,-50%); box-shadow: 0 2px 10px rgba(0,0,0,.3); }

/* ===== About split ===== */
.about { display: grid; grid-template-columns: 1fr 1fr; min-height: 80vh; }
.about-media { position: relative; overflow: hidden; background: var(--stone-2); }
/* blurred fill so the panel is full edge-to-edge */
.about-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/team.jpg") center / cover no-repeat;
  filter: blur(22px) brightness(.82);
  transform: scale(1.18);
}
/* full, uncropped photo centered on top — nobody cut out */
.about-media img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; }
.about-text { display: flex; flex-direction: column; justify-content: center; padding: clamp(50px, 8vw, 110px); background: var(--stone); }
.about-text h2 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 700; color: var(--ink); margin-bottom: 22px; }
.about-text p { color: var(--muted); font-size: 1.08rem; max-width: 520px; }
.stats { display: flex; gap: 40px; margin-top: 40px; flex-wrap: wrap; }
.stat strong { display: block; font-family: "Barlow Condensed", sans-serif; font-size: 2.6rem; color: var(--gold-dark); line-height: 1; }
.stat span { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ===== Contact ===== */
.contact { background: var(--dark); color: #fff; padding: clamp(70px, 10vw, 130px) clamp(20px, 4vw, 40px); }
.contact-inner { max-width: var(--maxw); margin: 0 auto; }
.contact .section-head h2 { color: #fff; }
.contact-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.contact-form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 15px 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); border-radius: 3px; color: #fff; font-family: inherit; font-size: 1rem;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255,255,255,.5); }
.contact-form select { color: rgba(255,255,255,.6); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); }
.form-note { color: var(--gold); font-size: .92rem; }
.contact-info h3 { font-size: 1.6rem; color: #fff; margin-bottom: 18px; }
.contact-info p { color: rgba(255,255,255,.7); margin-bottom: 16px; }
.contact-info a { color: #fff; } .contact-info a:hover { color: var(--gold); }
.contact-info strong { color: var(--gold); font-family: "Barlow Condensed", sans-serif; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; font-weight: 600; }

/* ===== Footer ===== */
.site-footer { background: #1a1916; color: rgba(255,255,255,.7); text-align: center; padding: 50px 24px; }
.footer-logo { height: 40px; margin: 0 auto 18px; filter: brightness(0) invert(1); opacity: .9; }
.footer-copy { font-size: .9rem; }
.footer-credits { display: block; margin-top: 8px; font-size: .8rem; color: rgba(255,255,255,.45); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .gallery { columns: 2; }
  .feature, .about { grid-template-columns: 1fr; }
  .feature-rev .feature-media { order: 0; }
  .contact-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav-toggle { display: flex; }
  .nav-links { position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; gap: 0; background: rgba(20,19,16,.98); padding: 10px 0; transform: translateY(-120%); transition: transform .35s var(--ease); }
  .nav-links.open { transform: none; }
  .nav-links a { color: #fff; display: block; padding: 16px 28px; width: 100%; }
  .site-header.scrolled .nav-links a { color: #fff; }
  .nav-cta { margin: 10px 28px; text-align: center; }
  .gallery { columns: 1; }
  .form-row { grid-template-columns: 1fr; }
  .statement-lead { font-size: 1.5rem; }
  .services-note { grid-column: auto; align-items: flex-start; text-align: left; padding: 4px 28px 20px; }
}
