/* ═══════════════════════════════════════════════
   DUBAI OPTICALS — MAIN CSS
   Aesthetic: Luxury Desert Minimalism
   Dark deep navy/charcoal + burnished gold accents
═══════════════════════════════════════════════ */

/* ── CUSTOM PROPERTIES ── */
:root {
  --navy:       #0D1B2A;
  --navy-mid:   #12263F;
  --navy-light: #1A3A5C;
  --gold:       #C9A84C;
  --gold-light: #E8C97A;
  --gold-dim:   #8A6F2E;
  --white:      #F5F2EC;
  --white-off:  #EAE5DA;
  --grey:       #8B96A5;
  --grey-light: #B8C4D0;
  --success:    #4CAF7D;
  --text:       #F5F2EC;
  --text-muted: #8B96A5;
  --border:     rgba(201,168,76,.18);
  --border-light: rgba(245,242,236,.08);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-arabic:  'Noto Kufi Arabic', Arial, sans-serif;

  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  --nav-h: 80px;
  --container: 1240px;
  --radius: 12px;
  --radius-lg: 20px;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--navy);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
}

h1 { font-size: clamp(3rem, 7vw, 6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }

em {
  font-style: italic;
  color: var(--gold);
}

p { font-size: 1rem; color: var(--grey-light); }

/* ── CONTAINER ── */
.container {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
}

/* ── SECTIONS ── */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-eyebrow::before,
.section-eyebrow::after {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.section-title { margin-bottom: 1rem; }
.section-sub { color: var(--grey-light); max-width: 560px; margin: 0 auto; }

/* ── NAVIGATION ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: rgba(13, 27, 42, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 2rem;
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
}

.nav__logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  margin-right: auto;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--white);
}

.logo-text em {
  font-style: normal;
  color: var(--gold);
}

.logo-arabic {
  font-family: var(--font-arabic);
  font-size: 0.7rem;
  color: var(--gold-dim);
  letter-spacing: 0.02em;
  margin-top: 2px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--grey-light);
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.02em;
}

.nav__link:hover,
.nav__link.active {
  color: var(--white);
  background: var(--border-light);
}

.nav__link.active { color: var(--gold); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* ── BUTTONS ── */
.btn-primary, .cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn-primary:hover, .cta-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(201,168,76,.35);
}

.cta-primary--light {
  background: var(--white);
  color: var(--navy);
}
.cta-primary--light:hover { background: var(--white-off); box-shadow: 0 6px 24px rgba(245,242,236,.25); }

.btn--large { padding: 0.95rem 2.5rem; font-size: 1rem; }

.btn-ghost, .cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  color: var(--grey-light);
  font-size: 0.875rem;
  font-weight: 400;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  transition: all var(--transition);
}
.cta-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  transition: all var(--transition);
}
.btn-outline:hover { background: var(--gold); color: var(--navy); }

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25D366;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.7rem 1.2rem;
  border-radius: 50px;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-whatsapp:hover { background: #1ebe5d; transform: translateY(-1px); }

.btn-whatsapp--large { padding: 0.95rem 2rem; font-size: 1rem; }

/* ── TICKER ── */
.ticker {
  background: var(--gold);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  overflow: hidden;
  height: 36px;
  display: flex;
  align-items: center;
}

.ticker__track {
  display: flex;
  animation: ticker 40s linear infinite;
  white-space: nowrap;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── BADGE ── */
.badge {
  display: inline-flex;
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--border-light);
  color: var(--grey-light);
  border: 1px solid var(--border-light);
}
.badge--green { background: rgba(76,175,125,0.12); color: var(--success); border-color: rgba(76,175,125,0.2); }
.badge--gold { background: rgba(201,168,76,0.12); color: var(--gold); border-color: rgba(201,168,76,0.2); }

/* ── ACCORDION ── */
.accordion__item {
  border-bottom: 1px solid var(--border-light);
}

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem 0;
  font-size: 1rem;
  font-weight: 400;
  color: var(--white);
  text-align: left;
  gap: 1rem;
  transition: color var(--transition);
}
.accordion__trigger:hover { color: var(--gold); }
.accordion__trigger[aria-expanded="true"] { color: var(--gold); }
.accordion__trigger[aria-expanded="true"] .accordion__icon { transform: rotate(180deg); }

.accordion__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--gold);
  transition: transform var(--transition);
}

.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}
.accordion__content.open { max-height: 200px; }
.accordion__content p { padding-bottom: 1.25rem; }

/* ── FOOTER ── */
.footer {
  background: var(--navy-mid);
  border-top: 1px solid var(--border-light);
  padding-top: 4rem;
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-light);
}

.footer__brand p {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.footer__whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #25D366;
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity var(--transition);
}
.footer__whatsapp:hover { opacity: 0.8; }

.footer__nav h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.footer__nav ul li { margin-bottom: 0.65rem; }
.footer__nav a {
  font-size: 0.9rem;
  color: var(--grey);
  transition: color var(--transition);
}
.footer__nav a:hover { color: var(--gold); }

.hours-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--grey);
  margin-bottom: 0.5rem;
}

.footer__location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--grey);
  margin-top: 1rem;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  font-size: 0.8rem;
  color: var(--grey);
}

.footer__rakta { color: var(--gold-dim); }

/* ── STICKY WHATSAPP ── */
.whatsapp-sticky {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-sticky:hover { transform: scale(1.1); box-shadow: 0 8px 30px rgba(37,211,102,0.5); }

.whatsapp-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #25D366;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ── NAV MOBILE TOGGLE ── */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav__toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── PAGE HERO (sub pages) ── */
.page-hero {
  min-height: 40vh;
  display: flex;
  align-items: flex-end;
  padding-top: var(--nav-h);
  padding-bottom: 3rem;
  position: relative;
  overflow: hidden;
  background: var(--navy-mid);
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(201,168,76,0.08) 0%, transparent 65%),
              radial-gradient(ellipse at 30% 80%, rgba(26,58,92,0.6) 0%, transparent 55%);
}

.page-hero__content {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--grey);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--gold-dim); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--grey); }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  :root { --nav-h: 68px; }

  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .btn-whatsapp { display: none; }

  .nav__links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13,27,42,0.98);
    backdrop-filter: blur(20px);
    padding: 2rem;
    gap: 0.5rem;
    z-index: 999;
    align-items: flex-start;
  }

  .nav__links.mobile-open .nav__link {
    font-size: 1.5rem;
    font-family: var(--font-display);
    padding: 0.75rem 0;
  }

  .footer__top { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  .whatsapp-sticky { bottom: 1.25rem; right: 1.25rem; width: 52px; height: 52px; }
}

@media (max-width: 480px) {
  .nav__actions .btn-primary { display: none; }
  .nav__actions .btn-primary:last-child { display: inline-flex; font-size: 0.8rem; padding: 0.55rem 1rem; }
}
