/* Design tokens */
:root {
  /* Red/Gold brand inspired by logo */
  --background: #8b1a1a; /* deep red background */
  --surface: #751515; /* card/header base */
  --surface-2: #651212; /* slightly darker surface */
  --surface-alt: #7b1616; /* lighter alt surface for contrast */
  --foreground: #ffffff; /* primary text now white for higher contrast */
  --muted-foreground: rgba(
    255,
    255,
    255,
    0.8
  ); /* softer white for secondary text */
  --brand: #d6b36c; /* soft gold primary */
  --brand-contrast: #111111; /* dark contrast for gold buttons */
  --border: #5a0f0f; /* subtle maroon border */
  --border-strong: #6b1515; /* stronger border */
  --ring: rgba(214, 179, 108, 0.35); /* focus ring from gold */
  --heading: #ffffff; /* headings to white */
  --subheading: rgba(255, 255, 255, 0.9); /* subheadings/light paragraphs */
  --icon: #d6b36c; /* icon gold */
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  color: var(--foreground);
  background: radial-gradient(
      1200px 600px at 100% -10%,
      color-mix(in oklab, var(--brand) 18%, transparent),
      transparent
    ),
    radial-gradient(
      1200px 600px at -20% 110%,
      color-mix(in oklab, #ffd700 14%, transparent),
      transparent
    ),
    var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    "Helvetica Neue",
    Arial,
    "Noto Sans",
    "Liberation Sans",
    sans-serif;
}
html[lang="ar"] body {
  font-family:
    "Tajawal",
    Inter,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    "Helvetica Neue",
    Arial,
    "Noto Sans",
    "Liberation Sans",
    sans-serif;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
/* Force headings and emphasis to white to avoid legacy gold overrides */
h1,
h2,
h3,
h4,
h5,
h6,
strong,
b {
  color: var(--foreground) !important;
}
.container {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* Ensure founder/hero heading and paragraph render in white */
.hero .hero-content h1 {
  color: #ffffff !important;
}
.hero .hero-content p {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Header / Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: none;
  background: var(--surface); /* solid header so it stays visible on scroll */
  border-bottom: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.brand .brand-mark {
  filter: drop-shadow(0 2px 6px rgba(184, 134, 11, 0.35));
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}
.site-nav a {
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
}
.site-nav a:hover {
  border-color: var(--border);
  background: var(--surface-2);
}
.site-nav .lang-switch {
  border-color: var(--border);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
}

.nav-toggle {
  display: none;
  appearance: none;
  width: 44px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--foreground);
  border-radius: 2px;
}

/* Hero */
.hero {
  padding-block: 64px;
  border-bottom: 1px solid var(--border);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}
.hero h1 {
  margin: 0 0 10px 0;
  font-size: clamp(26px, 4.2vw, 44px);
  line-height: 1.1;
  color: var(--heading);
}
.hero p {
  margin: 0 0 18px 0;
  color: var(--subheading);
  font-size: clamp(16px, 2vw, 18px);
}
.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
}
.trust-badge .icon {
  width: 14px;
  height: 14px;
  color: var(--icon);
}
.hero-media .hero-visual {
  height: clamp(220px, 35vw, 340px);
  border-radius: 20px;
  border: 1px solid var(--border);
  background: radial-gradient(
      200px 120px at 25% 20%,
      color-mix(in oklab, var(--brand) 28%, transparent),
      transparent
    ),
    radial-gradient(
      200px 120px at 80% 75%,
      color-mix(in oklab, #ffd700 26%, transparent),
      transparent
    ),
    linear-gradient(145deg, #7a1515, #5a1010);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 20px 50px rgba(0, 0, 0, 0.25);
}
.hero-media .hero-img {
  width: 100%;
  height: clamp(220px, 35vw, 340px);
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 20px 50px rgba(0, 0, 0, 0.25);
}

/* Sections */
.section {
  padding-block: 60px;
}
.section.alt {
  background: var(--surface-alt);
  border-block: 1px solid var(--border);
}
.section h2 {
  margin: 0 0 14px 0;
  font-size: clamp(22px, 3.3vw, 32px);
  color: var(--heading);
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.timeline .step {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  overflow-wrap: anywhere;
  word-break: break-word;
}
.timeline .num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--brand-contrast);
  background: linear-gradient(180deg, #ffd984, var(--brand));
  border: 1px solid color-mix(in oklab, var(--brand) 65%, #000);
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 12px;
}
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.feature-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
}
.feature-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: var(--icon);
}
.feature-icon svg {
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 2px 6px rgba(214, 179, 108, 0.25));
}

.product-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
}
.product-info h3 {
  margin: 0 0 6px 0;
}
.bullet-list {
  margin: 12px 0 16px 0;
  padding-inline-start: 18px;
}
.product-media .bottle-visual {
  height: clamp(200px, 30vw, 300px);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: radial-gradient(
      160px 100px at 30% 20%,
      color-mix(in oklab, var(--brand) 30%, transparent),
      transparent
    ),
    radial-gradient(
      160px 100px at 80% 80%,
      color-mix(in oklab, #ffd700 28%, transparent),
      transparent
    ),
    conic-gradient(from 220deg at 70% 40%, #7a1515, #5a1010, #4a0d0d, #7a1515);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 20px 50px rgba(0, 0, 0, 0.25);
}
.product-media .product-img {
  width: 100%;
  height: clamp(200px, 30vw, 300px);
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 20px 50px rgba(0, 0, 0, 0.25);
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
}

.testimonials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.testimonials blockquote {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
}
.testimonials cite {
  display: block;
  margin-top: 8px;
  color: var(--muted-foreground);
  font-style: normal;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.contact-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  min-height: 96px;
  text-decoration: none;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  min-width: 0; /* allow inner text to wrap inside flex item */
}
.contact-item .contact-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.contact-item .contact-title .icon {
  width: 16px;
  height: 16px;
  color: var(--icon);
  display: inline-block;
}
.contact-title {
  font-weight: 600;
}
.contact-sub {
  color: var(--muted-foreground);
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-break: anywhere;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--border);
  transition:
    transform 0.1s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
}
.btn:active {
  transform: scale(0.98);
}
.btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px var(--ring);
}
.btn-primary {
  color: var(--brand-contrast);
  border-color: color-mix(in oklab, var(--brand) 65%, #000);
  background: linear-gradient(180deg, #ffd984, var(--brand));
  box-shadow: 0 10px 24px rgba(214, 179, 108, 0.25);
}
.btn-ghost {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 26px;
  background: color-mix(in oklab, var(--surface) 92%, transparent);
}
.site-footer p {
  margin: 0;
  color: var(--muted-foreground);
  text-align: center;
}

/* Responsive */
@media (max-width: 960px) {
  .hero {
    padding-block: 48px;
  }
  .hero .container,
  .product-card {
    grid-template-columns: 1fr;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Blog */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.post-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
}
.post-card h3 {
  margin: 0 0 6px 0;
  font-size: 18px;
}
.post-card p {
  margin: 0 0 10px 0;
  color: var(--muted-foreground);
}
.post-card a {
  text-decoration: none;
}
@media (max-width: 960px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gallery-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
}
.gallery-item img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
}
@media (max-width: 960px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* FAQ */
.faq {
  border-top: 1px solid var(--border);
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  margin: 10px 0;
  overflow: hidden; /* ensure background follows expanded content */
}
.faq-item + .faq-item {
  margin-top: 10px;
}
.faq-item button {
  width: 100%;
  text-align: start;
  padding: 16px 14px;
  background: none;
  color: inherit;
  border: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  z-index: 1;
}
.faq-item button::after {
  content: "▾";
  color: var(--icon);
  transition: transform 0.15s ease;
}
.faq-item[aria-expanded="true"] button::after {
  transform: rotate(180deg);
}
.faq-item .answer {
  padding: 0 14px 16px 14px;
  color: var(--muted-foreground);
  display: none;
}
.faq-item[aria-expanded="true"] .answer {
  display: block;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.lightbox[data-open="true"] {
  display: flex;
}

@media (max-width: 960px) {
  .timeline {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 900px) {
  .timeline {
    grid-template-columns: 1fr;
  }
  .section {
    padding-block: 44px;
  }
  .timeline .step {
    padding: 12px;
  }
}

/* Improve mobile readability with RTL connectors */
[dir="rtl"] .timeline .step {
  position: relative;
  border-right: 2px solid transparent;
}
@media (max-width: 900px) {
  [dir="rtl"] .timeline .step {
    border-right: 2px solid var(--border-strong);
    padding-right: 14px;
  }
  [dir="rtl"] .timeline .step:last-child {
    border-right-color: transparent;
  }
}

/* Larger tap targets in nav */
.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Floating WhatsApp on mobile */
.floating-whatsapp {
  position: fixed;
  z-index: 60;
  right: 16px;
  bottom: 16px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #111;
  border: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}
.floating-whatsapp:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}
.floating-whatsapp svg {
  width: 28px;
  height: 28px;
}
@media (min-width: 960px) {
  .floating-whatsapp {
    right: 24px;
    bottom: 24px;
  }
}
@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }
  .site-nav {
    position: absolute;
    inset-inline: 0;
    top: 64px;
    display: grid;
    gap: 6px;
    padding: 10px 20px 14px 20px;
    background: color-mix(in oklab, var(--surface) 96%, transparent);
    border-bottom: 1px solid var(--border);
    transform-origin: top center;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition:
      transform 0.18s ease,
      opacity 0.18s ease;
  }
  .site-header[data-open="true"] .site-nav {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }
}
