/* ==========================================================================
   Escuela de Manejo Vargas — Ciudad de México — style.css (prefix: em-)
   Navy + gold + green theme, inspired by the real branded fleet livery
   ========================================================================== */

:root {
  --em-ink: #132a52;
  --em-ink-2: #0d1f3d;
  --em-gold: #f2b705;
  --em-gold-2: #d4a104;
  --em-green: #2e9e4f;
  --em-paper: #faf7f0;
  --em-card: #ffffff;
  --em-text-dim: #5c6472;
  --em-line: rgba(19, 42, 82, 0.13);
  --em-radius: 14px;
  --em-font-display: "Fraunces", serif;
  --em-font-body: "Mulish", sans-serif;
  --em-shadow: 0 22px 50px rgba(19, 42, 82, 0.18);
}

* { box-sizing: border-box; }

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body.em-body {
  margin: 0;
  overflow-x: clip;
  background: var(--em-paper);
  color: var(--em-ink);
  font-family: var(--em-font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.em-nav-open,
body.consent-open {
  overflow: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--em-font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  color: var(--em-ink);
}

p { margin: 0 0 1em; color: var(--em-text-dim); }
ul, ol { margin: 0; padding: 0; list-style: none; }

.em-icon-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.em-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.em-eyebrow {
  font-family: var(--em-font-body);
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: .74rem;
  font-weight: 700;
  color: var(--em-gold-2);
  margin-bottom: .9rem;
  display: block;
}

/* ---------- Buttons ---------- */
.em-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.8rem;
  border-radius: 999px;
  font-family: var(--em-font-body);
  font-size: .86rem;
  font-weight: 700;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.em-btn:hover { transform: translateY(-2px); }
.em-btn--solid { background: var(--em-gold); color: var(--em-ink); }
.em-btn--solid:hover { background: var(--em-gold-2); }
.em-btn--ghost { background: transparent; border-color: var(--em-ink); color: var(--em-ink); }
.em-btn--ghost-light { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.em-btn--lg { padding: 1.05rem 2.3rem; font-size: .94rem; }

/* ---------- Header ---------- */
.em-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--em-line);
}
.em-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: .9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
}
.em-brand {
  font-family: var(--em-font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--em-ink);
  flex-shrink: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.em-brand span { color: var(--em-gold-2); margin: 0 .1em; }

.em-nav-desktop { flex-shrink: 1; min-width: 0; }
.em-nav-desktop ul { display: flex; gap: 1.3rem; }
.em-nav-desktop a { font-size: .85rem; color: var(--em-text-dim); transition: color .2s; font-weight: 600; }
.em-nav-desktop a:hover, .em-nav-desktop a.is-active { color: var(--em-green); }

.em-header-actions { display: flex; align-items: center; gap: .8rem; flex-shrink: 0; }
.em-burger {
  display: none;
  background: none;
  border: 1px solid var(--em-line);
  border-radius: var(--em-radius);
  color: var(--em-ink);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (max-width: 1080px) { .em-nav-desktop { display: none; } }
@media (max-width: 760px) {
  .em-header-cta { display: none; }
  .em-burger { display: inline-flex; }
}

/* ---------- Nav Drawer ---------- */
.em-drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; pointer-events: none; }
.em-drawer.is-open { visibility: visible; pointer-events: auto; }
.em-drawer-backdrop {
  position: absolute; inset: 0;
  background: rgba(13, 31, 61, .6);
  opacity: 0;
  transition: opacity .25s ease;
}
.em-drawer.is-open .em-drawer-backdrop { opacity: 1; }
.em-drawer-panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(340px, 86vw);
  background: var(--em-ink);
  color: #fff;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: translateX(100%);
  transition: transform .3s ease;
  overflow-y: auto;
}
.em-drawer.is-open .em-drawer-panel { transform: translateX(0); }
.em-drawer-top { display: flex; justify-content: space-between; align-items: center; }
.em-drawer-top .em-brand--drawer { color: #fff; }
.em-drawer-close {
  background: none;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--em-radius);
  color: #fff;
  width: 40px; height: 40px;
  cursor: pointer;
}
.em-drawer-links { display: flex; flex-direction: column; gap: .2rem; }
.em-drawer-links a {
  display: block;
  padding: .8rem 0;
  border-bottom: 1px solid rgba(255,255,255,.14);
  font-family: var(--em-font-display);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}
