/* ═══════════════════════════════════════════════════════════════
   Romania Manpower — Design System
   ═══════════════════════════════════════════════════════════════ */

/* ─── Design Tokens ─────────────────────────────────────────── */
:root {
  /* Brand colours — Romanian tricolour */
  --rm-blue:       #243C78;
  --rm-blue-50:    #EEF1F8;
  --rm-blue-100:   #D1D9EC;
  --rm-blue-600:   #1B2D5A;
  --rm-blue-700:   #142244;
  --rm-yellow:     #FCD818;
  --rm-yellow-50:  #FFFCE8;
  --rm-yellow-100: #FFF9C4;
  --rm-red:        #CC2424;
  --rm-red-50:     #FFF0F0;

  /* Semantic */
  --rm-ink:        #14192B;
  --rm-success:    #16A34A;
  --rm-success-bg: #ECFDF5;
  --rm-warning:    #F59E0B;
  --rm-warning-bg: #FFFBEB;
  --rm-error:      #DC2626;
  --rm-error-bg:   #FEF2F2;

  /* Surfaces */
  --surface-page:  #F7F8FA;
  --surface-card:  #FFFFFF;
  --surface-navy:  #14192B;

  /* Text */
  --text-strong:   #14192B;
  --text-body:     #374151;
  --text-muted:    #6B7280;
  --text-subtle:   #9CA3AF;

  /* Borders */
  --border-default: #D1D5DB;
  --border-subtle:  #E5E7EB;
  --border-strong:  #9CA3AF;

  /* Typography */
  --font-sans: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --fs-xs:   0.75rem;    /* 12px */
  --fs-sm:   0.875rem;   /* 14px */
  --fs-base: 1rem;       /* 16px */
  --fs-lg:   1.125rem;   /* 18px */
  --fs-xl:   1.25rem;    /* 20px */
  --fs-h4:   1.375rem;   /* 22px */
  --fs-h3:   1.75rem;    /* 28px */
  --fs-h2:   2.25rem;    /* 36px */
  --fs-h1:   3.25rem;    /* 52px */
  --fs-display: 4rem;    /* 64px */

  /* Spacing (8px grid) */
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.5rem;   /* 24px */
  --space-6: 2rem;     /* 32px */
  --space-7: 3rem;     /* 48px */
  --space-8: 4rem;     /* 64px */
  --space-9: 6rem;     /* 96px */
  --space-10: 8rem;    /* 128px */
  --section-pad: 70px;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm:  0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:  0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg:  0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl:  0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.04);

  /* Layout */
  --container-wide: 1200px;
  --container-max:  1200px;
  --container-narrow: 920px;
  --container-text: 720px;
  --gutter: 24px;
  --header-h: 72px;

  /* Typography — match original design exactly */
  --font-display: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --fw-light: 300;
  --fw-regular: 400;
  --fw-bold: 700;
  --fw-black: 900;
  --fs-overline: 0.6875rem;
  --ls-overline: 0.12em;
  --lh-tight: 1.05;
  --lh-snug: 1.2;
  --lh-normal: 1.5;
  --lh-relaxed: 1.65;

  /* Additional colour shades from original */
  --rm-blue-300:  #8A9BC6;
  --rm-blue-500:  #3A5DB0;
  --rm-blue-800:  #142346;
  --rm-yellow-300: #FDE873;
  --rm-yellow-600: #E5BE00;
  --rm-red-300:    #E68585;
  --rm-red-700:    #A81B1B;
  --rm-grey-50:    #F7F8FA;
  --rm-grey-100:   #EFF0F4;
  --rm-grey-200:   #E1E3EB;
  --rm-grey-300:   #C5C9D4;
  --rm-grey-400:   #9AA0B2;
  --rm-grey-500:   #767D92;
  --rm-grey-600:   #565D73;
  --rm-grey-700:   #3C4257;
  --rm-grey-900:   #1F2438;
  --rm-white:      #FFFFFF;

  /* Semantic aliases */
  --color-primary:        var(--rm-blue);
  --color-primary-hover:  var(--rm-blue-700);
  --color-accent:         var(--rm-yellow);
  --color-energy:         var(--rm-red);
  --text-link:            var(--rm-blue-600);
  --text-inverse:         #fff;
  --surface-navy-deep:    var(--rm-blue-800);
  --focus-ring:           var(--rm-blue-500);
}

