/* =====================================================================
   Meetric — marketing site styles
   Brand: primary #29b6b6 · secondary #555555
   ===================================================================== */

:root {
  --color-primary: #29b6b6;
  --color-primary-dark: #1f9797;
  --color-primary-soft: #e7f6f6;
  --color-secondary: #555555;

  --color-text: #333333;
  --color-muted: #6b7280;
  --color-bg: #ffffff;
  --color-bg-alt: #f6f9f9;
  --color-border: #e5eaea;
  --line: #cbdedd;

  --color-dark: #14151a;          /* footer / dark banner (matches ramletech.com) */

  --header-height: 104px;
  --container: 1140px;
  --radius: 14px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .07);
  --shadow-md: 0 12px 30px rgba(20, 40, 40, .12);

  --transition: .25s ease;
  --font: "Roboto", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-primary); text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, h3 { color: var(--color-secondary); line-height: 1.15; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

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

:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------------------------------------------------------------------
   Header
   --------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
}

.site-header__inner {
  height: 100%;
  width: 100%;
  max-width: none;          /* full-bleed header: nav far left, actions far right */
  padding: 0 30px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

/* Desktop: logo left, nav centered, actions right.
   grid-row:1 keeps all three on one row — without it, the logo's column (1)
   coming after the nav's column (2) in the DOM forces a second grid row. */
.header-center { grid-column: 1; grid-row: 1; justify-self: start; }
.header-left  { grid-column: 2; grid-row: 1; justify-self: center; display: flex; align-items: center; gap: 12px; }
.header-right { grid-column: 3; grid-row: 1; justify-self: end; display: flex; align-items: center; gap: 10px; }

.logo { display: inline-flex; align-items: center; }
.logo img { height: 92px; width: auto; }

/* Primary navigation ------------------------------------------------- */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0; padding: 0;
}

.main-nav a {
  position: relative;
  color: var(--color-secondary);
  font-weight: 500;
  font-size: .95rem;
  padding: 6px 2px;
  white-space: nowrap;
  transition: color var(--transition);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.main-nav a:hover,
.main-nav a.is-active { color: var(--color-primary); }
.main-nav a:hover::after,
.main-nav a.is-active::after { transform: scaleX(1); }

.nav-mobile-only { display: none; }

/* Contact button ----------------------------------------------------- */
.btn-contact {
  color: var(--color-secondary);
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  white-space: nowrap;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.btn-contact:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
}

/* Hamburger ---------------------------------------------------------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px; width: 100%;
  background: var(--color-secondary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------------
   Language switcher (animated dropdown)
   --------------------------------------------------------------------- */
.lang-switch { position: relative; }

.lang-switch__toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  color: var(--color-secondary);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.lang-switch__toggle:hover { border-color: var(--color-primary); background: var(--color-primary-soft); }

.lang-switch__flag {
  width: 24px; height: 16px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
}
.lang-switch__code { font-weight: 600; font-size: .85rem; letter-spacing: .5px; }

.lang-switch__chevron { transition: transform var(--transition); }
.lang-switch.is-open .lang-switch__chevron { transform: rotate(180deg); }

.lang-switch__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);

  /* animation */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(.98);
  transform-origin: top right;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.lang-switch.is-open .lang-switch__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.lang-switch__item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 9px;
  color: var(--color-text);
  font-weight: 500;
  transition: background var(--transition);
}
.lang-switch__item a:hover { background: var(--color-primary-soft); }
.lang-switch__item a.is-current { color: var(--color-primary); font-weight: 600; }

.lang-switch__check {
  margin-left: auto;
  color: var(--color-primary);
  opacity: 0;
  transition: opacity var(--transition);
}
.lang-switch__item a.is-current .lang-switch__check { opacity: 1; }

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition), color var(--transition), border-color var(--transition);
}
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--color-secondary); border-color: var(--color-border); }
.btn--ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* ---------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */
main { display: block; }

.hero {
  padding-top: var(--header-height);   /* clear the fixed header */
  text-align: center;
  background: #ffffff;
}
.hero__image {
  width: 100%;
  height: clamp(360px, 62vh, 640px);   /* slightly taller */
  object-fit: cover;
  display: block;
}
.hero__text {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 60px;
}
.hero__text h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0 0 16px;
}
.hero__text h1 span { color: var(--color-primary); }
.hero__lead {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.25rem;
  color: var(--color-muted);
}

.eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 12px;
}

/* ---------------------------------------------------------------------
   Banner (section break)
   --------------------------------------------------------------------- */