.em-drawer-links a.is-active { color: var(--em-gold); }
.em-drawer-cta { justify-content: center; }
.em-drawer-contact { display: flex; flex-direction: column; gap: .4rem; font-size: .85rem; color: rgba(255,255,255,.7); }
.em-drawer-contact a { color: rgba(255,255,255,.85); }

/* ---------- Quickbar ---------- */
.em-quickbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  display: none;
  background: var(--em-ink);
  padding: .5rem .3rem env(safe-area-inset-bottom);
}
@media (max-width: 760px) { .em-quickbar { display: flex; } }
.em-quickbar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  padding: .4rem 0;
  font-size: .6rem;
  font-weight: 700;
  color: rgba(255,255,255,.75);
}
.em-quickbar-item--main { color: var(--em-gold); }

body.consent-open .em-quickbar { display: none !important; }

/* ---------- Consent box ---------- */
.em-consent {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  z-index: 90;
  max-width: 620px;
  margin: 0 auto;
  background: var(--em-card);
  border: 1px solid var(--em-line);
  border-radius: var(--em-radius);
  padding: 1.2rem 1.4rem;
  box-shadow: var(--em-shadow);
  display: none;
  flex-direction: column;
  gap: 1rem;
}
.em-consent.is-visible { display: flex; }
.em-consent-text { font-size: .84rem; color: var(--em-text-dim); }
.em-consent-text a { color: var(--em-green); text-decoration: underline; }
.em-consent-actions { display: flex; gap: .7rem; flex-wrap: wrap; }

