/* ============================================================
   Shri Laxmi Mobiles — Core styles
   Palette: dark navy, white, festive gold/orange accents
   ============================================================ */

/* ---- Kannada web font (self-hosted; works with strict CSP font-src 'self') ---- */
@font-face {
  font-family: "Noto Sans Kannada";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/noto-sans-kannada-400.woff2") format("woff2");
  unicode-range: U+0951-0952, U+0964-0965, U+0C80-0CF3, U+200C-200D, U+20B9, U+25CC;
}

/* Apply Kannada font wherever Kannada text is shown */
.kannada {
  font-family: "Noto Sans Kannada", var(--font);
}

:root {
  --navy-900: #060d22;
  --navy-800: #0a1633;
  --navy-700: #122148;
  --navy-600: #1b2f61;
  --ink: #0d1424;
  --white: #ffffff;
  --paper: #f6f8fc;
  --muted: #5a6683;
  --line: #e3e8f2;

  --gold: #f6b61c;
  --gold-deep: #e39a08;
  --orange: #ff7a1a;
  --festive-grad: linear-gradient(135deg, #ff7a1a 0%, #f6b61c 100%);

  --accent: #3d7bff;
  --accent-deep: #2a5fe0;
  --whatsapp: #25d366;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(10, 22, 51, 0.08);
  --shadow-md: 0 10px 30px rgba(10, 22, 51, 0.12);
  --shadow-lg: 0 24px 60px rgba(10, 22, 51, 0.20);

  --container: 1180px;
  --header-h: 72px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy-800);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-deep);
  margin-bottom: 10px;
}

