/* ==========================================================================
   Forch Bedachungen GmbH — Homepage Template
   Plain static CSS, no frameworks. Brand red from logo: #DB0F15
   ========================================================================== */

:root {
  --color-brand: #DB0F15;
  --color-brand-dark: #B50C11;
  --color-charcoal: #171412;
  --color-charcoal-2: #1C1815;
  --color-text: #2A2724;
  --color-muted: #6E6862;
  --color-cream: #FAF7F4;
  --color-cream-2: #F5F1EC;
  --color-white: #FFFFFF;
  --color-border: rgba(0, 0, 0, 0.08);
  --radius-card: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 12px 32px -12px rgba(0, 0, 0, 0.12);
  --container-width: 1240px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-height: 64px;
}

/* ---------- Reset / Base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 32px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  color: var(--color-charcoal);
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--color-brand);
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

address {
  font-style: normal;
}

.container {
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
}

/* ---------- Focus & Skip link ---------- */

:focus-visible {
  outline: 3px solid rgba(219, 15, 21, 0.5);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--color-charcoal);
  color: var(--color-white);
  border-radius: 10px;
  font-weight: 650;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

/* ---------- Typography helpers ---------- */

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-brand);
}

.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 750;
  letter-spacing: -0.015em;
  margin-bottom: 0.6em;
}

.section-title-line::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 22px;
  border-radius: 2px;
  background: var(--color-brand);
}

.section {
  padding-block: clamp(64px, 8vw, 104px);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head-center {
  margin-inline: auto;
  text-align: center;
}

.section-head-split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.9em 1.6em;
  border: 0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease,
    box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn .icon {
  width: 1.1em;
  height: 1.1em;
  transition: transform 0.2s ease;
}

.btn:hover .icon {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--color-brand);
  color: var(--color-white);
  box-shadow: 0 8px 20px -8px rgba(219, 15, 21, 0.55);
}

.btn-primary:hover {
  background: var(--color-brand-dark);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-white);
  border: 1.5px solid rgba(255, 255, 255, 0.65);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--color-white);
  transform: translateY(-1px);
}

.btn-white {
  background: var(--color-white);
  color: var(--color-brand);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.35);
}

.btn-white:hover {
  background: var(--color-cream);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid rgba(0, 0, 0, 0.16);
}

.btn-outline:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
  transform: translateY(-1px);
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-top: 14px;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-height);
  padding-block: 8px;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled .header-inner {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  height: 40px;
  width: auto;
}

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

.main-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
}

.main-nav a {
  position: relative;
  display: inline-block;
  padding-block: 6px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--color-text);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--color-brand);
  transition: right 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  right: 0;
}

.main-nav a.is-active {
  color: var(--color-charcoal);
}

.header-cta {
  flex-shrink: 0;
  padding: 0.72em 1.35em;
}

/* Burger */

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-charcoal);
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.nav-toggle-bar:nth-child(1) { top: 15px; }
.nav-toggle-bar:nth-child(2) { top: 21px; }
.nav-toggle-bar:nth-child(3) { top: 27px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

/* Mobile menu panel */

.mobile-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: clamp(20px, 4vw, 40px);
  right: clamp(20px, 4vw, 40px);
  padding: 16px;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
}

.mobile-menu li + li {
  border-top: 1px solid var(--color-border);
}

.mobile-menu li a {
  display: block;
  padding: 13px 8px;
  font-weight: 600;
  color: var(--color-text);
}

.mobile-menu li a:hover {
  color: var(--color-brand);
}

.mobile-menu-cta {
  width: 100%;
  margin-top: 12px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 92vh;
  min-height: 92svh;
  background: var(--color-charcoal);
  color: var(--color-white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(14, 11, 10, 0.78) 0%, rgba(14, 11, 10, 0.42) 45%, rgba(14, 11, 10, 0.08) 78%),
    linear-gradient(to top, rgba(14, 11, 10, 0.6) 0%, rgba(14, 11, 10, 0) 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-block: auto;
  padding-top: calc(var(--header-height) + 56px);
  padding-bottom: clamp(28px, 4vh, 48px);
}

.hero-eyebrow {
  color: #F4524F;
}

.hero-title {
  margin: 0 0 0.35em;
  font-size: clamp(3rem, 7vw, 5.25rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--color-white);
}

.hero-title span {
  display: block;
}

.hero-title-accent {
  color: var(--color-brand);
}

.hero-subline {
  max-width: 34ch;
  margin-bottom: 1.8em;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Trust strip */

.trust-strip-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(18px, 3vh, 30px);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(18, 14, 13, 0.62);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-card);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.5);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
}

