/*
Theme Name: Strafrecht Ablass 2026
Theme URI: https://ablass-strafrecht.de/
Author: OneHand IT
Description: Schlankes, barrierearmes Kanzlei-Theme mit lokaler SEO-Basis.
Version: 2.2.0
Text Domain: infoicon
*/

:root {
  --navy-950: #07172c;
  --navy-900: #0b2342;
  --navy-800: #12345d;
  --blue-700: #1d4777;
  --gold-500: #c5a46b;
  --gold-300: #dfc99e;
  --sand-100: #f6f2eb;
  --sand-50: #fbf9f5;
  --white: #ffffff;
  --ink: #17202b;
  --muted: #5d6875;
  --line: #dfe4e9;
  --success: #1d6b4f;
  --error: #a22a2a;
  --shadow-sm: 0 10px 30px rgba(7, 23, 44, 0.08);
  --shadow-lg: 0 28px 70px rgba(7, 23, 44, 0.16);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--navy-950);
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
.button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.7em;
  color: var(--navy-950);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.65rem, 6vw, 5.5rem);
}

h2 {
  font-size: clamp(2.1rem, 4vw, 3.55rem);
}

h3 {
  font-size: clamp(1.4rem, 2vw, 1.85rem);
}

h4 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1.25em;
}

ul,
ol {
  margin-top: 0;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.narrow {
  width: min(calc(100% - 40px), 820px);
  margin-inline: auto;
}

.section {
  padding: clamp(72px, 9vw, 120px) 0;
}

.section--compact {
  padding: clamp(56px, 7vw, 88px) 0;
}

.section--sand {
  background: var(--sand-50);
}

.section--navy {
  color: rgba(255, 255, 255, 0.86);
  background: var(--navy-950);
}

.section--navy h2,
.section--navy h3,
.section--navy h4 {
  color: var(--white);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--blue-700);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 2px;
  background: var(--gold-500);
  content: "";
}

.section--navy .eyebrow,
.hero .eyebrow {
  color: var(--gold-300);
}

.section-lead {
  max-width: 760px;
  margin-bottom: 48px;
  color: var(--muted);
  font-size: 1.12rem;
}

.section--navy .section-lead {
  color: rgba(255, 255, 255, 0.72);
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 23px;
  border: 1px solid var(--navy-950);
  border-radius: 999px;
  color: var(--white);
  background: var(--navy-950);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  color: var(--white);
  background: var(--blue-700);
  border-color: var(--blue-700);
  transform: translateY(-2px);
}

.button--gold {
  color: var(--navy-950);
  background: var(--gold-300);
  border-color: var(--gold-300);
}

.button--gold:hover {
  color: var(--navy-950);
  background: var(--white);
  border-color: var(--white);
}

.button--ghost {
  color: var(--navy-950);
  background: transparent;
  border-color: rgba(7, 23, 44, 0.35);
}

.button--ghost:hover {
  color: var(--navy-950);
  background: var(--sand-100);
  border-color: var(--navy-950);
}

.button--light {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
}

.button--light:hover {
  color: var(--navy-950);
  background: var(--white);
  border-color: var(--white);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  padding: 11px 16px;
  color: var(--white);
  background: var(--navy-950);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.urgent-bar {
  color: rgba(255, 255, 255, 0.88);
  background: var(--navy-950);
  font-size: 0.82rem;
}

.urgent-bar__inner {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.urgent-bar p {
  margin: 0;
}

.urgent-bar a {
  flex: 0 0 auto;
  color: var(--gold-300);
  font-weight: 800;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(7, 23, 44, 0.08);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

.site-logo img {
  width: 188px;
  max-height: 58px;
  object-fit: contain;
}

.main-nav {
  margin-left: auto;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(17px, 2vw, 30px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  padding: 12px 0;
  color: var(--navy-950);
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  height: 2px;
  background: var(--gold-500);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav .is-current a::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--navy-950);
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-950);
}

.hero::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(197, 164, 107, 0.16), transparent 36%),
    linear-gradient(115deg, transparent 55%, rgba(255, 255, 255, 0.04) 55%);
  content: "";
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  min-height: min(760px, calc(100vh - 122px));
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr);
  align-items: stretch;
}

.hero__content {
  display: flex;
  max-width: 690px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(80px, 10vw, 132px) 70px clamp(74px, 8vw, 110px) 0;
}

