/* ============================================
   BRANDT & MATTEJIET - Design System
   Privatärztlicher Abrechnungsservice
   ============================================ */

/* --- Local Fonts (DSGVO-konform, kein Google-Request) --- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-400.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-500.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-600.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-700.ttf') format('truetype');
}

/* --- Custom Properties (Design Tokens) --- */
:root {
  /* Colors */
  --color-primary: #1B2A3D;
  --color-primary-light: #2C3E50;
  --color-primary-dark: #0F1A27;
  --color-accent: #2A7F8B;
  --color-accent-light: #34A0AE;
  --color-accent-dark: #1F6069;

  --color-bg: #FFFFFF;
  --color-bg-alt: #F7F8FA;
  --color-bg-dark: #1B2A3D;

  --color-text: #1B2A3D;
  --color-text-light: #64748B;
  --color-text-muted: #94A3B8;
  --color-text-on-dark: #FFFFFF;
  --color-text-on-dark-muted: #CBD5E1;

  --color-border: #E2E8F0;
  --color-border-light: #F1F5F9;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-hero: clamp(2.25rem, 5vw, 3.5rem);

  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-tight: 1.2;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.8;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-section: clamp(4rem, 8vw, 7rem);

  /* Layout */
  --container-max: 1200px;
  --container-padding: 1.5rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;

  /* Header */
  --header-height: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
  /* overflow-x:clip prevents horizontal scroll without breaking
     position:sticky (unlike overflow-x:hidden which can break it).
     The hidden fallback is for browsers that don't support clip. */
  overflow-x: clip;
}

body {
  /* Use clip, not hidden -- hidden on body can break sticky positioning
     in some browsers. clip is supported in all modern browsers. */
  overflow-x: clip;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

ul, ol {
  list-style: none;
}

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-text);
}

h1 { font-size: var(--font-size-hero); }
h2 { font-size: clamp(1.75rem, 3.5vw, var(--font-size-4xl)); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }

p {
  line-height: var(--line-height-relaxed);
  color: var(--color-text-light);
}

.text-lead {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-light);
}

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

.section {
  padding-block: var(--space-section);
}

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

.section--dark {
  background-color: var(--color-bg-dark);
  color: var(--color-text-on-dark);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-text-on-dark);
}

.section--dark p {
  color: var(--color-text-on-dark-muted);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-text-on-dark);
}

.btn--primary:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--accent {
  background-color: var(--color-accent);
  color: var(--color-text-on-dark);
}

.btn--accent:hover {
  background-color: var(--color-accent-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn--outline:hover {
  background-color: var(--color-primary);
  color: var(--color-text-on-dark);
}

.btn--white {
  background-color: var(--color-bg);
  color: var(--color-primary);
}

.btn--white:hover {
  background-color: var(--color-bg-alt);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--font-size-sm);
}

.btn--lg {
  padding: 1rem 2.25rem;
  font-size: var(--font-size-lg);
}

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

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border-light);
  transition: box-shadow var(--transition-base);
}

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

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

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  text-decoration: none;
  flex-shrink: 0;
}

.header__logo svg {
  width: 2rem;
  height: 2rem;
}

.header__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.header__logo-name {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
}

.header__logo-sub {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-regular);
  color: var(--color-text-light);
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav__link {
  display: block;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-accent);
  background-color: var(--color-bg-alt);
}

.nav__cta {
  margin-left: var(--space-sm);
}

/* Mobile Menu Button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
  transform-origin: center;
}

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

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

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

/* --- Hero Section (Full-Width) --- */
.hero--fullwidth {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  max-width: 100%;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(15, 26, 39, 0.85) 0%,
    rgba(15, 26, 39, 0.65) 45%,
    rgba(15, 26, 39, 0.15) 75%,
    rgba(15, 26, 39, 0.0) 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--header-height) + var(--space-3xl));
  padding-bottom: var(--space-3xl);
}

.hero__content--overlay {
  max-width: 600px;
}

