/* =========================================
   BIEN-ÊTRE RAMQ — MASTER STYLESHEET
   Soft Gradient + Newspaper Broadsheet
   ========================================= */

/* ----- CSS VARIABLES ----- */
:root {
  --color-primary: #213C46;
  --color-secondary: #0D935A;
  --color-accent: #E34210;
  --color-bg: #F4F6F6;
  --color-surface: #FFFFFF;
  --color-text: #1B2732;
  --color-text-light: #586778;

  --font-heading: Copperplate, 'Copperplate Gothic', fantasy;
  --font-body: Optima, 'Lucida Grande', sans-serif;

  --radius: 12px;
  --shadow: 0 8px 30px rgba(33, 60, 70, 0.15);
  --shadow-heavy: 0 12px 40px rgba(33, 60, 70, 0.2);
  --transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);

  --nav-height: 74px;
  --container-max: 1188px;
}

/* ----- RESET & BASE ----- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 1rem);
}

body {
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: text-decoration var(--transition);
}

a:hover {
  text-decoration: underline;
}

/* ----- SKIP LINK ----- */
.skip-link {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: 10px;
  top: 10px;
  width: auto;
  height: auto;
  overflow: visible;
  z-index: 100000;
  background: var(--color-primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  box-shadow: var(--shadow);
}

/* ----- SCROLL PROGRESS BAR ----- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  z-index: 10001;
  width: 0%;
  pointer-events: none;
}

/* ----- PAGE TRANSITION ----- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main {
  animation: fadeInUp 0.4s ease-out;
}

/* =========================================
   NAVIGATION — Centered Logo Bar
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-surface);
  height: var(--nav-height);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.69rem 2.1rem;
  overflow: visible;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.83rem;
  flex: 1;
}

.nav-left {
  justify-content: flex-end;
}

.nav-right {
  justify-content: flex-start;
}

.nav-left a,
.nav-right a {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition);
}

.nav-left a:hover,
.nav-right a:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}

.nav-left a.active,
.nav-right a.active {
  color: var(--color-secondary);
}

/* Site Brand (centered) */
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  padding: 0 1.5rem;
  text-decoration: none;
}

.site-brand:hover {
  text-decoration: none;
}

.site-logo {
  max-height: 32px;
  width: auto;
  flex-shrink: 0;
}

.site-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

/* RAMQ Login button in nav */
.nav-login {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  background: var(--color-primary);
  color: #fff !important;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: background var(--transition);
  white-space: nowrap;
}

.nav-login:hover {
  background: var(--color-secondary);
  text-decoration: none !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1002;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-surface);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  overflow-y: auto;
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
  text-decoration: none;
  padding: 0.5rem 1rem;
}

.mobile-nav a:hover {
  color: var(--color-secondary);
}

.mobile-nav .nav-login {
  font-size: 0.9rem;
  padding: 0.7rem 1.8rem;
  margin-top: 0.5rem;
}

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.7rem, 5vw, 4.71rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: capitalize;
}

/* Section heading: all-caps-with-rule */
h2,
.section-heading {
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

h2::after,
.section-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(27, 39, 50, 0.15);
}

/* Large content headings (used below h2 labels) */
.section-title {
  font-family: var(--font-heading);
  font-size: 2.13rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: 1.2rem;
  text-transform: capitalize;
  letter-spacing: 0;
}

h3 {
  font-family: var(--font-heading);
  font-size: 1.49rem;
  font-weight: 600;
  line-height: 1.25;
  font-style: italic;
  letter-spacing: 0;
  text-transform: capitalize;
  color: var(--color-text);
}

small,
.text-small {
  font-size: 0.84rem;
  font-style: italic;
  color: var(--color-text-light);
}

p {
  margin-bottom: 1rem;
}

/* Pull quote (newspaper style) */
.pull-quote {
  font-size: 1.6rem;
  font-family: var(--font-body);
  border-left: 3px solid var(--color-accent);
  padding-left: 1.5rem;
  font-style: italic;
  color: var(--color-text);
  margin: 2rem 0;
  line-height: 1.45;
}

/* =========================================
   LAYOUT & CONTAINERS
   ========================================= */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.container--narrow {
  max-width: 760px;
}