.banner {
  padding: 60px 0;
  text-align: center;
  color: #fff;
}
.banner--primary { background: var(--color-secondary); }
.banner--dark { background: var(--color-secondary); }
.banner__eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: .96rem;
  font-weight: 700;
  opacity: .85;
  margin-bottom: 14px;
}
.banner__text {
  margin: 0 auto;
  max-width: 860px;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
}
.banner__text strong { color: #fff; border-bottom: 3px solid rgba(255,255,255,.55); }

/* Rotating banner: all texts share one full-width grid cell, centred */
.banner-rotator {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}
.banner-rotator > .banner__text {
  grid-area: 1 / 1;
  max-width: 860px;
  margin: 0;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .6s ease, transform .6s ease;
  pointer-events: none;
}
.banner-rotator > .banner__text.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ---------------------------------------------------------------------
   Generic sections
   --------------------------------------------------------------------- */
.section { padding: 90px 0; }
.section--alt { background: var(--color-bg-alt); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section__head h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin: 0 0 14px; }
.section__head p { font-size: 1.12rem; color: var(--color-muted); margin: 0; }

/* ---------------------------------------------------------------------
   Statistics / problem section
   --------------------------------------------------------------------- */
.stats-layout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: start;
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
/* Animated angle drives the clockwise border fill on clickable boxes */
@property --brd {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.stat-card {
  position: relative;
  text-align: left;
  font: inherit;
  color: inherit;
  background: #fff;
  border: 0;
  border-radius: var(--radius);
  padding: 22px 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 158px;
  transition: background-color .3s ease;
}
/* the border itself: a conic-gradient ring that fills teal from the top, clockwise */
.stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from -90deg, var(--color-primary) var(--brd), var(--color-border) 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  transition: --brd .55s ease;
  pointer-events: none;
}
.stat-card:hover {
  background-color: var(--color-primary-soft);   /* tint only after the border has filled */
  transition: background-color .3s ease .5s;
}
.stat-card:hover::before { --brd: 360deg; }
.stat-card__num { font-size: 1.9rem; font-weight: 800; color: var(--color-primary); line-height: 1.05; }
.stat-card__label { color: var(--color-secondary); font-weight: 500; font-size: .96rem; }
.stat-card__more {
  margin-top: auto;
  font-size: .78rem;
  font-weight: 600;
  color: var(--color-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.stat-card:hover .stat-card__more { color: var(--color-primary); }

.stats-narrative { align-self: stretch; }
.stats-narrative h3 { font-size: 1.45rem; margin: 0 0 14px; }
.stats-narrative p { color: var(--color-muted); margin: 0 0 16px; }
.stats-callout {
  background: var(--color-primary-soft);
  border-left: 4px solid var(--color-primary);
  border-radius: 12px;
  padding: 20px 22px;
  color: var(--color-secondary);
}
.stats-callout p { color: var(--color-secondary); margin: 0; }
.stats-callout strong { color: var(--color-primary-dark); }

/* Problem visual: a busy calendar → diagonal lines → stat boxes */
.problem-viz {
  position: relative;
  max-width: 940px;
  margin: 0 auto 56px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;   /* boxes | calendar | boxes */
  align-items: center;
  justify-items: center;
  column-gap: 20px;
  row-gap: 28px;
}
.problem-viz__cal {
  grid-column: 2; grid-row: 2;           /* calendar centred */
  position: relative; z-index: 1;
  width: 320px; max-width: 100%;
}
.problem-boxes { display: contents; }    /* let the 4 boxes sit at the grid corners */
.problem-box { width: 230px; max-width: 100%; z-index: 2; }
.problem-box--tl { grid-column: 1; grid-row: 1; }
.problem-box--tr { grid-column: 3; grid-row: 1; }
.problem-box--bl { grid-column: 1; grid-row: 3; }
.problem-box--br { grid-column: 3; grid-row: 3; }
.problem-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}

/* Calendar */
.calendar {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.calendar__head {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}
.calendar__head span {
  padding: 9px 0;
  text-align: center;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-muted);
}
.calendar__body {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 8px;
  height: 200px;
}
.calendar__col { display: flex; flex-direction: column; gap: 5px; height: 100%; }
.mtg {
  border-radius: 6px;
  padding: 4px 6px;
  font-size: .62rem;
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
  overflow: hidden;
}
.mtg--teal  { background: var(--color-primary); }
.mtg--teald { background: var(--color-primary-dark); }
.mtg--grey  { background: #8a9a9a; }
.mtg--white  { background: white; }
.mtg--soft  { background: #c7e9e9; color: var(--color-primary-dark); }
.problem-viz__cap { text-align: center; margin: 14px 0 0; font-size: .85rem; color: var(--color-muted); }

/* Stat boxes at the corners (compact horizontal cards) */
.problem-boxes .stat-card {
  flex-direction: row;
  align-items: center;
  gap: 14px;
  min-height: 0;
  padding: 14px 18px;
}
.problem-boxes .stat-card__num { font-size: 1.5rem; flex: 0 0 auto; min-width: 88px; }
.problem-boxes .stat-card__label { font-size: .9rem; }

.problem-narrative { max-width: 760px; margin: 0 auto; text-align: center; }
.problem-narrative h3 { font-size: 1.4rem; margin: 0 0 16px; }
.problem-narrative .stats-callout { text-align: left; }
.problem-narrative > p { color: var(--color-muted); margin: 16px 0 0; }

/* ---------------------------------------------------------------------
   Modal
   --------------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__overlay {
  position: absolute; inset: 0;
  background: rgba(20, 21, 26, .55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  padding: 34px 32px 30px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
  transform: translateY(14px) scale(.97);
  transition: transform var(--transition);
}
.modal.is-open .modal__panel { transform: translateY(0) scale(1); }
.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 38px; height: 38px;
  border: none;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-secondary);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), color var(--transition);
}
.modal__close:hover { background: var(--color-primary-soft); color: var(--color-primary); }
.modal__body .modal-figure { font-size: 2.4rem; font-weight: 800; color: var(--color-primary); margin: 0 0 2px; }
.modal__body h3 { margin: 0 0 12px; font-size: 1.4rem; padding-right: 34px; }
.modal__body p { color: var(--color-muted); margin: 0 0 12px; }
.modal-source {
  font-size: .9rem;
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
}

/* ---------------------------------------------------------------------
   Offering tree
   --------------------------------------------------------------------- */
.otree { max-width: 880px; margin: 0 auto; position: relative; }
.otree__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}
.otree__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}
.otree__hub { display: flex; justify-content: center; position: relative; z-index: 1; margin-top: 66px; }

.otree__box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  background: #fff;
  border: 2px solid var(--color-border);
  border-radius: 14px;
  padding: 22px 16px;
  color: var(--color-secondary);
  font-weight: 700;
  transition: background-color .3s ease;
}
/* same clockwise-fill border on the clickable offering boxes (not the teal hub) */
.otree__box:not(.otree__box--hub) { border: 0; }
.otree__box:not(.otree__box--hub)::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from -90deg, var(--color-primary) var(--brd), var(--color-border) 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  transition: --brd .55s ease;
  pointer-events: none;
}
.otree__box:not(.otree__box--hub):hover {
  background-color: var(--color-primary-soft);
  transition: background-color .3s ease .5s;
}
.otree__box:not(.otree__box--hub):hover::before { --brd: 360deg; }
.otree__ico {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  margin-bottom: 4px;
}
.otree__title { font-weight: 700; font-size: 1.05rem; }
.otree__box small { font-weight: 500; font-size: .85rem; color: var(--color-muted); }
.otree__box--hub {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  min-width: 300px;
}
.otree__box--hub .otree__ico { background: rgba(255, 255, 255, .18); color: #fff; }
.otree__box--hub small { color: rgba(255, 255, 255, .88); }
.otree__box--hub:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); }