/* ---------- Hero ---------- */
.em-hero {
  position: relative;
  padding: 6rem 1.5rem 3rem;
  text-align: center;
  overflow: hidden;
  color: #fff;
}
.em-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 25%;
  z-index: 0;
}
.em-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,31,61,.82), rgba(13,31,61,.94));
  z-index: 1;
}
.em-hero-inner { position: relative; z-index: 2; max-width: 840px; margin: 0 auto; }
.em-hero .em-eyebrow { color: var(--em-gold); }
.em-hero-title { font-size: clamp(2rem, 6vw, 3.6rem); margin: 0 0 1.2rem; color: #fff; }
.em-hero-title span { display: block; }
.em-hero-title span:last-child { color: var(--em-gold); }
.em-hero-sub { font-size: 1.02rem; max-width: 620px; margin: 0 auto 1.5rem; color: rgba(255,255,255,.85); }
.em-hero-chips { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.em-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem .9rem;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
  font-size: .76rem;
  font-weight: 600;
  color: rgba(255,255,255,.92);
}
.em-chip svg { color: var(--em-gold); }
.em-hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.em-hero-stats {
  position: relative; z-index: 2;
  max-width: 900px;
  margin: 3rem auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.em-stat {
  text-align: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--em-radius);
  padding: 1.2rem .6rem;
}
.em-stat--light { background: var(--em-card); border: 1px solid var(--em-line); }
.em-stat-value { display: block; font-family: var(--em-font-display); font-size: 1.7rem; color: var(--em-gold); font-weight: 700; }
.em-stat--light .em-stat-value { color: var(--em-ink); }
.em-stat-label { font-size: .72rem; color: rgba(255,255,255,.75); text-transform: uppercase; letter-spacing: .02em; }
.em-stat--light .em-stat-label { color: var(--em-text-dim); }

@media (max-width: 640px) { .em-hero-stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Intro ---------- */
.em-intro-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 2.5rem; align-items: center; }
.em-intro-grid img { border-radius: var(--em-radius); aspect-ratio: 4/3; object-fit: cover; border: 1px solid var(--em-line); }
.em-check-list { display: flex; flex-direction: column; gap: .7rem; margin-top: 1.2rem; }
.em-check-list li { display: flex; gap: .6rem; align-items: center; font-size: .92rem; color: var(--em-text-dim); }
.em-check-list svg { color: var(--em-green); flex-shrink: 0; }
.em-link-more { display: inline-flex; align-items: center; gap: .4rem; color: var(--em-green); font-size: .85rem; font-weight: 700; margin-top: .6rem; }

@media (max-width: 780px) { .em-intro-grid { grid-template-columns: 1fr; } }

/* ---------- Page hero ---------- */
.em-page-hero { max-width: 820px; margin: 0 auto; padding: 4.5rem 1.5rem 1.5rem; text-align: center; }
.em-page-hero h1 { font-size: clamp(1.8rem, 5.5vw, 2.9rem); }
.em-page-hero-sub { font-size: 1rem; }

/* ---------- Course category teaser (index) ---------- */
.em-courses-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.em-courses-head h2 { margin: 0; }
.em-category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.em-category-card { background: var(--em-card); border: 1px solid var(--em-line); border-radius: var(--em-radius); padding: 1.6rem; }
.em-category-card h3 { font-size: 1.1rem; margin-bottom: .6rem; }
.em-category-card p { font-size: .86rem; margin-bottom: .9rem; }
.em-category-price { display: block; font-family: var(--em-font-display); font-weight: 700; color: var(--em-green); margin-bottom: .8rem; }

@media (max-width: 960px) { .em-category-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .em-category-grid { grid-template-columns: 1fr; } }

/* ---------- Category tabs + panels (cursos.html) ---------- */
.em-category-tabs { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2rem; }
.em-category-tab {
  padding: .6rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--em-line);
  background: var(--em-card);
  color: var(--em-text-dim);
  font-family: var(--em-font-body);
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
}
.em-category-tab.is-active { background: var(--em-ink); color: var(--em-gold); border-color: var(--em-ink); }

.em-category-panel { display: none; }
.em-category-panel.is-active { display: block; }
.em-category-panel-desc { max-width: 760px; margin-bottom: 2rem; }

.em-plans-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.em-plan-card { background: var(--em-card); border: 1px solid var(--em-line); border-radius: var(--em-radius); padding: 1.4rem; display: flex; flex-direction: column; }
.em-plan-card h3 { font-size: .95rem; margin-bottom: .4rem; }
.em-plan-price { font-family: var(--em-font-display); font-size: 1.5rem; font-weight: 700; color: var(--em-ink); margin-bottom: .5rem; }
.em-plan-note { font-size: .74rem; color: var(--em-gold-2); font-weight: 700; margin-bottom: .5rem; }
.em-plan-schedule { font-size: .78rem; flex-grow: 1; margin-bottom: 1rem; }
.em-plan-card .em-btn { align-self: flex-start; }

@media (max-width: 1040px) { .em-plans-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .em-plans-grid { grid-template-columns: 1fr; } }

/* ---------- Why us ---------- */
.em-why h2 { max-width: 780px; margin-bottom: 2rem; }
.em-why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.em-why-card { background: var(--em-card); border: 1px solid var(--em-line); border-radius: var(--em-radius); padding: 1.4rem; }
.em-why-tag { display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--em-gold-2); margin-bottom: .6rem; }
.em-why-card h3 { font-size: .98rem; margin-bottom: .4rem; }
.em-why-card p { font-size: .85rem; margin: 0; }

