/* =====================================================================
   base.css — design tokens, reset, typography, shared utilities
   Latha Trendy Boutique · Telugu-first, mobile-first
   ===================================================================== */

:root {
  /* Brand palette */
  --purple-900: #2e0f3f;
  --purple-800: #3d1a52;
  --purple-700: #4f2468;
  --purple-600: #663383;

  --magenta-600: #c2185b;
  --magenta-500: #e0306e;
  --magenta-100: #fce4ec;

  --cream-100: #fdf8f3;
  --cream-200: #f7ede2;
  --cream-300: #efdfcd;

  --emerald-600: #00897b;
  --emerald-100: #e0f2f1;

  --gold-500: #d4a017;
  --gold-100: #fdf3d7;

  --charcoal-900: #221c26;
  --charcoal-700: #453c4b;
  --charcoal-500: #6d6472;
  --charcoal-300: #b6aebd;

  --white: #ffffff;

  /* Semantic surfaces */
  --bg: var(--cream-100);
  --surface: var(--white);
  --text: var(--charcoal-900);
  --text-soft: var(--charcoal-500);
  --heading: var(--purple-900);
  --accent: var(--magenta-600);
  --accent-strong: var(--magenta-500);
  --line: var(--cream-300);
  --focus: var(--emerald-600);

  /* Dark sections (gallery + contact + footer) */
  --dark-bg: var(--purple-900);
  --dark-bg-2: var(--purple-800);
  --dark-text: #f3ecf7;
  --dark-text-soft: #cbb8d6;
  --dark-line: rgba(255, 255, 255, 0.14);

  /* WhatsApp */
  --wa: #1faa59;
  --wa-dark: #128c47;

  /* Typography */
  --font-body: "Inter", "Noto Sans Telugu", system-ui, -apple-system,
    "Segoe UI", Roboto, sans-serif;
  --font-telugu: "Noto Sans Telugu", "Inter", system-ui, sans-serif;

  /* Scale */
  --step--1: 0.85rem;
  --step-0: 1rem;
  --step-1: 1.1rem;
  --step-2: clamp(1.25rem, 0.4vw + 1.15rem, 1.45rem);
  --step-3: clamp(1.5rem, 0.9vw + 1.3rem, 1.9rem);
  --step-4: clamp(1.85rem, 1.6vw + 1.4rem, 2.6rem);
  --step-5: clamp(2.1rem, 2.6vw + 1.4rem, 3.4rem);

  /* Layout */
  --container: 1180px;
  --container-narrow: 820px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(46, 15, 63, 0.08);
  --shadow: 0 8px 24px rgba(46, 15, 63, 0.1);
  --shadow-lg: 0 18px 48px rgba(46, 15, 63, 0.18);
  --header-h: 68px;
  --wa-size: 58px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-wrap: break-word;
}

/* Telugu benefits from a slightly looser line-height */
html[lang="te"] body {
  font-family: var(--font-telugu);
  line-height: 1.75;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-body);
  color: var(--heading);
  line-height: 1.25;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

html[lang="te"] h1,
html[lang="te"] h2,
html[lang="te"] h3,
html[lang="te"] h4 {
  font-family: var(--font-telugu);
  letter-spacing: 0;
}

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

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

a:hover { color: var(--accent-strong); }

button {
  font: inherit;
  cursor: pointer;
}

ul,
ol { margin: 0; padding: 0; }
li { list-style: none; }

input,
select,
textarea {
  font: inherit;
  color: inherit;
  max-width: 100%;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-inline-size: 0;
}

legend { padding: 0; }

summary { cursor: pointer; }

/* ---------- Focus + reduced motion ---------------------------------- */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Only hide the default outline when :focus-visible is supported */
@media not (selector(:focus-visible)) {
  a:focus,
  button:focus,
  input:focus,
  select:focus,
  textarea:focus,
  summary:focus {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Utilities ------------------------------------------------ */
.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

.container-narrow {
  width: min(100% - var(--gutter) * 2, var(--container-narrow));
  margin-inline: auto;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--purple-900);
  color: var(--white);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  color: var(--white);
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The sprite itself stays out of the layout */
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.eyebrow {
  display: inline-block;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.6rem;
}

html[lang="te"] .eyebrow {
  letter-spacing: 0;
  text-transform: none;
  font-size: var(--step-0);
}

.muted { color: var(--text-soft); }

.noscript-note {
  background: var(--gold-100);
  border-bottom: 1px solid var(--gold-500);
  padding: 0.9rem var(--gutter);
  text-align: center;
  color: var(--charcoal-700);
}

.noscript-note a { font-weight: 700; }

/* Decorative divider band under the hero */
.hero-band {
  position: absolute;
  inset: auto 0 0 0;
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--magenta-600),
    var(--gold-500),
    var(--emerald-600)
  );
  opacity: 0.9;
}

/* Entrance transitions are enabled only once JS has booted, so the first
 * paint (which may have no JS at all) never shows a half-animated page. */
.js-ready .hero-copy > *,
.js-ready .hero-media {
  animation: rise 0.5s ease both;
}

.js-ready .hero-copy > *:nth-child(2) { animation-delay: 0.05s; }
.js-ready .hero-copy > *:nth-child(3) { animation-delay: 0.1s; }
.js-ready .hero-copy > *:nth-child(4) { animation-delay: 0.15s; }
.js-ready .hero-copy > *:nth-child(5) { animation-delay: 0.2s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
