/* ============================================================
   NEXO DOORS — Editorial Luxury design system
   White / black / restrained orange · Cormorant + Work Sans
   ============================================================ */

:root {
  --ink: #111110;
  --ink-soft: #56524c;
  --muted: #9a958d;
  --line: #ece9e4;
  --line-soft: #f3f1ee;
  --paper: #ffffff;
  --paper-2: #faf8f5;
  --accent: #d47e19;
  --accent-deep: #b3680f;
  --brand-black: #0c0c0c;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Work Sans", system-ui, sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, monospace;

  --maxw: 1280px;
  --pad: 64px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; margin: 0; }

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 16px 30px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn--accent { background: var(--accent); border-color: var(--accent); }
.btn--accent:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.link-underline {
  font-size: 14px;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 3px;
  transition: color .2s ease;
}
.link-underline:hover { color: var(--accent); }

/* ---------- Header / Nav (white bar) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--pad);
}
.logo-img { height: 40px; width: auto; display: block; }
.nav-links { display: flex; gap: 38px; font-size: 14px; letter-spacing: 0.04em; color: var(--ink-soft); }
.nav-links a { position: relative; padding: 4px 0; transition: color .2s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--accent);
}
.nav-phone { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.05em; color: var(--accent); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: var(--ink); margin: 5px 0; transition: .25s; }

/* ---------- Placeholder imagery ---------- */
.shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #f3efe9;
}
.ph {
  position: relative;
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(135deg, var(--paper-2), var(--paper-2) 14px,
      rgba(0,0,0,0.035) 14px, rgba(0,0,0,0.035) 28px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ph--dark {
  background:
    repeating-linear-gradient(135deg, #0d0d0d, #0d0d0d 14px,
      rgba(255,255,255,0.045) 14px, rgba(255,255,255,0.045) 28px);
}
.ph span {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.42);
  background: rgba(255,255,255,0.6);
  padding: 6px 12px;
  border-radius: 2px;
}
.ph--dark span { color: rgba(255,255,255,0.6); background: rgba(0,0,0,0.35); }

/* ---------- Sections ---------- */
section { position: relative; }
.section-pad { padding: 90px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}
.section-head h2 { font-size: 42px; line-height: 1; }
.section-head .count { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.1em; }

/* ---------- Footer (light) ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink);
  padding: 70px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-grid h4 {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.footer-grid a, .footer-grid p { display: block; font-size: 15px; color: var(--ink-soft); margin: 0 0 10px; }
.footer-grid a:hover { color: var(--accent); }
.footer-logo { height: 46px; width: auto; margin-bottom: 18px; }
.footer-tagline { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line); padding-top: 24px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--muted);
}
.footer-bottom .lic { color: var(--ink-soft); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  :root { --pad: 32px; }
  .section-head h2 { font-size: 34px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-links.open { max-height: 320px; }
  .nav-links a { padding: 18px var(--pad); border-top: 1px solid var(--line-soft); }
  .nav-phone { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 10px; align-items: flex-start; }
}