/* ─── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans) !important;
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  font-weight: var(--fw-regular);
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--rm-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display) !important;
  color: var(--text-strong);
  font-weight: var(--fw-black);
  line-height: var(--lh-snug);
  letter-spacing: -0.01em;
}

p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* ─── Utility Classes ───────────────────────────────────────── */
.rm-container {
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.rm-container--narrow {
  max-width: var(--container-narrow);
}

.rm-section {
  padding: var(--section-pad) 0;
}

.rm-section--sm {
  padding: calc(var(--section-pad) * 0.55) 0;
}

.rm-section--hero {
  padding: calc(var(--section-pad) * 0.7) 0 var(--section-pad);
}

.rm-bg-white { background: #fff; }
.rm-bg-page  { background: var(--surface-page); }
.rm-bg-navy  { background: var(--surface-navy); color: #fff; }
.rm-bg-blue  { background: var(--rm-blue); color: #fff; }

/* ─── Eyebrow ───────────────────────────────────────────────── */
.rm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rm-blue);
}

.rm-eyebrow::before {
  content: '';
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--rm-yellow);
}

.rm-eyebrow--light {
  color: var(--rm-yellow);
}

.rm-eyebrow--light::before {
  background: var(--rm-yellow);
}

/* ─── Section Head ──────────────────────────────────────────── */
.rm-section-head {
  margin-bottom: var(--space-6);
}

.rm-section-head--center {
  text-align: center;
}

.rm-section-head__title {
  font-size: var(--fs-h2);
  margin: 10px 0 0;
}

.rm-section-head__sub {
  font-size: var(--fs-lg);
  color: var(--text-muted);
  line-height: 1.6;
  margin: 12px auto 0;
  max-width: 640px;
}

/* ─── Tri-colour Bar ────────────────────────────────────────── */
.rm-tribar {
  display: flex;
  height: 5px;
  width: 100%;
}

.rm-tribar span {
  flex: 1;
}

.rm-tribar span:nth-child(1) { background: var(--rm-blue); }
.rm-tribar span:nth-child(2) { background: var(--rm-yellow); }
.rm-tribar span:nth-child(3) { background: var(--rm-red); }

.rm-tribar--thick {
  height: 6px;
}

/* ─── Cards ─────────────────────────────────────────────────── */
.rm-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.rm-card:hover {
  box-shadow: var(--shadow-lg);
}

.rm-card--padded {
  padding: var(--space-6);
}

.rm-card--blue-border {
  border: 1.5px solid var(--rm-blue);
  background: var(--rm-blue-50);
}

/* ─── Badges ────────────────────────────────────────────────── */
.rm-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--fs-xs);
  font-weight: 800;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rm-badge--blue    { background: var(--rm-blue-50); color: var(--rm-blue); }