.trust-item + .trust-item {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.trust-icon {
  width: 42px;
  height: 42px;
  padding: 8px;
  flex-shrink: 0;
  color: #F4524F;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  box-sizing: border-box;
}

.trust-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.trust-text strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-white);
  hyphens: auto;
  overflow-wrap: break-word;
}

.trust-text span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.62);
}

/* ---------- About ---------- */

.section-about {
  background: var(--color-cream);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(44px, 6vw, 88px);
  align-items: center;
}

.about-text p {
  max-width: 56ch;
  color: var(--color-text);
}

.about-highlights {
  display: flex;
  gap: clamp(20px, 3vw, 40px);
  flex-wrap: wrap;
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
}

.about-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 160px;
  flex: 1 1 0;
}

.about-highlights .icon {
  width: 26px;
  height: 26px;
  margin-top: 2px;
  color: var(--color-brand);
}

.about-highlights li > span {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.about-highlights strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-charcoal);
}

.about-highlights span span {
  font-size: 0.82rem;
  color: var(--color-muted);
}

.about-media {
  position: relative;
}

.about-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--color-cream-2);
}

.about-image img {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  left: -40px;
  bottom: 40px;
  width: 136px;
  height: 136px;
  display: grid;
  place-items: center;
}

.about-badge img {
  width: 136px;
  height: 136px;
  object-fit: contain;
  filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.2));
}

.about-badge-text {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  fill: var(--color-charcoal);
}

.about-badge-mark {
  color: var(--color-brand);
}

/* ---------- Services ---------- */

.section-services {
  background: var(--color-cream-2);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 30px 26px 26px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(219, 15, 21, 0.28);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 20px;
  color: var(--color-brand);
}

.service-card h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 0.5em;
}

.service-card p {
  font-size: 0.93rem;
  color: var(--color-muted);
  margin-bottom: 1.4em;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: auto;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--color-brand);
}

.card-link .icon {
  width: 1.05em;
  height: 1.05em;
  transition: transform 0.2s ease;
}

.card-link:hover {
  color: var(--color-brand-dark);
}

.card-link:hover .icon {
  transform: translateX(3px);
}

/* ---------- References ---------- */

.section-references {
  background: var(--color-white);
}

.references-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.reference-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-charcoal-2);
  box-shadow: var(--shadow-sm);
}

.reference-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.reference-card:hover img {
  transform: scale(1.045);
}

.reference-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 9, 8, 0.72) 0%, rgba(12, 9, 8, 0.25) 42%, rgba(12, 9, 8, 0) 65%);
  pointer-events: none;
}

.reference-label {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  color: var(--color-white);
}

.reference-label h3 {
  margin: 0 0 2px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-white);
}

.reference-label p {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- FAQ ---------- */

.section-faq {
  background: var(--color-cream);
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.35fr) minmax(0, 0.65fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.faq-contact {
  position: sticky;
  top: calc(var(--header-height) + 40px);
  padding: 30px 28px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
}

.faq-contact-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: rgba(219, 15, 21, 0.09);
  color: var(--color-brand);
}

.faq-contact-icon .icon {
  width: 26px;
  height: 26px;
}

.faq-contact h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4em;
}

.faq-contact > p {
  font-size: 0.93rem;
  color: var(--color-muted);
  margin-bottom: 1.4em;
}

.faq-contact .btn {
  width: 100%;
}

.faq-contact-links {
  margin: 18px 0 0;
  font-size: 0.93rem;
  line-height: 1.9;
  text-align: center;
}

.faq-contact-links a {
  font-weight: 600;
  color: var(--color-text);
}

.faq-contact-links a:hover {
  color: var(--color-brand);
}

/* Accordion */

.accordion-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.accordion-item + .accordion-item {
  margin-top: 12px;
}

.accordion-heading {
  margin: 0;
}

.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 19px 22px;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.4;
  text-align: left;
  color: var(--color-charcoal);
  cursor: pointer;
  border-radius: 12px;
  transition: color 0.2s ease;
}

