/* =========================================================
   OPTICAL SHOP - PUBLIC WEBSITE STYLES
   Saare rang "theme variables" se aate hain (admin panel se badalte hain)
   ========================================================= */
:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --text: #1f2430;
  --muted: #6b7280;
  --primary: #1f2a44;
  --on-primary: #ffffff;
  --accent: #c9a24a;
  --border: #e8e1d4;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 18px;
  --shadow: 0 18px 40px -22px rgba(15, 23, 42, 0.35);
  --max: 1180px;
  --wa: #25d366;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.noscroll { overflow: hidden; }
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.18; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { color: var(--muted); }
.container { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- loader ---------- */
#loader { position: fixed; inset: 0; z-index: 999; background: var(--bg); display: grid; place-items: center; transition: opacity 0.4s; }
#loader.hide { opacity: 0; pointer-events: none; }
.spin { width: 44px; height: 44px; border: 4px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.85rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: 0.97rem;
  border: 2px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.45); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-outline { border-color: var(--primary); color: var(--text); background: transparent; }
.btn-outline:hover { background: var(--primary); color: var(--on-primary); }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 74px; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-heading); font-weight: 700; font-size: 1.3rem; }
.brand i { color: var(--accent); font-size: 1.5rem; }
.logo-img { height: 44px; width: auto; border-radius: 8px; object-fit: contain; }
.site-header nav { display: flex; align-items: center; gap: 1.6rem; }
.site-header nav ul { display: flex; gap: 1.7rem; }
.site-header nav a:not(.btn) { font-weight: 500; font-size: 0.95rem; color: var(--muted); position: relative; padding: 0.3rem 0; transition: color 0.2s; }
.site-header nav a:not(.btn):hover, .site-header nav a.active { color: var(--text); }
.site-header nav a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -5px; height: 2px; background: var(--accent); border-radius: 2px; }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.25s; }
.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5.5rem) 0; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; width: 520px; height: 520px; right: -140px; top: -160px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 28%, transparent), transparent 70%); z-index: 0;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; position: relative; z-index: 1; }
.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); margin-top: 1.2rem; max-width: 52ch; }
.hero-media { position: relative; }
.hero-media::before { content: ''; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--accent); border-radius: calc(var(--radius) + 14px); z-index: 0; }
.hero-media img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; border-radius: calc(var(--radius) + 14px); box-shadow: var(--shadow); }
.hero-media.art { aspect-ratio: 4 / 3.6; display: grid; place-items: center; }
.hero-media.art .glass-art {
  position: relative; z-index: 1; width: 100%; height: 100%; border-radius: calc(var(--radius) + 14px); display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 55%, var(--accent)));
  box-shadow: var(--shadow); padding: 12%;
}
.glass-art svg { width: 100%; color: var(--on-primary); }