.rm-badge--yellow  { background: var(--rm-yellow-50); color: #92700C; }
.rm-badge--red     { background: var(--rm-red-50); color: var(--rm-red); }
.rm-badge--neutral { background: #F3F4F6; color: var(--text-muted); }
.rm-badge--green   { background: var(--rm-success-bg); color: var(--rm-success); }

.rm-badge--solid-blue   { background: var(--rm-blue); color: #fff; }
.rm-badge--solid-yellow { background: var(--rm-yellow); color: var(--rm-ink); }
.rm-badge--solid-red    { background: var(--rm-red); color: #fff; }

/* ─── Buttons ───────────────────────────────────────────────── */
.rm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 800;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.18s;
  text-decoration: none;
  line-height: 1;
}

.rm-btn--sm  { font-size: var(--fs-sm); padding: 10px 18px; }
.rm-btn--md  { font-size: var(--fs-base); padding: 13px 24px; }
.rm-btn--lg  { font-size: var(--fs-lg); padding: 16px 32px; }

.rm-btn--primary {
  background: var(--rm-blue);
  color: #fff;
}
.rm-btn--primary:hover {
  background: var(--rm-blue-600);
  text-decoration: none;
  color: #fff;
}

.rm-btn--secondary {
  background: transparent;
  color: var(--rm-blue);
  border: 1.5px solid var(--rm-blue);
}
.rm-btn--secondary:hover {
  background: var(--rm-blue-50);
  text-decoration: none;
}

.rm-btn--yellow {
  background: var(--rm-yellow);
  color: var(--rm-ink);
}
.rm-btn--yellow:hover {
  background: #E5C200;
  text-decoration: none;
  color: var(--rm-ink);
}

.rm-btn--white {
  background: #fff;
  color: var(--rm-blue);
}
.rm-btn--white:hover {
  background: #F3F4F6;
  text-decoration: none;
  color: var(--rm-blue);
}

.rm-btn--ghost {
  background: transparent;
  color: var(--rm-blue);
}
.rm-btn--ghost:hover { background: var(--rm-blue-50); text-decoration: none; }

.rm-btn--block { width: 100%; }

.rm-btn .rm-ic { flex-shrink: 0; }

/* ─── Form Elements (for Gravity Forms override) ────────────── */
.rm-form .gform_wrapper input[type="text"],
.rm-form .gform_wrapper input[type="email"],
.rm-form .gform_wrapper input[type="tel"],
.rm-form .gform_wrapper input[type="url"],
.rm-form .gform_wrapper input[type="number"],
.rm-form .gform_wrapper textarea,
.rm-form .gform_wrapper select {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--rm-ink);
  background: var(--surface-page);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.rm-form .gform_wrapper input:focus,
.rm-form .gform_wrapper textarea:focus,
.rm-form .gform_wrapper select:focus {
  outline: none;
  border-color: var(--rm-blue);
  box-shadow: 0 0 0 3px rgba(36,60,120,0.12);
}

.rm-form .gform_wrapper .gfield_label {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--rm-ink);
  margin-bottom: 6px;
}

.rm-form .gform_wrapper .gform_button,
.rm-form .gform_wrapper input[type="submit"] {
  font-family: var(--font-sans);
  font-size: var(--fs-lg);
  font-weight: 800;
  background: var(--rm-blue);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 16px 32px;
  cursor: pointer;
  width: 100%;
  transition: background 0.18s;
}

.rm-form .gform_wrapper .gform_button:hover,
.rm-form .gform_wrapper input[type="submit"]:hover {
  background: var(--rm-blue-600);
}

.rm-form .gform_wrapper .ginput_container_checkbox label,
.rm-form .gform_wrapper .ginput_container_consent label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-muted);
}

/* ─── Grid Layouts ──────────────────────────────────────────── */
.rm-grid { display: grid; gap: var(--space-4); }
.rm-grid--2 { grid-template-columns: repeat(2, 1fr); }
.rm-grid--3 { grid-template-columns: repeat(3, 1fr); }
.rm-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ─── Icons ─────────────────────────────────────────────────── */
.rm-ic {
  display: inline-flex;
  flex-shrink: 0;
  vertical-align: middle;
}

/* ─── Stat Pill ─────────────────────────────────────────────── */
.rm-stat {
  text-align: center;
}

.rm-stat__value {
  font-size: var(--fs-h2);
  font-weight: 900;
  color: var(--rm-yellow);
  line-height: 1;
}

.rm-stat__label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
}

/* ─── Process Steps ─────────────────────────────────────────── */
.rm-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-4);
  counter-reset: step;
}

.rm-step {
  text-align: center;
  counter-increment: step;
}

.rm-step__number {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-pill);
  background: var(--rm-blue-50);
  color: var(--rm-blue);
  font-size: var(--fs-lg);
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.rm-step__title {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--rm-ink);
}

/* ─── FAQ Accordion ─────────────────────────────────────────── */
.rm-faq {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  transition: background 0.2s;
}

.rm-faq.is-open {
  background: var(--surface-page);
}

