/* ===== Design Tokens ===== */
:root {
  --color-primary: #0d1b2a;
  --color-primary-dark: #060b12;
  --color-primary-soft: #16283d;
  --color-primary-tint: #e7ebf1;
  --color-accent: #d6a94a;
  --color-accent-light: #efc978;
  --color-accent-dark: #b8892f;
  --color-charcoal: #1f2430;
  --color-cloud: #f7f8fc;
  --color-ivory: #fffdf8;
  --color-border: #e5e7eb;
  --color-muted: #6b7280;
  --color-white: #ffffff;

  --font-body: "Alexandria", sans-serif;
  --font-heading: "Alexandria", sans-serif;

  --container-max: 1500px;
  --pad-inline: 1rem;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 10px rgba(13, 27, 42, 0.07);
  --shadow-md: 0 14px 34px rgba(13, 27, 42, 0.14);
  --shadow-lg: 0 24px 60px rgba(13, 27, 42, 0.18);
  --ease-fly: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 640px) {
  :root { --pad-inline: 1.5rem; }
}
@media (min-width: 1025px) {
  :root { --pad-inline: 2rem; }
}
@media (min-width: 1290px) {
  :root { --pad-inline: 2.5rem; }
}

/* ===== Font ===== */
@font-face {
  font-family: "Alexandria";
  src: local("Alexandria");
  font-weight: 400 700;
  font-display: swap;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-charcoal);
  background: var(--color-cloud);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-heading); margin: 0; line-height: 1.2; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--pad-inline);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  background: var(--color-primary-tint);
  color: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-block-end: 1.1rem;
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease-fly), box-shadow 0.25s var(--ease-fly);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-accent-light), var(--color-accent) 60%);
  color: var(--color-primary-dark);
  box-shadow: 0 10px 24px rgba(214, 169, 74, 0.35);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(214, 169, 74, 0.45);
}
.btn-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  color: var(--color-white);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--color-white);
  transform: translateY(-3px);
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.4) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}
.btn:hover::after { transform: translateX(100%); }

/* ===== Top bar ===== */
.topbar {
  background: var(--color-primary-dark);
  color: var(--color-white);
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.55rem;
  flex-wrap: wrap;
}
.topbar-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.topbar-links a { display: flex; align-items: center; gap: 0.45rem; opacity: 0.85; transition: opacity 0.2s; }
.topbar-links a:hover { opacity: 1; color: var(--color-accent-light); }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(13, 27, 42, 0.06);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.7rem;
}
.brand { display: flex; align-items: center; }
.brand img { height: 42px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.1rem;
}
.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-charcoal);
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.25s var(--ease-fly);
}
.nav-links a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.lang-toggle {
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  transition: background 0.2s, border-color 0.2s;
}
.lang-toggle:hover { background: var(--color-primary-tint); border-color: var(--color-primary-tint); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--color-primary); border-radius: 2px; }

@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem var(--pad-inline);
    box-shadow: var(--shadow-md);
    display: none;
    gap: 1.25rem;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
}

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(ellipse at top right, rgba(214,169,74,0.18) 0%, transparent 55%),
    linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  padding-block: 4.5rem 5.5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset-inline-end: -8%;
  top: -25%;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214,169,74,0.22) 0%, transparent 70%);
}
.hero::after {
  content: "";
  position: absolute;
  inset-inline-start: -12%;
  bottom: -30%;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content { max-width: 640px; }
.hero-badge {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-accent-light);
}
.hero-badge::before { background: var(--color-accent-light); }
.hero-title {
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  font-weight: 700;
  margin-block-end: 1.25rem;
  letter-spacing: -0.01em;
}
.hero-title .accent-text {
  background: linear-gradient(120deg, var(--color-accent-light), var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-subtitle {
  font-size: 1.08rem;
  opacity: 0.85;
  margin-block-end: 2.25rem;
  max-width: 560px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-block-end: 2.5rem; }

.hero-trustrow {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  padding-block-start: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.hero-trustrow .trust-num { font-size: 1.4rem; font-weight: 700; color: var(--color-accent-light); }
.hero-trustrow .trust-label { font-size: 0.78rem; opacity: 0.7; margin-block-start: 0.15rem; }

.hero-visual {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  z-index: 1;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.hero-visual .tile-tall { grid-row: span 2; aspect-ratio: 1 / 1.55; }
.hero-visual .tile-short { aspect-ratio: 1 / 0.95; }
.hero-visual .tile-wide { aspect-ratio: 1.8 / 1; }
.hero-float-card {
  position: absolute;
  bottom: -1.25rem;
  inset-inline-start: -1.25rem;
  background: var(--color-white);
  color: var(--color-charcoal);
  border-radius: var(--radius);
  padding: 1rem 1.35rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 2;
}
.hero-float-card .icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--color-primary-tint);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-float-card .float-num { font-weight: 700; font-size: 1.05rem; color: var(--color-primary); }
.hero-float-card .float-label { font-size: 0.75rem; color: var(--color-muted); }

@media (min-width: 1000px) {
  .hero .container { grid-template-columns: 1.05fr 0.95fr; gap: 4rem; }
  .hero-visual { margin-inline-end: 1rem; }
}

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease-fly), transform 0.6s var(--ease-fly);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1.in-view { transition-delay: 0.08s; }
.reveal-delay-2.in-view { transition-delay: 0.16s; }
.reveal-delay-3.in-view { transition-delay: 0.24s; }

/* ===== Section shared ===== */
.hero, #about, #products, #why, #contact { padding-block: 5.5rem; }
.section-head {
  max-width: 640px;
  margin-block-end: 3rem;
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-title { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 700; color: var(--color-primary); letter-spacing: -0.01em; }
.section-subtitle { color: var(--color-muted); margin-block-start: 0.85rem; font-size: 1.05rem; }

/* ===== About ===== */
.about-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
  align-items: center;
}
.about-visual { position: relative; }
.about-visual img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3.1;
  object-fit: cover;
}
.about-visual-badge {
  position: absolute;
  bottom: -1.5rem;
  inset-inline-end: -1rem;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-lg);
  max-width: 220px;
}
.about-visual-badge .num { font-size: 1.6rem; font-weight: 700; color: var(--color-accent-light); }
.about-visual-badge .label { font-size: 0.82rem; opacity: 0.8; margin-block-start: 0.2rem; }