/* ===== Buttons ===== */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn-primary { --btn-bg: var(--accent); }
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost { --btn-bg: transparent; --btn-fg: #fff; border: 1.5px solid rgba(255,255,255,.6); box-shadow: none; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-festive { --btn-bg: var(--navy-900); --btn-fg: #fff; }
.btn-whatsapp { --btn-bg: var(--whatsapp); --btn-fg: #fff; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 22, 51, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #fff;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand-mark {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--festive-grad); color: var(--navy-900);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text .brand-kn {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: .2px;
  background: var(--festive-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-text strong { font-size: .92rem; letter-spacing: .3px; font-weight: 600; color: #e8edfa; }
.brand-text small { font-size: .72rem; color: #b9c4e0; }

.main-nav { display: flex; align-items: center; }
.nav-menu { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-link {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 999px;
  color: #d7deef;
  font-weight: 500;
  font-size: .95rem;
  transition: background .15s, color .15s;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-link.active { color: var(--navy-900); background: var(--gold); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2.5px; background: #fff; border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  color: #fff;
  background: radial-gradient(1200px 600px at 80% -10%, var(--navy-600), var(--navy-900) 60%);
  overflow: hidden;
  padding: 64px 0 96px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(500px 300px at 15% 20%, rgba(246,182,28,.18), transparent 70%),
    radial-gradient(400px 300px at 90% 80%, rgba(61,123,255,.22), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
}
.hero-title-kn {
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  line-height: 1.15;
  margin: 0 0 6px;
  font-weight: 700;
  background: var(--festive-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  margin: 6px 0 4px;
  letter-spacing: -0.5px;
}
.hero-location { font-size: 1.05rem; color: #c3cde6; margin: 0 0 10px; }
.hero-tagline { font-size: 1.15rem; color: #eef2fb; max-width: 30ch; margin: 0 0 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.demo-note { font-size: .78rem; color: #93a0c2; max-width: 44ch; }

.hero-visual { display: grid; place-items: center; }
.phone-float {
  filter: drop-shadow(0 30px 50px rgba(0,0,0,.45));
  animation: float 5s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

.hero-wave {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 60px;
  background: var(--white);
  clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
}

/* ===== Video Reels Carousel ===== */
.section-reels { padding-bottom: 60px; }
.reels-viewport { position: relative; }
.reels-track {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 8px max(20px, calc((100vw - var(--container)) / 2 + 20px));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.reels-track::-webkit-scrollbar { display: none; }
.reels-track:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 8px; }

.reel-card {
  flex: 0 0 auto;
  width: 240px;
  aspect-ratio: 9 / 16;
  scroll-snap-align: center;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #05112b;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}
.reel-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.reel-card video,
.reel-card .reel-poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.reel-poster { border: 0; }
.reel-play {
  position: absolute; inset: 0; margin: auto;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(246,182,28,.92); color: var(--navy-900);
  font-size: 1.5rem; border: none; cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,.4);
  transition: transform .2s, background .2s;
}
.reel-card:hover .reel-play { transform: scale(1.08); }
.reel-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 36px 14px 14px;
  background: linear-gradient(to top, rgba(6,13,34,.92), transparent);
  color: #fff; pointer-events: none;
}
.reel-overlay strong { display: block; font-size: .98rem; }
.reel-overlay span { font-size: .78rem; color: #cfd8ee; }
.reel-card.playing .reel-play,
.reel-card.playing .reel-overlay { opacity: 0; transition: opacity .3s; }

.reels-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 5;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy-800); color: #fff;
  border: none; cursor: pointer; font-size: 1.8rem; line-height: 1;
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
  transition: background .15s, transform .15s;
}
.reels-arrow:hover { background: var(--navy-600); transform: translateY(-50%) scale(1.06); }
.reels-arrow-prev { left: 12px; }
.reels-arrow-next { right: 12px; }

.reels-dots {
  display: flex; justify-content: center; gap: 8px; margin-top: 18px;
}
.reels-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: none; padding: 0;
  background: var(--line); cursor: pointer; transition: background .2s, transform .2s;
}
.reels-dots button.active { background: var(--gold); transform: scale(1.3); }

/* ===== Campaign strip ===== */
.campaign-strip { background: var(--festive-grad); color: var(--navy-900); }
.campaign-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 22px 20px; flex-wrap: wrap;
}
.campaign-text h2 { margin: 0 0 2px; font-size: 1.5rem; }
.campaign-text p { margin: 0; font-weight: 500; }

/* ===== Sections ===== */
.section { padding: 76px 0; }
.section-alt { background: var(--paper); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin: 0 0 10px; color: var(--navy-800); }
.section-head p { color: var(--muted); margin: 0; }

/* ===== Brand grid ===== */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.brand-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.brand-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.brand-logo {
  width: 70px; height: 70px; margin: 0 auto 14px;
  border-radius: 18px; display: grid; place-items: center;
  background: var(--paper);
  font-weight: 800; font-size: 1.5rem; color: var(--navy-800);
  overflow: hidden;
}
.brand-logo img { width: 70%; height: 70%; object-fit: contain; }
.brand-card h3 { margin: 0 0 4px; font-size: 1.1rem; color: var(--navy-800); }
.brand-card p { margin: 0; font-size: .86rem; color: var(--muted); }

/* ===== Offers grid ===== */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.offer-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.offer-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.offer-media { position: relative; aspect-ratio: 16 / 10; background: var(--paper); overflow: hidden; }
.offer-media img { width: 100%; height: 100%; object-fit: cover; }
.offer-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--festive-grad); color: var(--navy-900);
  font-weight: 700; font-size: .78rem; padding: 6px 12px; border-radius: 999px;
}
.offer-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.offer-body h3 { margin: 0 0 6px; font-size: 1.2rem; color: var(--navy-800); }
.offer-product { font-size: .82rem; color: var(--accent); font-weight: 600; margin: 0 0 8px; }
.offer-body p { margin: 0 0 14px; color: var(--muted); font-size: .92rem; }
.offer-meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.offer-discount { font-weight: 800; color: var(--orange); font-size: 1.05rem; }
.offer-valid { font-size: .76rem; color: var(--muted); }
.offer-demo-tag {
  display: inline-block; margin-top: 10px;
  font-size: .68rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); background: var(--paper); padding: 3px 8px; border-radius: 6px;
}
.offers-empty { text-align: center; color: var(--muted); }

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: var(--paper);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 14px 12px;
  background: linear-gradient(to top, rgba(6,13,34,.85), transparent);
  color: #fff;
}
.gallery-cap strong { display: block; font-size: .95rem; }
.gallery-cap span { font-size: .78rem; color: #cfd8ee; }
.gallery-item:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ===== Contact ===== */
.section-contact { background: var(--navy-800); color: #fff; }
.section-contact .eyebrow { color: var(--gold); }
.section-contact .section-head h2 { color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
.contact-info h2 { font-size: 2rem; margin: 0 0 24px; }
.contact-list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 18px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-ico {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.2rem;
  background: rgba(255,255,255,.08);
}
.contact-item strong { display: block; color: #fff; }
.contact-item p { margin: 2px 0 0; color: #c3cde6; }
.contact-item a { color: var(--gold); }
.contact-map { min-height: 320px; }
.map-frame { width: 100%; height: 100%; min-height: 320px; border-radius: var(--radius); overflow: hidden; background: #0c1836; }
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
.map-placeholder { display: grid; place-items: center; height: 100%; min-height: 320px; color: #8e9cc0; text-align: center; padding: 20px; }

/* ===== Footer ===== */
.site-footer { background: var(--navy-900); color: #c3cde6; padding: 48px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 28px; align-items: start; }
.footer-brand strong { color: #fff; font-size: 1.1rem; display: block; margin-bottom: 6px; }
.footer-brand p { margin: 2px 0; font-size: .9rem; }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { color: #c3cde6; font-size: .92rem; }
.footer-nav a:hover { color: var(--gold); }
.footer-note { font-size: .82rem; }
.footer-note .demo-note { color: #7b88aa; margin-top: 8px; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(6,13,34,.94);
  display: grid; place-items: center;
  padding: 40px;
}
.lightbox[hidden] { display: none; }
.lightbox-figure { margin: 0; max-width: 90vw; max-height: 85vh; text-align: center; }
.lightbox-figure img { max-width: 90vw; max-height: 78vh; border-radius: 12px; box-shadow: var(--shadow-lg); margin: 0 auto; }
.lightbox-figure figcaption { color: #fff; margin-top: 14px; font-size: 1rem; }
.lightbox-close, .lightbox-nav {
  position: absolute; background: rgba(255,255,255,.12); color: #fff;
  border: none; cursor: pointer; border-radius: 50%;
  width: 52px; height: 52px; font-size: 1.8rem; line-height: 1;
  display: grid; place-items: center; transition: background .15s;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,.26); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ===== Floating WhatsApp ===== */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--whatsapp); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(37,211,102,.5);
  animation: pulse 2.4s infinite;
}
.whatsapp-float[hidden] { display: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5);} 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0);} 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0);} }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phone-float, .whatsapp-float { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
}
