/* ============================================================
   Ravi Optical – Main Stylesheet
   ============================================================ */

:root {
  --accent:      #1A6BB5;
  --accent-light:#3A8FD8;
  --accent-soft: #E8F2FC;
  --text:        #1C2B3A;
  --text-muted:  #7A8FA6;
  --bg:          #FFFFFF;
  --bg-alt:      #F4F8FD;
  --bg-alt2:     #E8F0F8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ── NAV ─────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.98), rgba(255,255,255,0.85));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(26,107,181,0.08);
  transition: background 0.3s, box-shadow 0.3s;
}
nav.scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 2px 20px rgba(26,107,181,0.08);
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px; font-weight: 600; letter-spacing: 2px;
  color: var(--text); text-decoration: none;
}
.nav-logo span { color: var(--accent); }

.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  color: var(--text); text-decoration: none;
  font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase;
  font-weight: 400; opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
}
.nav-links a:hover { opacity: 1; color: var(--accent); }

.nav-cta {
  background: var(--accent) !important;
  color: #FFFFFF !important;
  padding: 10px 24px;
  opacity: 1 !important;
  font-weight: 500 !important;
  letter-spacing: 1px;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--accent-light) !important; }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  height: 100vh; min-height: 700px;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 0 60px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(26,107,181,0.1) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(58,143,216,0.06) 0%, transparent 50%),
    linear-gradient(135deg, #EBF4FF 0%, #F4F8FD 50%, #FFFFFF 100%);
}
.hero-grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(26,107,181,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,107,181,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 680px;
  animation: fadeUp 1s ease both;
}
.hero-eyebrow {
  font-size: 11px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px; font-weight: 500;
  display: flex; align-items: center; gap: 12px;
}
.hero-eyebrow::before {
  content: ''; display: block; width: 30px; height: 1px; background: var(--accent);
}
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(56px, 7vw, 90px);
  font-weight: 300; line-height: 1.05;
  letter-spacing: -1px; margin-bottom: 28px; color: var(--text);
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p {
  font-size: 16px; line-height: 1.75;
  color: rgba(28,43,58,0.6);
  max-width: 480px; margin-bottom: 44px; font-weight: 300;
}
.hero-btns { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

.btn-primary {
  background: var(--accent); color: #FFFFFF;
  padding: 15px 36px; font-size: 13px;
  letter-spacing: 1.5px; text-transform: uppercase;
  font-weight: 500; text-decoration: none;
  transition: all 0.25s; display: inline-block; border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--accent-light); transform: translateY(-1px); color: #fff; }

.btn-secondary {
  color: var(--accent); padding: 15px 36px; font-size: 13px;
  letter-spacing: 1.5px; text-transform: uppercase;
  font-weight: 400; text-decoration: none;
  border: 1px solid rgba(26,107,181,0.4);
  transition: all 0.25s; display: inline-block;
}
.btn-secondary:hover { border-color: var(--accent); background: var(--accent-soft); }

/* Lens decoration */
.hero-visual {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 50%; display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.lens-art {
  width: 480px; height: 480px; position: relative;
  animation: float 6s ease-in-out infinite;
}
.lens-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(26,107,181,0.25);
  animation: rotate-slow linear infinite;
}
.ring-1 { inset: 0; animation-duration: 30s; }
.ring-2 { inset: 40px; border-style: dashed; animation-duration: 20s; animation-direction: reverse; border-color: rgba(26,107,181,0.12); }
.ring-3 { inset: 100px; animation-duration: 40s; }
.lens-center {
  position: absolute; inset: 140px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(26,107,181,0.2) 0%, rgba(58,143,216,0.08) 40%, rgba(255,255,255,0.5) 100%);
  border: 1px solid rgba(26,107,181,0.4);
  box-shadow: 0 0 60px rgba(26,107,181,0.12), inset 0 0 40px rgba(26,107,181,0.08);
}
.lens-shine {
  position: absolute; top: 155px; left: 165px;
  width: 60px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,0.5); transform: rotate(-30deg);
}

/* ── STATS ─────────────────────────────────────────────────── */
.stats-bar {
  background: var(--accent);
  padding: 40px 60px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.stat {
  text-align: center; padding: 10px 0;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.stat:last-child { border-right: none; }
.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px; font-weight: 300; color: #FFFFFF; line-height: 1;
}
.stat-label {
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.7); margin-top: 8px;
}

