/* ============================================
   Dr. med. Thomas Pap – Kardiologie Graz
   Global Stylesheet | Mobile-First
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --clr-navy: #1a2744;
  --clr-navy-light: #2a3f6a;
  --clr-blue: #3a6ea5;
  --clr-blue-light: #e8f0fa;
  --clr-accent: #2a9d8f;
  --clr-accent-hover: #21867a;
  --clr-white: #ffffff;
  --clr-offwhite: #f7f9fc;
  --clr-gray-100: #f0f2f5;
  --clr-gray-200: #dce1e8;
  --clr-gray-400: #8a94a6;
  --clr-gray-600: #555e6e;
  --clr-gray-800: #2d3342;
  --clr-text: #333b4a;
  --clr-text-light: #5a6375;
  --clr-danger: #c0392b;

  /* Typography */
  --ff-heading: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  --ff-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --fs-base: 1rem;
  --fs-sm: 0.875rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 2rem;
  --fs-4xl: 2.5rem;
  --fs-hero: 3rem;
  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --lh-tight: 1.15;
  --lh-snug: 1.35;
  --lh-normal: 1.6;
  --lh-loose: 1.75;
  --tracking-tight: -0.02em;
  --tracking-tighter: -0.03em;
  --tracking-wide: 0.08em;

  /* Spacing */
  --sp-xs: 0.25rem;
  --sp-sm: 0.5rem;
  --sp-md: 1rem;
  --sp-lg: 1.5rem;
  --sp-xl: 2rem;
  --sp-2xl: 3rem;
  --sp-3xl: 4rem;
  --sp-4xl: 6rem;

  /* Layout */
  --max-width: 1140px;
  --max-width-narrow: 780px;
  --border-radius: 0;
  --border-radius-lg: 0;

  /* Shadows — restrained, premium */
  --shadow-sm: 0 1px 2px rgba(26, 39, 68, 0.06);
  --shadow-md: 0 2px 8px rgba(26, 39, 68, 0.08);
  --shadow-lg: 0 12px 40px rgba(26, 39, 68, 0.10);

  /* Transitions */
  --transition: 0.25s ease;
  --transition-slow: 0.4s ease;

  /* Layout extras */
  --header-height: 60px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-normal);
  line-height: var(--lh-normal);
  color: var(--clr-text);
  background-color: var(--clr-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--clr-blue);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover,
a:focus-visible {
  color: var(--clr-accent);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-heading);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--clr-navy);
}

h1 { font-size: var(--fs-3xl); letter-spacing: var(--tracking-tighter); font-weight: var(--fw-bold); }
h2 { font-size: var(--fs-2xl); letter-spacing: var(--tracking-tight); font-weight: var(--fw-semibold); }
h3 { font-size: var(--fs-xl); letter-spacing: var(--tracking-tight); font-weight: var(--fw-semibold); }

p + p {
  margin-top: var(--sp-md);
}

/* --- Focus Visible (a11y) --- */
:focus-visible {
  outline: 3px solid var(--clr-accent);
  outline-offset: 2px;
}

/* --- Skip to Content (a11y) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-md);
  background: var(--clr-navy);
  color: var(--clr-white);
  padding: var(--sp-sm) var(--sp-md);
  z-index: 1000;
  font-weight: var(--fw-semibold);
}

.skip-link:focus {
  top: var(--sp-md);
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--sp-lg);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  padding: 0.95em 2.2em;
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
  text-align: center;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background-color: var(--clr-accent);
  color: var(--clr-white);
  border-color: var(--clr-accent);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background-color: var(--clr-accent-hover);
  border-color: var(--clr-accent-hover);
  color: var(--clr-white);
}

.btn--outline {
  background-color: transparent;
  color: var(--clr-white);
  border-color: var(--clr-white);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background-color: var(--clr-white);
  color: var(--clr-navy);
}

.btn--outline-dark {
  background-color: transparent;
  color: var(--clr-navy);
  border-color: var(--clr-navy);
}

.btn--outline-dark:hover,
.btn--outline-dark:focus-visible {
  background-color: var(--clr-navy);
  color: var(--clr-white);
}

.btn--lg {
  padding: 1.15em 2.8em;
  font-size: var(--fs-base);
}

/* --- Header / Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--clr-white);
  border-bottom: 1px solid var(--clr-gray-200);
  transition: background-color var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

/* Transparent variant — used on pages with full-bleed hero */
.body--has-hero .site-header {
  position: fixed;
  inset: 0 0 auto 0;
  background-color: transparent;
  border-bottom-color: transparent;
}

