/* =========================================================
   DOTT. WALEED ELSHARKAWY — Editorial Luxury Design System
   Palette: ivory / off-black / warm gold (Vogue × Dior feel)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400&display=swap');

:root {
  --ivory: #F5F1EA;
  --ivory-2: #EFE9DE;
  --ivory-3: #E6DECF;
  --ink: #1A1A1A;
  --ink-2: #2A2620;
  --ink-3: #4A443B;
  --muted: #8A8275;
  --gold: #B89968;
  --gold-2: #9C7F4E;
  --gold-soft: #D9C8A6;
  --line: rgba(26, 26, 26, 0.14);
  --line-soft: rgba(26, 26, 26, 0.08);

  --f-serif: "Cormorant Garamond", "Times New Roman", serif;
  --f-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --f-mono: "JetBrains Mono", monospace;

  --container: 1440px;
  /* Minimum gutter is 0.5cm; scales with viewport up to 96px */
  --gutter: max(0.5cm, clamp(24px, 5.2vw, 96px));
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

/* -------- Type system -------- */
.eyebrow {
  font-family: var(--f-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow.gold { color: var(--gold-2); }

.display {
  font-family: var(--f-serif);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-feature-settings: "liga" 1, "dlig" 1;
}
.display em { font-style: italic; font-weight: 300; color: var(--gold-2); }

.h-xxl { font-family: var(--f-serif); font-weight: 300; font-size: clamp(64px, 11vw, 188px); line-height: 0.9; letter-spacing: -0.03em; }
.h-xl  { font-family: var(--f-serif); font-weight: 300; font-size: clamp(48px, 7vw, 112px); line-height: 0.95; letter-spacing: -0.025em; }
.h-l   { font-family: var(--f-serif); font-weight: 300; font-size: clamp(36px, 4.5vw, 72px); line-height: 1; letter-spacing: -0.02em; }
.h-m   { font-family: var(--f-serif); font-weight: 400; font-size: clamp(28px, 3vw, 44px); line-height: 1.08; letter-spacing: -0.015em; }
.h-s   { font-family: var(--f-serif); font-weight: 400; font-size: clamp(22px, 2vw, 28px); line-height: 1.2; letter-spacing: -0.01em; }

.body-l { font-size: 18px; line-height: 1.65; color: var(--ink-2); font-weight: 300; }
.body-m { font-size: 15px; line-height: 1.7; color: var(--ink-2); font-weight: 400; }
.body-s { font-size: 13px; line-height: 1.6; color: var(--ink-3); }

.serif-quote {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.rule {
  width: 56px; height: 1px; background: var(--ink); display: inline-block; vertical-align: middle;
}
.rule.gold { background: var(--gold); }
.rule.long { width: 100%; }

/* -------- Layout -------- */
.shell { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
/* When a section is ALSO a shell, keep both vertical AND horizontal padding */
.section.shell, .shell.section { padding: clamp(80px, 11vw, 160px) var(--gutter); }
.section.shell.tight, .shell.section.tight { padding: clamp(48px, 6vw, 96px) var(--gutter); }
.section { padding: clamp(80px, 11vw, 160px) 0; position: relative; }
.section.tight { padding: clamp(48px, 6vw, 96px) 0; }
.section.dark { background: var(--ink); color: var(--ivory); }
.section.dark .body-l, .section.dark .body-m { color: rgba(245, 241, 234, 0.78); }
.section.dark .eyebrow { color: var(--gold-soft); }
.section.dark .rule { background: var(--ivory); }
.section.cream { background: var(--ivory-2); }

.grid { display: grid; gap: var(--gutter); }

/* -------- Top bar / Nav -------- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--ivory);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(8px);
}
.topbar-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px var(--gutter);
  gap: 24px;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 28px; }
.topbar-right { justify-content: flex-end; }

.brand {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; line-height: 1;
}
.brand-name {
  font-family: var(--f-serif); font-weight: 400;
  font-size: 22px; letter-spacing: 0.08em;
  color: var(--ink);
}
.brand-name .dot { color: var(--gold-2); }
.brand-sub {
  font-family: var(--f-sans); font-size: 9px; font-weight: 500;
  letter-spacing: 0.42em; text-transform: uppercase;
  margin-top: 6px; color: var(--ink-3);
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav a, .nav .nav-toggle {
  font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-2);
  padding: 8px 0; position: relative;
  transition: color .25s ease;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav a:hover, .nav .nav-toggle:hover { color: var(--gold-2); }
.nav .has-mega { position: static; }
.nav .nav-toggle::after {
  content: ""; width: 6px; height: 6px;
  border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  display: inline-block;
}

.lang-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 500; color: var(--ink-3);
}
.lang-toggle button { padding: 4px 6px; color: var(--ink-3); font-size: 11px; letter-spacing: 0.2em; font-weight: 500; }
.lang-toggle button.active { color: var(--ink); border-bottom: 1px solid var(--gold); }

.call-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border: 1px solid var(--ink); border-radius: 999px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500;
  transition: background .25s ease, color .25s ease;
}
.call-cta:hover { background: var(--ink); color: var(--ivory); }
.call-cta .dot { width: 6px; height: 6px; background: #2ECC71; border-radius: 50%; box-shadow: 0 0 0 0 rgba(46,204,113,0.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(46,204,113,0.6);} 70%{box-shadow:0 0 0 8px rgba(46,204,113,0);} 100%{box-shadow:0 0 0 0 rgba(46,204,113,0);} }

/* Mega menu */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--ivory);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 48px var(--gutter) 56px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  z-index: 90;
}
.mega.open { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 48px; max-width: var(--container); margin: 0 auto; }
.mega-grid > div:first-child { flex: 1 1 240px; max-width: 320px; }
.mega-grid .mega-col { flex: 1 1 190px; }
.mega-grid .mega-col.wide { flex: 1 1 400px; }
.mega-col.wide ul { columns: 2; column-gap: 40px; }
.mega-col.wide li { break-inside: avoid; }
.mega-title { font-family: var(--f-serif); font-size: 44px; font-weight: 300; line-height: 1; letter-spacing: -0.02em; }
.mega-title em { font-style: italic; color: var(--gold-2); }
.mega-desc { font-size: 13px; color: var(--ink-3); line-height: 1.6; margin-top: 16px; max-width: 280px; }
.mega-col ul { list-style: none; columns: 1; }
.mega-col li { padding: 6px 0; }
.mega-col a {
  font-family: var(--f-sans); font-size: 13px; color: var(--ink-2);
  letter-spacing: 0.01em;
  display: inline-flex; align-items: baseline; gap: 8px;
  transition: color .2s, letter-spacing .2s;
}
.mega-col a:hover { color: var(--gold-2); }
.mega-col a::before {
  content: ""; width: 14px; height: 1px; background: var(--line); display: inline-block;
  transform: translateY(-4px);
  transition: width .2s, background .2s;
}
.mega-col a:hover::before { width: 24px; background: var(--gold); }
.mega-col-title { font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 18px; font-weight: 600; }

/* -------- Buttons -------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase;
  padding: 18px 32px;
  border: 1px solid var(--ink); color: var(--ink);
  transition: all .3s ease;
}
.btn:hover { background: var(--ink); color: var(--ivory); }
.btn .arr { transition: transform .3s ease; }
.btn:hover .arr { transform: translateX(6px); }
.btn.gold { border-color: var(--gold); color: var(--gold-2); }
.btn.gold:hover { background: var(--gold); color: var(--ivory); }
.btn.filled { background: var(--ink); color: var(--ivory); }
.btn.filled:hover { background: var(--gold-2); border-color: var(--gold-2); }
.btn.ghost { border-color: var(--line); }
.btn.lg { padding: 22px 40px; font-size: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  border-bottom: 1px solid var(--ink); padding-bottom: 6px;
  color: var(--ink); transition: color .25s, border-color .25s;
}
.link-arrow:hover { color: var(--gold-2); border-color: var(--gold-2); }

/* -------- Image placeholder -------- */
.ph {
  background: linear-gradient(135deg, var(--ivory-3) 0%, var(--ivory-2) 100%);
  background-image:
    repeating-linear-gradient(135deg, transparent 0 11px, rgba(26,26,26,0.045) 11px 12px),
    linear-gradient(135deg, var(--ivory-3) 0%, var(--ivory-2) 100%);
  position: relative;
  overflow: hidden;
  display: flex; align-items: flex-end; justify-content: flex-start;
  color: var(--ink-3);
}
.ph.dark { background-image:
    repeating-linear-gradient(135deg, transparent 0 11px, rgba(245,241,234,0.06) 11px 12px),
    linear-gradient(135deg, #161616 0%, #1f1c18 100%);
  color: rgba(245,241,234,0.7);
}
.ph::after {
  content: ""; position: absolute; inset: 16px;
  border: 1px solid rgba(26,26,26,0.12); pointer-events: none;
}
.ph.dark::after { border-color: rgba(245,241,234,0.15); }
.ph-label {
  position: relative; z-index: 2;
  margin: 24px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 6px 10px;
  background: rgba(245,241,234,0.85);
  border: 1px solid var(--line);
  color: var(--ink-3);
}
.ph.dark .ph-label { background: rgba(26,26,26,0.7); border-color: rgba(245,241,234,0.18); color: rgba(245,241,234,0.8); }

/* -------- Marquee -------- */
.marquee {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden; padding: 18px 0;
  background: var(--ivory);
}
.marquee-track {
  display: flex; gap: 64px;
  animation: marquee 60s linear infinite;
  white-space: nowrap;
}
.marquee-track span {
  font-family: var(--f-serif); font-style: italic; font-weight: 300;
  font-size: 22px; color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 64px;
}
.marquee-track span::after { content: "✦"; color: var(--gold); font-size: 12px; font-style: normal; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* -------- Footer -------- */
.footer {
  background: var(--ink); color: var(--ivory);
  padding: 96px 0 32px;
}
.footer .eyebrow { color: var(--gold-soft); }
.footer h3 { font-family: var(--f-serif); font-weight: 300; font-size: 28px; letter-spacing: -0.01em; margin-bottom: 18px; }
.footer a { color: rgba(245,241,234,0.78); transition: color .2s; }
.footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 56px; padding-bottom: 56px; border-bottom: 1px solid rgba(245,241,234,0.12); }
.footer-list { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(245,241,234,0.55); }
.footer-bottom .socials { display: flex; gap: 16px; }
.footer-bottom .socials a { width: 36px; height: 36px; border: 1px solid rgba(245,241,234,0.2); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.footer-bottom .socials a:hover { border-color: var(--gold); background: var(--gold); color: var(--ink); }
.footer-legal-links { display: flex; gap: 16px; align-items: center; font-size: 11px; letter-spacing: 0.1em; }
.footer-legal-links a { color: rgba(245,241,234,0.45); text-decoration: none; text-transform: uppercase; letter-spacing: 0.12em; transition: color 0.2s; }
.footer-legal-links a:hover { color: var(--gold-soft, #c9a96e); }

/* -------- Forms -------- */
.field { display: flex; flex-direction: column; gap: 10px; }
.field label { font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 500; color: var(--ink-3); }
.field input, .field textarea, .field select {
  border: 0; border-bottom: 1px solid var(--line);
  background: transparent; padding: 12px 0; font-family: var(--f-serif); font-size: 20px; color: var(--ink);
  font-weight: 300; outline: none; transition: border-color .25s;
}
.field input:focus, .field textarea:focus { border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 80px; line-height: 1.4; }

/* -------- Utilities -------- */
.divider { height: 1px; background: var(--line); border: 0; }
.spaced { letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500; font-size: 11px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.gold-text { color: var(--gold-2); }
.italic { font-style: italic; }

[lang-en] { display: none; }
.lang-en [lang-en] { display: inline; }
.lang-en [lang-it] { display: none; }

/* ===========================================================
   MOBILE MENU (hamburger + drawer)
   =========================================================== */
.menu-btn {
  display: none;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
}
.menu-btn span {
  display: block; width: 18px; height: 1px;
  background: var(--ink);
  position: relative;
}
.menu-btn span::before, .menu-btn span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1px; background: var(--ink);
}
.menu-btn span::before { top: -6px; }
.menu-btn span::after  { top: 6px; }

.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(26,26,26,0.42);
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s;
  z-index: 998;
}
.drawer-backdrop.open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(440px, 92vw);
  background: var(--ivory);
  z-index: 999;
  transform: translateX(100%);
  transition: transform .45s cubic-bezier(.2,.6,.2,1);
  display: flex; flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line-soft);
  position: sticky; top: 0; background: var(--ivory); z-index: 2;
}
.drawer-close {
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f-serif); font-size: 26px; font-weight: 300; line-height: 1;
  color: var(--ink); cursor: pointer;
}
.drawer-brand {
  font-family: var(--f-serif); font-size: 18px; letter-spacing: 0.08em;
}
.drawer-brand .dot { color: var(--gold-2); }
.drawer-body { padding: 8px 28px 32px; }
.drawer-section { border-bottom: 1px solid var(--line-soft); }
.drawer-section:last-child { border-bottom: 0; }
.drawer-link, .drawer-toggle {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  padding: 22px 0;
  font-family: var(--f-serif); font-weight: 400; font-size: 28px; letter-spacing: -0.01em; line-height: 1;
  color: var(--ink);
  border: 0; background: transparent; cursor: pointer; text-align: left;
}
.drawer-toggle .chev {
  font-family: var(--f-serif); font-style: italic; color: var(--gold-2);
  font-size: 22px; transition: transform .3s;
}
.drawer-toggle.open .chev { transform: rotate(90deg); }
.drawer-sublist {
  display: none;
  padding: 4px 0 22px;
  list-style: none;
}
.drawer-sublist.open { display: block; }
.drawer-sublist li { padding: 9px 0; }
.drawer-sublist a {
  display: flex; align-items: baseline; gap: 10px;
  font-family: var(--f-sans); font-size: 14.5px; color: var(--ink-2);
  letter-spacing: 0.005em;
}
.drawer-sublist a::before {
  content: ""; width: 14px; height: 1px; background: var(--line);
  display: inline-block; flex-shrink: 0;
  transform: translateY(-4px);
}
.drawer-sublist a:hover { color: var(--gold-2); }
.drawer-sublist .sub-title {
  font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold-2); font-family: var(--f-sans); font-weight: 600;
  padding: 14px 0 4px; border-bottom: 0;
}
.drawer-foot {
  padding: 28px;
  border-top: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: 18px;
  background: var(--ivory-2);
}
.drawer-foot .lang-toggle { justify-content: flex-start; }
.drawer-foot .call-cta { justify-content: center; }
.drawer-foot .socials {
  display: flex; gap: 14px; margin-top: 4px;
}
.drawer-foot .socials a {
  width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2);
}
.drawer-foot .socials a:hover { border-color: var(--gold); color: var(--gold-2); }
body.no-scroll { overflow: hidden; }

