/* ============================================================
   Satna Hardware and Paints — Static site
   Design tokens + custom utilities (Tailwind CDN handles the rest)
   ============================================================ */

:root {
  --navy: #183153;
  --teal: #0f766e;
  --saffron: #f4b942;
  --orange: #b54708;
  --orange-hover: #8a3406;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-alt: #eaf2f5;
  --text: #17202a;
  --muted: #5f6b76;
  --border: #dce6ea;
  --success: #18794e;
  --error: #b42318;
}

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Noto Sans Devanagari", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, .font-heading {
  font-family: "Manrope", "Noto Sans Devanagari", sans-serif;
  letter-spacing: -0.02em;
}

/* Fluid type scale */
.t-h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 800; line-height: 1.04; }
.t-h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 700; line-height: 1.08; }
.t-h3 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; line-height: 1.15; }
.t-lead { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.55; }
.t-body { font-size: clamp(16px, 1vw, 18px); }

/* Skip link */
.skip-link { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 0 0 10px 0; font-weight: 700; }
.skip-link:focus { left: 0; }

/* Focus ring */
:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 6px;
}
::selection { background: var(--saffron); color: var(--navy); }

/* Colour-swatch strip device */
.swatch-strip { display: flex; height: 6px; width: 100%; overflow: hidden; border-radius: 999px; }
.swatch-strip > span { flex: 1; }

/* Hexagon icon frame */
.hex { clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); display: inline-flex; align-items: center; justify-content: center; transition: transform .3s ease; }
.group:hover .hex-spin { transform: rotate(30deg); }

/* Lucide icon sizing safety */
.lucide { display: inline-block; vertical-align: middle; }

/* Editorial marquee */
.marquee-track { display: flex; width: max-content; animation: marquee 26s linear infinite; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Dot grid texture */
.dot-grid { background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 22px 22px; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--surface-alt); }
::-webkit-scrollbar-thumb { background: #b9ccd4; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--teal); }

/* iOS safe-area */
.safe-bottom { padding-bottom: env(safe-area-inset-bottom); }

/* -------- Scroll reveal (replaces framer-motion) -------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s cubic-bezier(.22,1,.36,1), transform .65s cubic-bezier(.22,1,.36,1); }
.reveal.in-view { opacity: 1; transform: none; }

/* -------- Hero masked line reveal -------- */
.mask-line { overflow: hidden; display: block; }
.mask-line > span { display: block; transform: translateY(115%); animation: lineUp .8s cubic-bezier(.22,1,.36,1) forwards; }
@keyframes lineUp { to { transform: translateY(0); } }

.fade-in { opacity: 0; animation: fadeIn .6s ease forwards; }
@keyframes fadeIn { to { opacity: 1; } }

/* Header transition */
.site-header { transition: background-color .3s ease, box-shadow .3s ease; }

/* Announcement collapse */
.announcement { transition: max-height .3s ease, opacity .3s ease; overflow: hidden; }

/* Card hover lift utility (used alongside Tailwind) */
.lift { transition: transform .2s ease, box-shadow .2s ease; }
.lift:hover { transform: translateY(-4px); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(24,49,83,.92); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 80vh; object-fit: contain; border-radius: 8px; }

/* Mobile menu panel */
.mobile-panel { position: fixed; top: 0; right: 0; height: 100%; width: 86%; max-width: 360px; background: #fff; z-index: 90; transform: translateX(100%); transition: transform .35s cubic-bezier(.22,1,.36,1); display: flex; flex-direction: column; }
.mobile-panel.open { transform: translateX(0); }
.mobile-overlay { position: fixed; inset: 0; background: rgba(24,49,83,.5); z-index: 89; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.mobile-overlay.open { opacity: 1; pointer-events: auto; }

/* Accordion */
.acc-content { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.acc-item.open .acc-content { max-height: 320px; }
.acc-item.open .acc-chevron { transform: rotate(180deg); }
.acc-chevron { transition: transform .3s ease; }

/* Form states */
.field-error { border-color: var(--error) !important; }

/* Toast */
#toast-wrap { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--teal); border-radius: 12px; padding: 12px 16px; box-shadow: 0 10px 30px rgba(24,49,83,.15); max-width: 90vw; animation: toastIn .25s ease; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; }
  .mask-line > span { transform: none; animation: none; }
}