/* ---------- sections ---------- */
.section { padding: clamp(3.2rem, 7vw, 5.5rem) 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head p { margin-top: 0.8rem; }
.section-foot { text-align: center; margin-top: 2.5rem; }

.page-hero { padding: clamp(2.8rem, 6vw, 4.5rem) 0; text-align: center; background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 60%, var(--accent))); color: var(--on-primary); }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.page-hero p { color: color-mix(in srgb, var(--on-primary) 82%, transparent); margin-top: 0.7rem; max-width: 56ch; margin-inline: auto; }
.crumbs { font-size: 0.85rem; opacity: 0.8; margin-bottom: 0.8rem; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; display: flex; flex-direction: column; gap: 0.7rem; overflow: hidden;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
.card .ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.4rem; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.card .card-img { margin: -1.8rem -1.8rem 0.6rem; aspect-ratio: 16 / 10; object-fit: cover; width: calc(100% + 3.6rem); max-width: none; }
.card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split img { width: 100%; border-radius: calc(var(--radius) + 8px); box-shadow: var(--shadow); aspect-ratio: 4 / 3.4; object-fit: cover; }
.split .art-box { aspect-ratio: 4 / 3.4; border-radius: calc(var(--radius) + 8px); display: grid; place-items: center; padding: 14%; background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--accent); }
.split .art-box svg { width: 100%; }
.prose p + p { margin-top: 1rem; }
.prose h2 { margin-bottom: 1.1rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 3rem; }
.stat { text-align: center; padding: 1.6rem 1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.stat b { display: block; font-family: var(--font-heading); font-size: clamp(1.8rem, 4vw, 2.7rem); color: var(--accent); line-height: 1.1; }
.stat span { color: var(--muted); font-size: 0.92rem; }

/* ---------- gallery ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-bottom: 2.2rem; }
.chip { padding: 0.5rem 1.2rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 500; font-size: 0.9rem; cursor: pointer; font-family: inherit; transition: 0.2s; }
.chip:hover { border-color: var(--accent); }
.chip.on { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.masonry { columns: 3 260px; column-gap: 1.1rem; }
.shot { break-inside: avoid; margin-bottom: 1.1rem; position: relative; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--surface); border: 1px solid var(--border); }
.shot img { width: 100%; height: auto; transition: transform 0.5s; }
.shot:hover img { transform: scale(1.05); }
.shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem 1rem 0.9rem; color: #fff; font-size: 0.9rem; background: linear-gradient(transparent, rgba(0, 0, 0, 0.7)); opacity: 0; transition: opacity 0.3s; }
.shot:hover figcaption, .shot:focus-visible figcaption { opacity: 1; }

.lb { position: fixed; inset: 0; z-index: 200; background: rgba(8, 10, 16, 0.94); display: none; align-items: center; justify-content: center; flex-direction: column; padding: 1rem; }
.lb.open { display: flex; }
.lb img { max-width: min(94vw, 1200px); max-height: 82vh; object-fit: contain; border-radius: 12px; }
.lb p { color: #e5e7eb; margin-top: 0.9rem; text-align: center; }
.lb button { position: absolute; background: rgba(255, 255, 255, 0.12); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; transition: background 0.2s; }
.lb button:hover { background: rgba(255, 255, 255, 0.28); }
.lb .x { top: 18px; right: 18px; }
.lb .pv { left: 18px; top: 50%; transform: translateY(-50%); }
.lb .nx { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- empty state ---------- */
.empty { text-align: center; padding: 4rem 1rem; border: 2px dashed var(--border); border-radius: var(--radius); background: var(--surface); }
.empty i { font-size: 2.4rem; color: var(--accent); margin-bottom: 0.8rem; }

/* ---------- CTA ---------- */
.cta { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.cta-in { text-align: center; padding: clamp(2.2rem, 5vw, 3.8rem) 1.5rem; border-radius: calc(var(--radius) + 10px); color: var(--on-primary); background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 55%, var(--accent))); }
.cta-in p { color: color-mix(in srgb, var(--on-primary) 85%, transparent); max-width: 56ch; margin: 0.8rem auto 0; }
.cta-in .btn { margin-top: 1.6rem; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2rem; align-items: start; }
.info-list { display: grid; gap: 1rem; }
.info { display: flex; gap: 1rem; padding: 1.2rem 1.3rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.info .ico { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); font-size: 1.1rem; }
.info h4 { font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.15rem; }
.info a, .info div div { font-weight: 600; color: var(--text); word-break: break-word; }
.info a:hover { color: var(--accent); }
.form { padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); display: grid; gap: 1rem; }
.form label { font-size: 0.85rem; font-weight: 600; color: var(--text); display: grid; gap: 0.35rem; }
.form input, .form textarea { font: inherit; padding: 0.8rem 1rem; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); color: var(--text); width: 100%; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.map { margin-top: 2rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 380px; border: 0; display: block; }
.socials { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 1.05rem; transition: 0.25s; }
.socials a:hover { background: var(--primary); color: var(--on-primary); transform: translateY(-3px); border-color: var(--primary); }

/* ---------- footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); margin-top: 2rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2.5rem; padding: 3.2rem 0 2.2rem; }
.foot-grid h4 { font-family: var(--font-body); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1rem; color: var(--text); }
.foot-grid li { margin-bottom: 0.5rem; color: var(--muted); font-size: 0.95rem; }
.foot-grid li a:hover { color: var(--accent); }
.foot-grid li i { width: 1.4rem; color: var(--accent); }
.foot-grid .socials { margin-top: 1.2rem; }
.copy { border-top: 1px solid var(--border); padding: 1.2rem 0; text-align: center; font-size: 0.86rem; color: var(--muted); }

/* ---------- floating whatsapp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center; font-size: 1.9rem;
  box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.5); animation: pulse 2.4s infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6), 0 10px 25px -8px rgba(0, 0, 0, 0.5); } 70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0), 0 10px 25px -8px rgba(0, 0, 0, 0.5); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 10px 25px -8px rgba(0, 0, 0, 0.5); } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s, transform 0.7s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .wa-float { animation: none; } html { scroll-behavior: auto; } }

/* ---------- notice (supabase not connected) ---------- */
.notice { background: #fff4d6; color: #5c4400; border-bottom: 1px solid #f0d98a; padding: 0.6rem 1rem; text-align: center; font-size: 0.88rem; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 460px; margin-inline: auto; width: 100%; }
  .hero-media::before { inset: 12px -10px -12px 10px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .burger { display: flex; }
  .site-header nav {
    position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 1rem;
    background: var(--bg); padding: 1rem 1.25rem 1.5rem; border-bottom: 1px solid var(--border); display: none;
  }
  .site-header nav.open { display: flex; }
  .site-header nav ul { flex-direction: column; gap: 0; }
  .site-header nav ul a { display: block; padding: 0.8rem 0; }
  .site-header nav a.active::after { display: none; }
  .site-header nav a.active { color: var(--accent); }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; }
  .masonry { columns: 2 140px; column-gap: 0.7rem; }
  .shot { margin-bottom: 0.7rem; }
}