@media (max-width: 960px) { .em-why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .em-why-grid { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.em-process h2 { margin-bottom: 2rem; }
.em-process-list { display: flex; flex-direction: column; gap: 1.5rem; }
.em-process-list li { display: flex; gap: 1.4rem; align-items: flex-start; }
.em-process-num { font-family: var(--em-font-display); font-size: 1.8rem; color: var(--em-line); font-weight: 700; flex-shrink: 0; min-width: 3rem; }
.em-process-tag { display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--em-gold-2); margin-bottom: .3rem; }
.em-process-list h3 { font-size: 1.02rem; margin: 0 0 .3rem; }
.em-process-list p { margin: 0; font-size: .9rem; }

/* ---------- Branches teaser (index) ---------- */
.em-branches-teaser-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.em-branches-mini { display: flex; flex-direction: column; gap: .7rem; }
.em-branches-mini li { display: flex; flex-direction: column; background: var(--em-card); border: 1px solid var(--em-line); border-radius: var(--em-radius); padding: .8rem 1rem; }
.em-branches-mini strong { font-family: var(--em-font-display); font-size: .95rem; color: var(--em-ink); }
.em-branches-mini span { font-size: .82rem; color: var(--em-text-dim); }

@media (max-width: 780px) { .em-branches-teaser-grid { grid-template-columns: 1fr; } }

/* ---------- Branches full page ---------- */
.em-branches-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 2.5rem; }
.em-branches-list { display: flex; flex-direction: column; gap: .7rem; }
.em-branch-item {
  display: flex; align-items: center; gap: 1rem;
  background: var(--em-card);
  border: 1px solid var(--em-line);
  border-radius: var(--em-radius);
  padding: 1.2rem 1.4rem;
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.em-branch-item.is-active { border-color: var(--em-ink); background: #fffaf0; }
.em-branch-text { flex-grow: 1; display: flex; flex-direction: column; }
.em-branch-text strong { font-family: var(--em-font-display); color: var(--em-ink); font-size: 1.05rem; }
.em-branch-text span { font-size: .85rem; color: var(--em-text-dim); }
.em-branch-item svg { color: var(--em-text-dim); flex-shrink: 0; }
.em-branches-detail img { border-radius: var(--em-radius); margin-bottom: 1rem; aspect-ratio: 16/10; object-fit: cover; border: 1px solid var(--em-line); }
.em-branches-detail iframe { border-radius: var(--em-radius); margin-bottom: 1rem; }
.em-branch-contact { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--em-ink); color: #fff; border-radius: var(--em-radius); padding: 1rem 1.2rem; }
.em-branch-contact > div { display: flex; gap: .6rem; align-items: center; }
.em-branch-contact svg { color: var(--em-gold); flex-shrink: 0; }
.em-branch-contact a#branch-phone { font-family: var(--em-font-display); font-size: 1.05rem; font-weight: 700; }

@media (max-width: 860px) { .em-branches-grid { grid-template-columns: 1fr; } }

/* ---------- About page ---------- */
.em-about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 2.5rem; align-items: center; }
.em-about-grid img { border-radius: var(--em-radius); aspect-ratio: 4/3; object-fit: cover; border: 1px solid var(--em-line); }

@media (max-width: 780px) { .em-about-grid { grid-template-columns: 1fr; } }

.em-stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }

@media (max-width: 640px) { .em-stats-strip { grid-template-columns: repeat(2, 1fr); } }