.hero h1 {
  max-width: 820px;
  color: var(--white);
  font-size: clamp(3rem, 6.5vw, 6.2rem);
}

.hero h1 em {
  color: var(--gold-300);
  font-weight: inherit;
}

.hero__lead {
  max-width: 650px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
}

.hero__media {
  position: relative;
  min-height: 620px;
  overflow: hidden;
}

.hero__media::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, var(--navy-950) 0%, transparent 14%), linear-gradient(0deg, rgba(7, 23, 44, 0.42), transparent 38%);
  content: "";
  pointer-events: none;
}

.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: opacity;
}

.hero__slide--office {
  z-index: 0;
  opacity: 1;
  object-position: left center;
  animation: ablass-hero-office 14s ease-in-out infinite;
}

.hero__slide--portrait {
  z-index: 1;
  opacity: 0;
  object-position: center 18%;
  animation: ablass-hero-portrait 14s ease-in-out infinite;
}

@keyframes ablass-hero-office {
  0%, 42% { opacity: 1; }
  50%, 92% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes ablass-hero-portrait {
  0%, 42% { opacity: 0; }
  50%, 92% { opacity: 1; }
  100% { opacity: 0; }
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 28px 0 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  font-weight: 700;
  list-style: none;
}

.hero__facts li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__facts li::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-500);
  content: "";
}

.emergency-strip {
  position: relative;
  z-index: 2;
  margin-top: -1px;
  color: var(--navy-950);
  background: var(--gold-300);
}

.emergency-strip__inner {
  display: grid;
  min-height: 92px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
}

.emergency-strip__number {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(7, 23, 44, 0.28);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 1.35rem;
}

.emergency-strip strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
}

.emergency-strip p {
  margin: 2px 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
}

.emergency-strip a {
  color: var(--navy-950);
  font-weight: 800;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  display: flex;
  min-height: 300px;
  flex-direction: column;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card:hover {
  border-color: var(--gold-300);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.card__number {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  place-items: center;
  color: var(--navy-950);
  background: var(--sand-100);
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 850;
}

.card h3 {
  margin-bottom: 12px;
}

.card p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--navy-950);
  font-size: 0.86rem;
  font-weight: 850;
  text-decoration: none;
}

.card__link::after {
  content: "→";
  transition: transform 180ms ease;
}

.card:hover .card__link::after {
  transform: translateX(4px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(48px, 8vw, 105px);
}

.split--reverse {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.split__media {
  position: relative;
}

.split__media img {
  width: 100%;
  max-height: 720px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.split__media::before {
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 52%;
  height: 52%;
  border-right: 2px solid var(--gold-500);
  border-bottom: 2px solid var(--gold-500);
  border-radius: 0 0 var(--radius-lg) 0;
  content: "";
}

.split__content > p,
.legal-content > p {
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 34px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 32px;
}

.check-list li::before {
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 16px;
  height: 9px;
  border-bottom: 2px solid var(--gold-500);
  border-left: 2px solid var(--gold-500);
  content: "";
  transform: rotate(-45deg);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.14);
}

.step {
  min-height: 280px;
  padding: 36px 30px;
  background: var(--navy-950);
}

.step__number {
  margin-bottom: 54px;
  color: var(--gold-300);
  font-family: Georgia, serif;
  font-size: 2rem;
}

.step p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
}

.quote {
  margin: 0;
  padding: clamp(32px, 5vw, 58px);
  border-left: 3px solid var(--gold-500);
  background: var(--sand-50);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.quote p {
  color: var(--navy-950);
  font-family: Georgia, serif;
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
  line-height: 1.35;
}

.quote cite {
  color: var(--muted);
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.faq-list summary {
  position: relative;
  padding: 22px 58px 22px 24px;
  color: var(--navy-950);
  font-weight: 800;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 50%;
  right: 24px;
  font-size: 1.35rem;
  content: "+";
  transform: translateY(-50%);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  margin: 0;
  padding: 0 24px 24px;
  color: var(--muted);
}

.cta-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(38px, 7vw, 76px);
  color: rgba(255, 255, 255, 0.8);
  background: var(--navy-900);
  border-radius: var(--radius-lg);
}

.cta-panel::after {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(223, 201, 158, 0.3);
  border-radius: 50%;
  content: "";
}

.cta-panel h2 {
  max-width: 780px;
  color: var(--white);
}

.cta-panel p {
  max-width: 670px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(38px, 5vw, 64px) 0;
  color: rgba(255, 255, 255, 0.76);
  background: var(--navy-950);
}

.page-hero::after {
  position: absolute;
  right: -12vw;
  bottom: -260px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(223, 201, 158, 0.2);
  border-radius: 50%;
  content: "";
}

.page-hero h1 {
  max-width: 950px;
  color: var(--white);
  font-size: clamp(2.15rem, 4.5vw, 3.5rem);
}

.page-hero__lead {
  max-width: 760px;
  margin-bottom: 0;
  font-size: 1.15rem;
}

.breadcrumbs {
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.breadcrumbs a {
  color: var(--gold-300);
  text-decoration: none;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 72px;
}

.prose > *:first-child {
  margin-top: 0;
}

.prose figure {
  margin: 40px 0;
}

.prose figure img {
  width: 100%;
  border-radius: var(--radius-md);
}

.prose h2 {
  margin-top: 1.45em;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
}

.prose h3 {
  margin-top: 1.55em;
}

.prose p,
.prose li {
  color: #3d4854;
}

.prose a {
  font-weight: 700;
}

.prose .lead {
  color: var(--navy-900);
  font-size: 1.25rem;
  line-height: 1.6;
}

.info-box {
  margin: 34px 0;
  padding: 26px;
  border-left: 3px solid var(--gold-500);
  background: var(--sand-50);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.info-box p:last-child {
  margin-bottom: 0;
}

.service-sidebar {
  position: sticky;
  top: 122px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--sand-50);
}

.service-sidebar h2 {
  font-size: 1.65rem;
}

.service-sidebar ul {
  display: grid;
  gap: 8px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.service-sidebar li a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--navy-950);
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 70px;
}

.contact-cards {
  display: grid;
  gap: 14px;
}

.contact-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--sand-50);
}