.accordion-trigger:hover {
  color: var(--color-brand);
}

.accordion-icon {
  position: relative;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.18);
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.8px;
  border-radius: 2px;
  background: var(--color-charcoal);
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease, background-color 0.25s ease;
}

.accordion-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.accordion-trigger[aria-expanded="true"] .accordion-icon {
  border-color: var(--color-brand);
  background: rgba(219, 15, 21, 0.08);
}

.accordion-trigger[aria-expanded="true"] .accordion-icon::before,
.accordion-trigger[aria-expanded="true"] .accordion-icon::after {
  background: var(--color-brand);
}

.accordion-trigger[aria-expanded="true"] .accordion-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.accordion-content {
  padding: 0 22px 20px;
}

.accordion-content p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-muted);
}

/* ---------- Contact CTA ---------- */

.section-contact {
  background: var(--color-white);
}

.contact-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  padding: clamp(40px, 6vw, 76px);
  border-radius: var(--radius-lg);
  background: var(--color-brand);
  color: var(--color-white);
  overflow: hidden;
  box-shadow: 0 24px 60px -24px rgba(181, 12, 17, 0.6);
}

/* Roof texture on the right half: real photo multiplied into the brand red */
.contact-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/images/forch/dachdecker-meiningen-dacheindeckung-steildach.jpg");
  background-image: image-set(
    url("/images/forch/dachdecker-meiningen-dacheindeckung-steildach-1200w.webp") type("image/webp"),
    url("/images/forch/dachdecker-meiningen-dacheindeckung-steildach.jpg") type("image/jpeg")
  );
  background-position: right center;
  background-size: cover;
  background-repeat: no-repeat;
  mix-blend-mode: multiply;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(to left, #000 24%, transparent 66%);
  mask-image: linear-gradient(to left, #000 24%, transparent 66%);
  pointer-events: none;
}

.contact-panel-text,
.contact-panel-list {
  position: relative;
  z-index: 1;
}

.contact-eyebrow {
  color: rgba(255, 255, 255, 0.75);
}

.contact-panel .section-title {
  color: var(--color-white);
  margin-bottom: 0.45em;
}

.contact-panel-text > p {
  max-width: 40ch;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.8em;
}

.contact-panel-list {
  display: flex;
  flex-direction: column;
}

.contact-panel-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 16px;
}

.contact-panel-list li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.contact-panel-list .icon {
  width: 28px;
  height: 28px;
  color: var(--color-white);
  opacity: 0.9;
}

.contact-panel-list li > span {
  display: flex;
  flex-direction: column;
  line-height: 1.45;
}

.contact-panel-list strong {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.contact-panel-list span span,
.contact-panel-list a {
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--color-white);
}

.contact-panel-list a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-charcoal);
  color: rgba(255, 255, 255, 0.72);
  padding-top: clamp(56px, 7vw, 84px);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 64px);
  padding-bottom: clamp(44px, 6vw, 64px);
}

.footer-brand {
  display: block;
  margin-bottom: 18px;
}

.footer-logo-plate {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 16px;
  background: var(--color-white);
  border-radius: 12px;
}

.footer-logo-plate img {
  width: 100%;
  height: auto;
}

.footer-col-brand p {
  max-width: 32ch;
  font-size: 0.93rem;
  line-height: 1.7;
}

.footer-title {
  margin: 0 0 18px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-white);
}

.footer-col ul li + li {
  margin-top: 10px;
}

.footer-col ul a {
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s ease;
}

.footer-col ul a:hover {
  color: var(--color-white);
}

.footer-col address p {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.94rem;
  line-height: 1.6;
}

.footer-col address .icon {
  width: 19px;
  height: 19px;
  margin-top: 2px;
  color: #F4524F;
}

.footer-col address a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-col address a:hover {
  color: var(--color-white);
}

.footer-hours {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-hours h3 {
  margin: 0 0 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-white);
}

.footer-hours dl {
  margin: 0;
}

.footer-hours dl > div {
  display: grid;
  grid-template-columns: minmax(70px, 1fr) auto;
  gap: 12px;
  padding: 3px 0;
}

