/* ==========================================================================
   Insurance Junction — Base Styles, Editorial Typography & Accessibility
   ========================================================================== */

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

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.68;
  color: var(--text-primary);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body.no-scroll {
  overflow: hidden;
}

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

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1,
h2,
h3,
h4,
h5,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Focus Accessibility (WCAG 2.2 AA) */
:focus-visible {
  outline: 2px solid var(--royal-blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.dark-section :focus-visible,
.site-footer :focus-visible,
.utility-bar :focus-visible,
.section--navy :focus-visible {
  outline-color: var(--gold-light);
}

/* Skip to Content */
.skip-link {
  position: fixed;
  top: -100px;
  left: var(--space-4);
  z-index: var(--z-skip);
  background: var(--navy);
  color: var(--white);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-xs);
  font-size: var(--text-sm);
  font-weight: 600;
  border: 1px solid var(--champagne);
  transition: top var(--dur-fast) var(--ease-out);
}

.skip-link:focus {
  top: var(--space-4);
}

/* Editorial Typographic Voices */
.index-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-eyebrow);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--champagne-dark);
  line-height: 1.2;
}

.dark-section .index-label,
.section--navy .index-label,
.diptych-panel .index-label,
.contact-details-card .index-label,
.calc-result-panel .index-label,
.hero-showcase .index-label {
  color: var(--gold-light);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-eyebrow);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--champagne-dark);
  line-height: 1.25;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background-color: var(--champagne);
  flex-shrink: 0;
}

.dark-section .eyebrow,
.section--navy .eyebrow,
.contact-details-card .eyebrow,
.calc-result-panel .eyebrow,
.diptych-panel .eyebrow {
  color: var(--gold-light);
}

.display-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
}

.serif-upright {
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 500;
}

.gold-accent-text {
  color: var(--champagne-dark);
}

.dark-section .gold-accent-text,
.section--navy .gold-accent-text {
  color: var(--gold-light);
}

h1 {
  font-size: var(--text-hero-inner);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.028em;
  color: var(--navy);
}

.hero-home h1 {
  font-size: var(--text-hero-home);
  line-height: 1.04;
}

h2 {
  font-size: var(--text-h2);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.024em;
  color: var(--navy);
}

h3 {
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -0.016em;
  color: var(--navy);
}

h4 {
  font-size: var(--text-h4);
  font-weight: 600;
  line-height: 1.35;
  color: var(--navy);
}

.lead {
  font-size: var(--text-body-lg);
  line-height: 1.72;
  color: var(--text-secondary);
}

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

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

.brand-signature {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
}

.brand-signature span {
  color: var(--champagne);
}