.body--has-hero .site-header.scrolled {
  background-color: var(--clr-white);
  border-bottom-color: var(--clr-gray-200);
  box-shadow: var(--shadow-md);
}

/* Light text on transparent header */
.body--has-hero .site-header:not(.scrolled) .logo__name,
.body--has-hero .site-header:not(.scrolled) .main-nav__link {
  color: var(--clr-white);
}

.body--has-hero .site-header:not(.scrolled) .logo__subtitle {
  color: rgba(255, 255, 255, 0.75);
}

.body--has-hero .site-header:not(.scrolled) .main-nav__link:hover,
.body--has-hero .site-header:not(.scrolled) .main-nav__link:focus-visible,
.body--has-hero .site-header:not(.scrolled) .main-nav__link--active {
  color: var(--clr-white);
}

.body--has-hero .site-header:not(.scrolled) .main-nav__link::after {
  background-color: var(--clr-white);
}

.body--has-hero .site-header:not(.scrolled) .burger__line {
  background-color: var(--clr-white);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  text-decoration: none;
  line-height: 1.2;
  min-width: 0;
}

.logo__img {
  width: 36px;
  height: 36px;
  border-radius: 0;
  object-fit: contain;
  flex-shrink: 0;
  transition: filter var(--transition);
}

.body--has-hero .site-header:not(.scrolled) .logo__img {
  filter: brightness(0) invert(1);
}

.logo__text {
  display: flex;
  flex-direction: column;
}

.logo__name {
  font-family: var(--ff-heading);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-tight);
  color: var(--clr-navy);
  transition: color var(--transition);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logo__subtitle {
  display: none;
  font-size: 0.75rem;
  color: var(--clr-gray-400);
  font-weight: var(--fw-normal);
  letter-spacing: 0.02em;
  transition: color var(--transition);
}

@media (min-width: 600px) {
  .logo__img { width: 42px; height: 42px; }
  .logo__name { font-size: var(--fs-lg); }
  .logo__subtitle { display: block; font-size: var(--fs-sm); }
}

/* Desktop Nav */
.main-nav__list {
  display: none;
  gap: var(--sp-xl);
}

.main-nav__link {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--clr-gray-600);
  padding: var(--sp-sm) 0;
  position: relative;
  transition: color var(--transition);
}

.main-nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--clr-accent);
  transition: width var(--transition);
}

.main-nav__link:hover,
.main-nav__link:focus-visible,
.main-nav__link--active {
  color: var(--clr-navy);
}

.main-nav__link:hover::after,
.main-nav__link:focus-visible::after,
.main-nav__link--active::after {
  width: 100%;
}

/* Burger Button */
.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 12px 11px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
  flex-shrink: 0;
}

.burger__line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--clr-navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.burger[aria-expanded="true"] .burger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.burger[aria-expanded="true"] .burger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  background-color: rgba(26, 39, 68, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 105;
}

.mobile-nav[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.mobile-nav__list {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--sp-xl);
}

.mobile-nav__link {
  font-family: var(--ff-heading);
  font-size: var(--fs-2xl);
  color: var(--clr-white);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-tight);
  transition: color var(--transition);
}

.mobile-nav__link:hover,
.mobile-nav__link:focus-visible {
  color: var(--clr-accent);
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, var(--clr-navy) 0%, var(--clr-navy-light) 100%);
  color: var(--clr-white);
  padding: var(--sp-3xl) 0 var(--sp-4xl);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(42, 157, 143, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Video Hero (index.html only, desktop) */
.hero--video {
  padding: 0;
  min-height: 520px;
  display: flex;
  align-items: center;
}

.hero--video::before { display: none; }

.hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  display: none; /* hidden on mobile */
}

.hero__video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 22, 42, 0.55) 0%, rgba(13, 22, 42, 0.35) 40%, rgba(13, 22, 42, 0.65) 100%);
}

/* Fallback image for mobile / no-video */
.hero__fallback-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__fallback-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(14px);
  transform: scale(1.08);
}