.footer-hours dt,
.footer-hours dd {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

.footer-hours dd {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.business-hours {
  max-width: 540px;
  margin: 20px 0 36px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.business-hours > div {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto;
  gap: 24px;
  padding: 12px 18px;
}

.business-hours > div + div {
  border-top: 1px solid var(--color-border);
}

.business-hours dt,
.business-hours dd {
  margin: 0;
  line-height: 1.5;
}

.business-hours dt {
  font-weight: 650;
  color: var(--color-charcoal);
}

.business-hours dd {
  color: var(--color-muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.business-hours .is-closed dd {
  color: var(--color-muted);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 22px;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom nav ul {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

.footer-bottom nav a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s ease;
}

.footer-bottom nav a:hover {
  color: var(--color-white);
}

/* ---------- Scroll reveal (JS-gated) ---------- */

.mobile-menu nav a.is-active {
  color: var(--color-brand);
}

/* ---------- Sticky mobile call CTA ---------- */

.mobile-call-cta {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 150;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95em 1.4em;
  border-radius: var(--radius-pill);
  background: var(--color-brand);
  color: var(--color-white);
  font-size: 1rem;
  font-weight: 650;
  text-align: center;
  box-shadow: 0 14px 30px -10px rgba(219, 15, 21, 0.55);
  transform: translateY(calc(100% + 28px));
  transition: transform 0.3s ease, background-color 0.2s ease;
}

.mobile-call-cta .icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
}

.mobile-call-cta:hover {
  background: var(--color-brand-dark);
}

@media (max-width: 640px) {
  .mobile-call-cta {
    display: inline-flex;
  }

  .mobile-call-cta.is-visible {
    transform: translateY(0);
  }

  body.menu-open .mobile-call-cta {
    transform: translateY(calc(100% + 28px));
  }

  /* keep the fixed CTA from covering the legal links at page bottom */
  .footer-bottom-inner {
    padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  }
}

/* ---------- Scroll reveal (JS-gated) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

@media (max-width: 1024px) {
  .main-nav,
  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

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

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

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-media {
    max-width: 560px;
  }

  .about-badge {
    left: auto;
    right: -14px;
    bottom: -24px;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .faq-contact {
    position: static;
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-panel::before {
    opacity: 0.3;
    -webkit-mask-image: linear-gradient(to bottom, transparent 30%, #000 90%);
    mask-image: linear-gradient(to bottom, transparent 30%, #000 90%);
  }

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

@media (max-width: 640px) {
  .site-header {
    padding-top: 10px;
  }

  .brand img {
    height: 32px;
  }

  .footer-logo-plate {
    max-width: 280px;
  }

  .hero {
    min-height: 0;
  }

  .hero-media img {
    object-position: 72% center;
  }

  .hero-content {
    padding-top: calc(var(--header-height) + 72px);
  }

  .hero-title {
    font-size: clamp(2.6rem, 13vw, 3.4rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

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

  .trust-item {
    padding: 16px 18px;
  }

  .trust-item:nth-child(odd) {
    border-left: 0;
  }

  .trust-item:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .about-highlights {
    flex-direction: column;
    gap: 16px;
  }

  .about-highlights li {
    flex: none;
  }

  .about-badge {
    width: 112px;
    height: 112px;
    right: 6px;
    bottom: -20px;
  }

  .about-badge img {
    width: 112px;
    height: 112px;
  }

  .services-grid,
  .references-grid {
    grid-template-columns: 1fr;
  }

  .section-head-split {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-panel {
    padding: 34px 24px;
  }

  .contact-panel-text .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

/* ---------- Reduced motion ---------- */

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Subpages (PHP/Markdown system) — uses existing design tokens only
   ========================================================================== */

/* ---------- Compact page hero ---------- */

.page-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(400px, 36vw, 600px);
  background: var(--color-charcoal);
  color: var(--color-white);
  overflow: hidden;
}

.page-hero-slim {
  min-height: clamp(280px, 26vw, 420px);
}

.page-hero .hero-overlay {
  background:
    linear-gradient(to right, rgba(14, 11, 10, 0.66) 0%, rgba(14, 11, 10, 0.3) 48%, rgba(14, 11, 10, 0.04) 80%),
    linear-gradient(to top, rgba(14, 11, 10, 0.45) 0%, rgba(14, 11, 10, 0) 38%);
}

.page-hero-overlay-strong .hero-overlay {
  background:
    linear-gradient(to right, rgba(14, 11, 10, 0.82) 0%, rgba(14, 11, 10, 0.5) 45%, rgba(14, 11, 10, 0.12) 78%),
    linear-gradient(to top, rgba(14, 11, 10, 0.55) 0%, rgba(14, 11, 10, 0) 40%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: calc(var(--header-height) + 64px);
  padding-bottom: clamp(32px, 5vh, 52px);
}

.page-hero-title {
  margin: 0 0 0.3em;
  max-width: 22ch;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-white);
}

.page-hero-subline {
  max-width: 52ch;
  margin: 0;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.88);
}

/* ---------- Breadcrumbs ---------- */

.breadcrumbs {
  margin-bottom: 18px;
}

.breadcrumbs ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
}

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

.breadcrumbs li + li::before {
  content: "›";
  color: rgba(255, 255, 255, 0.45);
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: var(--color-white);
}

.breadcrumbs [aria-current] {
  color: var(--color-white);
  font-weight: 600;
}

/* ---------- Markdown content body ---------- */

.content-body {
  max-width: 70ch;
  margin-inline: auto;
}

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

.content-body h2 {
  margin: 1.7em 0 0.55em;
  font-size: clamp(1.45rem, 2.4vw, 1.8rem);
  font-weight: 750;
  letter-spacing: -0.01em;
}

.content-body h3 {
  margin: 1.6em 0 0.5em;
  font-size: 1.22rem;
  font-weight: 700;
}

.content-body p {
  color: var(--color-text);
}

.content-body a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-body a:hover {
  color: var(--color-brand-dark);
}

.content-body ul,
.content-body ol {
  margin: 0 0 1.2em;
  padding-left: 1.2em;
}

.content-body ul {
  list-style: none;
}

.content-body ul li {
  position: relative;
  padding-left: 1.1em;
}

.content-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--color-brand);
}

