/* Haddad Spirits — parent-brand landing page.
   Editorial dark-and-gold system. Tokens live in :root so any tuning
   Robert wants happens in one place. */

:root {
  /* Palette (v2 — pivot to warm parchment, per heritage-holding
     conventions; LVMH / William Grant / Pernod all sit here, not on
     dark). Warm cream ground with a hint of yellow, warm near-black
     ink, antique champagne gold as the sole accent. */
  --ground: #F5F0E6;
  --ground-card: #EFE9DC;
  --ink: #1A1614;
  --ink-muted: #7A6F5E;
  --gold: #B8944A;
  --gold-deep: #8A6E2E;
  --line: #DDD3BE;

  --max-w: 68rem;
  --narrow-w: 42rem;

  --font-serif: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --font-sans: 'Karla', -apple-system, 'Segoe UI', Roboto, sans-serif;

  --ease-elegant: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset + base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Focus ring — subtle gold, respects the palette */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

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

/* Container */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}

/* ── Utility: eyebrow labels ─────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: '';
  width: 1.5rem;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

/* ── Header nav ──────────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 10;
  padding: 1.25rem 0;
  backdrop-filter: blur(12px);
  background: rgba(245, 240, 230, 0.75);
  border-bottom: 1px solid transparent;
  transition: border-color 400ms var(--ease-elegant);
}
.site-nav.scrolled { border-bottom-color: var(--line); }
.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-nav__brand {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
}
.site-nav__brand strong { font-weight: 600; }
.lang-toggle {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.lang-toggle a { transition: color 200ms ease; padding: 0.25rem 0; }
.lang-toggle a:hover { color: var(--gold); }
.lang-toggle a[aria-current="page"] { color: var(--gold); }
.lang-toggle .sep { color: var(--line); }

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 8rem 1.5rem 6rem;
  overflow: hidden;
  isolation: isolate;
}
/* Soft parchment vignette — off-white radial that keeps the crest as
   the focal point without the "premium dark" cliché. Very subtle on
   cream ground; you feel it more than see it. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 65% at 50% 40%,
    rgba(184, 148, 74, 0.06) 0%,
    rgba(184, 148, 74, 0.02) 45%,
    transparent 75%
  );
  z-index: -1;
}
/* Whisper of gold on the outer edges — hints at the eagle's warmth
   without competing with the crest itself. */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, transparent 45%, rgba(184, 148, 74, 0.025) 50%, transparent 55%);
  z-index: -1;
  pointer-events: none;
}
.hero__inner {
  text-align: center;
  max-width: 40rem;
  animation: hero-in 900ms var(--ease-elegant) both;
}
/* Full logo lockup (eagle + wordmark baked in). Renders as the visible
   H1 — the actual <h1> text is offscreen-only for SEO + a11y. Sized
   generously so the eagle carries real presence without the tagline
   fighting for the space. */
.hero__lockup {
  width: min(420px, 62vw);
  height: auto;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 14px 32px rgba(138, 110, 46, 0.16));
  animation: crest-in 1200ms var(--ease-elegant) both;
}
.hero__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink-muted);
  margin: 2rem auto 0;
  animation: hero-in 900ms 400ms var(--ease-elegant) both;
  max-width: 30rem;
  line-height: 1.55;
}

/* Screen-reader-only heading — semantic H1 is present for SEO + a11y
   but hidden visually since the logo lockup carries the visible name. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-muted);
  animation: hero-in 900ms 800ms var(--ease-elegant) both, breathe 3s 1.5s ease-in-out infinite;
}

@keyframes crest-in {
  from { opacity: 0; transform: translateY(20px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes hero-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes breathe {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50%      { transform: translateX(-50%) translateY(4px); opacity: 0.6; }
}

/* ── Reveal-on-scroll ─────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 900ms var(--ease-elegant), transform 900ms var(--ease-elegant);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Section: About ──────────────────────────────────────────────── */
.about {
  padding: 9rem 0;
  position: relative;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
/* Watermark eagle behind the About section — 3% opacity, restrained */
/* Watermark eagle — features the top of the lockup (eagle only), lets
   the baked-in wordmark spill off the bottom so we don't render
   "HADDAD SPIRITS" as a faint ghost behind the body text. */
.about::before {
  content: '';
  position: absolute;
  top: 40%;
  left: -8rem;
  width: 34rem;
  height: 24rem;
  transform: translateY(-50%);
  background: url('assets/logo-mark.png') no-repeat;
  background-position: center top;
  background-size: auto 150%;
  opacity: 0.055;
  pointer-events: none;
}
.about__inner {
  max-width: var(--narrow-w);
  margin-inline: auto;
  position: relative;
}
.about__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 2rem;
  text-wrap: balance;
}
.about__title em {
  font-style: italic;
  color: var(--gold);
}
.about p {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--ink);
  margin: 0 0 1.5rem;
}
.about p:last-child { margin-bottom: 0; }
.about p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 500;
  color: var(--gold);
  float: left;
  line-height: 0.9;
  margin: 0.3rem 0.5rem 0 0;
}