/* ===========================================================
   RESPONSIVE BREAKPOINTS
   =========================================================== */

/* Desktop tightening */
@media (max-width: 1280px) {
  :root { --gutter: max(0.5cm, clamp(24px, 4.2vw, 64px)); }
  .nav { gap: 22px; }
  .topbar-inner { gap: 18px; }
  .brand-name { font-size: 20px; }
}

/* Tablet (≤ 1024px) — nav collapses, hamburger appears */
@media (max-width: 1024px) {
  .topbar-inner { grid-template-columns: 1fr auto; gap: 16px; padding: 14px var(--gutter); }
  .topbar-left { display: none; }
  .brand { justify-self: start; align-items: flex-start; text-align: left; }
  .topbar-right { gap: 12px; }
  .topbar-right .nav.primary,
  .topbar-right .lang-toggle { display: none; }
  .topbar-right .call-cta { padding: 9px 14px; font-size: 10px; }
  .menu-btn { display: inline-flex; }
  .mega { display: none !important; } /* mega menus disabled on touch — drawer instead */
}

/* Small tablet (≤ 880px) */
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; padding-bottom: 40px; }
  .footer { padding: 64px 0 28px; }
  .footer-bottom { padding-top: 24px; }
  .marquee-track span { font-size: 18px; gap: 48px; }
  .marquee-track { gap: 48px; }
}