.hero__title {
  margin-bottom: var(--space-lg);
  font-size: var(--font-size-hero);
  font-weight: var(--font-weight-bold);
  line-height: 1.15;
  color: var(--color-text-on-dark);
}

.hero__title em {
  font-style: normal;
  color: var(--color-accent-light);
}

.hero__subtitle {
  margin-bottom: var(--space-xl);
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-on-dark-muted);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* --- USP Bar --- */
.usp-bar {
  background-color: var(--color-bg-dark);
  padding-block: var(--space-2xl);
}

.usp-bar__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.usp-bar__item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: var(--color-text-on-dark);
}

.usp-bar__icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
}

.usp-bar__icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--color-accent-light);
}

.usp-bar__text h3 {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-on-dark);
  margin-bottom: var(--space-xs);
}

.usp-bar__text p {
  font-size: var(--font-size-sm);
  color: var(--color-text-on-dark-muted);
  line-height: var(--line-height-normal);
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: var(--space-3xl);
}

.section-header__label {
  display: inline-block;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header p {
  font-size: var(--font-size-lg);
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--space-xl);
}

.card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all var(--transition-base);
}

.card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card__icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg-alt);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  color: var(--color-accent);
}

.card__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.card__title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-sm);
}

.card__text {
  font-size: var(--font-size-base);
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-accent);
  transition: gap var(--transition-fast);
}

.card__link:hover {
  gap: var(--space-sm);
}

.card__link svg {
  width: 1rem;
  height: 1rem;
}

/* --- Two-Way Section (Arzt / Patient) --- */
.two-way__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.two-way__card {
  padding: var(--space-3xl);
  border-radius: var(--radius-xl);
  text-align: center;
}

.two-way__card--aerzte {
  background-color: var(--color-primary);
  color: var(--color-text-on-dark);
}

.two-way__card--aerzte h3,
.two-way__card--aerzte p {
  color: var(--color-text-on-dark);
}

.two-way__card--aerzte p {
  opacity: 0.85;
}

.two-way__card--patienten {
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
}

.two-way__icon {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  border-radius: var(--radius-full);
}

.two-way__card--aerzte .two-way__icon {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--color-text-on-dark);
}

.two-way__card--patienten .two-way__icon {
  background-color: var(--color-bg);
  color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.two-way__icon svg {
  width: 2rem;
  height: 2rem;
}

.two-way__card h3 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-md);
}

.two-way__card p {
  margin-bottom: var(--space-xl);
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
}

/* --- Trust / Stats Section --- */
.trust__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  text-align: center;
}

.trust__item {
  padding: var(--space-xl);
}

.trust__number {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.trust__label {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.trust__desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  padding-block: var(--space-4xl);
}

.cta-section h2 {
  color: var(--color-text-on-dark);
  margin-bottom: var(--space-md);
}

.cta-section p {
  color: var(--color-text-on-dark-muted);
  font-size: var(--font-size-lg);
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: var(--space-xl);
}

.cta-section .btn {
  font-size: var(--font-size-lg);
}

/* --- Footer --- */
.footer {
  background-color: var(--color-primary-dark);
  color: var(--color-text-on-dark);
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer__brand p {
  color: var(--color-text-on-dark-muted);
  font-size: var(--font-size-sm);
  margin-top: var(--space-md);
  max-width: 320px;
  line-height: var(--line-height-relaxed);
}

.footer__heading {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-on-dark-muted);
  margin-bottom: var(--space-lg);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__links a {
  font-size: var(--font-size-sm);
  color: var(--color-text-on-dark-muted);
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--color-text-on-dark);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--color-text-on-dark-muted);
  margin-bottom: var(--space-sm);
}

.footer__contact-item svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: var(--color-accent-light);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-size-xs);
  color: var(--color-text-on-dark-muted);
}

.footer__bottom-links {
  display: flex;
  gap: var(--space-lg);
}