.em-mission-card { background: var(--em-ink); color: #fff; border-radius: var(--em-radius); padding: 2.6rem; text-align: center; }
.em-mission-card .em-eyebrow { color: var(--em-gold); }
.em-mission-card h2 { color: #fff; max-width: 760px; margin-left: auto; margin-right: auto; }
.em-mission-card p { color: rgba(255,255,255,.8); max-width: 720px; margin: 0 auto; }

/* ---------- Reviews ---------- */
.em-reviews h2 { margin-bottom: 1.5rem; }
.em-reviews-score { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.em-reviews-score-num { font-family: var(--em-font-display); font-size: 2.6rem; color: var(--em-ink); font-weight: 700; }
.em-review-stars { color: var(--em-gold-2); display: flex; gap: .1rem; }
.em-reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-bottom: 2rem; }
.em-review-card { background: var(--em-card); border: 1px solid var(--em-line); border-radius: var(--em-radius); padding: 1.4rem; }
.em-review-card-stars { color: var(--em-gold-2); display: flex; gap: .1rem; margin-bottom: .7rem; }
.em-review-card p { font-size: .88rem; color: var(--em-ink); margin-bottom: .9rem; }
.em-review-name { font-family: var(--em-font-display); font-size: .85rem; font-weight: 700; color: var(--em-ink); }
.em-review-location { font-size: .74rem; color: var(--em-text-dim); }

#reviews-toggle-form { display: block; margin: 0 auto; }
.em-review-form { max-width: 460px; margin: 1.5rem auto 0; display: flex; flex-direction: column; gap: 1rem; text-align: left; }
.em-star-picker { display: flex; gap: .3rem; }
.em-star-btn { background: none; border: none; color: var(--em-line); cursor: pointer; padding: .1rem; }
.em-star-btn.is-active, .em-star-btn:hover { color: var(--em-gold-2); }

@media (max-width: 900px) { .em-reviews-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .em-reviews-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.em-faq h2 { margin-bottom: 2rem; }
.em-faq-list { display: flex; flex-direction: column; gap: .7rem; max-width: 780px; }
.em-faq-item { border: 1px solid var(--em-line); border-radius: var(--em-radius); padding: 1rem 1.3rem; background: var(--em-card); }
.em-faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--em-font-display);
  font-size: .98rem;
  font-weight: 600;
  color: var(--em-ink);
  gap: 1rem;
}
.em-faq-item summary::-webkit-details-marker { display: none; }
.em-faq-item summary svg { transition: transform .2s; flex-shrink: 0; color: var(--em-gold-2); }
.em-faq-item[open] summary svg { transform: rotate(90deg); }
.em-faq-item p { margin: .8rem 0 0; font-size: .89rem; }

/* ---------- Forms ---------- */
.em-form, .em-contact-form-wrap { display: flex; flex-direction: column; gap: 1rem; }
.em-form-row { display: flex; flex-direction: column; gap: .4rem; }
.em-form-row label { font-size: .78rem; color: var(--em-text-dim); font-weight: 700; }
.em-form-row input, .em-form-row select, .em-form-row textarea {
  background: #fff;
  border: 1px solid var(--em-line);
  border-radius: 10px;
  padding: .7rem .9rem;
  color: var(--em-ink);
  font-family: var(--em-font-body);
  font-size: .92rem;
}
.em-form-row input:focus, .em-form-row select:focus, .em-form-row textarea:focus {
  outline: 2px solid var(--em-gold);
  outline-offset: 1px;
}
.em-form-status { font-size: .85rem; color: var(--em-gold-2); min-height: 1.2em; font-weight: 700; }
.em-form-submit { align-self: flex-start; }

/* ---------- CTA final (index) ---------- */
.em-cta-final-card {
  background: var(--em-ink);
  border-radius: var(--em-radius);
  padding: 3rem;
  text-align: center;
}
.em-cta-final-card .em-eyebrow { color: var(--em-gold); }
.em-cta-final-card h2 { color: #fff; }
.em-cta-final-card p { color: rgba(255,255,255,.8); max-width: 600px; margin: 0 auto 1.5rem; }
.em-cta-final-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

@media (max-width: 640px) { .em-cta-final-card { padding: 2rem 1.5rem; } }

/* ---------- Contact page ---------- */
.em-contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 2.5rem; }
.em-contact-info ul { display: flex; flex-direction: column; gap: 1.3rem; margin-bottom: 1.5rem; }
.em-contact-info li { display: flex; gap: .9rem; align-items: flex-start; }
.em-contact-info svg { color: var(--em-green); flex-shrink: 0; margin-top: .1rem; }
.em-contact-info strong { display: block; font-family: var(--em-font-display); font-size: .92rem; margin-bottom: .2rem; }
.em-contact-info span { display: block; font-size: .9rem; color: var(--em-text-dim); }
.em-contact-info a { color: var(--em-green); }
.em-contact-form-wrap { border: 1px solid var(--em-line); border-radius: var(--em-radius); padding: 1.8rem; background: var(--em-card); }
.em-contact-social { margin-top: 1rem; }

@media (max-width: 860px) { .em-contact-grid { grid-template-columns: 1fr; } }

.em-map iframe { border-radius: var(--em-radius); }

/* ---------- Thank-you page ---------- */
.em-thanks { display: flex; justify-content: center; padding-top: 5.5rem; padding-bottom: 6rem; }
.em-thanks-card {
  max-width: 580px;
  text-align: center;
  background: var(--em-card);
  border: 1px solid var(--em-line);
  border-radius: var(--em-radius);
  padding: 3rem 2.2rem;
}
.em-thanks-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--em-gold);
  color: var(--em-ink);
  margin-bottom: 1.2rem;
}
.em-thanks-card h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.em-thanks-list { text-align: left; margin: 1.2rem 0 1.8rem; }
.em-thanks-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- CTA strip ---------- */
.em-cta-strip {
  text-align: center;
  background: var(--em-card);
  border: 1px solid var(--em-line);
  border-radius: var(--em-radius);
  padding: 3rem 1.5rem;
}
.em-cta-strip h2 { margin-bottom: 1.4rem; }

