/* ============================================
   EyeDive Optical — Public Site CSS
   Color system:
   Navy   #1c2e4a  (primary)
   Orange #fb7112  (accent CTA)
   Gold   #c9a84c  (premium)
   Black  #0a0a0a  (hero bg)
   Warm   #f7f5f0  (section bg)
   ============================================ */

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

:root {
  --navy:   #1c2e4a;
  --orange: #fb7112;
  --gold:   #c9a84c;
  --black:  #0a0a0a;
  --warm:   #f7f5f0;
  --white:  #ffffff;
  --text:   #1a1a1a;
  --muted:  #6b7280;
  --border: #e5e0d8;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-sans:  'Inter', 'Segoe UI', system-ui, sans-serif;
  --transition: 0.3s ease;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-sans); color: var(--text); background: var(--white); line-height: 1.6; overflow-x: hidden; }
img  { max-width: 100%; display: block; }
a    { text-decoration: none; color: inherit; }

/* ============ TYPOGRAPHY ============ */
h1,h2,h3 { font-family: var(--font-serif); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; font-family: var(--font-sans); font-weight: 600; }

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
  display: block;
}
.section-title { color: var(--navy); margin-bottom: 12px; }
.section-sub   { color: var(--muted); font-size: 1.05rem; max-width: 560px; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary   { background: var(--orange); color: #fff; }
.btn-primary:hover { background: #e0620e; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline   { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-navy      { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #162540; transform: translateY(-1px); }
.btn-gold      { background: var(--gold); color: var(--navy); font-weight: 700; }
.btn-gold:hover { background: #b8963e; }
.btn-sm { padding: 10px 20px; font-size: 13px; }

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), box-shadow var(--transition);
  background: transparent;
}
.navbar-inner {
  max-width: 1140px;
  width: 100%;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
}
.navbar.scrolled {
  background: var(--navy);
  box-shadow: var(--shadow-md);
}
.navbar.solid { background: var(--navy); }
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-brand img { height: 36px; width: auto; }
.nav-brand-text {
  font-family: var(--font-serif);
  font-size: 18px;
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
}
.nav-brand-text span { display: block; font-size: 10px; font-weight: 400; letter-spacing: 1.5px; opacity: 0.75; font-family: var(--font-sans); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color var(--transition);
}
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: var(--orange); }
.nav-cta { margin-left: 16px; }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition);
}

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a { color: #fff; font-size: 22px; font-family: var(--font-serif); }
.nav-mobile-close {
  position: absolute;
  top: 24px; right: 24px;
  background: none; border: none;
  color: #fff; font-size: 32px; cursor: pointer;
}

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  background: var(--black);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 40px 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a0a0a 0%, #1c2e4a 100%);
  opacity: 0.95;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 80%, rgba(251,113,18,0.08) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(201,168,76,0.06) 0%, transparent 50%);
}
.hero-content {
  position: relative;
  max-width: 1140px;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.hero h1 { color: #fff; margin-bottom: 20px; max-width: 700px; }
.hero h1 span { color: var(--orange); }
.hero-sub {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  margin-bottom: 36px;
  line-height: 1.7;
  max-width: 520px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-stat-val {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  display: block;
  min-width: 80px;
}
.hero-stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.5px;
}
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.4);
  font-size: 11px;
  letter-spacing: 1px;
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.3));
  animation: scrollPulse 2s infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: 0.3; }
  50%      { opacity: 1; }
}

/* ============ TRUST STRIP ============ */
.trust-strip {
  background: var(--navy);
  padding: 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 28px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.trust-item:last-child { border-right: none; }
.trust-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(251,113,18,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}
.trust-val {
  font-weight: 700;
  color: #fff;
  font-size: 14px;
  line-height: 1.3;
}
.trust-label {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

/* ============ SECTIONS ============ */
.section {
  padding: 80px 40px;
}
.section-warm { background: var(--warm); }
.section-white { background: var(--white); }
.section-navy  { background: var(--navy); }
.section-dark  { background: var(--black); }
.container { max-width: 1140px; margin: 0 auto; }
.section-header { margin-bottom: 48px; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 0 auto; }

/* ============ SERVICES ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card:hover::after { transform: scaleX(1); }
.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(28,46,74,0.06);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}
.service-card h3 { color: var(--navy); margin-bottom: 10px; }
.service-card p  { color: var(--muted); font-size: 14px; line-height: 1.7; }

/* ============ BRAND CAROUSEL ============ */
.brands-section { overflow: hidden; }
.brands-track-wrap {
  overflow: hidden;
  padding: 20px 0;
  -webkit-mask: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.brands-track {
  display: flex;
  gap: 40px;
  animation: marquee 28s linear infinite;
  width: max-content;
}
.brands-track:hover { animation-play-state: paused; }
.brand-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 32px;
  min-width: 150px;
  height: 64px;
  white-space: nowrap;
  transition: all var(--transition);
}
.brand-logo-item span {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.3px;
}
.brand-logo-item:hover { border-color: var(--orange); }
.brand-logo-item:hover span { color: var(--orange); }
.brand-logo-item:hover { border-color: var(--orange); color: var(--orange); }
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============ PRESCRIPTION CTA ============ */
.rx-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.rx-cta-text .section-title { color: #fff; }
.rx-cta-text .section-sub   { color: rgba(255,255,255,0.65); }
.rx-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 36px;
  backdrop-filter: blur(10px);
}
.rx-card-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 20px;
}
.rx-input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 8px;
  border: none;
  font-size: 16px;
  margin-bottom: 12px;
  background: rgba(255,255,255,0.92);
  color: var(--text);
  outline: none;
}
.rx-input:focus { background: #fff; }

/* ============ REVIEWS ============ */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  position: relative;
}
.review-stars { color: #fbbf24; font-size: 18px; margin-bottom: 14px; letter-spacing: 2px; }
.review-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 20px;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.review-name { font-weight: 600; font-size: 14px; color: var(--navy); }
.review-date { font-size: 12px; color: var(--muted); }
.google-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 24px;
  opacity: 0.4;
}