/* ── SECTION HEADERS ───────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
  font-size: 11px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px; font-weight: 500;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(38px, 4vw, 56px); font-weight: 300; line-height: 1.1; color: var(--text);
}
.section-title em { font-style: italic; color: var(--accent); }

/* ── COLLECTIONS ───────────────────────────────────────────── */
.collections { padding: 100px 60px; background: #FFFFFF; }
.collections-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.collection-card { position: relative; overflow: hidden; aspect-ratio: 3/4; cursor: pointer; }
.collection-bg { position: absolute; inset: 0; transition: transform 0.6s ease; }
.collection-card:hover .collection-bg { transform: scale(1.05); }

.card-1 .collection-bg { background: linear-gradient(145deg, #EBF4FF 0%, #D6EAFF 50%, #C5E0FF 100%); }
.card-2 .collection-bg { background: linear-gradient(145deg, #EEF8F0 0%, #D6F0DD 50%, #C2E8CC 100%); }
.card-3 .collection-bg { background: linear-gradient(145deg, #FFF3EB 0%, #FFE4D0 50%, #FFD6BC 100%); }

.collection-visual {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.frame-svg { opacity: 0.7; transition: opacity 0.3s; }
.collection-card:hover .frame-svg { opacity: 1; }

.collection-info {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 32px;
  background: linear-gradient(to top, rgba(255,255,255,0.97) 0%, transparent 100%);
}
.collection-tag { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.collection-name { font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 300; color: var(--text); }
.collection-count { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.collection-arrow {
  position: absolute; top: 28px; right: 28px;
  width: 40px; height: 40px; border: 1px solid rgba(26,107,181,0.4);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(8px); transition: all 0.3s;
  color: var(--accent); font-size: 18px;
}
.collection-card:hover .collection-arrow { opacity: 1; transform: translateY(0); }

/* ── SERVICES ──────────────────────────────────────────────── */
.services { padding: 100px 60px; background: var(--bg-alt); }
.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(26,107,181,0.1); border: 1px solid rgba(26,107,181,0.1);
}
.service-item { background: #FFFFFF; padding: 48px 36px; transition: background 0.3s, box-shadow 0.3s; }
.service-item:hover { background: #EBF4FF; box-shadow: inset 0 0 0 1px rgba(26,107,181,0.2); }
.service-icon { width: 52px; height: 52px; margin-bottom: 28px; color: var(--accent); }
.service-title { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 400; margin-bottom: 14px; color: var(--text); }
.service-desc { font-size: 14px; line-height: 1.75; color: rgba(28,43,58,0.6); font-weight: 300; }

/* ── BRANDS ────────────────────────────────────────────────── */
.brands { padding: 80px 60px; background: var(--bg-alt); border-top: 1px solid rgba(26,107,181,0.08); }
.brands-track { overflow: hidden; position: relative; }
.brands-track::before, .brands-track::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 100px; z-index: 2;
}
.brands-track::before { left: 0; background: linear-gradient(to right, var(--bg-alt), transparent); }
.brands-track::after { right: 0; background: linear-gradient(to left, var(--bg-alt), transparent); }
.brands-scroll {
  display: flex; gap: 80px; align-items: center;
  animation: scroll-brands 20s linear infinite; width: max-content;
}
.brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; letter-spacing: 3px; color: rgba(28,43,58,0.3);
  text-transform: uppercase; white-space: nowrap;
  transition: color 0.3s; font-weight: 300;
}
.brand-name:hover { color: var(--accent); }

/* ── TESTIMONIALS ──────────────────────────────────────────── */
.testimonials { padding: 100px 60px; background: #FFFFFF; position: relative; overflow: hidden; }
.testimonials::before {
  content: '\201C';
  position: absolute; top: -20px; left: 40px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 300px; color: rgba(26,107,181,0.04);
  line-height: 1; pointer-events: none;
}
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.testimonial-card {
  padding: 40px; border: 1px solid rgba(26,107,181,0.12);
  background: var(--bg-alt); transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.testimonial-card:hover {
  border-color: rgba(26,107,181,0.35); background: #EBF4FF;
  box-shadow: 0 8px 32px rgba(26,107,181,0.08);
}
.stars { color: #F5A623; letter-spacing: 3px; margin-bottom: 20px; font-size: 14px; }
.testimonial-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px; line-height: 1.7; font-style: italic;
  color: rgba(28,43,58,0.8); margin-bottom: 24px; font-weight: 300;
}
.testimonial-author { font-size: 13px; color: var(--text-muted); letter-spacing: 1px; }
.testimonial-author strong { color: var(--text); display: block; margin-bottom: 3px; font-weight: 500; }

/* ── CTA ───────────────────────────────────────────────────── */
.cta-section {
  padding: 120px 60px; background: var(--accent);
  text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(255,255,255,0.1), transparent 70%);
}
.cta-content { position: relative; z-index: 1; }
.cta-section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(44px, 5vw, 72px); font-weight: 300;
  margin-bottom: 20px; line-height: 1.1; color: #FFFFFF;
}
.cta-section h2 em { font-style: italic; color: #BDE0FF; }
.cta-section p {
  font-size: 16px; color: rgba(255,255,255,0.75);
  margin-bottom: 48px; max-width: 500px; margin-inline: auto;
  font-weight: 300; line-height: 1.7;
}
.cta-section .btn-primary { background: #FFFFFF; color: var(--accent); }
.cta-section .btn-primary:hover { background: #EBF4FF; color: var(--accent); }

/* ── CONTACT ───────────────────────────────────────────────── */
.contact {
  padding: 100px 60px; background: var(--bg-alt);
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.contact-info h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px; font-weight: 300; margin-bottom: 32px; line-height: 1.1; color: var(--text);
}
.contact-info h2 em { font-style: italic; color: var(--accent); }
.contact-detail { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 28px; }
.contact-icon {
  width: 44px; height: 44px; background: rgba(26,107,181,0.1);
  border: 1px solid rgba(26,107,181,0.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 18px;
}
.contact-text { font-size: 14px; line-height: 1.7; color: rgba(28,43,58,0.65); }
.contact-text strong { color: var(--text); font-weight: 500; display: block; margin-bottom: 3px; }
.contact-text a { color: var(--accent); text-decoration: none; }
.contact-text a:hover { text-decoration: underline; }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

input, textarea, select {
  background: #FFFFFF; border: 1px solid rgba(26,107,181,0.18);
  color: var(--text); padding: 15px 20px;
  font-size: 14px; font-family: 'DM Sans', sans-serif;
  outline: none; width: 100%; transition: border-color 0.25s, box-shadow 0.25s;
}
input::placeholder, textarea::placeholder { color: rgba(28,43,58,0.35); }
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26,107,181,0.08);
}
textarea { resize: none; height: 120px; }
select option { background: #FFFFFF; color: var(--text); }

#ravi-form-message.success { background: #E8F5E9; color: #2E7D32; border: 1px solid #A5D6A7; }
#ravi-form-message.error   { background: #FFEBEE; color: #C62828; border: 1px solid #EF9A9A; }

/* ── FOOTER ────────────────────────────────────────────────── */
footer { background: #1C2B3A; padding: 60px 60px 32px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 48px; }
.footer-brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px; font-weight: 600; letter-spacing: 2px;
  margin-bottom: 16px; color: #FFFFFF;
}
.footer-brand-name span { color: #7EC8FF; }
.footer-tagline { font-size: 14px; color: rgba(255,255,255,0.45); line-height: 1.7; font-weight: 300; max-width: 260px; }
.footer-heading { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: #7EC8FF; margin-bottom: 20px; font-weight: 500; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,0.45); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: #FFFFFF; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px; color: rgba(255,255,255,0.35);
}
.social-links { display: flex; gap: 16px; }
.social-link {
  width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.45); text-decoration: none; font-size: 14px; transition: all 0.2s;
}
.social-link:hover { border-color: #7EC8FF; color: #7EC8FF; }

/* ── ANIMATIONS ────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-18px); }
}
@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes scroll-brands {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── HAMBURGER ─────────────────────────────────────────────── */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 1.5px; background: var(--text); transition: all 0.3s; }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  nav { padding: 20px 30px; }
  .hero { padding: 0 30px; }
  .hero-visual { display: none; }
  .hero h1 { font-size: 56px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); padding: 40px 30px; }
  .collections, .services, .testimonials, .brands, .cta-section { padding: 80px 30px; }
  .contact { padding: 80px 30px; gap: 40px; }
  footer { padding: 60px 30px 32px; }
  .collections-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero h1 { font-size: 44px; }
  .collections-grid, .services-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .stats-bar { padding: 32px 20px; }
  .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); padding: 16px 0; }
  .stat:last-child { border-bottom: none; }
}
