/* ============================================
   IT-SystemSolutions — Design Tokens & Styles
   ============================================ */

/* --- Type Scale (fluid) --- */
:root {
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  /* --- Spacing (4px system) --- */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* --- Font Families --- */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;

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

  /* --- Transitions --- */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* --- Content widths --- */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
}

/* ============================================
   LIGHT MODE (default)
   ============================================ */
:root, [data-theme="light"] {
  --color-bg: #f5f7fa;
  --color-surface: #ffffff;
  --color-surface-2: #f0f2f5;
  --color-surface-offset: #e8ecf0;

  --color-text: #1a1d23;
  --color-text-muted: #5a6270;
  --color-text-faint: #9aa1ad;
  --color-text-inverse: #f5f7fa;

  --color-primary: #00856a;
  --color-primary-hover: #006d57;
  --color-primary-dark: #005f46;
  --color-primary-light: #00b894;

  --color-dark: #0f1419;
  --color-dark-surface: #1a1f26;

  --color-border: #d4d8df;
  --color-divider: #e2e6eb;

  --shadow-sm: 0 1px 3px rgba(15, 20, 25, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 20, 25, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 20, 25, 0.12);
}

/* ============================================
   DARK MODE
   ============================================ */
[data-theme="dark"] {
  --color-bg: #0f1419;
  --color-surface: #1a1f26;
  --color-surface-2: #222830;
  --color-surface-offset: #2a313a;

  --color-text: #e8ecf0;
  --color-text-muted: #9aa1ad;
  --color-text-faint: #5a6270;
  --color-text-inverse: #0f1419;

  --color-primary: #00b894;
  --color-primary-hover: #00d4a8;
  --color-primary-dark: #00856a;
  --color-primary-light: #00e6b8;

  --color-dark: #0a0e12;
  --color-dark-surface: #0f1419;

  --color-border: #2a313a;
  --color-divider: #222830;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0f1419;
    --color-surface: #1a1f26;
    --color-surface-2: #222830;
    --color-surface-offset: #2a313a;
    --color-text: #e8ecf0;
    --color-text-muted: #9aa1ad;
    --color-text-faint: #5a6270;
    --color-text-inverse: #0f1419;
    --color-primary: #00b894;
    --color-primary-hover: #00d4a8;
    --color-primary-dark: #00856a;
    --color-primary-light: #00e6b8;
    --color-dark: #0a0e12;
    --color-dark-surface: #0f1419;
    --color-border: #2a313a;
    --color-divider: #222830;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
  }
}

/* ============================================
   GLOBAL STYLES
   ============================================ */
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-text);
  font-weight: 700;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-interactive);
}
a:hover { color: var(--color-primary-hover); }

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-3) var(--space-6);
  background: rgba(15, 20, 25, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(15, 20, 25, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .site-header {
  background: rgba(245, 247, 250, 0.85);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .site-header.scrolled {
  background: rgba(245, 247, 250, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
}

.logo-img {
  height: 52px;
  width: auto;
  transition: filter var(--transition-interactive);
  /* Default: invert logo (header is dark by default) */
  filter: invert(1) brightness(1.2);
}

/* Light mode: header is light, logo stays dark (no invert) */
[data-theme="light"] .site-header .logo-img {
  filter: none;
}
/* Light mode footer: footer is always dark, so invert */
[data-theme="light"] .site-footer .logo-img {
  filter: invert(1) brightness(1.2);
}

.logo-text {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}
.logo-text span {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--color-text-muted);
}

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

.nav-desktop a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-2) 0;
  position: relative;
  transition: color var(--transition-interactive);
}
.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s var(--ease-out);
}
.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--color-primary);
}
.nav-desktop a:hover::after,
.nav-desktop a.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  transition: color var(--transition-interactive), background var(--transition-interactive);
  cursor: pointer;
  border: none;
  background: none;
}
.theme-toggle:hover {
  color: var(--color-primary);
  background: rgba(0, 133, 106, 0.1);
}

.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text);
  cursor: pointer;
  border: none;
  background: none;
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  z-index: 99;
  padding: calc(64px + var(--space-8)) var(--space-6) var(--space-8);
  flex-direction: column;
  gap: var(--space-4);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  pointer-events: none;
}
.mobile-nav.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-nav a {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-divider);
  text-decoration: none;
  transition: color var(--transition-interactive);
}
.mobile-nav a:hover { color: var(--color-primary); }

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .hamburger { display: flex; }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: var(--space-24) var(--space-6) var(--space-16);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 20, 25, 0.82) 0%,
    rgba(15, 20, 25, 0.7) 50%,
    rgba(15, 20, 25, 0.9) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: var(--text-2xl);
  color: #ffffff;
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}