.about-text { font-size: 1.05rem; color: var(--color-charcoal); margin-block-start: 1rem; }
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-block-start: 2rem;
}
.stat {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.4rem 1rem;
  text-align: center;
  transition: transform 0.25s var(--ease-fly), box-shadow 0.25s var(--ease-fly);
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.stat-num { font-size: 1.7rem; font-weight: 700; color: var(--color-accent-dark); }
.stat-label { font-size: 0.82rem; color: var(--color-muted); margin-block-start: 0.25rem; }

@media (min-width: 900px) {
  .about-grid { grid-template-columns: 0.9fr 1.1fr; }
}

/* ===== Products ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}
@media (min-width: 901px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}
.product-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-fly), box-shadow 0.35s var(--ease-fly);
  position: relative;
  overflow: hidden;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.product-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-fly);
}
.product-card:hover .product-media img { transform: scale(1.08); }
.product-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(13, 27, 42, 0.55) 100%);
}
.product-num {
  position: absolute;
  top: 0.9rem;
  inset-inline-start: 0.9rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.product-body { padding: 1.5rem 1.5rem 1.75rem; }
.product-card h3 { font-size: 1.15rem; color: var(--color-primary); margin-block-end: 0.5rem; }
.product-card p { color: var(--color-muted); font-size: 0.95rem; }

/* ===== Why Us ===== */
.why-section {
  background: linear-gradient(180deg, var(--color-primary-tint) 0%, var(--color-cloud) 100%);
  position: relative;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.75rem;
}
.why-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-fly), box-shadow 0.3s var(--ease-fly);
}
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.why-icon {
  width: 54px;
  height: 54px;
  margin-inline: auto;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--color-accent-light), var(--color-accent));
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-block-end: 1.25rem;
}
.why-card h3 { font-size: 1.05rem; color: var(--color-primary); margin-block-end: 0.5rem; }
.why-card p { color: var(--color-muted); font-size: 0.9rem; }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.contact-details {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-item .icon-wrap {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--color-primary-tint);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-item-label { font-size: 0.8rem; color: var(--color-muted); }
.contact-item-value { font-weight: 600; }
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  min-height: 280px;
}
.map-wrap iframe { width: 100%; height: 100%; min-height: 280px; border: 0; }

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #25d366;
  color: var(--color-white);
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  align-self: flex-start;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35);
  transition: transform 0.25s var(--ease-fly), box-shadow 0.25s var(--ease-fly);
}
.whatsapp-btn:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(37, 211, 102, 0.45); }

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

/* ===== Footer ===== */
.footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding-block: 3.5rem 1.5rem;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  margin-block-end: 2.5rem;
}
.footer-brand img { height: 40px; width: auto; margin-block-end: 0.9rem; }
.footer-tagline { font-size: 0.9rem; opacity: 0.65; max-width: 320px; }
.footer h3 { color: var(--color-white); font-size: 0.95rem; margin-block-end: 1.1rem; letter-spacing: 0.02em; }
.footer-links { display: flex; flex-direction: column; gap: 0.7rem; font-size: 0.9rem; }
.footer-links a { opacity: 0.75; transition: opacity 0.2s, color 0.2s; }
.footer-links a:hover { opacity: 1; color: var(--color-accent-light); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-credit { display: inline-flex; justify-content: center; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.footer-credit a { color: var(--color-accent-light); text-decoration: underline; text-underline-offset: 2px; }
@media (min-width: 700px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: start;
  }
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

/* ===== Floating buttons ===== */
.float-actions {
  position: fixed;
  inset-block-end: 1.5rem;
  inset-inline-end: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 90;
}
.float-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform 0.25s var(--ease-fly);
}
.float-btn:hover { transform: translateY(-3px) scale(1.06); }
.float-whatsapp { background: #25d366; color: var(--color-white); }
.float-top {
  background: var(--color-white);
  color: var(--color-primary);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-fly), transform 0.25s var(--ease-fly);
}
.float-top.visible { opacity: 1; pointer-events: auto; }

/* ===== RTL specific tweaks ===== */
[dir="rtl"] .hero::before {
  inset-inline-end: auto;
  inset-inline-start: -8%;
}
[dir="rtl"] .hero::after {
  inset-inline-start: auto;
  inset-inline-end: -12%;
}
