/* ── Variables ── */
:root {
  --navy:       #0c2461;
  --navy-mid:   #1a3a6b;
  --navy-light: #19407a;
  --gold:       #A8841A;
  --gold-hover: #8c6e15;
  --white:      #ffffff;
  --light:      #f4f6f9;
  --text:       #1e2d4e;
  --muted:      #6b7a99;
  --border:     #e2e8f0;
}

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

html { scroll-behavior: smooth; font-size: 20px; overflow-x: hidden; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--navy);
  line-height: 1.2;
}

/* ── Nav ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 6vw;
  display: flex; align-items: center; justify-content: space-between;
  height: 110px;
}

.nav-logo-img { height: 100px; width: auto; display: block; }

.nav-logo-circle {
  width: 52px; height: 52px; border-radius: 50%;
  border: 2px solid var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 14px; font-weight: 700; color: var(--navy);
  letter-spacing: 1px;
}

.nav-links {
  display: flex; align-items: center; gap: 2.5vw;
  list-style: none;
}

.nav-links a {
  font-size: 18px; font-weight: 500; color: var(--text);
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active { color: var(--navy); font-weight: 600; }

.nav-right { display: flex; align-items: center; }

.btn-company {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 22px; border-radius: 6px;
  background: var(--navy); color: var(--white);
  font-size: 16px; font-weight: 500;
  transition: background 0.2s;
}
.btn-company:hover { background: var(--navy-mid); }

/* ── Page Hero Banner ── */
.page-hero {
  background: var(--navy);
  padding: 90px 6vw;
  text-align: center;
}
.page-hero h1 { color: var(--white); font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: 14px; }
.page-hero p  { color: rgba(255,255,255,0.72); font-size: 18px; max-width: 620px; margin: 0 auto; line-height: 1.75; }

/* ── Buttons ── */
.btn-gold {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 4px;
  background: var(--gold); color: var(--white);
  font-size: 16px; font-weight: 600;
  border: none; cursor: pointer; transition: background 0.2s;
}
.btn-gold:hover { background: var(--gold-hover); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 4px;
  background: transparent; color: var(--white);
  font-size: 16px; font-weight: 600;
  border: 2px solid rgba(255,255,255,0.45);
  cursor: pointer; transition: border-color 0.2s;
}
.btn-outline:hover { border-color: var(--white); }

.btn-navy {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 4px;
  background: var(--navy); color: var(--white);
  font-size: 16px; font-weight: 600;
  border: 2px solid var(--navy); cursor: pointer; transition: background 0.2s;
}
.btn-navy:hover { background: var(--navy-mid); }

.btn-outline-navy {
  display: inline-flex; align-items: center;
  padding: 13px 28px; border-radius: 4px;
  background: transparent; color: var(--navy);
  font-size: 16px; font-weight: 600;
  border: 2px solid var(--navy); cursor: pointer; transition: all 0.2s;
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 4px;
  background: #25d366; color: var(--white);
  font-size: 16px; font-weight: 600;
  border: none; cursor: pointer; transition: background 0.2s;
}
.btn-whatsapp:hover { background: #1eb356; }

/* ── Section label ── */
.section-label {
  display: block; font-size: 13px; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}

/* ── Shared section padding ── */
.section-pad { padding: 96px 6vw; }

/* ── Image placeholder ── */
.img-placeholder {
  background: #dde3ed; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #8899bb; font-size: 16px; font-weight: 500;
}

/* ── Footer ── */
footer {
  background: var(--navy);
  padding: 80px 6vw 36px;
}

.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 4vw; padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h4 {
  color: var(--white); font-family: inherit;
  font-size: 16px; font-weight: 600; margin-bottom: 16px;
}
.footer-col p { color: rgba(255,255,255,0.6); font-size: 15px; line-height: 1.7; }

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 15px; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }

.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact-item span { color: rgba(255,255,255,0.6); font-size: 15px; line-height: 1.5; }
.footer-contact-item svg { flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
  text-align: center; color: rgba(255,255,255,0.35);
  font-size: 14px; margin-top: 24px;
}

/* ── Language Toggle Button ── */
.nav-right { display: flex; align-items: center; gap: 10px; }

.btn-lang {
  display: flex; align-items: center;
  padding: 10px 18px; border-radius: 6px;
  background: transparent; color: var(--navy);
  font-size: 16px; font-weight: 600;
  border: 2px solid var(--border); cursor: pointer;
  transition: all 0.2s; font-family: inherit;
  line-height: 1; white-space: nowrap;
}
.btn-lang:hover { border-color: var(--navy); background: var(--light); }