.hero-content .subtitle {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-primary-light, #00b894);
  margin-bottom: var(--space-6);
  font-weight: 400;
  font-style: italic;
}

.hero-content p {
  font-size: var(--text-base);
  color: #c8cdd4;
  max-width: 65ch;
  margin: 0 auto var(--space-8);
  line-height: 1.7;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-8);
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-interactive);
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 133, 106, 0.3);
  color: #ffffff;
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 133, 106, 0.25);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: clamp(var(--space-12), 6vw, var(--space-24)) var(--space-6);
}

.section-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
}

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

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

.section-dark {
  background: var(--color-dark);
  color: #e8ecf0;
}
.section-dark h2,
.section-dark h3 {
  color: #ffffff;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}
.section-header h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}
.section-header p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 55ch;
  margin: 0 auto;
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

/* Last row with 2 cards: center them */
.services-grid .service-card:nth-child(4) {
  grid-column: 1 / 2;
}
.services-grid .service-card:nth-child(5) {
  grid-column: 2 / 3;
}

@media (min-width: 901px) {
  /* Center the last 2 cards in a 5-card grid */
  .services-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .services-grid .service-card:nth-child(1) { grid-column: 1 / 3; }
  .services-grid .service-card:nth-child(2) { grid-column: 3 / 5; }
  .services-grid .service-card:nth-child(3) { grid-column: 5 / 7; }
  .services-grid .service-card:nth-child(4) { grid-column: 2 / 4; }
  .services-grid .service-card:nth-child(5) { grid-column: 4 / 6; }
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .services-grid .service-card:nth-child(n) { grid-column: auto; }
}

.service-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-divider);
  transition: transform var(--transition-interactive),
              box-shadow var(--transition-interactive),
              border-color var(--transition-interactive);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.service-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.service-card-body {
  padding: var(--space-6);
}

.service-card-body h3 {
  font-size: var(--text-lg);
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.service-card-body p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ============================================
   TRUST / CREDENTIALS SECTION
   ============================================ */
.trust-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  text-align: center;
  margin-bottom: var(--space-12);
}

@media (max-width: 600px) {
  .trust-stats { grid-template-columns: 1fr; gap: var(--space-6); }
}

.trust-stat {
  padding: var(--space-6);
}

.trust-stat .stat-number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.trust-stat .stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 500;
}

.cert-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  transition: border-color var(--transition-interactive),
              box-shadow var(--transition-interactive);
}
.cert-badge:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}
.cert-badge svg {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* ============================================
   ABOUT TEASER
   ============================================ */
.about-teaser-content {
  max-width: var(--content-narrow);
  margin: 0 auto;
  text-align: center;
}
.about-teaser-content h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}
.about-teaser-content h3 {
  font-size: var(--text-lg);
  color: var(--color-primary);
  font-weight: 400;
  font-style: italic;
  margin-bottom: var(--space-6);
}
.about-teaser-content p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  margin-left: auto;
  margin-right: auto;
}
.about-teaser-content .link-arrow {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.about-teaser-content .link-arrow:hover {
  gap: var(--space-3);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  position: relative;
  overflow: hidden;
  padding: clamp(var(--space-16), 8vw, var(--space-32)) var(--space-6);
  text-align: center;
}
.cta-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.cta-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 20, 25, 0.92) 0%,
    rgba(0, 95, 70, 0.85) 100%
  );
}
.cta-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}
.cta-content h2 {
  font-size: var(--text-xl);
  color: #ffffff;
  margin-bottom: var(--space-4);
}
.cta-content p {
  color: #c8cdd4;
  margin-bottom: var(--space-8);
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  max-width: var(--content-wide);
  margin: 0 auto;
}
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: var(--space-8); }
}

.form-group {
  margin-bottom: var(--space-5);
}
.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--text-base);
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 133, 106, 0.15);
}
.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--color-primary);
}
.checkbox-group label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.contact-info-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  border: 1px solid var(--color-divider);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.contact-info-item:last-child { margin-bottom: 0; }

