/* Sri Balaji Jewellers & Gems — Core Reset, Layout & Global Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-ink);
  background-color: var(--color-canvas);
  overflow-x: clip;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color var(--transition-base), color var(--transition-base);
}

main {
  flex: 1;
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--color-ink);
  letter-spacing: -0.015em;
  font-style: normal;
  overflow-wrap: anywhere;
}

h1 { font-size: var(--text-display); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
  margin-bottom: var(--space-4);
  color: var(--color-ink-secondary);
}

p.lead {
  font-size: var(--text-md);
  line-height: 1.7;
  color: var(--color-muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold-700);
  margin-bottom: var(--space-3);
}

[data-theme="gem-cabinet"] .eyebrow {
  color: var(--color-gold-500);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
}

button {
  cursor: pointer;
}

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

/* Accessible focus styling */
:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

/* Tabular numerals for weights, numbers, counts */
.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* Container utilities */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.container-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

/* Section Spacing */
.section {
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
  position: relative;
}

.section-sm {
  padding-block: clamp(2rem, 4vw, 3.5rem);
}

.section-alt {
  background-color: var(--color-sand-100);
}

[data-theme="gem-cabinet"] .section-alt {
  background-color: var(--color-surface);
}

/* Section Headings Layout */
.section-head {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-head.text-center {
  text-align: center;
  max-width: 44rem;
  margin-inline: auto;
}

.section-head .desc {
  font-size: var(--text-md);
  color: var(--color-muted);
  max-width: 36rem;
  margin-top: var(--space-2);
}

.section-head.text-center .desc {
  margin-inline: auto;
}

/* Char Kaman arch geometry decorative motif (SVG inline or masked) */
.deccan-arch-motif {
  display: inline-block;
  width: 36px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 18' fill='none'%3E%3Cpath d='M0 18C0 8.05887 8.05887 0 18 0C27.9411 0 36 8.05887 36 18H33C33 9.71573 26.2843 3 18 3C9.71573 3 3 9.71573 3 18H0Z' fill='%23B98A3E'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  margin-inline: auto;
  margin-bottom: var(--space-2);
  opacity: 0.85;
}

.deccan-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-block: var(--space-6);
  opacity: 0.7;
}

.deccan-divider::before,
.deccan-divider::after {
  content: '';
  height: 1px;
  flex: 1;
  max-width: 120px;
  background: linear-gradient(90deg, transparent, var(--color-gold-500), transparent);
}

/* Visually Hidden for Screen Readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

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