/* ===========================================================
   Ajuni Doors — premium, photography-led, editorial
   =========================================================== */

:root {
  --ink: #17120d;
  --ink-2: #2c251d;
  --paper: #fbfaf7;
  --paper-2: #f1ebe2;
  --line: #e7e0d5;
  --muted: #8a8175;
  --brass: #9c7b42;
  --brass-dim: #b6975a;
  --brass-soft: #c9aa6e;
  --white: #ffffff;
  --shadow: 0 30px 60px -34px rgba(23, 18, 13, 0.5);
  --shadow-sm: 0 12px 30px -18px rgba(23, 18, 13, 0.35);
  --radius: 4px;
  --maxw: 1240px;
  --header-h: 80px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.serif-em {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 500;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

h1, h2, h3 { margin: 0 0 .5em; letter-spacing: -0.015em; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.04; font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.8rem); line-height: 1.1; }
h3 { font-size: 1.15rem; line-height: 1.3; }
p { margin: 0 0 1rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--brass);
  margin-bottom: 1.1rem;
}

.lede { font-size: 1.15rem; color: var(--muted); line-height: 1.7; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.95rem 1.8rem;
  font-weight: 500; font-size: 0.92rem; letter-spacing: 0.02em;
  border: 1px solid transparent; cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .2s ease;
  border-radius: 2px;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; transform: translateY(-1px); }
.btn-brass { background: var(--brass); color: #fff; }
.btn-brass:hover { background: var(--brass-dim); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--paper-2); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-lg { padding: 1.1rem 2.2rem; font-size: 0.98rem; }

/* arrow text link */
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 500; font-size: 0.92rem; color: var(--ink);
  border-bottom: 1px solid transparent; transition: gap .2s ease, border-color .2s ease;
}
.link-arrow:hover { gap: 0.7rem; border-color: var(--brass); color: var(--brass); }

/* ---------- Promo bar ---------- */
.promo-bar {
  background: var(--ink);
  color: #e9e1d4;
  text-align: center;
  font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.6rem 1rem;
}
.promo-bar strong { color: var(--brass-soft); font-weight: 600; }
.promo-bar a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.4); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 247, 0.86);
  backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.nav { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }
.brand .logo {
  width: 58px; height: 32px;
  background-color: currentColor;
  -webkit-mask: url("media/logo.png") left center / contain no-repeat;
  mask: url("media/logo.png") left center / contain no-repeat;
}
.brand .name { font-weight: 600; font-size: 1.05rem; letter-spacing: 0.12em; white-space: nowrap; }
.brand small { display: block; font-size: 0.55rem; letter-spacing: 0.26em; color: var(--muted); font-weight: 500; margin-top: 2px; white-space: nowrap; }

.nav-links { display: flex; align-items: center; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 0.85rem; letter-spacing: 0.04em; font-weight: 500; color: var(--ink-2); padding: 0.4rem 0; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--brass); }

.has-drop { position: relative; }
.drop {
  position: absolute; top: 100%; left: -14px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  min-width: 210px; padding: 0.5rem; display: none; border-radius: 2px;
}
.has-drop:hover .drop { display: block; }
.drop a { display: block; padding: 0.6rem 0.8rem; font-size: 0.85rem; }
.drop a:hover { background: var(--paper-2); }

.nav-cta { display: flex; align-items: center; gap: 1.1rem; }
.nav-phone { font-weight: 500; font-size: 0.85rem; letter-spacing: .03em; display: inline-flex; align-items: center; gap: 0.4rem; }
.nav-phone:hover { color: var(--brass); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: var(--ink); margin: 6px 0; transition: .2s; }