.contact-card span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.contact-card a,
.contact-card strong {
  color: var(--navy-950);
  font-family: Georgia, serif;
  font-size: 1.18rem;
  font-weight: 600;
  text-decoration: none;
}

.contact-form {
  padding: clamp(26px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--navy-950);
  font-size: 0.82rem;
  font-weight: 800;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid #c8d0d8;
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
}

.field textarea {
  min-height: 170px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--blue-700);
  outline: 2px solid rgba(29, 71, 119, 0.15);
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 5px 0 18px;
  color: var(--muted);
  font-size: 0.82rem;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex: 0 0 auto;
}

.form-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.8rem;
}

.form-status {
  margin-bottom: 22px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 750;
}

.form-status--success {
  color: var(--success);
  background: #e9f5ef;
}

.form-status--error {
  color: var(--error);
  background: #fbecec;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
}

.legal-content h2 {
  margin-top: 1.6em;
  font-size: 1.8rem;
}

.legal-content h3 {
  margin-top: 1.4em;
  font-size: 1.3rem;
}

.legal-content address {
  font-style: normal;
}

.site-footer {
  padding: 74px 0 30px;
  color: rgba(255, 255, 255, 0.65);
  background: #051224;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 0.8fr 1fr;
  gap: 45px;
  padding-bottom: 54px;
}

.footer-brand img {
  width: 190px;
  margin-bottom: 22px;
}

.footer-brand p {
  max-width: 360px;
  font-size: 0.9rem;
}

.site-footer h2 {
  margin-bottom: 20px;
  color: var(--white);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--gold-300);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.77rem;
}

.mobile-actions {
  display: none;
}

.empty-state {
  padding: 90px 0;
  text-align: center;
}

.empty-state p {
  color: var(--muted);
}

