/* ==========================================================================
   FAMA — All-Over Parfum
   Design tokens
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --ink: #0c0c0d;
  --paper: #f9f7f3;
  --paper-dim: #f1efe9;
  --card: #ffffff;
  --charcoal: #17181b;
  --charcoal-2: #1f2024;
  --amber: #f5a623;
  --amber-deep: #d98a12;
  --amber-pale: #fce6bb;
  --line: #e3ddd1;
  --line-dark: #35363b;
  --muted: #726f66;
  --muted-lite: #a29d90;
  --on-dark: #efece5;

  --display: 'Archivo Black', 'Arial Black', sans-serif;
  --head: 'Space Grotesk', sans-serif;
  --body: 'Inter', sans-serif;
  --mono: 'IBM Plex Mono', monospace;

  --container: 1180px;
  --edge: clamp(20px, 5vw, 64px);
  --radius: 2px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--head);
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

/* ---------- layout helpers ---------- */
.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--edge);
}

.section {
  padding: clamp(64px, 9vw, 128px) 0;
  position: relative;
}

.section--tight {
  padding: clamp(40px, 6vw, 72px) 0;
}

.dark {
  background: var(--charcoal);
  color: var(--on-dark);
}

.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-deep);
  display: flex;
  align-items: center;
  gap: 10px;
}

.dark .kicker {
  color: var(--amber);
}

.kicker::before {
  content: "";
  width: 16px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}

.rule {
  width: 52px;
  height: 6px;
  background: var(--amber);
}

/* ---------- coordinate grid signature ---------- */
.gridlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.gridlines svg {
  width: 100%;
  height: 100%;
}

.gridlines line {
  stroke: var(--amber);
  stroke-opacity: 0.35;
  stroke-width: 1;
}

.dark .gridlines line {
  stroke-opacity: 0.28;
}

.gridlines .tick {
  font-family: var(--mono);
  font-size: 10px;
  fill: var(--muted-lite);
  letter-spacing: 0.08em;
}

.grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(249, 247, 243, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 18px;
}

.nav__logo {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.02em;
}

.nav__logo .dot {
  color: var(--amber);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav__links a {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-block: 4px;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--ink);
  border-color: var(--amber);
}

.nav__cta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .2s ease, transform .15s ease;
  white-space: nowrap;
}

.nav__cta:hover {
  background: var(--amber-deep);
  transform: translateY(-1px);
}

.nav__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.nav__burger span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  display: block;
}

.nav__mobile {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.nav__mobile.open {
  display: flex;
}

.nav__mobile a {
  padding: 16px var(--edge);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 860px) {
  .nav__links {
    display: none;
  }

  .nav__burger {
    display: flex;
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 22px;
  border: 1px solid var(--ink);
  transition: all .2s ease;
}

.btn--solid {
  background: var(--ink);
  color: var(--paper);
}

.btn--solid:hover {
  background: var(--amber-deep);
  border-color: var(--amber-deep);
  transform: translateY(-1px);
}

.btn--amber {
  background: var(--amber);
  color: var(--ink);
  border-color: var(--amber);
}

.btn--amber:hover {
  background: var(--ink);
  color: var(--amber);
  border-color: var(--ink);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.dark .btn--ghost {
  color: var(--on-dark);
  border-color: var(--on-dark);
}

.dark .btn--ghost:hover {
  background: var(--on-dark);
  color: var(--charcoal);
}

.btn svg {
  width: 14px;
  height: 14px;
}

/* ---------- hero (shared pattern) ---------- */
.hero {
  position: relative;
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 10vw, 110px);
  overflow: hidden;
}

.hero__top {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 40px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}

.hero__lede {
  max-width: 520px;
  margin-top: 26px;
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--muted);
  position: relative;
  z-index: 1;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 38px;
  position: relative;
  z-index: 1;
}

/* ---------- page header (secondary pages) ---------- */
.pagehead {
  position: relative;
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.pagehead h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 6vw, 4rem);
  margin-top: 18px;
  position: relative;
  z-index: 1;
}