.container--wide {
  max-width: 1300px;
}

/* =========================================
   SECTION STYLES
   ========================================= */
.section {
  position: relative;
  padding: 4.33rem 2rem;
  overflow: hidden;
}

.section .container {
  position: relative;
  z-index: 1;
}

/* Alternating backgrounds — white and faint primary tint */
.section--white {
  background: var(--color-surface);
}

.section--tint {
  background: linear-gradient(
    to bottom right,
    rgba(33, 60, 70, 0.03),
    rgba(13, 147, 90, 0.03)
  );
}

/* Soft gradient section backgrounds */
.section--gradient-1 {
  background: linear-gradient(to bottom right, #f0f5f5, #edf7f2);
}

.section--gradient-2 {
  background: linear-gradient(to bottom right, #edf7f2, #f4f0ec);
}

.section--gradient-3 {
  background: linear-gradient(to bottom right, #f4f0ec, #f0f3f5);
}

/* Curved arch divider */
.section--arch {
  padding-bottom: calc(4.33rem + 50px);
}

.section--arch::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: -5%;
  width: 110%;
  height: 80px;
  background: inherit;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  z-index: 2;
}

/* Gradient orbs decorations */
.section--orbs::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--color-primary);
  filter: blur(80px);
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
  top: -100px;
  right: -100px;
}

.section--orbs::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--color-secondary);
  filter: blur(80px);
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
  bottom: -50px;
  left: -80px;
}

/* Additional accent orb (applied via extra wrapper) */
.orb-accent::before {
  content: '';
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: var(--color-accent);
  filter: blur(100px);
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
  top: 40%;
  left: 30%;
}

/* Newspaper multi-column layout for text-heavy sections */
.columns-2 {
  column-count: 2;
  column-gap: 3rem;
}

.columns-2 > h2,
.columns-2 > .section-heading {
  column-span: all;
}

/* Thin horizontal rule separator */
.section-rule {
  border: none;
  border-top: 1px solid rgba(27, 39, 50, 0.12);
  margin: 3rem 0;
}

/* =========================================
   HERO
   ========================================= */
.hero {
  position: relative;
  min-height: 80vh;
  padding: 4.9rem 3.5rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(
    to bottom right,
    var(--color-surface),
    rgba(33, 60, 70, 0.04),
    rgba(13, 147, 90, 0.03)
  );
}

.hero .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Newspaper masthead */
.hero-masthead {
  text-align: center;
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.hero-masthead-rule {
  border: none;
  border-top: 2px solid var(--color-text);
  box-shadow: 0 3px 0 0 var(--color-surface), 0 4px 0 0 var(--color-text);
  margin: 0 auto 1.5rem;
  max-width: 800px;
}

.hero-dateline {
  text-align: center;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--color-text-light);
  margin-bottom: 2.5rem;
}

/* Off-center hero content */
.hero-content {
  margin-left: 8vw;
  max-width: 55%;
  padding-top: 2vh;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
}

.hero-content h1 .light {
  font-weight: 300;
}

.hero-content h1 .bold {
  font-weight: 700;
}

.hero-accent-rule {
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  border: none;
  margin: 1.5rem 0;
}

.hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text-light);
  margin-bottom: 2rem;
  max-width: 540px;
}

/* Vertical text on right edge */
.hero-vertical-text {
  position: absolute;
  right: 3rem;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--color-primary);
  opacity: 0.12;
  z-index: 0;
  white-space: nowrap;
}

/* Concentric circle decoration in hero */
.hero-circles {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
  box-shadow:
    0 0 0 30px rgba(33, 60, 70, 0.03),
    0 0 0 60px rgba(33, 60, 70, 0.025),
    0 0 0 90px rgba(33, 60, 70, 0.02),
    0 0 0 120px rgba(33, 60, 70, 0.015),
    0 0 0 150px rgba(33, 60, 70, 0.01);
}

/* Full-width cinematic hero (about page) */
.hero--cinematic {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(
    to bottom right,
    var(--color-primary),
    #1a3038,
    #163a30
  );
  color: #fff;
}

.hero--cinematic h1 {
  color: #fff;
  max-width: 800px;
  margin: 0 auto 1rem;
}

