/* Gupta Optician — Dewas
   Mobile-first, single-page site
*/

:root {
  --navy: #102033;
  --navy-2: #173049;
  --navy-3: #1e3d58;
  --gold: #c4a15a;
  --gold-deep: #9a7a32;
  --gold-soft: #e8d5a3;
  --cream: #f3eee5;
  --paper: #fffaf3;
  --ink: #17202a;
  --muted: #5b6572;
  --line: rgba(16, 32, 51, 0.12);
  --teal: #1f6a63;
  --whatsapp: #128c7e;
  --call: #1b4d7a;
  --shadow: 0 12px 40px rgba(16, 32, 51, 0.1);
  --radius: 18px;
  --header-h: 68px;
  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--navy);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 200;
  background: var(--gold);
  color: var(--navy);
  padding: 8px 14px;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
}

.skip-link:focus {
  top: 0;
}

.wrap {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(16, 32, 51, 0.96);
  backdrop-filter: blur(12px);
  color: var(--paper);
  min-height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.brand:hover {
  color: inherit;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}

.brand-place {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(232, 213, 163, 0.35);
  background: transparent;
  color: var(--paper);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--navy-2);
  padding: 12px 16px 20px;
  border-top: 1px solid rgba(196, 161, 90, 0.25);
}

.site-nav.open {
  display: block;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-nav a {
  display: block;
  color: var(--paper);
  text-decoration: none;
  padding: 10px 8px;
  border-radius: 8px;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold-soft);
}

.nav-cta {
  display: none;
}

/* Hero
   ========================================================================== */

.hero {
  position: relative;
  color: var(--paper);
  min-height: auto;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 45%;
  filter: saturate(0.9);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 32, 51, 0.2) 0%, rgba(16, 32, 51, 0.42) 42%, rgba(16, 32, 51, 0.88) 100%),
    linear-gradient(90deg, rgba(16, 32, 51, 0.55) 0%, rgba(16, 32, 51, 0.15) 72%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 36px 0 48px;
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 600;
  margin-bottom: 12px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 9vw, 5.1rem);
  line-height: 0.95;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.tagline-hi {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.25rem, 3.4vw, 1.85rem);
  color: var(--gold-soft);
  margin: 0 0 16px;
}

.hero-lead {
  max-width: 36rem;
  margin: 0 0 22px;
  font-size: 1.08rem;
  color: rgba(255, 250, 243, 0.88);
}

.announce {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(196, 161, 90, 0.16);
  border: 1px solid rgba(196, 161, 90, 0.45);
  color: var(--gold-soft);
  border-radius: 999px;
  padding: 8px 14px 8px 10px;
  font-size: 0.95rem;
  margin-bottom: 22px;
  max-width: 100%;
}

.announce-dot {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  margin-top: 7px;
  border-radius: 50%;
  background: #7dcea0;
  box-shadow: 0 0 0 4px rgba(125, 206, 160, 0.2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 18px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.2;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn:hover {
  transform: translateY(-1px);
  color: inherit;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}

.btn-gold:hover {
  background: var(--gold-soft);
  color: var(--navy);
}

.btn-light {
  background: rgba(255, 255, 255, 0.1);
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-light:hover {
  background: rgba(255, 255, 255, 0.18);
  color: var(--paper);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
}

.btn-whatsapp:hover {
  background: #0e7a6e;
  color: #fff;
}

.btn-navy {
  background: var(--navy);
  color: var(--paper);
}

.btn-navy:hover {
  background: var(--navy-2);
  color: var(--paper);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: rgba(16, 32, 51, 0.25);
}

.btn-outline:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.btn-sm {
  padding: 9px 14px;
  font-size: 0.9rem;
}

/* Trust strip
   ========================================================================== */

.trust {
  background: var(--navy-2);
  color: var(--paper);
  padding: 22px 0;
}

.trust-grid {
  display: grid;
  gap: 18px;
}

.trust-item {
  text-align: center;
}

.trust-item strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--gold-soft);
  line-height: 1.1;
}

.trust-item span {
  font-size: 0.88rem;
  color: rgba(255, 250, 243, 0.75);
}

.stars {
  letter-spacing: 0.08em;
  color: var(--gold);
}

/* Sections
   ========================================================================== */

.section {
  padding: 64px 0;
}

.section-header {
  max-width: 38rem;
  margin-bottom: 32px;
}

.kicker {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 700;
  margin-bottom: 8px;
}

.section h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 10px;
  color: var(--navy);
}