.rm-faq__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.rm-faq__question {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--rm-ink);
}

.rm-faq__answer {
  display: none;
  padding: 0 20px 18px;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

.rm-faq.is-open .rm-faq__answer {
  display: block;
}

/* ─── Trust Strip ───────────────────────────────────────────── */
.rm-trust-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-5);
}

.rm-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: rgba(255,255,255,0.9);
}

.rm-trust-item__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.1);
  color: var(--rm-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── Testimonials ──────────────────────────────────────────── */
.rm-testimonial__image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.rm-testimonial__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rm-testimonial__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,25,43,0.7), transparent 55%);
}

.rm-testimonial__body {
  padding: 20px;
}

.rm-testimonial__quote {
  font-size: var(--fs-sm);
  color: var(--text-body);
  line-height: 1.6;
  margin: 8px 0 0;
}

/* ─── Contact Info ──────────────────────────────────────────── */
.rm-quick-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rm-quick-row__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.1);
  color: var(--rm-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rm-quick-row__label {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.55);
}

.rm-quick-row__value {
  font-size: var(--fs-base);
  font-weight: 800;
  color: #fff;
}

/* ─── Office Cards ──────────────────────────────────────────── */
.rm-office-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  background: var(--surface-card);
  position: relative;
}

.rm-office-card--primary {
  border: 1.5px solid var(--rm-blue);
  background: var(--rm-blue-50);
}

/* ─── Audience Toggle ───────────────────────────────────────── */
.rm-audience-toggle {
  display: inline-flex;
  padding: 5px;
  gap: 4px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-pill);
}

.rm-audience-toggle__btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  font: inherit;
  font-size: var(--fs-base);
  font-weight: 800;
  background: transparent;
  color: rgba(255,255,255,0.78);
  transition: all 0.18s;
}

.rm-audience-toggle__btn.is-active {
  background: #fff;
  color: var(--rm-blue);
}

/* ─── WhatsApp FAB ──────────────────────────────────────────── */
.rm-whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-pill);
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xl);
  transition: transform 0.2s;
  text-decoration: none;
}

.rm-whatsapp-fab:hover {
  transform: scale(1.08);
  text-decoration: none;
  color: #fff;
}

/* ─── Form Placeholder ──────────────────────────────────────── */
.rm-form-placeholder {
  padding: var(--space-6);
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  border: 2px dashed var(--border-default);
  border-radius: var(--radius-lg);
}

/* ─── Country Flags ─────────────────────────────────────────── */
.rm-country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-3);
}

.rm-country-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--rm-ink);
}

.rm-country-chip--source {
  background: var(--rm-blue-50);
}

.rm-country-chip--dest {
  background: #F0FDF4;
}

/* ─── Job Category Cards ────────────────────────────────────── */
.rm-job-cat {
  padding: var(--space-5);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  background: var(--surface-card);
  transition: box-shadow 0.2s;
}

.rm-job-cat:hover {
  box-shadow: var(--shadow-md);
}

