:root {
  --red: #c00000;
  --red-dark: #8e0000;
  --ink: #1a1a1a;
  --muted: #5c5856;
  --line: #e4e0dc;
  --paper: #f6f3ef;
  --white: #ffffff;
  --dark: #141414;
  --dark-2: #1e1e1e;
  --shadow: 0 10px 30px rgba(20, 20, 20, 0.08);
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --max: 1120px;
  --header: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.5rem; }
p { margin: 0 0 0.8rem; }
button, [role="button"], .btn { cursor: pointer; font-family: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: var(--white);
  padding: 0.6rem 0.9rem; z-index: 20;
}
.skip:focus { top: 0.5rem; }

.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
.section { padding: 4rem 0; }
.section h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.kicker {
  color: var(--red); font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; font-size: 0.78rem; margin-bottom: 0.4rem;
}
.lede { color: var(--muted); max-width: 42rem; }

.topbar {
  background: var(--dark); color: #f3f3f3; font-size: 0.92rem;
}
.topbar .wrap, .footer-nav .wrap {
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  min-height: 42px; flex-wrap: wrap; padding-block: 0.35rem;
}
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: #ffd0d0; }
.top-links, .contact-inline { display: flex; gap: 0.9rem; flex-wrap: wrap; align-items: center; }
.top-links a { opacity: 0.92; }

.site-header {
  position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: var(--header); gap: 1rem; }
.logo img { width: 210px; height: auto; }
.nav-toggle {
  display: none; border: 1px solid var(--line); background: var(--white);
  min-width: 44px; min-height: 44px; border-radius: 8px;
}
.nav-toggle span, .nav-toggle span:before, .nav-toggle span:after {
  display: block; width: 18px; height: 2px; background: var(--ink); position: relative; margin: 0 auto;
}
.nav-toggle span:before, .nav-toggle span:after { content: ""; position: absolute; left: 0; }
.nav-toggle span:before { top: -6px; }
.nav-toggle span:after { top: 6px; }

.menu { display: flex; gap: 0.15rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.menu > li { position: relative; }
.menu > li > a, .menu > li > button {
  appearance: none; background: none; border: 0; color: var(--ink);
  font: inherit; font-weight: 600; font-size: 0.98rem;
  padding: 0.7rem 0.55rem; text-decoration: none; min-height: 44px;
}
.menu > li > a:hover, .menu > li > button:hover,
.menu > li > a[aria-current="page"] { color: var(--red); }
.submenu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 280px;
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow); padding: 0.4rem; z-index: 40;
}
.submenu a {
  display: block; padding: 0.55rem 0.7rem; color: var(--ink); text-decoration: none;
  border-radius: 8px; font-weight: 600;
}
.submenu a:hover { background: var(--paper); color: var(--red); }
@media (hover: hover) and (min-width: 1080px) {
  .menu > li:hover > .submenu, .menu > li:focus-within > .submenu { display: block; }
}
.menu > li.open > .submenu { display: block; }

.hero { padding: 2.5rem 0 1rem; background:
  linear-gradient(180deg, var(--paper) 0%, #fff 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 2rem; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4vw, 3.35rem); max-width: 14ch; }
.hero .subhead { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.8rem; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem 1rem; }
.ticks li { padding-left: 1.1rem; position: relative; }
.ticks li:before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--red); position: absolute; left: 0; top: 0.55rem; }
.hero-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; align-items: center; }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; border-radius: 18px; object-fit: cover; max-height: 460px; }
.hero-photo:after {
  content: ""; position: absolute; inset: auto -12px -12px auto; width: 42%; height: 28%;
  border-right: 8px solid var(--red); border-bottom: 8px solid var(--red); border-radius: 0 0 16px 0; pointer-events: none;
}
.phone-large { font-size: 1.35rem; font-weight: 800; color: var(--ink); text-decoration: none; }
.phone-large:hover { color: var(--red); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 46px; padding: 0.55rem 1.05rem; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; text-decoration: none; line-height: 1;
}
.btn-red { background: var(--red); color: white; border-color: var(--red); }
.btn-red:hover { background: var(--red-dark); color: white; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { border-color: var(--red); color: var(--red); }
.btn-white { background: white; color: var(--red); border-color: white; }
.btn-white:hover { color: var(--red-dark); }

.band {
  background: var(--red); color: white; padding: 1.6rem 0;
}
.band .wrap { display: flex; justify-content: space-between; gap: 1rem; align-items: center; flex-wrap: wrap; }
.band h2 { color: white; font-size: 1.6rem; margin: 0; }
.band p { margin: 0.2rem 0 0; color: #ffe4e4; }

.tabs { display: flex; gap: 0.4rem; flex-wrap: wrap; margin: 1.2rem 0 1.4rem; border-bottom: 1px solid var(--line); }
.tabs button {
  background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px;
  font: inherit; font-weight: 700; padding: 0.7rem 0.8rem; min-height: 44px; color: var(--muted);
}
.tabs button[aria-selected="true"] { color: var(--red); border-bottom-color: var(--red); }
.tab-panel[hidden] { display: none; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card {
  border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1rem 1.1rem;
  background: white; display: flex; flex-direction: column; gap: 0.35rem; min-height: 100%;
  transition: border-color 160ms ease, transform 160ms ease;
}
.card:hover { border-color: #e7b4b4; transform: translateY(-2px); }
.card img.icon { width: 52px; height: 52px; object-fit: contain; }
.card h3 { font-size: 1.15rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--red); }
.meta { color: var(--muted); font-size: 0.95rem; margin: 0; }
.was { text-decoration: line-through; color: #8a8582; margin-right: 0.35rem; }
.card .more { margin-top: auto; font-weight: 700; padding-top: 0.4rem; }

.why { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 2rem; align-items: center; }
.why img { border-radius: 16px; width: 100%; object-fit: cover; max-height: 520px; }
.why-list { display: grid; gap: 0.8rem; }
.why-item { border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 12px; padding: 0.9rem 1rem; background: white; }
.why-item h3 { font-size: 1.15rem; }

.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.review, .cert-card, .post-card, .job-note {
  border: 1px solid var(--line); border-radius: 14px; padding: 1rem; background: white;
}
.review header { display: flex; justify-content: space-between; gap: 0.5rem; align-items: baseline; }
.stars { color: var(--red); letter-spacing: 0.08em; font-size: 0.85rem; }
.google-pill {
  display: inline-flex; gap: 0.7rem; align-items: center; background: var(--paper);
  border-radius: 999px; padding: 0.45rem 0.8rem; font-weight: 700; margin-bottom: 1rem;
}

.logo-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.8rem; align-items: center; }
.logo-grid li { list-style: none; background: white; border: 1px solid var(--line); border-radius: 12px; min-height: 84px; display: grid; place-items: center; padding: 0.6rem; }
.logo-grid img { max-height: 48px; width: auto; max-width: 120px; object-fit: contain; filter: grayscale(1); }
.logo-grid li:hover img { filter: none; }

.scroller { display: flex; gap: 0.8rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.4rem; max-width: 100%; }
.scroller figure, .cert-shot {
  scroll-snap-align: start; flex: 0 0 180px; margin: 0;
}
.scroller img { width: 180px; height: 320px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); }
.class-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.7rem; }
.class-grid figure { margin: 0; }
.class-grid img { width: 100%; height: 140px; object-fit: cover; border-radius: 10px; background: var(--paper); }
.class-grid figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.3rem; }