/* ============ VISIT US ============ */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.visit-info { display: flex; flex-direction: column; gap: 28px; }
.visit-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.visit-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(28,46,74,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.visit-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 4px; }
.visit-val { font-weight: 600; color: var(--navy); font-size: 15px; line-height: 1.6; }
.visit-val a { color: var(--orange); }
.map-container {
  border-radius: 12px;
  overflow: hidden;
  height: 340px;
  border: 1px solid var(--border);
}
.map-container iframe { width: 100%; height: 100%; border: none; }

/* ============ FOOTER ============ */
footer {
  background: var(--black);
  padding: 60px 40px 30px;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1140px;
  margin: 0 auto 48px;
}
.footer-brand-text {
  font-family: var(--font-serif);
  font-size: 20px;
  color: #fff;
  font-weight: 700;
  margin-bottom: 12px;
}
.footer-brand-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-tagline {
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 13px;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: background var(--transition);
}
.footer-social a:hover { background: var(--orange); }
.footer-heading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #fff;
  margin-bottom: 18px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--orange); }
.footer-bottom {
  max-width: 1140px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
}

/* ============ WHATSAPP BUTTON ============ */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  border-radius: 50px;
  padding: 14px 20px 14px 16px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  animation: waPop 0.5s 1s ease both;
}
.wa-float:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 28px rgba(37,211,102,0.5);
}
.wa-float svg { width: 22px; height: 22px; }
@keyframes waPop {
  from { opacity:0; transform: scale(0.5) translateY(20px); }
  to   { opacity:1; transform: scale(1) translateY(0); }
}

/* ============ PAGE HERO (inner pages) ============ */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0f1e30 100%);
  padding: 140px 40px 80px;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 16px; }
.page-hero p  { color: rgba(255,255,255,0.65); font-size: 1.05rem; max-width: 500px; margin: 0 auto; }

/* ============ FADE IN SCROLL ============ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
    /* Navbar */
    .navbar { padding: 0; }
    .navbar-inner { padding: 0 20px; width: 100%; }
    .nav-links  { display: none !important; }
    .nav-cta    { display: none !important; }
    .nav-hamburger { display: flex !important; }
}

    /* Hero */
    .hero { padding: 100px 20px 60px; align-items: flex-start; }
    .hero-content { padding: 0; }
    .hero-badge { font-size: 10px; }
    .hero-stats { gap: 20px; }
    .hero-stat-val { font-size: 1.6rem; }

    /* Trust */
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); padding: 18px 20px; }

    /* General */
    .section { padding: 48px 20px; }
    .rx-cta { grid-template-columns: 1fr; gap: 32px; }
    .visit-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 32px; }
.footer-grid > div:first-child { grid-column: 1 / -1; }
.footer-grid > div:last-child  { grid-column: 1 / -1; }
    .container { padding: 0 4px; }
}

/* Service rows — responsive */
.service-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 48px 0;
    border-bottom: 1px solid var(--border);
}
.service-icon-large {
    background: var(--warm);
    border-radius: 16px;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
}
.service-icon-large.dark { background: var(--navy); }

@media (max-width: 900px) {
    .service-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .service-icon-large {
        display: none !important;
    }
}

@media (max-width: 600px) {
   .trust-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .wa-float span { display: none; }
    .wa-float { border-radius: 50%; padding: 16px; }
    .hero-ctas { flex-direction: column; }
    .hero-ctas .btn { width: 100%; justify-content: center; }
    .hero-stats { gap: 16px; }
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 32px; }
    .about-grid > div:first-child { order: 2; }
}

.service-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 48px 0;
    border-bottom: 1px solid var(--border);
}
@media (max-width: 900px) {
    .service-row { grid-template-columns: 1fr; gap: 24px; }
    .service-row .service-icon-large { display: none; } /* hide big emoji box on mobile */
}