/* ============================================================
   B EXCEL RADIOLOGY — Global Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;1,400;1,700&family=Lato:wght@300;400;700&family=Montserrat:wght@500;600&display=swap');
@import 'tokens.css';

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.7;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; }
address { font-style: normal; }

/* ── Container ───────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ── Section spacing ─────────────────────────────────────── */
.section { padding: var(--section-y) 0; }
.section--alt { background: var(--color-lavender); }
.section--dark { background: var(--color-navy); }
.section--purple { background: var(--color-purple); }

/* ── Section label ───────────────────────────────────────── */
.section-label {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}
.section-label .line {
  width: 32px; height: 2px;
  background: var(--color-gold);
  flex-shrink: 0;
}
.section-label span:last-child {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold);
}
.section-label--light span:last-child { color: var(--color-gold-light); }

/* ── Section title ───────────────────────────────────────── */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.1;
  margin-bottom: var(--sp-5);
}
.section-title em {
  font-style: italic;
  color: var(--color-purple);
}
.section-title--white { color: var(--color-white); }
.section-title--white em { color: var(--color-gold-light); }

.section-intro {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 600px;
  line-height: 1.8;
  margin-bottom: var(--sp-8);
}

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4, h5 { font-family: var(--font-display); line-height: 1.15; }
h1 { font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl)); }
h2 { font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl)); }
h3 { font-size: var(--text-2xl); }
p { margin-bottom: var(--sp-4); }
p:last-child { margin-bottom: 0; }

strong { font-weight: 700; }
em { font-style: italic; }

/* ── Page hero (inner pages) ─────────────────────────────── */
.page-hero {
  background: var(--color-navy);
  padding: calc(var(--nav-h) + var(--sp-20)) 0 var(--sp-20);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg,
    rgba(75,0,130,0.6) 0%,
    rgba(26,26,46,0.9) 100%);
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 60px;
  background: var(--color-white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.page-hero.alt-bg::after { background: var(--color-lavender); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 {
  color: var(--color-white);
  margin-bottom: var(--sp-5);
}
.page-hero h1 em { color: var(--color-gold-light); font-style: italic; }
.page-hero p {
  color: rgba(255,255,255,0.72);
  font-size: var(--text-lg);
  max-width: 620px;
  line-height: 1.8;
}

/* ── Gold divider line ───────────────────────────────────── */
.gold-divider {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
  border-radius: 2px;
  margin: var(--sp-5) 0;
}

/* ── Tag / badge ─────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid currentColor;
}
.tag--gold {
  color: var(--color-gold);
  background: rgba(184,148,46,0.1);
  border-color: rgba(184,148,46,0.35);
}
.tag--purple {
  color: var(--color-purple-mid);
  background: var(--color-purple-light);
  border-color: rgba(75,0,130,0.2);
}
.tag--white {
  color: var(--color-white);
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.3);
}

/* ── CTA strip ───────────────────────────────────────────── */
.cta-strip {
  background: var(--color-purple);
  padding: var(--sp-16) 0;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 100% at 100% 50%, rgba(184,148,46,0.15), transparent),
    radial-gradient(ellipse 40% 80% at 0% 50%, rgba(106,13,173,0.4), transparent);
}
.cta-inner {
  position: relative; z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
  flex-wrap: wrap;
}
.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
  color: var(--color-white);
  font-weight: 700;
  margin-bottom: var(--sp-3);
}
.cta-inner p { color: rgba(255,255,255,0.7); font-size: var(--text-lg); }
.cta-inner a { color: var(--color-gold-light); text-decoration: underline; }
.cta-inner .btn { flex-shrink: 0; }

/* ── Scroll reveal ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Utility ─────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-center .section-label { justify-content: center; }
.text-center .section-intro { margin-left: auto; margin-right: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --section-y: var(--section-y-sm);
    --container-pad: 1.25rem;
  }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-inner .btn { width: 100%; justify-content: center; }
}