.hero--cinematic .hero-subtitle {
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto;
}

/* Minimal hero (contact, legal pages) */
.hero--minimal {
  min-height: auto;
  padding: 6rem 3.5rem 3rem;
  text-align: center;
  background: linear-gradient(
    to bottom right,
    var(--color-surface),
    rgba(33, 60, 70, 0.03)
  );
}

.hero--minimal h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.hero--minimal .hero-subtitle {
  margin: 0 auto;
  max-width: 600px;
  text-align: center;
}

/* =========================================
   CARDS — Stacked Paper Effect
   ========================================= */
.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 2.48rem;
  position: relative;
  box-shadow:
    0 2px 8px rgba(33, 60, 70, 0.08),
    6px 6px 0 -2px var(--color-surface),
    6px 6px 8px -2px rgba(33, 60, 70, 0.06),
    12px 12px 0 -4px var(--color-bg),
    12px 12px 8px -4px rgba(33, 60, 70, 0.04);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: rotate(-0.5deg) translateY(-2px);
  box-shadow:
    0 4px 16px rgba(33, 60, 70, 0.12),
    6px 6px 0 -2px var(--color-surface),
    6px 6px 12px -2px rgba(33, 60, 70, 0.08),
    12px 12px 0 -4px var(--color-bg),
    12px 12px 12px -4px rgba(33, 60, 70, 0.06);
}

/* =========================================
   GRIDS
   ========================================= */