.rm-job-cat__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--rm-blue-50);
  color: var(--rm-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.rm-job-cat__title {
  font-size: var(--fs-base);
  font-weight: 900;
  color: var(--rm-ink);
  margin-bottom: 8px;
}

.rm-job-cat__roles {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

/* ─── Office Hours Card ─────────────────────────────────────── */
.rm-hours-row {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-base);
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.rm-hours-row__day {
  color: rgba(255,255,255,0.7);
  font-weight: 600;
}

.rm-hours-row__time {
  font-weight: 800;
}

/* ─── Social Icons ──────────────────────────────────────────── */
.rm-social-icons {
  display: flex;
  gap: 10px;
}

.rm-social-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.2s;
  text-decoration: none;
}

.rm-social-icon--dark {
  background: rgba(255,255,255,0.1);
}

.rm-social-icon--dark:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.rm-social-icon--light {
  background: var(--rm-blue-50);
  color: var(--rm-blue);
}

.rm-social-icon--light:hover {
  background: var(--rm-blue-100);
}

/* ═══════════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════════ */

/* Prevent sideways scroll on small screens */
@media (max-width: 1024px) {
  html, body { overflow-x: hidden; }
}

@media (max-width: 1024px) {
  :root {
    --gutter: 20px;
    --container-wide: 100%;
    --container-max: 100%;
    --fs-display: 3.2rem;
    --fs-h1: 2.6rem;
    --space-9: 72px;
    --space-8: 52px;
    --section-pad: 56px;
  }

  .rm-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .rm-grid--4 { grid-template-columns: repeat(2, 1fr); }

  /* 2-col inline grids → 2-up */
  [style*="repeat(4,"] { grid-template-columns: repeat(2, 1fr) !important; }
  [style*="repeat(3,"] { grid-template-columns: repeat(2, 1fr) !important; }

  /* Big two-column layouts → stacked */
  [style*="grid-template-columns: 0"],
  [style*="grid-template-columns: 1.05fr"],
  [style*="grid-template-columns: 1.18fr"],
  [style*="grid-template-columns: 0.82fr"],
  [style*="grid-template-columns: 0.85fr"],
  [style*="grid-template-columns: 0.9fr"],
  [style*="grid-template-columns: 1.5fr"],
  [style*="grid-template-columns: 1.6fr"],
  [style*="248px"],
  [style*="320px"],
  [style*="340px"] { grid-template-columns: 1fr !important; }

  /* ── About page: stats 4-col → 2-col at tablet ── */
  [style*="repeat(4, 1fr)"] > [style*="border-left"] {
    border-left: none !important;
  }
  [style*="repeat(4, 1fr)"] > [style*="border-left"]:nth-child(3),
  [style*="repeat(4, 1fr)"] > [style*="border-left"]:nth-child(4) {
    border-top: 1px solid var(--border-subtle);
    padding-top: 16px;
  }
}

@media (max-width: 680px) {
  :root {
    --gutter: 16px;
    --fs-display: 2.4rem;
    --fs-h1: 1.95rem;
    --fs-h2: 1.55rem;
    --fs-h3: 1.3rem;
    --fs-h4: 1.12rem;
    --fs-lg: 1rem;
    --space-9: 56px;
    --space-8: 40px;
    --space-7: 32px;
    --space-6: 24px;
  }

  --section-pad: 44px;
  .rm-section { padding: var(--section-pad) 0; }
  .rm-section--hero { padding: var(--section-pad) 0; }

  .rm-grid--2,
  .rm-grid--3,
  .rm-grid--4 { grid-template-columns: 1fr; }

  /* Everything stacks — except timeline rows */
  [style*="grid-template-columns"]:not([style*="100px 38px"]) {
    grid-template-columns: 1fr !important;
  }

  /* ── About page: timeline ── */
  [style*="100px 38px 1fr"] {
    grid-template-columns: auto 28px 1fr !important;
  }
  [style*="100px 38px 1fr"] > div:first-child {
    padding-right: 8px !important;
  }
  [style*="left:119px"] {
    display: none !important;
  }

  /* ── About page: 11-years badge overflow ── */
  [style*="right:-18px"][style*="bottom:-18px"] {
    right: -8px !important;
    bottom: -8px !important;
    width: 110px !important;
    height: 110px !important;
  }
  [style*="right:-18px"][style*="bottom:-18px"] > span:first-child {
    font-size: 40px !important;
  }

  /* ── About page: medallion container ── */
  [style*="width:360px"][style*="height:360px"] {
    width: 260px !important;
    height: 260px !important;
  }

  /* ── About page: stats border-left → border-top when stacked ── */
  [style*="border-left:1px solid var(--border-subtle)"] {
    border-left: none !important;
    border-top: 1px solid var(--border-subtle) !important;
    padding-top: 16px !important;
    margin-top: 8px !important;
  }

  /* ── Fixed-height images: cap at 260px on mobile ── */
  img[style*="height:440px"],
  img[style*="height:480px"] {
    height: 260px !important;
  }

  .rm-trust-strip {
    gap: var(--space-3);
  }

  .rm-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