/* ── Section: Portfolio (family of brands) ───────────────────────── */
.portfolio {
  padding: 9rem 0;
  background: var(--ground-card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.portfolio::before {
  content: '';
  position: absolute;
  top: 45%;
  right: -12rem;
  width: 38rem;
  height: 26rem;
  transform: translateY(-50%);
  background: url('assets/logo-mark.png') no-repeat;
  background-position: center top;
  background-size: auto 150%;
  opacity: 0.05;
  pointer-events: none;
}
.portfolio__header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}
.portfolio__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}
.portfolio__title em { font-style: italic; color: var(--gold); }

.brand-list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.brand-group + .brand-group { margin-top: 3.5rem; }
.brand-group__label {
  font-family: var(--font-serif);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}
/* Optional subtitle beneath a group label — used on the Retail &
   Experience section to surface Maharat as the operator without
   restructuring the visual hierarchy. Italic serif so it reads as
   editorial byline, not a second label. */
.brand-group__note {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-muted);
  margin: 0.75rem 0 0;
}
.brand-group__label + .brand-group__note {
  margin-bottom: 1rem;
}
.brand-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) auto;
  gap: 2rem;
  align-items: baseline;
  padding: 1.75rem 0.5rem;
  border-bottom: 1px solid var(--line);
  transition: background 300ms var(--ease-elegant), padding-left 400ms var(--ease-elegant);
  position: relative;
}
.brand-row:last-child { border-bottom: none; }
.brand-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 400ms var(--ease-elegant);
}
.brand-row:hover {
  background: rgba(184, 148, 74, 0.055);
  padding-left: 1.5rem;
}
.brand-row:hover::before { transform: scaleY(1); }
.brand-row__name {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.brand-row__desc {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-muted);
}
.brand-row__arrow {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--gold);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 300ms var(--ease-elegant), transform 300ms var(--ease-elegant);
  padding-left: 1rem;
  align-self: center;
}
.brand-row:hover .brand-row__arrow {
  opacity: 1;
  transform: translateX(0);
}
.brand-row--nolink { cursor: default; }
.brand-row--nolink .brand-row__arrow { display: none; }
.brand-row--nolink:hover {
  background: transparent;
  padding-left: 0.5rem;
}
.brand-row--nolink:hover::before { transform: scaleY(0); }

/* ── Section: Contact / footer ───────────────────────────────────── */
.contact {
  padding: 7rem 0 5rem;
}
.contact__inner {
  max-width: var(--narrow-w);
  margin-inline: auto;
  text-align: center;
}
.contact__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}
.contact__title em { font-style: italic; color: var(--gold); }
.contact__blurb {
  color: var(--ink-muted);
  font-size: 1.05rem;
  max-width: 32rem;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}
.contact__email {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 500;
  color: var(--ink);
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--gold-deep);
  transition: color 200ms ease, border-color 200ms ease;
  display: inline-block;
}
.contact__email:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Footer legal block */
.legal {
  border-top: 1px solid var(--line);
  padding: 3rem 0;
  text-align: center;
}
.legal__inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--ink-muted);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.legal__entity {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
}
.legal__flourish {
  color: var(--gold-deep);
  font-size: 0.7rem;
  letter-spacing: 0.5em;
  margin: 0.5rem 0;
}

/* ── Arabic RTL adjustments ──────────────────────────────────────── */
html[dir="rtl"] .brand-row__arrow {
  transform: translateX(8px) scaleX(-1);
}
html[dir="rtl"] .brand-row:hover .brand-row__arrow {
  transform: translateX(0) scaleX(-1);
}
html[dir="rtl"] .brand-row:hover {
  padding-left: 0.5rem;
  padding-right: 1.5rem;
}
html[dir="rtl"] .brand-row::before {
  left: auto;
  right: 0;
}
html[dir="rtl"] .about::before {
  left: auto;
  right: -6rem;
}
html[dir="rtl"] .portfolio::before {
  right: auto;
  left: -10rem;
}
html[dir="rtl"] .about p:first-of-type::first-letter {
  float: right;
  margin: 0.3rem 0 0 0.5rem;
}
html[dir="rtl"] .eyebrow::before {
  order: 2;
}

/* Arabic type — use system Arabic for the body, keep serif look for headers */
html[dir="rtl"] body {
  font-family: 'IBM Plex Sans Arabic', 'Segoe UI', 'Tahoma', sans-serif;
  letter-spacing: 0;
}
html[dir="rtl"] .brand-row__name,
html[dir="rtl"] .about__title,
html[dir="rtl"] .portfolio__title,
html[dir="rtl"] .contact__title,
html[dir="rtl"] .hero__wordmark {
  font-family: 'Amiri', 'Cormorant Garamond', Georgia, serif;
  letter-spacing: 0.01em;
}
/* Brand wordmark stays English — Haddad Spirits is an untranslatable wordmark */
html[dir="rtl"] .site-nav__brand {
  direction: ltr;
  font-family: var(--font-serif);
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .brand-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1.5rem 0.25rem;
  }
  .brand-row__arrow { display: none; }
  .brand-row:hover { padding-left: 0.25rem; }
  .brand-row:hover::before { transform: scaleY(0); }
  .about, .portfolio, .contact { padding: 5rem 0; }
  .hero { padding-top: 6rem; }
  .hero__crest { width: 200px; margin-bottom: 1.5rem; }
  .hero__tagline { margin-top: 1.75rem; font-size: 1.05rem; }
  html[dir="rtl"] .brand-row:hover { padding-right: 0.25rem; }
}

/* ── Motion respect ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
