/* ==========================================================================
   Rosa Canina — bespoke tailoring, Riyadh
   Design tokens
   ========================================================================== */
:root {
  --ink: #000000;
  --ink-soft: #0a0a0a;
  --bone: #ffffff;
  --bone-dim: #cfcfcf;
  --gold: #b08a52;
  --gold-bright: #c9a76c;
  --rose: #6d2430;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.3);

  --display: "Gilda Display", "Vollkorn", Georgia, serif;
  --script: "Gilda Display", Georgia, serif;
  --body: "Gilda Display", -apple-system, "Segoe UI", sans-serif;

  --max: 1180px;
}

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
.site-bg-wrap {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.site-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  filter: grayscale(0.3) brightness(0.85);
}
.site-bg-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.35) 40%, rgba(0,0,0,0.6) 100%);
  z-index: -1;
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}

/* ---------- Signature element: the running stitch ----------
   A hand-basting stitch line marks every section boundary —
   a nod to the tailoring lineage described in the brand's story. */
.stitch {
  width: 100%;
  height: 18px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--gold) 0px,
    var(--gold) 10px,
    transparent 10px,
    transparent 22px
  );
  background-position: center;
  background-repeat: repeat-x;
  background-size: auto 1.5px;
  background-position-y: center;
  opacity: 0.55;
}

/* ---------- Header ---------- */
header.site {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: transparent;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px clamp(20px, 5vw, 64px) 0;
  max-width: var(--max);
  margin: 0 auto;
}
.nav .mark { display: flex; align-items: center; }
.nav .mark img { height: 24px; width: auto; display: block; }
.footer-centered .mark-gold img { height: 24px; width: auto; margin: 0 auto; display: block; }
.nav ul {
  list-style: none;
  display: flex;
  gap: clamp(20px, 4vw, 44px);
  margin: 0;
  padding: 0;
}
.nav a.navlink {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--bone);
  transition: color 0.2s ease;
}
.nav a.navlink:hover,
.nav a.navlink.active {
  color: var(--bone);
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--bone);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  font-size: 18px;
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(120px, 16vw, 200px) 0 clamp(40px, 5vw, 64px);
  position: relative;
}
.hero .wrap { position: relative; z-index: 1; }
.hero .eyebrow {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin-bottom: 26px;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.04;
  letter-spacing: 0.01em;
  margin: 0 0 30px;
  max-width: 12ch;
  text-transform: uppercase;
}
.hero h1 em {
  font-style: normal;
  color: var(--bone);
}
.hero p.lede {
  max-width: 42ch;
  font-size: clamp(14px, 1.6vw, 16px);
  color: var(--bone-dim);
  margin: 0 0 40px;
  line-height: 1.7;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  background: var(--bone);
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 400;
  border-radius: 0;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn:hover { background: var(--gold-bright); color: var(--ink); }
.btn.ghost {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--bone);
}
.btn.ghost:hover { border-color: var(--gold-bright); color: var(--gold-bright); }

/* ---------- Section scaffolding ---------- */
section { padding: clamp(56px, 9vw, 110px) 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.section-head .eyebrow {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 10px;
  display: block;
}
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  margin: 0;
}
.section-head p { color: var(--bone-dim); max-width: 44ch; margin: 0; }