/* ---------- Footer ---------- */
.em-footer { background: var(--em-ink); color: #fff; padding: 3.5rem 1.5rem 2rem; }
.em-footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
.em-footer-col h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.55); margin-bottom: 1rem; font-family: var(--em-font-body); font-weight: 700; }
.em-footer-col ul { display: flex; flex-direction: column; gap: .55rem; }
.em-footer-col a { font-size: .86rem; color: rgba(255,255,255,.78); }
.em-footer-col a:hover { color: var(--em-gold); }
.em-footer-col p { color: rgba(255,255,255,.7); font-size: .86rem; }
.em-footer-rating { display: flex; align-items: center; gap: .4rem; color: var(--em-gold) !important; font-size: .82rem; margin: 1rem 0; }
.em-footer-contact li { display: flex; gap: .5rem; align-items: flex-start; font-size: .85rem; }
.em-footer-social { display: flex; gap: .8rem; }
.em-footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.85); }
.em-footer-social a:hover { background: var(--em-gold); border-color: var(--em-gold); color: var(--em-ink); }
.em-footer-bottom { max-width: 1200px; margin: 2.5rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.15); text-align: center; font-size: .76rem; color: rgba(255,255,255,.55); }

@media (max-width: 900px) { .em-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .em-footer-grid { grid-template-columns: 1fr; } }

/* ---------- Legal pages ---------- */
.em-legal { max-width: 780px; }
.em-legal h1 { margin-top: 2rem; }
.em-legal-updated { color: var(--em-text-dim); font-size: .85rem; }
.em-legal-body h2 { font-size: 1.1rem; margin-top: 2rem; }

/* ---------- Reveal animation ---------- */
.reveal, .reveal-l, .reveal-r { opacity: 0; transition: opacity .7s ease, transform .7s ease; }
.reveal { transform: translateY(24px); }
.reveal-l { transform: translateX(-24px); }
.reveal-r { transform: translateX(24px); }
.reveal.is-visible, .reveal-l.is-visible, .reveal-r.is-visible { opacity: 1; transform: none; }

@media (max-width: 420px) {
  .em-brand { font-size: 1.05rem; }
}