/* Mobile (≤ 720px) */
@media (max-width: 720px) {
  :root { --gutter: max(0.5cm, 20px); }
  body { font-size: 15px; }
  .section { padding: 64px 0; }
  .section.tight { padding: 40px 0; }
  .topbar-inner { padding: 10px var(--gutter); }
  .brand-name { font-size: 16px; letter-spacing: 0.06em; }
  .brand-sub { font-size: 8px; letter-spacing: 0.28em; margin-top: 4px; }
  .topbar-right .call-cta { display: none; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; padding-bottom: 32px; }
  .footer { padding: 56px 0 24px; }
  .footer h3 { font-size: 24px; }
  .footer-bottom { flex-direction: column; gap: 18px; align-items: flex-start; text-align: left; }
  .footer-bottom .socials { gap: 12px; }

  .marquee { padding: 14px 0; }
  .marquee-track span { font-size: 15px; gap: 36px; }
  .marquee-track { gap: 36px; }

  .btn { padding: 14px 22px; font-size: 10.5px; letter-spacing: 0.2em; }
  .btn.lg { padding: 16px 26px; font-size: 11px; }

  .field input, .field textarea, .field select { font-size: 18px; }

  /* Drawer is closer to edge on small screens */
  .drawer { width: 100vw; }
  .drawer-head { padding: 18px 22px; }
  .drawer-body { padding: 8px 22px 24px; }
  .drawer-link, .drawer-toggle { padding: 18px 0; font-size: 24px; }
  .drawer-sublist a { font-size: 14px; }
  .drawer-foot { padding: 22px; }
}

/* Tiny phones (≤ 380px) */
@media (max-width: 380px) {
  .brand-sub { display: none; }
  .drawer-link, .drawer-toggle { font-size: 22px; }
}