/* ---------------------------------------------------------------------
   Feature / ROTI section
   --------------------------------------------------------------------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { margin: 0 0 10px; font-size: 1.2rem; }
.card p { margin: 0; color: var(--color-muted); }
.step__num {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  margin-bottom: 18px;
}

.roti-subhead { text-align: center; font-size: 1.5rem; margin: 64px 0 24px; }
.qlist {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 32px;
}
.qlist li {
  position: relative;
  padding-left: 32px;
  color: var(--color-secondary);
}
.qlist li::before {
  content: "";
  position: absolute;
  left: 0; top: .25em;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--color-primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2329b6b6' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
}
.roti-result {
  max-width: 820px;
  margin: 40px auto 0;
  text-align: center;
  font-size: 1.15rem;
  color: var(--color-secondary);
  background: var(--color-primary-soft);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.roti-cta { text-align: center; margin-top: 44px; }

/* ROTI image flow: vote screenshot → insights screenshot */
.roti-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.roti-shot { margin: 0; text-align: center; flex: 0 1 auto; }
.roti-shot img {
  display: block;
  height: auto;
  max-height: 440px;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  background: #fff;
}
.roti-shot figcaption {
  margin: 18px auto 0;
  max-width: 300px;
  color: var(--color-muted);
  font-size: .98rem;
}
.roti-shot figcaption strong { display: block; color: var(--color-secondary); font-size: 1.05rem; margin-bottom: 2px; }
.roti-flow__arrow {
  flex: 0 0 auto;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 760px) {
  .roti-flow { flex-direction: column; gap: 20px; }
  .roti-flow__arrow svg { transform: rotate(90deg); }
}