.footer__bottom-links a {
  color: var(--color-text-on-dark-muted);
  transition: color var(--transition-fast);
}

.footer__bottom-links a:hover {
  color: var(--color-text-on-dark);
}

/* --- Page Hero (Subpages) --- */
.page-hero {
  padding-top: calc(var(--header-height) + var(--space-3xl));
  padding-bottom: var(--space-3xl);
  background-color: var(--color-bg-alt);
  text-align: center;
}

.page-hero h1 {
  margin-bottom: var(--space-md);
}

.page-hero p {
  font-size: var(--font-size-lg);
  max-width: 640px;
  margin-inline: auto;
}

/* --- Page Navigation Chips --- */
.page-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.page-nav__chip {
  display: inline-block;
  padding: 0.625rem 1.5rem;
  min-width: 140px;
  text-align: center;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  background-color: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.page-nav__chip:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.page-nav__chip--accent {
  color: var(--color-text-on-dark);
  background-color: var(--color-accent);
  border-color: var(--color-accent);
}

.page-nav__chip--accent:hover {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: var(--color-text-on-dark);
}

/* --- Process Steps --- */
.steps {
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-2xl);
  position: relative;
}

.step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 2rem;
  top: 4rem;
  bottom: 0;
  width: 2px;
  background-color: var(--color-border);
  transform: translateX(-50%);
}

.step__number {
  counter-increment: step;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-accent);
  color: var(--color-text-on-dark);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.step__number::after {
  content: counter(step);
}

.step__content h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-sm);
}

.step__content p {
  font-size: var(--font-size-base);
  color: var(--color-text-light);
}

/* --- FAQ Accordion --- */
.faq-list {
  max-width: 800px;
  margin-inline: auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  text-align: left;
  color: var(--color-text);
  transition: color var(--transition-fast);
}

.faq-item__question:hover {
  color: var(--color-accent);
}

.faq-item__icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  transition: transform var(--transition-base);
}

.faq-item--open .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--transition-base);
}

.faq-item--open .faq-item__answer {
  grid-template-rows: 1fr;
}

.faq-item__answer-inner {
  overflow: hidden;
}

.faq-item__answer-inner p {
  padding-bottom: var(--space-lg);
  font-size: var(--font-size-base);
  color: var(--color-text-light);
  line-height: var(--line-height-relaxed);
}

/* --- Service Detail List --- */
.service-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.service-list__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast);
}

.service-list__item:hover {
  background-color: var(--color-bg-alt);
}

.service-list__icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--color-accent);
  margin-top: 0.1rem;
}

.service-list__item p {
  font-size: var(--font-size-base);
  color: var(--color-text);
  line-height: var(--line-height-normal);
}

/* --- Forms --- */
.form {
  max-width: 700px;
  margin-inline: auto;
}

.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

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

.form__label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
}

.form__input,
.form__select,
.form__textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  background-color: var(--color-bg);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(42, 127, 139, 0.15);
}

.form__textarea {
  min-height: 120px;
  resize: vertical;
}

.form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

.form__submit {
  margin-top: var(--space-md);
}

.form__hint {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-md);
}

/* Honeypot (spam protection) */
.form__hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

/* --- Content Blocks (two-col text+image) --- */
.content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.content-block--reverse {
  direction: rtl;
}

.content-block--reverse > * {
  direction: ltr;
}

.content-block__text h2 {
  margin-bottom: var(--space-md);
}

.content-block__text p {
  margin-bottom: var(--space-lg);
}

.content-block__image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.content-block__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* --- Info Box --- */
.info-box {
  background-color: var(--color-bg-alt);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-xl);
  margin-block: var(--space-xl);
}

.info-box h4 {
  margin-bottom: var(--space-sm);
}

.info-box p {
  font-size: var(--font-size-base);
}