.hero__fallback-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 22, 42, 0.55) 0%, rgba(13, 22, 42, 0.4) 40%, rgba(13, 22, 42, 0.7) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero__overline {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--clr-white);
  opacity: 0.85;
  margin-bottom: var(--sp-md);
  position: relative;
  padding-left: 36px;
}

.hero__overline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 24px;
  height: 1px;
  background: var(--clr-accent);
}

.hero__title {
  font-size: 1.75rem;
  color: var(--clr-white);
  margin-bottom: var(--sp-md);
  letter-spacing: var(--tracking-tighter);
  font-weight: var(--fw-semibold);
  line-height: 1.2;
}

.hero__text {
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: var(--sp-lg);
  max-width: 560px;
}

@media (min-width: 600px) {
  .hero__overline {
    font-size: var(--fs-sm);
    letter-spacing: 0.18em;
    padding-left: 56px;
    margin-bottom: var(--sp-lg);
  }
  .hero__overline::before { width: 40px; }
  .hero__title { font-size: var(--fs-3xl); margin-bottom: var(--sp-lg); }
  .hero__text { font-size: var(--fs-lg); margin-bottom: var(--sp-xl); }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-md);
}

/* --- Sections (generic) --- */
.section {
  padding: var(--sp-3xl) 0;
}

.section--alt {
  background-color: var(--clr-offwhite);
}

.section__overline {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--clr-accent);
  margin-bottom: var(--sp-md);
  position: relative;
  padding-left: 32px;
}

.section__overline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 20px;
  height: 1px;
  background: var(--clr-accent);
}

@media (min-width: 600px) {
  .section__overline {
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    padding-left: 48px;
  }
  .section__overline::before { width: 32px; }
}

.section__header {
  text-align: center;
  margin-bottom: var(--sp-3xl);
}

.section__title {
  margin-bottom: var(--sp-md);
  font-size: var(--fs-3xl);
  letter-spacing: var(--tracking-tighter);
  font-weight: var(--fw-semibold);
}

.section__subtitle {
  max-width: 600px;
  margin-inline: auto;
  color: var(--clr-text-light);
  font-size: var(--fs-lg);
  line-height: var(--lh-normal);
}

/* --- Intro / About Preview --- */
.intro-grid {
  display: grid;
  gap: var(--sp-2xl);
}

.intro__text p {
  color: var(--clr-text-light);
  line-height: var(--lh-loose);
}

.intro__text p + p {
  margin-top: var(--sp-md);
}

.intro__highlights {
  display: grid;
  gap: var(--sp-md);
  margin-top: var(--sp-xl);
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-md);
  padding: var(--sp-lg);
  background: var(--clr-white);
  border: 1px solid var(--clr-gray-200);
  border-left: 2px solid var(--clr-accent);
}

.highlight-item__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-blue-light);
}

.highlight-item__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--clr-navy);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.highlight-item__content h3 {
  font-size: var(--fs-base);
  font-family: var(--ff-body);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--sp-xs);
}

.highlight-item__content p {
  font-size: var(--fs-sm);
  color: var(--clr-gray-600);
  line-height: var(--lh-normal);
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  gap: var(--sp-lg);
}

.service-card {
  background: var(--clr-white);
  padding: var(--sp-xl);
  transition: border-color var(--transition), transform var(--transition);
  border: 1px solid var(--clr-gray-200);
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clr-accent);
  transition: width var(--transition-slow);
}

.service-card:hover {
  border-color: var(--clr-navy);
}

.service-card:hover::before {
  width: 100%;
}

.service-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  margin-bottom: var(--sp-lg);
  padding: 0;
}

.service-card__icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--clr-accent);
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Placeholder Images --- */
.img-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--clr-gray-100);
  overflow: hidden;
  position: relative;
}

.img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-portrait {
  aspect-ratio: 3 / 4;
  max-width: 380px;
}

.img-wide {
  aspect-ratio: 16 / 9;
}

.service-card__title {
  font-size: var(--fs-lg);
  font-family: var(--ff-heading);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--sp-sm);
}

.service-card__text {
  color: var(--clr-text-light);
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
}

/* --- Wahlarzt Info Banner --- */
.info-banner {
  background: var(--clr-offwhite);
  padding: var(--sp-2xl);
  border: 1px solid var(--clr-gray-200);
  border-top: 2px solid var(--clr-accent);
}