.section-header p {
  margin: 0;
  color: var(--muted);
}

/* Services
   ========================================================================== */

.services {
  background: var(--paper);
}

.service-grid {
  display: grid;
  gap: 16px;
}

.service-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px 20px;
}

.service-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--gold-soft);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--navy);
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Locations
   ========================================================================== */

.locations {
  background: var(--cream);
}

.location-grid {
  display: grid;
  gap: 22px;
}

.store-card {
  background: var(--paper);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.store-card.is-new {
  border-color: rgba(196, 161, 90, 0.55);
  box-shadow: 0 12px 40px rgba(154, 122, 50, 0.12);
}

.store-map {
  height: 210px;
  background: #d9e0e6;
}

.store-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.store-body {
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}

.badge-original {
  background: var(--navy);
  color: var(--gold-soft);
}

.badge-new {
  background: var(--gold);
  color: var(--navy);
}

.badge-rating {
  background: var(--cream);
  color: var(--navy);
  border: 1px solid var(--line);
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 600;
}

.status {
  font-weight: 700;
}

.status.open {
  color: #1b7a4a;
}

.status.closed {
  color: #9a3b2f;
}

.store-body h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: var(--navy);
  line-height: 1.15;
}

.store-meta,
.hours {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.store-meta a {
  color: inherit;
  text-decoration: none;
}

.store-meta a:hover {
  color: var(--teal);
  text-decoration: underline;
}

.hours strong {
  color: var(--ink);
  font-weight: 600;
}

.hours ul {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}

.hours li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px dashed var(--line);
  padding: 5px 0;
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

/* Reviews
   ========================================================================== */

.reviews {
  background: var(--navy);
  color: var(--paper);
}

.reviews .kicker {
  color: var(--gold);
}

.reviews h2 {
  color: var(--paper);
}

.reviews .section-header p {
  color: rgba(255, 250, 243, 0.72);
}

.review-grid {
  display: grid;
  gap: 16px;
}

.review-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(232, 213, 163, 0.18);
  border-radius: var(--radius);
  padding: 22px 20px;
}

.review-card blockquote {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.45;
  font-style: italic;
}

.review-card footer {
  font-size: 0.85rem;
  color: var(--gold-soft);
  font-style: normal;
  font-family: var(--font-sans);
}


/* Rate us on Google
   ========================================================================== */

.rate-us {
  background: var(--cream);
}

.rate-grid {
  display: grid;
  gap: 20px;
}

.rate-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow);
}

.rate-card.is-new {
  border-color: rgba(196, 161, 90, 0.45);
}

.rate-card h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
}

.rate-addr {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.rate-qr {
  width: min(100%, 340px);
  height: auto;
  margin: 16px 0 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.rate-card .btn {
  width: min(100%, 280px);
}

/* Contact
   ========================================================================== */

.contact {
  background: var(--paper);
}

.contact-grid {
  display: grid;
  gap: 22px;
}

.contact-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px 20px;
}

.contact-card h3 {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--navy);
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.contact-list li {
  display: grid;
  gap: 2px;
}

.contact-list .label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.contact-list a,
.contact-list span.value {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
}

.contact-list a:hover {
  color: var(--teal);
  text-decoration: underline;
}

.visit-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Footer
   ========================================================================== */

.site-footer {
  background: var(--navy);
  color: rgba(255, 250, 243, 0.72);
  padding: 36px 0 28px;
  font-size: 0.9rem;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--paper);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
}

.footer-links a {
  color: var(--gold-soft);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
  color: var(--gold-soft);
}

.footer-legal {
  border-top: 1px solid rgba(232, 213, 163, 0.15);
  padding-top: 16px;
  font-size: 0.78rem;
  color: rgba(255, 250, 243, 0.5);
  display: grid;
  gap: 6px;
}

/* Mobile call bar
   ========================================================================== */

.callbar {
  position: sticky;
  bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: var(--navy);
  border-top: 1px solid rgba(196, 161, 90, 0.3);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  gap: 6px;
}

.callbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-decoration: none;
  color: var(--paper);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 4px;
  border-radius: 10px;
}

.callbar a svg {
  width: 18px;
  height: 18px;
}

.callbar a.wa {
  background: var(--whatsapp);
}

.callbar a.call {
  background: var(--navy-3);
}

/* Desktop
   ========================================================================== */

@media (min-width: 760px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: block;
    position: static;
    background: transparent;
    padding: 0;
    border: 0;
  }

  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 4px;
  }

  .site-nav a {
    padding: 8px 12px;
    font-size: 0.95rem;
  }

  .nav-cta {
    display: inline-flex;
    margin-left: 8px;
  }

  .hero-inner {
    padding: 80px 0 72px;
  }

  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .location-grid,
  .contact-grid,
  .review-grid,
  .rate-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .callbar {
    display: none;
  }
}

@media (min-width: 1020px) {
  .service-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .service-card {
    padding: 20px 16px 18px;
  }

  .review-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .store-map {
    height: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}

.hours-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
}

.hours-heading .status {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.photo-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 150px;
  overflow: hidden;
  background: var(--navy);
}

.photo-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-band-wide {
  display: none;
}

.announce {
  border-radius: 16px;
}

@media (min-width: 760px) {
  .photo-band {
    grid-template-columns: 1.1fr 0.9fr 1.2fr;
    height: 280px;
  }

  .photo-band-wide {
    display: block;
  }
}


.hero-inner {
  padding-top: 44px;
}

.store-map a {
  display: block;
  height: 100%;
  color: inherit;
}

.store-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hours-heading .status {
  text-transform: none;
  letter-spacing: 0.01em;
  font-weight: 650;
  font-size: 0.88rem;
}

.status.closed {
  color: #8a4a32;
}

@media (min-width: 760px) {
  .hero {
    min-height: min(82vh, 700px);
  }

  .hero-inner {
    padding-top: 72px;
  }
}

/* Language toggle and bilingual typography
   ========================================================================== */

html[lang="en"] .i18n[lang="hi"],
html[lang="hi"] .i18n[lang="en"] {
  display: none !important;
}

html[lang="hi"] body,
html[lang="hi"] .btn,
html[lang="hi"] .lang-btn {
  font-family: "Mukta", "Noto Sans Devanagari", "Source Sans 3", sans-serif;
}

html[lang="hi"] h1,
html[lang="hi"] h2,
html[lang="hi"] h3,
html[lang="hi"] .brand-name,
html[lang="hi"] .footer-brand,
html[lang="hi"] .tagline-hi,
html[lang="hi"] .review-card blockquote {
  font-family: "Noto Serif Devanagari", "Mukta", "Cormorant Garamond", serif;
}

html[lang="hi"] body {
  font-size: 1.08rem;
  line-height: 1.7;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.header-inner {
  justify-content: flex-start;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(232, 213, 163, 0.4);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(16, 32, 51, 0.35);
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--gold-soft);
  padding: 6px 11px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  font-family: "Mukta", "Noto Sans Devanagari", "Source Sans 3", sans-serif;
}

.lang-btn[aria-pressed="true"] {
  background: var(--gold);
  color: var(--navy);
}

.lang-btn:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: -2px;
}

.trust-simple {
  grid-template-columns: 1fr;
}

.store-aka {
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.store-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.addr-pair {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.addr-hi,
.addr-en {
  display: block;
}

html[lang="en"] .addr-hi,
html[lang="hi"] .addr-en {
  color: var(--muted);
  font-size: 0.92em;
}

html[lang="hi"] .addr-hi {
  order: -1;
}

.store-map {
  position: relative;
}

.store-map a {
  position: relative;
}

.map-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 7px 12px;
  background: rgba(16, 32, 51, 0.72);
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.callbar {
  grid-template-columns: 1fr 1fr;
}

@media (min-width: 760px) {
  .site-nav {
    margin-left: auto;
  }

  .header-tools {
    margin-left: 12px;
  }

  .trust-simple {
    grid-template-columns: 1fr;
  }
}


.badge-story {
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 700;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.3;
  padding: 6px 12px;
}