.content-body ol {
  list-style: decimal;
}

.content-body li {
  margin-bottom: 0.5em;
}

.content-body strong {
  color: var(--color-charcoal);
}

.content-body img {
  border-radius: var(--radius-card);
  margin-block: 1.6em;
}

/* ---------- Service grid (subpages) ---------- */

.service-grid-subpage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* ---------- Subpage responsive ---------- */

@media (max-width: 1024px) {
  .service-grid-subpage {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .page-hero-content {
    padding-top: calc(var(--header-height) + 56px);
  }

  .page-hero-title {
    font-size: clamp(1.9rem, 9vw, 2.4rem);
  }

  .service-grid-subpage {
    grid-template-columns: 1fr;
  }
}

/* ---------- Accessibility utility ---------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Team page (/das-team/) ---------- */

.content-body-wide {
  max-width: none;
}

.team-spotlight {
  max-width: 960px;
  margin-inline: auto;
  margin-bottom: clamp(56px, 8vw, 88px);
}

.team-quote-layout {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: center;
  margin-top: 30px;
}

.team-spotlight-media {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 8px;
  background: var(--color-cream-2);
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius-card) + 4px);
}

.team-spotlight-media picture,
.team-expertise-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.team-spotlight-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
}

.team-master-badge {
  left: auto;
  right: -14px;
  bottom: -14px;
  width: 94px;
  height: 94px;
}

.team-master-badge img {
  width: 94px;
  height: 94px;
}

.team-spotlight-text h2 {
  margin: 0 0 16px;
  max-width: 34ch;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.team-spotlight-text > p {
  color: var(--color-muted);
  max-width: 72ch;
}

.team-quote {
  margin: 0;
  padding-left: 20px;
  border-left: 3px solid var(--color-brand);
}

.team-quote p {
  margin: 0 0 10px;
  font-size: 1.06rem;
  font-weight: 550;
  color: var(--color-charcoal);
}

.team-quote cite {
  font-style: normal;
  font-size: 0.92rem;
  color: var(--color-muted);
}

.team-expertise {
  margin-bottom: clamp(56px, 8vw, 88px);
}

.team-expertise h2,
.team-regional h2 {
  margin: 0 0 22px;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 750;
  letter-spacing: -0.01em;
  color: var(--color-charcoal);
  text-align: center;
}

.team-expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
}

.team-expertise-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.content-body a.team-expertise-card,
.content-body a.team-expertise-card:hover {
  color: inherit;
  text-decoration: none;
}