.info-banner__title {
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-md);
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}

.info-banner__text {
  color: var(--clr-text-light);
  line-height: var(--lh-loose);
}

.info-banner__text + .info-banner__text {
  margin-top: var(--sp-sm);
}

/* --- CTA Section --- */
.cta-section {
  background-color: var(--clr-navy);
  color: var(--clr-white);
  text-align: center;
  padding: var(--sp-4xl) 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(58, 110, 165, 0.25), transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(42, 157, 143, 0.18), transparent 55%);
  pointer-events: none;
}

.cta-section > .container {
  position: relative;
}

.cta-section__title {
  color: var(--clr-white);
  margin-bottom: var(--sp-md);
}

.cta-section__text {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-xl);
  max-width: 520px;
  margin-inline: auto;
}

/* --- Footer --- */
.site-footer {
  background-color: var(--clr-navy);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--sp-2xl) 0 var(--sp-lg);
}

.footer-grid {
  display: grid;
  gap: var(--sp-xl);
  margin-bottom: var(--sp-2xl);
}

.footer__heading {
  font-family: var(--ff-body);
  font-size: 0.75rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-white);
  margin-bottom: var(--sp-md);
}

.footer__text {
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
}

.footer__text a {
  color: rgba(255, 255, 255, 0.7);
}

.footer__text a:hover {
  color: var(--clr-accent);
}

.footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.footer__nav-link {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

.footer__nav-link:hover,
.footer__nav-link:focus-visible {
  color: var(--clr-accent);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--sp-lg);
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  font-size: var(--fs-sm);
  text-align: center;
}

.footer__bottom a {
  color: rgba(255, 255, 255, 0.7);
}

.footer__bottom a:hover {
  color: var(--clr-accent);
}

/* --- Mobile collapsible body (added via JS) --- */
.collapsible-mobile {
  border-top: 1px solid var(--clr-gray-200);
  padding-top: var(--sp-md);
  margin-top: var(--sp-md);
}

.collapsible-mobile > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--ff-body);
  font-size: 0.75rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-accent);
  padding: var(--sp-xs) 0;
}

.collapsible-mobile > summary::-webkit-details-marker { display: none; }

.collapsible-mobile > summary::after {
  content: '';
  width: 12px;
  height: 12px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--transition);
}

.collapsible-mobile[open] > summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.collapsible-mobile[open] > summary {
  margin-bottom: var(--sp-md);
}

.collapsible-mobile > p + p {
  margin-top: var(--sp-md);
}

/* --- Utility Classes --- */
.text-center { text-align: center; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================
   Media Queries – Progressive Enhancement
   ============================================ */

/* Tablet (≥600px) */
@media (min-width: 600px) {
  :root { --header-height: 80px; }

  h1 { font-size: var(--fs-4xl); }
  h2 { font-size: var(--fs-3xl); }

  .hero {
    padding: var(--sp-4xl) 0;
  }

  .hero__title {
    font-size: var(--fs-4xl);
  }

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

  .intro-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

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

/* Desktop (≥900px) */
@media (min-width: 900px) {
  .hero__title {
    font-size: var(--fs-hero);
  }

  .hero--video {
    min-height: 100vh;
    padding: var(--sp-4xl) 0;
  }

  .hero__video-wrap {
    display: block;
  }

  .hero--video .hero__fallback-img {
    display: none;
  }

  /* Slow connection: skip video, show blurred fallback even on desktop */
  .slow-net .hero--video .hero__video-wrap {
    display: none;
  }

  .slow-net .hero--video .hero__fallback-img {
    display: block;
  }

  .main-nav__list {
    display: flex;
  }

  .burger {
    display: none;
  }

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

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .section {
    padding: var(--sp-4xl) 0;
  }

  .info-banner {
    padding: var(--sp-2xl);
  }
}

/* Large Desktop (≥1100px) */
@media (min-width: 1100px) {
  .hero__title {
    font-size: 3.2rem;
  }

  .container {
    padding-inline: var(--sp-xl);
  }
}

/* --- Reduced Motion (a11y) --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Print Styles --- */
@media print {
  .site-header,
  .burger,
  .mobile-nav,
  .cta-section {
    display: none;
  }

  body {
    font-size: 12pt;
    color: #000;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}