/* ---------- Hero (full-bleed image) ---------- */
.hero {
  position: relative;
  min-height: min(94vh, 900px);
  display: flex; align-items: flex-end;
  color: #fff;
  background-color: #17120d;   /* fallback so headline stays readable before/if the video loads */
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img,
.hero-bg video { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(15,11,7,.30) 0%, rgba(15,11,7,.20) 35%, rgba(15,11,7,.78) 100%);
}
.hero .container { position: relative; z-index: 2; padding-top: 6rem; padding-bottom: 4.5rem; }
.hero .eyebrow { color: var(--brass-soft); }
.hero h1 { max-width: 16ch; font-weight: 600; }
.hero .serif-em { color: var(--brass-soft); }
.hero .lede { color: rgba(255,255,255,.82); max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

/* trust strip under hero */
.trust-strip { background: var(--ink); color: #d8cfc0; }
.trust-strip .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; padding-top: 1.5rem; padding-bottom: 1.5rem; }
.trust-strip div { font-size: 0.82rem; letter-spacing: .04em; }
.trust-strip strong { color: #fff; font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section.alt { background: var(--paper-2); }
.section-head { max-width: 680px; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .lede { margin-top: 0.5rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.split.narrow-text { grid-template-columns: 1.05fr 0.95fr; }
.media-frame { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.media-frame.wide img { aspect-ratio: 5/4; }

/* ---------- Featured video ---------- */
.video-frame { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.video-frame video { width: 100%; height: auto; display: block; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- Cards (image-forward) ---------- */
.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.4rem); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card { display: flex; flex-direction: column; background: transparent; }
.card .media { overflow: hidden; border-radius: var(--radius); margin-bottom: 1.1rem; }
.card .media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.card:hover .media img { transform: scale(1.05); }
.card .tag { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--brass); font-weight: 600; margin-bottom: 0.5rem; display: block; }
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--muted); font-size: 0.92rem; margin-bottom: 1rem; }
.card .card-foot { margin-top: auto; }

/* ---------- Value props ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem,3vw,2.5rem); }
.value { padding: 0; }
.value .ic { width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; margin-bottom: 1.2rem; color: var(--brass); font-size: 1.1rem; }
.value h3 { margin-bottom: 0.5rem; }
.value p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- Made in Canada / delivery ---------- */
.flag-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.45rem 1.1rem; font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 1.2rem;
}
.flag-badge .leaf { color: #d52b1e; font-size: 1.05rem; line-height: 1; }
.ships-to { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 2.8rem; }
.ship { text-align: center; padding: 1.5rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.ship strong { display: block; font-size: 1.2rem; letter-spacing: -0.01em; margin-bottom: 0.3rem; }
.ship span { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.03em; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem 3rem; }
.faq-item { border-top: 1px solid var(--line); padding-top: 1.3rem; }
.faq-item h3 { margin-bottom: 0.5rem; }
.faq-item p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem,3vw,2.5rem); }
.step { border-top: 1px solid var(--line); padding-top: 1.4rem; }
.step .num { font-family: "Cormorant Garamond", serif; font-size: 2rem; color: var(--brass); line-height: 1; margin-bottom: 0.8rem; display: block; }
.step h3 { margin-bottom: 0.4rem; }
.step p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ---------- Testimonials ---------- */
.quote-card { padding: 0; }
.quote-card .stars { color: var(--brass); letter-spacing: 3px; margin-bottom: 1rem; font-size: 0.9rem; }
.quote-card p { font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 1.2rem; line-height: 1.45; color: var(--ink); margin-bottom: 1rem; }
.quote-card .who { font-size: 0.82rem; letter-spacing: 0.05em; color: var(--muted); text-transform: uppercase; }

/* ---------- CTA band (image) ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius);
  color: #fff; text-align: center;
  padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 5vw, 4rem);
}
.cta-band .cta-bg { position: absolute; inset: 0; z-index: 0; }
.cta-band .cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(15,11,7,.6), rgba(15,11,7,.82)); }
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; }
.cta-band .eyebrow { color: var(--brass-soft); }
.cta-band p { color: rgba(255,255,255,.82); max-width: 54ch; margin: 0 auto 1.8rem; font-size: 1.05rem; }
.cta-band .hero-cta { justify-content: center; margin-top: 0; }

/* ---------- Forms ---------- */
.form-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem,4vw,2.6rem); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 0.45rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: 2px;
  font: inherit; background: var(--paper); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(156,123,66,.14); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: 0.78rem; color: var(--muted); }