/* ---------- Collections grid ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
}
.card {
  background: var(--ink);
  padding: 40px 32px;
  position: relative;
}
.card .num {
  font-family: var(--display);
  font-size: 13px;
  color: var(--gold-bright);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
  display: block;
}
.card h3 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 400;
  margin: 0 0 12px;
}
.card p { color: var(--bone-dim); font-size: 14.5px; margin: 0; }

/* ---------- Split / about teaser ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.split img {
  border-radius: 2px;
  filter: grayscale(0.15) contrast(1.05);
}
.split .kicker {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 16px;
  display: block;
}
.split h2 {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  margin: 0 0 20px;
}
.split p { color: var(--bone-dim); margin: 0 0 18px; }
.split p:last-of-type { margin-bottom: 28px; }

/* ---------- Contact strip ---------- */
.contact-strip {
  background: var(--ink-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.contact-item .label {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 10px;
  display: block;
}
.contact-item a, .contact-item p { font-size: 16px; color: var(--bone); margin: 0; }

/* ---------- Footer ---------- */
footer.site {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-row .mark {
  font-family: var(--display);
  font-size: 18px;
}
.footer-links { display: flex; gap: 24px; list-style: none; padding: 0; margin: 0; }
.footer-links a { font-size: 13px; color: var(--bone-dim); }
.footer-links a:hover { color: var(--gold-bright); }
.copyright { font-size: 12px; color: var(--bone-dim); opacity: 0.7; }

/* ---------- Policy page (bilingual) ---------- */
.policy-wrap {
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.policy-block { margin-bottom: 0; }
.policy-block h2 {
  font-family: var(--display);
  font-size: 28px;
  margin-bottom: 24px;
}
.policy-block[dir="rtl"] { direction: rtl; text-align: right; font-family: var(--body); }
.policy-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.policy-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--bone-dim);
  display: flex;
  gap: 14px;
}
.policy-block[dir="rtl"] .policy-list li {
  display: block;
  padding: 16px 26px 16px 0;
  position: relative;
  text-align: right;
}
.policy-block[dir="rtl"] .policy-list li::before {
  content: "—";
  position: absolute;
  right: 0;
  top: 16px;
  color: var(--gold-bright);
}
.policy-list li::before {
  content: "—";
  color: var(--gold-bright);
  flex-shrink: 0;
}

/* ---------- About page long-form ---------- */
.prose {
  max-width: 68ch;
  margin: 0 auto;
}
.prose p { color: var(--bone-dim); font-size: 17px; margin-bottom: 22px; }
.prose h1 {
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 400;
  color: var(--bone);
  margin-bottom: 36px;
  text-align: center;
}

/* ---------- Shared media column: keeps all photo blocks the same width ---------- */
.media-col {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}
.media-col img,
.media-col video {
  width: 100%;
  display: block;
}

/* ---------- Full-bleed image ---------- */
.full-bleed { width: 100%; }

/* ---------- White box (tuxedo + caption, same width as the media column) ---------- */
.white-box {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bone);
  color: #111;
}
.white-section { padding: 0; }
.white-box .split {
  max-width: none;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 48px) clamp(24px, 4vw, 40px);
  align-items: center;
}
.white-box .split img { filter: none; }
.white-box h2 {
  font-family: var(--script);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 36px);
  color: #111;
  margin: 0 0 20px;
  line-height: 1.15;
}
.white-box p {
  color: #444;
  font-size: 14.5px;
  line-height: 1.8;
  margin: 0;
  text-align: justify;
}
.white-box .caption-block {
  padding: clamp(24px, 4vw, 40px) 0 0;
  text-align: center;
}
.white-box .caption-block img { width: 100%; display: block; }
.white-box .caption-block p {
  font-family: var(--script);
  font-style: italic;
  font-size: clamp(28px, 3.4vw, 38px);
  color: #111;
  margin: 0;
  padding: 28px 0 clamp(40px, 6vw, 72px);
  text-align: center;
}

/* ---------- Magazine dark section ---------- */
.magazine-section {
  padding: 0;
  text-align: center;
}

/* ---------- Two-photo pair (single composed image with wordmark baked in) ---------- */
.photo-pair {
  padding: 0;
  text-align: center;
}

/* ---------- Footer (three columns: logo | contact | policy) ---------- */
.footer-centered {
  padding: 32px 0;
  background: var(--ink);
}
.footer-3col {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}
.footer-3col .col-left { justify-self: start; }
.footer-3col .col-right { justify-self: end; }
.footer-3col .col-left .mark-gold img { height: 24px; width: auto; display: block; }
.footer-3col .col-center { text-align: center; }
.footer-3col .contact-label {
  font-size: 15px;
  color: var(--bone-dim);
  margin: 0 0 6px;
}
.footer-3col .contact-email {
  font-size: 16px;
  color: var(--bone);
  margin: 0 0 10px;
  display: block;
}
.footer-3col .insta {
  display: inline-flex;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: var(--bone);
  font-size: 15px;
  margin-bottom: 10px;
}
.footer-3col .copyright { font-size: 13px; color: var(--bone-dim); opacity: 0.6; display: block; }
.footer-3col .policy-link {
  font-size: 15px;
  color: var(--bone-dim);
  text-decoration: underline;
}
.footer-3col .policy-link:hover { color: var(--gold-bright); }

.rule-small {
  width: 48px;
  height: 2px;
  background: #111;
  margin-bottom: 28px;
}
.white-box .split h2,
section .split h2.about-title {
  font-family: var(--display);
  font-weight: 400;
}

/* ---------- Centered overlay hero (Contact page) ---------- */
.overlay-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
}
.overlay-hero .box {
  width: 410px;
  max-width: 90vw;
  height: 137px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(60, 60, 60, 0.72);
  margin-bottom: 0;
}
.overlay-hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(15px, 1.6vw, 15px);
  color: var(--bone);
  margin: 0 0 20px;
}
/* ---------- About page: light theme override ---------- */
body.page-light {
  background: #d6d4cf;
  color: #161310;
}
body.page-light .split h2 { color: #111; }
body.page-light .split p { color: #333; }
body.page-light .rule-small { background: #111; }
body.page-light .split img { filter: none; }

/* ---------- Contact page: bright image bg, white nav ---------- */
body.contact-page .overlay-hero h1 {
  color: var(--bone);
}

@media (max-width: 860px) {
  .hero {
    padding: 100px 0 200px;
  }
  .hero .lede { margin-bottom: 24px; }
  .footer-3col { grid-template-columns: 1fr; text-align: center; }
  .footer-3col .col-left,
  .footer-3col .col-right { justify-self: center; }
  .policy-wrap { grid-template-columns: 1fr; }
  .nav ul { display: none; }
  .nav-toggle { display: block; }
  .nav ul.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--ink);
    padding: 20px clamp(20px, 5vw, 64px) 28px;
    border-bottom: 1px solid var(--line);
    gap: 18px;
  }
  .grid-3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split .art { order: -1; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .photo-pair-grid { grid-template-columns: 1fr; }
  .white-section .split { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}