.contact-info-item svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info-item h4 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: var(--space-1);
  color: var(--color-text);
}
.contact-info-item p,
.contact-info-item a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ============================================
   LEGAL PAGES (Impressum, Datenschutz)
   ============================================ */
.legal-content {
  max-width: var(--content-narrow);
  margin: 0 auto;
  padding: var(--space-24) var(--space-6) var(--space-16);
}
.legal-content h1 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-8);
}
.legal-content h2 {
  font-size: var(--text-lg);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
}
.legal-content h3 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}
.legal-content p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  line-height: 1.8;
}
.legal-content ul {
  list-style: disc;
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}
.legal-content ul li {
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
  line-height: 1.7;
}
.legal-content a {
  word-break: break-all;
}
.legal-content strong {
  color: var(--color-text);
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-content {
  max-width: var(--content-narrow);
  margin: 0 auto;
}

.about-content h1 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-8);
  text-align: center;
}
.about-content h2 {
  font-size: var(--text-lg);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
}
.about-content p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  line-height: 1.8;
}
.about-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-6);
}
.about-content ul li {
  padding: var(--space-2) 0;
  color: var(--color-text-muted);
  position: relative;
  padding-left: var(--space-6);
}
.about-content ul li::before {
  content: '•';
  position: absolute;
  left: var(--space-2);
  color: var(--color-primary);
  font-weight: bold;
}
.about-content .cert-list li::before {
  content: '✓';
  color: var(--color-primary);
  font-weight: bold;
}

.about-content .intro-highlight {
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-primary);
  margin-bottom: var(--space-6);
}

/* ============================================
   PAGE HEADER (inner pages)
   ============================================ */
.page-header {
  padding: calc(80px + var(--space-12)) var(--space-6) var(--space-10);
  background: var(--color-dark);
  text-align: center;
}
.page-header h1 {
  font-size: var(--text-xl);
  color: #ffffff;
}
.page-header p {
  color: #9aa1ad;
  margin-top: var(--space-3);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--color-dark, #0f1419);
  color: #9aa1ad;
  padding: var(--space-12) var(--space-6) var(--space-6);
}

.footer-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-6); }
}

.footer-brand .logo-link {
  margin-bottom: var(--space-4);
}
.site-footer .logo-text {
  color: #e8ecf0;
}
.site-footer .logo-text span {
  color: #7a8290;
}
.footer-brand p {
  font-size: var(--text-sm);
  color: #7a8290;
  max-width: 35ch;
  line-height: 1.7;
}

.footer-links h4 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  color: #e8ecf0;
  margin-bottom: var(--space-4);
}
.footer-links ul {
  list-style: none;
  padding: 0;
}
.footer-links li { margin-bottom: var(--space-2); }
.footer-links a {
  font-size: var(--text-sm);
  color: #7a8290;
  transition: color var(--transition-interactive);
}
.footer-links a:hover { color: var(--color-primary-light, #00b894); }

.footer-social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  color: #9aa1ad;
  transition: background var(--transition-interactive), color var(--transition-interactive);
}
.footer-social a:hover {
  background: var(--color-primary);
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: #5a6270;
}

.footer-bottom a {
  color: #7a8290;
  font-size: var(--text-xs);
}
.footer-bottom a:hover { color: var(--color-primary-light, #00b894); }

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger > .fade-in:nth-child(1) { transition-delay: 0ms; }
.stagger > .fade-in:nth-child(2) { transition-delay: 100ms; }
.stagger > .fade-in:nth-child(3) { transition-delay: 200ms; }
.stagger > .fade-in:nth-child(4) { transition-delay: 300ms; }
.stagger > .fade-in:nth-child(5) { transition-delay: 400ms; }

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.mb-0 { margin-bottom: 0; }

/* ============================================
   TURNSTILE / PHONE PROTECTION
   ============================================ */
.phone-hint {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
  line-height: 1.5;
}

#phone-revealed a {
  font-size: var(--text-sm);
  color: var(--color-primary);
  font-weight: 600;
}

.cf-turnstile {
  margin-top: var(--space-2);
}

/* Cookie Settings Button in Footer */
.consent-settings-link {
  background: none;
  border: none;
  color: #7a8290;
  font-size: var(--text-xs);
  cursor: pointer;
  padding: 0;
  font-family: var(--font-body);
  transition: color var(--transition-interactive);
}
.consent-settings-link:hover {
  color: var(--color-primary-light, #00b894);
}