.grid {
  display: grid;
  gap: 1.73rem;
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

/* Newspaper classified-ad grid (services) — softened */
.grid--classified {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 0;
}

.grid--classified .card {
  border-radius: 0;
  box-shadow: none;
  border: 1px solid rgba(27, 39, 50, 0.1);
  transition: background var(--transition);
}

.grid--classified .card:first-child {
  border-radius: var(--radius) 0 0 0;
}

.grid--classified .card:nth-child(3) {
  border-radius: 0 var(--radius) 0 0;
}

.grid--classified .card:hover {
  transform: none;
  background: rgba(33, 60, 70, 0.02);
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.98rem 2.14rem;
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(to bottom right, var(--color-primary), var(--color-secondary));
  color: #fff;
}

.btn--primary:hover {
  background: linear-gradient(to top left, var(--color-primary), var(--color-secondary));
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--accent {
  background: var(--color-accent);
  color: #fff;
}

.btn--accent:hover {
  background: #c93a0e;
  text-decoration: none;
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
}

.btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

/* Ripple effect container */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: rippleAnim 0.6s ease-out forwards;
  pointer-events: none;
}

@keyframes rippleAnim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* =========================================
   DECORATIVE CIRCLE ICONS
   ========================================= */
.circle-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(to bottom right, var(--color-primary), rgba(33, 60, 70, 0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  margin-bottom: 1rem;
}

.circle-icon--accent {
  background: linear-gradient(to bottom right, var(--color-accent), #c93a0e);
}

.circle-icon--secondary {
  background: linear-gradient(to bottom right, var(--color-secondary), #0a7548);
}

/* Concentric ring decoration (visual motif) */
.concentric-rings {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  box-shadow:
    0 0 0 20px rgba(33, 60, 70, 0.04),
    0 0 0 40px rgba(33, 60, 70, 0.03),
    0 0 0 60px rgba(33, 60, 70, 0.02),
    0 0 0 80px rgba(33, 60, 70, 0.01);
}

/* =========================================
   IMAGE PLACEHOLDERS — Gradient Art Blocks
   ========================================= */
.img-placeholder {
  border-radius: var(--radius);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.img-placeholder--hero {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #213C46 0%, #0D935A 40%, #1a5a6a 70%, #E34210 100%);
}

.img-placeholder--card {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #2a4f5c 0%, #0D935A 50%, #213C46 100%);
  margin-bottom: 1.5rem;
}

.img-placeholder--portrait {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  width: 140px;
  height: 140px;
  margin: 0 auto 1.2rem;
  background: linear-gradient(135deg, #213C46 0%, #0D935A 60%, #1a5a6a 100%);
  box-shadow:
    inset 0 0 30px rgba(0, 0, 0, 0.1),
    0 0 0 4px rgba(33, 60, 70, 0.08),
    0 0 0 8px rgba(33, 60, 70, 0.04);
}

.img-placeholder--wide {
  aspect-ratio: 21 / 9;
  background: linear-gradient(135deg, #213C46 0%, #1a5a6a 30%, #0D935A 60%, #163a30 100%);
}

.img-placeholder--map {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #d8e0e2 0%, #c5d3d6 30%, #b8cdd1 60%, #d2dfe2 100%);
  max-width: 640px;
  margin: 2rem auto 0;
}

/* Variant gradients for uniqueness */
.img-placeholder--v1 {
  background: linear-gradient(135deg, #213C46 0%, #0D935A 45%, #2a5a3c 100%);
}

.img-placeholder--v2 {
  background: linear-gradient(135deg, #0D935A 0%, #213C46 50%, #1a5a6a 100%);
}

.img-placeholder--v3 {
  background: linear-gradient(145deg, #1a5a6a 0%, #213C46 40%, #E34210 90%);
}

.img-placeholder--v4 {
  background: linear-gradient(160deg, #213C46 0%, #163a30 45%, #0D935A 100%);
}

.img-placeholder--v5 {
  background: radial-gradient(ellipse at 30% 40%, #0D935A 0%, #213C46 60%, #1a5a6a 100%);
}

/* =========================================
   TESTIMONIALS — Full-Width Blockquote
   ========================================= */
.testimonial {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 0;
}

.testimonial-quote-mark {
  font-size: 4rem;
  color: var(--color-accent);
  font-family: Georgia, serif;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.testimonial blockquote {
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.65;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.testimonial-attribution {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}

.testimonial-attribution span {
  display: block;
  font-weight: 400;
  font-size: 0.84rem;
  color: var(--color-text-light);
  margin-top: 0.25rem;
}

.testimonial-portrait {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1rem;
}

/* Testimonial navigation dots */
.testimonial-nav {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(33, 60, 70, 0.2);
  border: none;
  cursor: pointer;
  transition: background var(--transition);
  padding: 0;
}

.testimonial-dot.active {
  background: var(--color-primary);
}

/* =========================================
   STATS — Big Number Cards
   ========================================= */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.73rem;
  text-align: center;
}

.stat-card {
  padding: 2rem 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.84rem;
  color: var(--color-text-light);
  line-height: 1.4;
}

/* =========================================
   TABS
   ========================================= */
.tabs {
  margin-bottom: 2rem;
}

.tab-bar {
  display: flex;
  gap: 0;
  border-bottom: 2px solid rgba(27, 39, 50, 0.1);
  margin-bottom: 2.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab-btn {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-light);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--transition), border-color var(--transition);
  margin-bottom: -2px;
}

.tab-btn:hover {
  color: var(--color-text);
}

.tab-btn.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-accent);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* =========================================
   FORMS
   ========================================= */
.form-grid {
  display: grid;
  gap: 1.2rem;
}

.form-grid--paired {
  grid-template-columns: 1fr 1fr;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group--full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}

.form-input,
.form-textarea,
.form-select {
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 0.81rem;
  border: 1px solid rgba(27, 39, 50, 0.2);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(13, 147, 90, 0.15);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

/* Password toggle */
.password-wrapper {
  position: relative;
}

.password-wrapper .form-input {
  padding-right: 3rem;
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-light);
  font-size: 1rem;
  padding: 4px;
  transition: color var(--transition);
}

.password-toggle:hover {
  color: var(--color-text);
}

/* Checkbox */
.form-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-secondary);
}

.form-checkbox span {
  font-size: 0.88rem;
  color: var(--color-text);
}

/* Newsletter form (inline) */
.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
}

.newsletter-form .form-input {
  flex: 1;
}

/* =========================================
   LISTS — Accent-colored circle bullets + numbered
   ========================================= */
.list-accent {
  list-style: none;
  padding: 0;
}

.list-accent li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.6rem;
}

.list-accent li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

.list-numbered {
  list-style: none;
  padding: 0;
  counter-reset: list-counter;
}

.list-numbered li {
  padding-left: 2.5rem;
  position: relative;
  margin-bottom: 1.2rem;
  counter-increment: list-counter;
}

.list-numbered li::before {
  content: counter(list-counter);
  position: absolute;
  left: 0;
  top: -0.1em;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

/* =========================================
   PROCESS STEPS
   ========================================= */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.73rem;
}

.process-step {
  text-align: center;
  padding: 1.5rem;
}

.process-step .circle-icon {
  margin: 0 auto 1rem;
  width: 48px;
  height: 48px;
  font-size: 1rem;
}

.process-step h3 {
  font-size: 1.1rem;
  font-style: normal;
  margin-bottom: 0.6rem;
}

.process-step p {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* =========================================
   CASE STUDIES — Filterable Grid
   ========================================= */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.filter-btn {
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.5rem 1.2rem;
  border: 1px solid rgba(27, 39, 50, 0.2);
  border-radius: 50px;
  background: var(--color-surface);
  color: var(--color-text-light);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* Masonry-ish grid */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.73rem;
}

.case-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.case-card:hover {
  transform: translateY(-4px);
}

.case-card-body {
  padding: 2rem;
}

.case-card-meta {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-secondary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.case-card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.case-detail {
  display: none;
  padding: 2rem;
  background: rgba(33, 60, 70, 0.02);
  border-top: 1px solid rgba(27, 39, 50, 0.08);
}

.case-detail.is-open {
  display: block;
}

.case-detail h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
  color: var(--color-primary);
}

.case-results {
  display: grid;
  gap: 0.5rem;
}

.case-result-item {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.92rem;
}

.case-result-item::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-secondary);
  flex-shrink: 0;
}

/* =========================================
   PRICING — Narrative Tiers
   ========================================= */
.pricing-tier {
  max-width: 760px;
  margin: 0 auto 3rem;
  padding: 3rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}

.pricing-tier-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.pricing-tier-price {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-accent);
  margin: 1rem 0;
}

.pricing-tier p {
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.pricing-note {
  font-size: 0.88rem;
  font-style: italic;
  color: var(--color-secondary);
  background: rgba(13, 147, 90, 0.06);
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0 1.5rem;
}

/* =========================================
   FAQ
   ========================================= */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(27, 39, 50, 0.1);
  padding: 1.5rem 0;
}

.faq-question {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.faq-answer {
  color: var(--color-text-light);
  line-height: 1.7;
}

/* =========================================
   CAREERS — Position Cards
   ========================================= */
.position-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px rgba(33, 60, 70, 0.08);
}

.position-card h3 {
  font-style: normal;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.position-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.84rem;
  color: var(--color-text-light);
}

.position-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.position-salary {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-secondary);
  margin: 1rem 0;
}

.position-requirements {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.position-requirements li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
  color: var(--color-text-light);
}

.position-requirements li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* =========================================
   LOGIN PAGE — Two-Tone Vertical
   ========================================= */
.login-top {
  background: linear-gradient(to bottom right, var(--color-primary), #1a3038);
  color: #fff;
  text-align: center;
  padding: 5rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.login-top .site-name {
  font-size: 2rem;
  color: #fff;
  display: block;
  margin-bottom: 0.5rem;
}

.login-top .tagline {
  font-size: 1rem;
  opacity: 0.6;
  font-style: italic;
}

.login-top .concentric-rings {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -100px;
}

.login-bottom {
  background: var(--color-bg);
  padding: 3rem 2rem 5rem;
  display: flex; flex-direction: column;
  justify-content: center;
}

.login-form-container {
  max-width: 420px;
  width: 100%;
}

.login-form-container h2 {
  justify-content: center;
  margin-bottom: 0.5rem;
}

.login-form-container h2::after {
  display: none;
}

.login-subtext {
  text-align: center;
  font-size: 0.88rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
}

.login-form .form-group {
  margin-bottom: 1.2rem;
}

.login-form .btn {
  width: 100%;
  margin-top: 0.5rem;
}

.login-extras {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.forgot-link {
  font-size: 0.84rem;
  color: var(--color-text-light);
}

.forgot-link:hover {
  color: var(--color-secondary);
}

/* =========================================
   VALUES / ABOUT PAGE
   ========================================= */
.two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.team-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.73rem;
}

.team-card {
  text-align: center;
  padding: 2rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.team-card h3 {
  font-style: normal;
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}

.team-card .role {
  font-size: 0.84rem;
  color: var(--color-secondary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.team-card .quote {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* Community items */
.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.73rem;
}

.community-item {
  padding: 1.5rem;
}

.community-item h3 {
  font-size: 1.1rem;
  font-style: normal;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

/* =========================================
   NEWSLETTER SECTION
   ========================================= */
.newsletter-section {
  text-align: center;
}

.newsletter-section .section-title {
  margin-bottom: 0.75rem;
}

.newsletter-section p {
  max-width: 500px;
  margin: 0 auto 1.5rem;
  color: var(--color-text-light);
}

.newsletter-section .newsletter-form {
  margin: 0 auto;
}

.newsletter-small {
  font-size: 0.78rem;
  color: var(--color-text-light);
  margin-top: 0.75rem;
  display: block;
}

/* =========================================
   CONTACT DETAILS
   ========================================= */
.contact-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  text-align: center;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.contact-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(to bottom right, var(--color-primary), var(--color-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.contact-item-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
}

.contact-item-value {
  font-size: 0.92rem;
  color: var(--color-text);
  font-weight: 500;
}

/* =========================================
   COOKIE CONSENT
   ========================================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 1.2rem 2rem;
  z-index: 9999;
  display: none;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-text {
  font-size: 0.88rem;
  line-height: 1.5;
  flex: 1;
  min-width: 280px;
  opacity: 0.9;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-accept {
  padding: 0.55rem 1.4rem;
  font-size: 0.84rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: var(--color-secondary);
  color: #fff;
  transition: background var(--transition);
}

.cookie-accept:hover {
  background: #0a7548;
}

.cookie-decline {
  padding: 0.55rem 1.4rem;
  font-size: 0.84rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  cursor: pointer;
  background: transparent;
  color: #fff;
  transition: background var(--transition);
}

.cookie-decline:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* =========================================
   FOOTER — Full-Width Dark Centered
   ========================================= */
.site-footer {
  background: var(--color-primary);
  color: #fff;
  padding: 4.53rem 3.06rem 2rem;
  text-align: center;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: var(--container-max);
  margin: 0 auto;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #fff;
}

.footer-description {
  max-width: 480px;
  margin: 0 auto;
  font-size: 0.9rem;
  opacity: 0.6;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-bottom: 1.5rem;
}

.footer-nav a {
  font-size: 0.8rem;
  color: #fff;
  opacity: 0.7;
  text-decoration: none;
  transition: opacity var(--transition);
}

.footer-nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.footer-social a {
  font-size: 1.3rem;
  color: #fff;
  opacity: 0.5;
  text-decoration: none;
  transition: opacity var(--transition);
}

.footer-social a:hover {
  opacity: 1;
}

.footer-divider {
  width: 60px;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: 2.5rem auto;
  border: none;
}

.footer-legal {
  font-size: 0.7rem;
  opacity: 0.3;
  line-height: 1.8;
}

/* =========================================
   LEGAL PAGES (Privacy, Terms)
   ========================================= */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 0;
}

.legal-content h3 {
  font-style: normal;
  font-size: 1.15rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

.legal-content ul {
  list-style: none;
  padding: 0;
}

.legal-content ul li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
  color: var(--color-text-light);
}

.legal-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-secondary);
}

.legal-content .faq-question {
  margin-top: 2rem;
}

.legal-meta {
  font-size: 0.84rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
}

/* =========================================
   RESPONSIVE — Tablet & Mobile
   ========================================= */
@media (max-width: 1100px) {
  .nav-left a,
  .nav-right a {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }

  .nav-left,
  .nav-right {
    gap: 1rem;
  }

  .nav-login {
    font-size: 0.65rem;
    padding: 0.4rem 0.8rem;
  }

  .site-name {
    font-size: 1.1rem;
  }

  .two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-left,
  .nav-right {
    display: none;
  }

  .hamburger {
    display: flex;
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
  }

  .nav-inner {
    justify-content: center;
    position: relative;
  }

  .site-brand {
    padding: 0;
  }

  /* Hero responsive */
  .hero {
    padding: 3rem 1.5rem;
    min-height: 70vh;
  }

  .hero-content {
    margin-left: 0;
    max-width: 100%;
    padding-top: 1rem;
  }

  .hero-vertical-text {
    display: none;
  }

  .hero-circles {
    width: 250px;
    height: 250px;
    right: -50px;
    opacity: 0.5;
  }

  h1 {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .section {
    padding: 3rem 1.25rem;
  }

  .section--arch::after {
    height: 40px;
    bottom: -1px;
  }

  .section--arch {
    padding-bottom: calc(3rem + 30px);
  }

  /* Grid responsive */
  .grid--3,
  .grid--2 {
    grid-template-columns: 1fr;
  }

  .grid--classified {
    grid-template-columns: 1fr;
  }

  .grid--classified .card {
    border-radius: 0;
  }

  .masonry-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  /* Forms */
  .form-grid--paired {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
  }

  /* Columns */
  .columns-2 {
    column-count: 1;
  }

  /* Two-col */
  .two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Contact details */
  .contact-details {
    grid-template-columns: 1fr 1fr;
  }

  /* Footer */
  .site-footer {
    padding: 3rem 1.5rem 1.5rem;
  }

  .footer-nav {
    flex-direction: column;
    gap: 0.8rem;
  }

  /* Login page */
  .login-top {
    padding: 3rem 1.5rem 2.5rem;
  }

  .login-bottom {
    padding: 2rem 1.5rem 3rem;
  }

  /* Tabs */
  .tab-bar {
    gap: 0;
  }

  .tab-btn {
    font-size: 0.76rem;
    padding: 0.7rem 1rem;
  }

  /* Pricing */
  .pricing-tier {
    padding: 2rem 1.5rem;
  }

  /* Testimonials */
  .testimonial blockquote {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .contact-details {
    grid-template-columns: 1fr;
  }

  .cookie-inner {
    flex-direction: column;
    text-align: center;
  }

  .cookie-actions {
    width: 100%;
    justify-content: center;
  }

  .hero-masthead {
    font-size: 1.1rem;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    justify-content: center;
  }
}

/* =========================================
   UTILITIES
   ========================================= */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 3rem; }
.sr-only {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Visually hidden but accessible */
[hidden] { display: none !important; }

/* === MANDATORY BASE RULES (auto-injected at end for max specificity) === */
html{overflow-x:hidden}
.skip-link{position:absolute!important;left:-9999px!important;top:auto;width:1px!important;height:1px!important;overflow:hidden!important;z-index:10000;clip:rect(0,0,0,0)!important}
.skip-link:focus{position:fixed!important;left:10px!important;top:10px!important;width:auto!important;height:auto!important;overflow:visible!important;clip:auto!important;padding:.75rem 1.5rem;background:var(--color-primary,#333);color:#fff;font-size:1rem;font-weight:700;border-radius:4px;text-decoration:none;z-index:10000}
.site-logo,.site-logo img,img.site-logo{max-height:40px!important;width:auto!important;object-fit:contain;background:none!important;vertical-align:middle}
.footer-brand .site-logo{max-height:28px!important;width:auto!important}
.site-brand,a.site-brand{display:inline-flex!important;align-items:center;gap:.5rem;text-decoration:none;color:inherit}
.site-footer .site-brand,.footer-brand .site-brand{flex-wrap:wrap}
.site-footer .site-name,.footer-brand .site-name,.footer-col .site-name{white-space:normal!important;word-wrap:break-word}
.site-footer{max-height:none!important;overflow:visible!important}
/* NAV SAFETY — prevent overflow, misalignment, and z-index issues */
.site-nav,.site-header,header[role="banner"]{position:relative;z-index:1000;width:100%;max-width:100vw!important;overflow-x:hidden!important}
.site-nav .nav-inner,.site-nav nav,.nav-inner,header nav{display:flex!important;align-items:center!important;flex-wrap:wrap;gap:0.5rem;width:100%;max-width:100%!important;overflow:hidden}
.nav-links,.nav-links-left,.nav-links-right,.nav-menu,[class*="nav-links"]{display:flex;align-items:center;gap:0.75rem;flex-wrap:wrap;max-width:100%;margin:0;padding:0;list-style:none}
.nav-link,.nav-login-btn,.site-nav a,header nav a{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-height:3rem;line-height:1.4;flex-shrink:1;min-width:0}
.nav-login-btn,.nav-cta,[class*="nav-cta"]{padding:0.4rem 1rem!important;font-size:0.85rem!important;border-radius:4px;flex-shrink:0}
/* Prevent ANY element from causing horizontal scroll */
html,body{max-width:100vw!important;overflow-x:hidden!important}
/* Team portrait placeholders — ensure circles have dimensions even without images */
.team-portrait,.team-avatar,.team-photo{width:180px;height:180px;border-radius:50%;overflow:hidden;margin:0 auto 1rem;display:flex;align-items:center;justify-content:center}
.team-portrait img,.team-avatar img,.team-photo img{width:100%;height:100%;object-fit:cover;border-radius:50%}
/* Image placeholders — ensure they have dimensions and show images properly */
.image-placeholder{position:relative;overflow:hidden;min-height:200px}
.image-placeholder img{width:100%;height:100%;object-fit:cover;position:absolute;top:0;left:0;border-radius:inherit}
/* Content images injected by pipeline — no inline styles needed */
.content-img{width:100%;height:100%;object-fit:cover;border-radius:inherit;display:block}
/* Animate fallback — if JS fails, content must still be visible after 2s */
.animate-in,.animate-on-scroll,.scroll-animate,.fade-in,.slide-in,[class*="animate-"]{animation:_aiFallback 0s 2s forwards}
@keyframes _aiFallback{to{opacity:1!important;transform:none!important}}
.animate-in.visible,.animate-on-scroll.visible,.scroll-animate.visible,.fade-in.visible,.slide-in.visible,[class*="animate-"].visible{animation:none}
/* Character animation fallback — if JS fails, chars must be visible */
.char,.char-space{opacity:1!important;transform:none!important}
.char.visible{animation:none}
/* Cookie banner — hardcoded dark so it works on any palette */
.cookie-banner{position:fixed;bottom:0;left:0;right:0;z-index:9999;padding:1rem 2rem;background:#1a1a2e;color:#f0f0f0;display:none;align-items:center;justify-content:center;gap:1rem;flex-wrap:wrap;border-top:1px solid rgba(255,255,255,0.1);font-size:0.9rem}
.cookie-banner.visible,.cookie-banner.active,.cookie-banner.show,.cookie-banner.is-visible{display:flex}
.cookie-banner button,.cookie-accept,.cookie-decline,.cookie-btn,.cookie-link{padding:0.5rem 1.2rem;border-radius:6px;border:none;cursor:pointer;font-weight:600;font-size:0.85rem;color:#f0f0f0}
.cookie-banner .cookie-accept,.cookie-banner .btn-primary,.cookie-banner [data-cookie="accept"]{background:#4ade80;color:#111}
.cookie-banner .cookie-decline,.cookie-banner .btn-ghost,.cookie-banner [data-cookie="decline"]{background:rgba(255,255,255,0.12);color:#ccc}
/* Footer minimum — ensure footer is visible even if custom CSS is truncated */
.site-footer{padding:3rem 2rem 1.5rem;position:relative}
.footer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:2rem;max-width:1200px;margin:0 auto}
.footer-col a{display:block;font-size:0.9rem;margin-bottom:0.4rem;text-decoration:none}
.footer-bottom,.footer-copy{text-align:center;font-size:0.8rem;opacity:0.5;margin-top:2rem;padding-top:1.5rem;border-top:1px solid rgba(255,255,255,0.08)}
/* === END MANDATORY BASE RULES === */

/* === AUTO-FIX: fallback rules for HTML classes missing from CSS === */
.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.5rem}
.stats-grid--3{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.5rem}
.section--light{padding:3rem 2rem;max-width:1200px;margin:0 auto}
/* === END AUTO-FIX === */

.login-help-block{width:100%;padding:3rem 0}
.login-security-note{width:100%;padding:3rem 0}
/* AUTO-FIX: prevent fixed header from overlapping content */
main,.main-content,[role='main']{padding-top:80px}