.faq details { border-bottom: 1px solid var(--line); padding: 0.8rem 0; }
.faq summary { font-weight: 700; cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.faq details p { color: var(--muted); }

.form {
  display: grid; gap: 0.7rem; background: white; border: 1px solid var(--line);
  border-radius: 16px; padding: 1rem; box-shadow: var(--shadow);
}
.form label { display: grid; gap: 0.25rem; font-weight: 700; font-size: 0.92rem; }
.form input, .form select, .form textarea {
  font: inherit; border: 1px solid #d5d0cb; border-radius: 10px; padding: 0.65rem 0.7rem;
  min-height: 46px; background: white; color: var(--ink); width: 100%; max-width: 100%; min-width: 0;
}
.form textarea { min-height: 110px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-note, .error { font-size: 0.92rem; }
.error { color: var(--red-dark); font-weight: 700; }
.success { background: #f3f8f3; border: 1px solid #cfe3cf; border-radius: 12px; padding: 0.8rem; }

.page-hero { padding: 2.2rem 0 0.4rem; }
.crumbs { font-size: 0.92rem; color: var(--muted); margin-bottom: 0.6rem; }
.crumbs a { color: var(--muted); }
.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr); gap: 1.5rem; align-items: start; }
.prose h2 { margin-top: 1.6rem; font-size: 1.45rem; }
.prose ul, .module { padding-left: 1.1rem; }
.module { margin: 0 0 1rem; }
.module h3 { font-size: 1.05rem; }
.side-card { position: sticky; top: calc(var(--header) + 12px); }

table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
th, td { text-align: left; padding: 0.65rem 0.5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }

.map { border: 0; width: 100%; height: 280px; border-radius: 14px; }

.site-footer { background: var(--dark); color: #eceae8; padding-top: 2.5rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #ffb4b4; }
.foot-grid { display: grid; grid-template-columns: 1.15fr repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.site-footer h2 { color: white; font-size: 1rem; letter-spacing: 0.04em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.35rem 0; }
.footer-nav { border-top: 1px solid #2c2c2c; margin-top: 1.5rem; font-size: 0.92rem; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 0.7rem 1rem; list-style: none; margin: 0; padding: 0.6rem 0; }
.legal { border-top: 1px solid #2c2c2c; padding: 0.9rem 0 1.2rem; color: #bdb8b4; font-size: 0.92rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.socials { display: flex; gap: 0.8rem; }

.callbar { display: none; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: white; border-bottom: 1px solid var(--line); flex-direction: column;
    align-items: stretch; padding: 0.4rem 1rem 1rem; max-height: calc(100vh - var(--header)); overflow: auto;
  }
  .site-header.open .menu { display: flex; }
  .submenu { display: block; position: static; box-shadow: none; border: 0; min-width: 0; padding: 0 0 0.5rem 0.4rem; }
  .menu > li.open > .submenu { display: block; }
  .hero-grid, .why, .split, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .cards, .reviews { grid-template-columns: 1fr 1fr; }
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
  .class-grid { grid-template-columns: repeat(3, 1fr); }
  .side-card { position: static; }
}
@media (max-width: 700px) {
  .ticks, .cards, .reviews, .class-grid { grid-template-columns: 1fr; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .top-links { display: none; }
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0;
    background: white; border-top: 1px solid var(--line); z-index: 25; padding: 0.45rem;
    gap: 0.45rem;
  }
  .callbar a { text-decoration: none; }
  body { padding-bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
}