/* Coming-soon placeholder sections ----------------------------------- */
.coming-soon {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: .72rem;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 18px;
}

/* ---------------------------------------------------------------------
   Dark footer (styled after ramletech.com)
   --------------------------------------------------------------------- */
.site-footer {
  background: var(--color-dark);
  color: #f2f2f2;
  padding: 60px 0 40px;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px 48px;
  align-items: start;
}
.site-footer a { color: #f2f2f2; }

.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.footer-contact li { display: flex; align-items: center; gap: 12px; color: #cfd2d6; }
.footer-contact li svg { color: var(--color-primary); flex: 0 0 auto; }
.footer-contact a:hover { color: #fff; }

.footer-side { display: grid; gap: 22px; justify-items: start; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-links a { color: #cfd2d6; font-size: .92rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--color-primary); }

.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-mark { width: 42px; height: 42px; }
.footer-brand strong { color: #fff; font-size: 1.2rem; display: block; line-height: 1.2; }
.footer-byline { color: #a9afaf; font-size: .85rem; }
.footer-copy { color: #8b9096; font-size: .85rem; margin: 0; }

.site-footer__inner > .footer-side .footer-copy { margin-top: 2px; }

/* =====================================================================
   Contact page
   ===================================================================== */
.page-hero {
  padding: calc(var(--header-height) + 64px) 0 56px;
  text-align: center;
  background: linear-gradient(180deg, var(--color-primary-soft) 0%, #ffffff 100%);
}
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0 0 14px; }
.page-hero p { max-width: 560px; margin: 0 auto; color: var(--color-muted); font-size: 1.15rem; }

.contact-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-form { display: grid; gap: 18px; }
.form-field { display: grid; gap: 6px; }
.form-field label { font-weight: 600; color: var(--color-secondary); font-size: .95rem; }
.form-field input,
.form-field textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-soft);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--color-muted); margin: 0; }

.contact-info { display: grid; gap: 22px; }
.contact-info__item h3 { margin: 0 0 4px; font-size: 1.05rem; }
.contact-info__item p { margin: 0; color: var(--color-muted); }

/* =====================================================================
   Responsive
   ===================================================================== */

/* Collapse the 6-item nav into a hamburger earlier (wide nav needs room) */
@media (max-width: 1024px) {
  .site-header__inner { padding: 0 20px; }
  .header-left  { grid-column: 1; justify-self: start; }
  .header-center { grid-column: 2; justify-self: center; }
  .nav-toggle { display: flex; order: -1; }         /* hamburger sits far left */
  .header-contact { display: none; }
  .nav-mobile-only { display: block; }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    padding: 14px 22px 22px;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-16px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { display: block; padding: 13px 6px; font-size: 1.05rem; }
  .main-nav a::after { display: none; }
}

@media (max-width: 920px) {
  .stats-layout { grid-template-columns: 1fr; gap: 34px; }
  .grid--3 { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 36px; }
  .qlist { grid-template-columns: 1fr; max-width: 520px; }
  .section { padding: 66px 0; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 30px; }

  /* Problem viz stacks: calendar on top, boxes in a grid below (lines hidden) */
  .problem-viz { display: block; max-width: 520px; }
  .problem-lines { display: none; }
  .problem-viz__cal { width: auto; max-width: 420px; margin: 0 auto; }
  .problem-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
  .problem-box { position: static; width: auto; grid-column: auto; grid-row: auto; }
}

@media (max-width: 640px) {
  /* Offering stacks; SVG arrows are replaced by a single centred arrow */
  .otree__lines { display: none; }
  .otree__grid { grid-template-columns: 1fr; gap: 14px; }
  .otree__hub { margin-top: 44px; }
  .otree__hub::before {
    content: "";
    position: absolute;
    top: -42px; left: calc(50% - 1px);
    width: 2px; height: 30px;
    background: var(--line);
  }
  .otree__hub::after {
    content: "";
    position: absolute;
    top: -16px; left: calc(50% - 7px);
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 9px solid var(--line);
  }
  .otree__box--hub { min-width: 0; width: 100%; }
}

@media (max-width: 520px) {
  .logo img { height: 46px; }
  .lang-switch__code { display: none; }
  .stats-grid { grid-template-columns: 1fr; }
  .problem-boxes { grid-template-columns: 1fr; }
  .calendar__body { height: 250px; }
  .hero__text { padding: 40px 20px 44px; }
  .banner { padding: 44px 0; }
  .modal__panel { padding: 28px 20px 24px; }
}

@media (max-width: 380px) {
  .site-header__inner { padding: 0 12px; gap: 8px; }
  .logo img { height: 40px; }
  .nav-toggle { width: 40px; height: 40px; }
  .container { padding: 0 16px; }
  .stat-card { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
