/* ==========================================================================
   Radhe Computer — Base Styles & Reset
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: var(--lh-body);
  color: var(--slate-600);
  background-color: var(--paper);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ---- Headings ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--navy-900);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -0.018em;
  text-wrap: balance;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); font-weight: 600; line-height: var(--lh-snug); }
h4 { font-size: var(--text-xl); font-weight: 600; line-height: var(--lh-snug); letter-spacing: -0.012em; }
h5 { font-size: var(--text-lg); font-weight: 600; letter-spacing: -0.008em; }
h6 { font-size: var(--text-base); font-weight: 600; letter-spacing: 0; }

p { margin-bottom: 0.9rem; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--slate-500);
}

.text-muted { color: var(--slate-400); }
.text-center { text-align: center; }

a {
  color: var(--navy-500);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--orange-500); }

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

/* <picture> only carries the WebP <source>; it must not become a box of its
   own, or it would break the grid/flex sizing of the <img> it wraps. */
picture { display: contents; }

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }
strong, b { font-weight: 600; color: var(--slate-700); }

::selection {
  background-color: var(--orange-500);
  color: #FFFFFF;
}

/* ---- Focus Ring ---- */
:focus-visible {
  outline: 3px solid var(--orange-500);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.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;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 5000;
  background: var(--navy-900);
  color: #FFFFFF;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: top var(--transition-base);
}
.skip-link:focus { top: 1rem; color: #FFFFFF; }

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 1.75rem);
}

.container-narrow { max-width: 820px; }
.container-wide { max-width: 1360px; }

.section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  position: relative;
}

.section-sm {
  padding-top: var(--section-y-sm);
  padding-bottom: var(--section-y-sm);
}

.section-tint { background-color: var(--card); }
.section-blue-tint { background-color: var(--navy-50); }

.section-dark {
  background-color: var(--navy-900);
  color: #B6C2D9;
}
.section-dark h1, .section-dark h2, .section-dark h3,
.section-dark h4, .section-dark h5 { color: #FFFFFF; }

.section-blue {
  background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-600) 100%);
  color: #D6E0F5;
}
.section-blue h1, .section-blue h2, .section-blue h3 { color: #FFFFFF; }

/* ---- Section Header ---- */
.section-header {
  max-width: 660px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-header.is-centered {
  text-align: center;
  margin-inline: auto;
}

.section-header h2 { margin-bottom: 0.65rem; }

.section-header p {
  font-size: var(--text-lg);
  color: var(--slate-500);
  margin-bottom: 0;
}

.section-dark .section-header p,
.section-blue .section-header p { color: #AEBBD2; }

/* ---- Eyebrow Badge ---- */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.7rem;
  background-color: var(--navy-100);
  color: var(--navy-700);
  font-family: var(--font-display);
  font-size: var(--text-2xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
  line-height: 1.4;
}

.section-badge svg { width: 13px; height: 13px; }

.section-badge-orange {
  background-color: var(--orange-100);
  color: var(--orange-600);
}

.section-badge-dark {
  background-color: rgba(255, 138, 61, 0.12);
  color: var(--orange-400);
  border: 1px solid rgba(255, 138, 61, 0.22);
}

/* ---- Divider ---- */
.hairline {
  height: 1px;
  background: var(--line);
  border: 0;
}

/* ---- Scroll Reveal ---- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 650ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Never let a scripting failure hide real content: if scripting is
   unavailable, show everything immediately. (A <noscript> block in each
   page's <head> covers browsers without the `scripting` media feature.) */
@media (scripting: none) {
  .reveal-on-scroll { opacity: 1; transform: none; }
}

@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;
  }
  .reveal-on-scroll { opacity: 1 !important; transform: none !important; }
}