@media (max-width: 1080px) {
  .site-header__cta {
    display: none;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body {
    font-size: 16px;
  }

  .urgent-bar__inner {
    justify-content: center;
  }

  .urgent-bar p {
    display: none;
  }

  .site-header__inner {
    min-height: 74px;
  }

  .site-logo img {
    width: 156px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    height: calc(100vh - 74px);
    padding: 26px 20px 100px;
    background: var(--white);
    overflow-y: auto;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    display: grid;
    align-items: stretch;
    gap: 0;
  }

  .main-nav a {
    display: block;
    padding: 17px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }

  .main-nav a::after {
    display: none;
  }

  .nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero__grid {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero__content {
    max-width: none;
    padding: 76px 0 62px;
  }

  .hero h1 {
    max-width: 760px;
  }

  .hero__media {
    min-height: 500px;
    margin-inline: -20px;
  }

  .hero__media::after {
    background: linear-gradient(180deg, var(--navy-950), transparent 14%), linear-gradient(0deg, rgba(7, 23, 44, 0.38), transparent 38%);
  }

  .split,
  .split--reverse,
  .contact-grid,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .split__content {
    order: -1;
  }

  .service-sidebar {
    position: static;
  }
}

@media (max-width: 660px) {
  .container,
  .narrow {
    width: min(calc(100% - 30px), var(--container));
  }

  .section {
    padding: 64px 0;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 14vw, 4rem);
  }

  .hero__media {
    min-height: 430px;
    margin-inline: -15px;
  }

  .hero__facts {
    display: grid;
  }

  .button-row .button {
    width: 100%;
  }

  .emergency-strip__inner {
    grid-template-columns: auto 1fr;
    padding: 17px 0;
  }

  .emergency-strip__inner > a {
    grid-column: 2;
  }

  .card-grid,
  .steps,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: 265px;
    padding: 28px;
  }

  .step {
    min-height: 220px;
  }

  .step__number {
    margin-bottom: 28px;
  }

  .field--full {
    grid-column: auto;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    padding-bottom: 86px;
  }

  .mobile-actions {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 900;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    background: var(--navy-950);
  }

  .mobile-actions a {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.86rem;
    font-weight: 850;
    text-decoration: none;
  }

  .mobile-actions a + a {
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--navy-950);
    background: var(--gold-300);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .hero__slide {
    animation: none !important;
  }

  .hero__slide--office {
    opacity: 1;
  }

  .hero__slide--portrait {
    opacity: 0;
  }
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.article-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.article-card h2,
.article-card h3 {
  margin: 8px 0 14px;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.article-card h2 a,
.article-card h3 a {
  color: var(--navy-950);
  text-decoration: none;
}

.article-card h2 a:hover,
.article-card h3 a:hover {
  color: var(--blue-700);
}

.article-card p:not(.article-card__meta) {
  flex: 1;
}

.article-card__meta,
.article-date,
.author-box__meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.section-action {
  margin-top: 30px;
}

.topic-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.topic-links a {
  padding: 9px 14px;
  color: var(--navy-900);
  background: var(--sand-100);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}

.topic-links a:hover {
  background: var(--gold-300);
  border-color: var(--gold-300);
}

.author-box {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-top: 48px;
  padding: 26px;
  background: var(--sand-100);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.author-box img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
}

.author-box h2 {
  margin: 2px 0 8px;
  font-size: 1.45rem;
}

.author-box p {
  margin: 0 0 8px;
}

.related-guides {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.related-guides .article-grid {
  grid-template-columns: 1fr;
  margin-top: 24px;
}

.source-list {
  margin-top: 34px;
  padding: 22px 24px;
  background: var(--sand-50);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--radius-sm);
}

.source-list h2 {
  margin-top: 0;
  font-size: 1.25rem;
}

.source-list li {
  margin: 6px 0;
}

@media (max-width: 900px) {
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .article-grid,
  .author-box {
    grid-template-columns: 1fr;
  }

  .author-box img {
    width: 96px;
    height: 96px;
  }
}

/* Clear contact paths and readable text on dark panels. */
.cta-panel .eyebrow,
.page-hero .eyebrow,
.section--navy .step a {
  color: var(--gold-300);
}
.section--navy .step a {
  text-underline-offset: 3px;
}
@media (max-width: 660px) {
  .page-hero { padding: 30px 0; }
  .page-hero .breadcrumbs { margin-bottom: 14px; }
  .page-hero__lead { font-size: 1rem; }
  .page-hero + .section { padding-top: 36px; }
  .mobile-actions { padding-bottom: env(safe-area-inset-bottom, 0px); }
}

/* Keep the main message and contact actions within easy reach. */
.hero h1 { font-size: clamp(2.4rem, 3.6vw, 3.25rem); }
.hero h1 em { display: block; margin-top: 0.5em; font-size: 0.62em; line-height: 1.3; }
.hero__content { padding: 56px 44px 56px 0; }
@media (max-width: 900px) {
  .hero__content { padding: 42px 0; }
}
@media (max-width: 660px) {
  .hero__content { padding: 30px 0 36px; }
  .hero h1 { font-size: 2.15rem; }
  .hero h1 em { font-size: 0.7em; }
  .hero__lead { font-size: 1rem; margin-bottom: 22px; }
}