/* ── RTL / Arabic Language Support ── */
html[dir="rtl"] body {
  font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4 {
  font-family: 'Cairo', serif;
}
/* Nav stays LTR — logo left, buttons right */
html[dir="rtl"] nav { direction: ltr; }
html[dir="rtl"] .btn-lang { font-family: 'Cairo', sans-serif; }
/* Story grid stays LTR — image stays on the left; text column gets RTL back */
html[dir="rtl"] .story-grid { direction: ltr; }
html[dir="rtl"] .story-right { direction: rtl; text-align: right; }
/* Homepage hero stays LTR — text left, image right */
html[dir="rtl"] #hero { direction: ltr; }
/* Homepage excellence stays LTR — image left, text right */
html[dir="rtl"] #excellence { direction: ltr; }
html[dir="rtl"] .excellence-right { direction: rtl; text-align: right; }
/* Product detail pages — image stays left, info stays right */
html[dir="rtl"] .product-layout { direction: ltr; }
html[dir="rtl"] .product-info { direction: rtl; text-align: right; }
html[dir="rtl"] .section-label { letter-spacing: 0; }
html[dir="rtl"] .footer-col { text-align: right; }
html[dir="rtl"] .footer-links li { text-align: right; width: 100%; }
html[dir="rtl"] .footer-contact-item span,
html[dir="rtl"] .contact-item-val,
html[dir="rtl"] .info-item-val,
html[dir="rtl"] .dist-info-item.phone span { direction: ltr; unicode-bidi: embed; }
html[dir="rtl"] .standard-item { text-align: right; }

/* ── Product image carousel ── */
.carousel-col { display: flex; flex-direction: column; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,0.22); border: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: none; z-index: 2;
  transition: background 0.2s; padding: 0;
  -webkit-appearance: none; appearance: none;
}
@media (hover: hover) {
  .carousel-btn:hover {
    box-shadow: 0 0 0 2px rgba(12,36,97,0.5), 0 0 14px rgba(12,36,97,0.35);
  }
}
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; padding: 12px 0 4px; }
.carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); border: none; cursor: pointer; padding: 0;
  transition: background 0.2s;
}
.carousel-dot.active { background: var(--navy); }
.card-dots { padding: 8px 0 2px; background: var(--white); }

/* Product card frame — desktop only */
@media (min-width: 901px) {
  .product-card {
    outline: 1px solid rgba(12,36,97,0.35);
    outline-offset: 6px;
  }
}

/* Category card arrows: hidden until card hovered */
.product-card .carousel-btn { opacity: 0; transition: opacity 0.2s; }
.product-card:hover .carousel-btn { opacity: 1; }
@media (hover: none) {
  .product-card .carousel-btn { opacity: 1; }
  .carousel-btn svg { stroke: #ffffff; }
}
@media (hover: hover) {
  .carousel-btn svg { stroke: #0c2461; }
}

/* ── Hamburger ── */
.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px; margin-left: 6px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile nav overlay ── */
.nav-links.mobile-open {
  display: flex !important;
  position: fixed; top: 90px; left: 0; right: 0; bottom: 0;
  background: var(--white); flex-direction: column;
  padding: 40px 8vw; gap: 0; z-index: 99;
  overflow-y: auto;
  border-top: 1px solid var(--border);
}
.nav-links.mobile-open li { border-bottom: 1px solid var(--border); }
.nav-links.mobile-open a {
  display: block; padding: 18px 0;
  font-size: 20px; font-weight: 500; color: var(--text);
}
.nav-links.mobile-open a.active { color: var(--navy); font-weight: 700; }

/* ── Navy grid background ── */
.page-hero {
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px, 60px 60px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  nav { padding: 0 5vw; height: 90px; }
  .nav-logo-img { height: 64px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .page-hero { padding: 64px 5vw; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  .product-layout > h1 {
    font-size: 1.7rem; margin-bottom: 16px;
    color: var(--navy); font-family: 'Playfair Display', Georgia, serif; line-height: 1.2;
  }
}
html[dir="rtl"] .product-layout > h1 { direction: rtl; text-align: right; }

@media (max-width: 600px) {
  .btn-company { font-size: 0 !important; padding: 10px 12px !important; gap: 0 !important; }
  .btn-company svg { width: 18px !important; height: 18px !important; }
  .btn-lang { padding: 8px 12px !important; font-size: 14px !important; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col:first-child,
  .footer-col:last-child { grid-column: 1 / -1; }
}