.pagehead__lede {
  max-width: 560px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 16px;
  position: relative;
  z-index: 1;
}

/* ---------- product cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 44px;
}

@media (max-width: 760px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

.product-card {
  background: #F4F2F2;
  /* تغيير خلفية الكارد للرمادي */
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 44px);
  position: relative;
}

.product-card--dark {
  background: var(--charcoal);
  color: var(--on-dark);
}

.product-card__idx {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-lite);
  letter-spacing: 0.1em;
}

.product-card--dark .product-card__idx {
  color: #6c6d72;
}

.bottle {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 3 / 4;
  margin: 8px auto 8px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.product-card--dark .bottle {
  mix-blend-mode: normal;
  background: #F4F2F2;
  padding: 10px;
}

.product-card__kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-top: 22px;
}

.product-card--dark .product-card__kicker {
  color: var(--amber);
}

.product-card h3 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-top: 6px;
}

.product-card__notes {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14.5px;
  max-width: 34ch;
}

.product-card--dark .product-card__notes {
  color: #b9b6ac;
}

.product-card__foot {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.product-card--dark .product-card__foot {
  border-color: var(--line-dark);
}

.product-card__foot p {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--muted-lite);
}

/* ---------- footer ---------- */
.footer {
  background: var(--charcoal);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  padding-block: 56px 40px;
  position: relative;
  z-index: 1;
}

.footer__brand {
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
}

.footer__brand span {
  color: var(--amber);
}

.footer__line {
  color: #a9a6a0;
  max-width: 360px;
  font-size: 14.5px;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  position: relative;
  z-index: 1;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--charcoal);
  padding: 16px 20px;
  transition: background .2s ease;
}

.social-links a:hover {
  background: var(--charcoal-2);
}

.social-links__label {
  display: flex;
  flex-direction: column;
}

.social-links__label small {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a8781;
}

.social-links__label strong {
  font-family: var(--head);
  font-size: 15px;
  font-weight: 600;
  margin-top: 2px;
}

.footer__bottom {
  border-top: 1px solid var(--line-dark);
  padding-block: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7c7972;
  position: relative;
  z-index: 1;
}

/* ---------- misc content blocks ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-deep);
}

.dark .eyebrow {
  color: var(--amber);
}

.h2 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin-top: 14px;
  line-height: 1.05;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

@media (max-width: 800px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: clamp(22px, 3vw, 32px);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 44px;
}

@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

.team-card {
  background: var(--card);
  padding: 30px 26px;
}

.avatar {
  width: 56px;
  height: 56px;
}

.team-card h3 {
  font-family: var(--head);
  font-size: 1.15rem;
  margin-top: 18px;
}

.team-card .role {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-top: 4px;
}

.team-card p.bio {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.timeline {
  margin-top: 48px;
  border-top: 1px solid var(--line-dark);
}

.timeline__row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-dark);
}

.timeline__year {
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--amber);
}

.timeline__row h3 {
  font-family: var(--head);
  font-size: 1.15rem;
}

.timeline__row p {
  margin-top: 8px;
  color: #b9b6ac;
  font-size: 14.5px;
  max-width: 56ch;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 56px;
}

@media (max-width:700px) {
  .stat-strip {
    grid-template-columns: 1fr;
  }
}

.stat {
  padding: 26px var(--edge);
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: none;
}

.stat b {
  font-family: var(--display);
  font-size: 2rem;
  display: block;
}

.stat span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 64px);
  margin-top: 44px;
}

@media (max-width:860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--card);
  padding: 13px 14px;
  font-family: var(--body);
  font-size: 15px;
  color: var(--ink);
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--amber);
  outline-offset: 0;
  border-color: var(--amber);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.badge {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 6px 10px;
  color: var(--muted);
  display: inline-block;
}