.form-success { background: #f0f4ee; border: 1px solid #cadcc2; color: #38612f; padding: 1rem 1.2rem; border-radius: 2px; display: none; }

/* ---------- Inner page hero ---------- */
.page-hero { padding: clamp(3rem,7vw,5rem) 0 0; }
.breadcrumb { font-size: 0.78rem; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 1.2rem; text-transform: uppercase; }
.breadcrumb a:hover { color: var(--brass); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b7ae9f; padding: 4.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 2.5rem; margin-bottom: 3rem; }
.site-footer h4 { color: #fff; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.2em; margin-bottom: 1.2rem; font-weight: 600; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; font-size: 0.9rem; }
.footer-brand .brand { color: #fff; margin-bottom: 1.3rem; }
.footer-brand .brand .logo { background-color: #fff; }
.footer-brand .brand .name { color: #fff; }
.footer-brand p { font-size: 0.9rem; color: #968d7e; max-width: 36ch; line-height: 1.7; }
.footer-contact { font-size: 0.9rem; display: grid; gap: 0.6rem; line-height: 1.6; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.6rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.78rem; letter-spacing: 0.04em; color: #7e7567; }

/* ---------- Floating mobile call ---------- */
.float-call {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  background: var(--brass); color: #fff; border-radius: 999px;
  padding: 0.9rem 1.4rem; font-weight: 600; box-shadow: var(--shadow); display: none;
  align-items: center; gap: 0.5rem; font-size: 0.9rem;
}

/* ---------- Responsive ---------- */
/* collapse the 8-item nav to a hamburger before it gets cramped */
@media (max-width: 1240px) {
  .nav-links {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: flex-start;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 1.2rem 32px 1.6rem; gap: 0.2rem; height: auto;
    opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-10px);
    box-shadow: var(--shadow); transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav-links.open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
  .nav-links a { padding: 0.7rem 0; width: 100%; font-size: 0.95rem; }
  .has-drop .drop { position: static; display: block; box-shadow: none; border: none; padding: 0 0 0.4rem 1rem; min-width: 0; }
  .nav-toggle { display: block; }
  .nav-phone { display: none; }
  .float-call { display: flex; }
}

@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2,1fr); }
  .values { grid-template-columns: 1fr; gap: 2rem; }
  .split, .split.narrow-text { grid-template-columns: 1fr; }
  .split .media-frame { order: -1; }
  .media-frame img { aspect-ratio: 16/10; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* collapse nav to hamburger on tablets & small laptops */
  .nav-links {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: flex-start;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 1.2rem 32px 1.6rem; gap: 0.2rem; height: auto;
    opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-10px);
    box-shadow: var(--shadow); transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav-links.open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
  .nav-links a { padding: 0.7rem 0; width: 100%; font-size: 0.95rem; }
  .has-drop .drop { position: static; display: block; box-shadow: none; border: none; padding: 0 0 0.4rem 1rem; min-width: 0; }
  .nav-toggle { display: block; }
  .nav-phone { display: none; }
  .brand small { display: none; }
  .float-call { display: flex; }
}
@media (max-width: 720px) {
  .container { padding: 0 22px; }
  .nav-links {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: flex-start;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 1.2rem 22px 1.6rem; gap: 0.2rem; height: auto;
    opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-10px);
    box-shadow: var(--shadow); transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav-links.open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
  .nav-links a { padding: 0.7rem 0; width: 100%; font-size: 0.95rem; }
  .has-drop .drop { position: static; display: block; box-shadow: none; border: none; padding: 0 0 0.4rem 1rem; min-width: 0; }
  .nav-toggle { display: block; }
  .nav-phone { display: none; }
  .brand small { display: none; }
  .brand .name { font-size: 0.98rem; letter-spacing: 0.14em; }
  .nav-cta { gap: 0.6rem; }
  .nav-cta .btn { padding: 0.6rem 1rem; font-size: 0.8rem; }
  .float-call { display: flex; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .ships-to { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .trust-strip .container { gap: 1rem; }
  .trust-strip div { flex: 1 1 40%; }

  /* --- mobile optimization --- */
  .hero { min-height: 78vh; }
  .hero .container { padding-top: 5rem; padding-bottom: 3rem; }
  .hero h1 { font-size: 2.15rem; }
  .hero .lede { font-size: 1rem; }
  .hero-cta { width: 100%; gap: 0.7rem; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .section { padding: 3.25rem 0; }
  .section-head { margin-bottom: 2rem; }
  h2 { font-size: 1.6rem; }
  .lede { font-size: 1.02rem; }
  .promo-bar { font-size: 0.64rem; letter-spacing: 0.03em; padding: 0.55rem 0.9rem; }
  .cta-band { padding: 2.5rem 1.25rem; }
  .cta-band p { font-size: 0.98rem; }
  .quote-card p { font-size: 1.2rem; }
  .breadcrumb { margin-bottom: 1rem; }
  .field input, .field select, .field textarea { font-size: 16px; }  /* prevents iOS zoom-on-focus */
}

@media (max-width: 430px) {
  .brand .name { font-size: 0.9rem; letter-spacing: 0.1em; }
  .nav-cta .btn { padding: 0.55rem 0.85rem; font-size: 0.75rem; }
  .hero h1 { font-size: 1.95rem; }
}