/* --- Responsive additions for subpages --- */
@media (max-width: 768px) {
  .form__grid {
    grid-template-columns: 1fr;
  }

  .content-block {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .content-block--reverse {
    direction: ltr;
  }

  .step {
    grid-template-columns: 3rem 1fr;
    gap: var(--space-md);
  }

  .step__number {
    width: 3rem;
    height: 3rem;
    font-size: var(--font-size-base);
  }

  .step:not(:last-child)::before {
    left: 1.5rem;
    top: 3rem;
  }
}

/* --- Back to Top Button --- */
.back-to-top {
  position: fixed;
  bottom: 2.5rem;
  right: 3.5rem;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  color: var(--color-text-on-dark);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
  z-index: 900;
}

.back-to-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.back-to-top svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in--visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */

/* Tablet */
@media (max-width: 1024px) {
  .hero__overlay {
    background: linear-gradient(
      to top,
      rgba(15, 26, 39, 0.9) 0%,
      rgba(15, 26, 39, 0.7) 50%,
      rgba(15, 26, 39, 0.3) 100%
    );
  }

  .hero--fullwidth {
    min-height: 80vh;
    align-items: flex-end;
  }

  .hero__content--overlay {
    max-width: 100%;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }

  .hero__bg img {
    object-position: 75% center;
  }
}

/* Tablet small */
@media (max-width: 768px) {
  :root {
    --container-padding: 1.25rem;
  }

  .hero__bg img {
    object-position: 80% center;
  }

  .header__logo-sub {
    display: none;
  }

  .header__logo-name {
    font-size: var(--font-size-base);
  }

  /* ============================================================
     MOBILE NAVIGATION - Fixed Header + Overlay Nav
     ============================================================
     Strategy:
     - Header stays position:fixed (always visible)
     - No backdrop-filter on mobile (iOS Safari bug)
     - Nav is position:fixed fullscreen overlay with white background
     - No transform (avoids stacking context issues)
     ============================================================ */

  .header {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background-color: #fff;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: #fff;
    padding: var(--space-xl);
    z-index: 10000;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--color-border);
  }

  .nav--open {
    display: flex;
  }

  .nav__list {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .nav__list li {
    width: 100%;
  }

  .nav__link {
    font-size: var(--font-size-lg);
    padding: var(--space-md);
    width: 100%;
    text-align: center;
    border-radius: var(--radius-md);
  }

  .nav__link:hover,
  .nav__link--active {
    background-color: var(--color-bg-alt);
  }

  .nav__cta {
    margin-left: 0;
    margin-top: var(--space-md);
    width: 100%;
    text-align: center;
  }

  .nav__cta .btn {
    width: 100%;
    justify-content: center;
  }

  /* --- End Mobile Navigation --- */

  .usp-bar__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .two-way__grid {
    grid-template-columns: 1fr;
  }

  .trust__grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

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

  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  [style*="grid-template-columns: 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  /* Back-to-top: smaller and tighter on mobile to avoid overflow */
  .back-to-top {
    right: 1.25rem;
    bottom: 1.25rem;
    width: 3rem;
    height: 3rem;
  }
}

/* Mobile small */
@media (max-width: 480px) {
  :root {
    --container-padding: 1rem;
  }

  .hero--fullwidth {
    min-height: 85vh;
  }

  .hero__inner {
    padding-bottom: var(--space-2xl);
  }

  .hero__cta {
    flex-direction: column;
  }

  .hero__cta .btn {
    width: 100%;
    justify-content: center;
  }

  .two-way__card {
    padding: var(--space-lg);
  }

  .two-way__grid {
    gap: var(--space-md);
  }

  .cta-section {
    padding-inline: var(--container-padding);
  }

  .cta-section .btn {
    width: 100%;
    justify-content: center;
    font-size: var(--font-size-base);
    padding: 0.75rem 1.25rem;
    white-space: normal;
    text-align: center;
  }

  .btn--lg {
    font-size: var(--font-size-base);
    padding: 0.75rem 1.5rem;
  }

  .two-way__card .btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
}