.team-expertise-card:hover {
  transform: translateY(-4px);
  border-color: rgba(219, 15, 21, 0.3);
  box-shadow: var(--shadow-lg);
}

.team-expertise-card:focus-visible {
  outline: 3px solid var(--color-brand);
  outline-offset: 3px;
}

.team-expertise-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 8.5;
  background: var(--color-cream-2);
}

.team-expertise-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.team-expertise-card:first-child .team-expertise-media img {
  object-position: center 35%;
}

.team-expertise-card:hover .team-expertise-media img {
  transform: scale(1.025);
}

.team-expertise-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(22px, 3vw, 32px);
}

.team-expertise-label {
  margin-bottom: 10px;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  color: var(--color-brand);
  text-transform: uppercase;
}

.team-expertise-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.team-expertise-card p {
  flex: 1;
  margin: 0 0 18px;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.team-expertise-card .card-link {
  color: var(--color-brand);
  font-weight: 700;
  text-decoration: none;
}

.facts-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
  margin-bottom: clamp(56px, 8vw, 88px);
  padding: clamp(26px, 4vw, 44px);
  background: var(--color-cream-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: 0 12px 30px -28px rgba(0, 0, 0, 0.35);
}

.facts-band-item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.facts-band-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--color-brand);
  white-space: nowrap;
}

.facts-band-item span {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-muted);
}

.team-regional {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  max-width: none;
  margin-inline: auto;
}

.team-regional-copy .eyebrow {
  margin-bottom: 10px;
}

.team-regional-copy h2 {
  margin-bottom: 18px;
  text-align: left;
}

.team-regional-copy > p {
  color: var(--color-muted);
}

.team-local-support {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.content-body .team-local-support a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 13px;
  background: var(--color-cream-2);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 650;
  color: var(--color-charcoal);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.content-body .team-local-support a::before {
  width: 7px;
  height: 7px;
  margin-right: 8px;
  background: var(--color-brand);
  border-radius: 50%;
  content: "";
}

.content-body .team-local-support a:hover {
  transform: translateY(-1px);
  border-color: rgba(219, 15, 21, 0.35);
  color: var(--color-brand-dark);
}

.content-body .team-local-support a:focus-visible {
  outline: 3px solid var(--color-brand);
  outline-offset: 3px;
}

.team-region-map {
  margin: 0;
  padding: 0;
}

.team-region-map svg {
  display: block;
  width: 100%;
  height: auto;
}

.team-region-map figcaption {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--color-muted);
  text-align: center;
}

.team-map-contour {
  fill: rgba(219, 15, 21, 0.045);
  stroke: var(--color-border);
  stroke-width: 2;
}

.team-map-route {
  fill: none;
  stroke: rgba(219, 15, 21, 0.34);
  stroke-dasharray: 6 7;
  stroke-linecap: round;
  stroke-width: 3;
}

.team-map-place circle:first-child {
  fill: var(--color-white);
  stroke: var(--color-brand);
  stroke-width: 3;
}

.team-map-place circle:nth-child(2) {
  fill: var(--color-brand);
}

.team-map-place text {
  fill: var(--color-charcoal);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
}

.team-map-place-home text {
  fill: var(--color-brand);
  font-size: 17px;
}

@media (max-width: 1024px) {
  .team-quote-layout {
    grid-template-columns: 180px minmax(0, 1fr);
  }

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

  .team-regional {
    grid-template-columns: 1fr;
  }

  .team-region-map {
    width: min(100%, 620px);
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .team-quote-layout {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    margin-top: 24px;
  }

  .team-spotlight-media {
    width: 96px;
    padding: 4px;
  }

  .team-expertise-grid {
    grid-template-columns: 1fr;
  }

  .team-master-badge {
    right: -8px;
    bottom: -10px;
    width: 58px;
    height: 58px;
  }

  .team-master-badge img {
    width: 58px;
    height: 58px;
  }

  .team-quote {
    padding-left: 14px;
  }

  .team-quote p {
    font-size: 0.94rem;
  }

  .team-quote cite {
    font-size: 0.8rem;
  }

  .team-region-map {
    padding: 0;
  }

  .team-map-place text {
    font-size: 13px;
  }

  .team-map-place-home text {
    font-size: 14px;
  }
}
