/*
Theme Name: Butzbach IT & Consulting
Theme URI: https://butzbach-it.de
Author: Butzbach IT & Consulting
Author URI: https://butzbach-it.de
Description: Modernes, dunkles WordPress-Theme für IT- & Consulting-Unternehmen. Modularer Aufbau, ACF-fähig, barrierefrei.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: butzbach-it
Tags: dark, business, accessibility-ready, custom-menu, custom-logo
*/

/* ===== CSS Custom Properties ===== */
:root {
  --bg: hsl(220, 20%, 7%);
  --bg-alt: hsl(220, 18%, 10%);
  --bg-light: hsl(220, 15%, 13%);
  --fg: hsl(45, 10%, 90%);
  --fg-muted: hsl(220, 10%, 55%);
  --card: hsl(216, 28%, 9%);
  --primary: hsl(43, 72%, 47%);
  --primary-fg: hsl(220, 20%, 7%);
  --secondary: hsl(220, 15%, 15%);
  --border: hsl(220, 15%, 16%);
  --radius: 0.75rem;
  --font-heading: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; background: var(--bg); }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 800; line-height: 1.1; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ===== Utility Classes ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 960px; margin: 0 auto; padding: 0 1.5rem; }
.container-xs { max-width: 768px; margin: 0 auto; padding: 0 1.5rem; }

.text-gradient {
  background: linear-gradient(135deg, var(--primary), hsl(43, 80%, 65%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section { padding: 7rem 0; }
.section-alt { background: var(--bg-alt); }
.section-light { background: var(--bg-light); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  transition: opacity 0.2s, background 0.2s, transform 0.1s;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
}
.btn-primary:hover { opacity: 0.9; }

.btn-outline {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
}
.btn-outline:hover { background: var(--secondary); }

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid hsla(43, 72%, 47%, 0.4);
}
.btn-ghost:hover { background: hsla(43, 72%, 47%, 0.1); }

.overline {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 2rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover { border-color: hsla(43, 72%, 47%, 0.3); }

.icon-box {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: hsla(43, 72%, 47%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-box svg { color: var(--primary); width: 1.25rem; height: 1.25rem; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: hsla(43, 72%, 47%, 0.1);
  border: 1px solid hsla(43, 72%, 47%, 0.25);
  border-radius: 9999px;
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
}

.divider { width: 1.5rem; height: 2px; background: var(--primary); display: block; }

/* ===== Grid Helpers ===== */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

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

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: hsla(220, 20%, 7%, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-logo img { height: 3rem; width: auto; }
.navbar-links { display: flex; align-items: center; gap: 2rem; }
.navbar-links a {
  font-size: 0.875rem;
  color: var(--fg-muted);
  transition: color 0.2s;
}
.navbar-links a:hover { color: var(--fg); }
.navbar-links a.active { color: var(--primary); }

.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--fg-muted);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: color 0.2s;
}
.nav-dropdown-toggle:hover { color: var(--fg); }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0.75rem;
  width: 18rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  padding: 0.5rem 0;
  z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  color: var(--fg-muted);
  transition: background 0.2s, color 0.2s;
}
.nav-dropdown-menu a:hover { background: hsla(220, 15%, 15%, 0.5); color: var(--fg); }
.nav-dropdown-menu a.active { color: var(--primary); background: hsla(43, 72%, 47%, 0.05); }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--fg);
  cursor: pointer;
}
.mobile-menu { display: none; }

@media (max-width: 768px) {
  .navbar-links { display: none; }
  .mobile-toggle { display: flex; }
  .mobile-menu.open {
    display: block;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0 1.5rem 1.5rem;
  }
  .mobile-menu a {
    display: block;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: var(--fg-muted);
  }
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 4rem;
  position: relative;
  overflow: hidden;
}
.hero-content { max-width: 48rem; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
}
.hero p.lead {
  font-size: 1.125rem;
  color: var(--fg-muted);
  max-width: 36rem;
  line-height: 1.7;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  padding-top: 1.5rem;
}
.hero-stat {
  text-align: center;
  padding: 0 1.5rem;
}
.hero-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-heading);
}
.hero-stat-sep {
  width: 1px;
  height: 2.5rem;
  background: var(--border);
  flex-shrink: 0;
}

/* ===== Positioning ===== */
.positioning-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--card);
  transition: border-color 0.2s;
}
.positioning-card:hover { border-color: hsla(43, 72%, 47%, 0.2); }

/* ===== Services Grid ===== */
.service-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 2rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  border-color: hsla(43, 72%, 47%, 0.4);
  box-shadow: 0 20px 40px -15px hsla(43, 72%, 47%, 0.1);
}
.service-card h3 { font-size: 1.25rem; margin: 1.25rem 0 0.75rem; }
.service-card .tags { list-style: none; padding: 0; }
.service-card .tags li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--fg-muted);
  padding: 0.25rem 0;
}
.service-card .tags li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 0.5rem;
  flex-shrink: 0;
}
.service-card .more {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 1rem;
  transition: gap 0.2s;
}
.service-card:hover .more { gap: 0.75rem; }

/* ===== Process Steps ===== */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
@media (max-width: 1024px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .process-grid { grid-template-columns: 1fr; } }
.process-step .num {
  font-size: 3rem;
  font-weight: 800;
  color: hsla(43, 72%, 47%, 0.1);
  font-family: var(--font-heading);
  line-height: 1;
}

/* ===== Why Me / Reasons ===== */
.reason-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--card);
  transition: border-color 0.2s;
}
.reason-card:hover { border-color: hsla(43, 72%, 47%, 0.2); }

/* ===== Foerdermittel ===== */
.foerder-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--card);
  transition: border-color 0.2s;
}
.foerder-item:hover { border-color: hsla(43, 72%, 47%, 0.3); }
.foerder-item span { font-size: 0.875rem; font-weight: 500; }

/* ===== Partner ===== */
.partner-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-align: left;
}
.partner-card:hover {
  border-color: hsla(43, 72%, 47%, 0.3);
  box-shadow: 0 15px 30px -10px hsla(43, 72%, 47%, 0.05);
}

/* ===== Fachhändler Marquee ===== */
.marquee-wrap { position: relative; overflow: hidden; }
.marquee-mask-left,
.marquee-mask-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 6rem;
  z-index: 10;
}
.marquee-mask-left { left: 0; background: linear-gradient(to right, var(--bg-alt), transparent); }
.marquee-mask-right { right: 0; background: linear-gradient(to left, var(--bg-alt), transparent); }
.marquee-track {
  display: flex;
  gap: 1.5rem;
  padding: 0.75rem 0;
  animation: marquee 40s linear infinite;
}
.marquee-track.reverse { animation: marquee-reverse 35s linear infinite; }
.brand-item {
  flex-shrink: 0;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--card);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 160px;
  justify-content: center;
  transition: border-color 0.2s;
}
.brand-item:hover { border-color: hsla(43, 72%, 47%, 0.2); }
.brand-item img {
  height: 1.5rem;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.brand-item:hover img { opacity: 1; }
.brand-item span { font-size: 0.875rem; color: var(--fg-muted); font-weight: 500; }

@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes marquee-reverse { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }

/* ===== Contact Section ===== */
.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-bottom: 0.375rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  color: var(--fg);
  font-family: var(--font-body);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: hsla(220, 10%, 55%, 0.5);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.btn-submit {
  width: 100%;
  background: var(--primary);
  color: var(--primary-fg);
  font-weight: 600;
  padding: 0.75rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  cursor: pointer;
  font-family: var(--font-body);
  transition: opacity 0.2s;
}
.btn-submit:hover { opacity: 0.9; }

/* ===== Service Page Layout ===== */
.service-hero {
  padding: 8rem 0 6rem;
  position: relative;
  overflow: hidden;
}
.service-hero .overline { font-size: 0.75rem; }
.service-hero h1 {
  font-size: clamp(2rem, 5vw, 3.75rem);
  margin-bottom: 1.5rem;
}
.service-icon {
  width: 6rem;
  height: 6rem;
  border-radius: 1rem;
  background: hsla(43, 72%, 47%, 0.1);
  border: 1px solid hsla(43, 72%, 47%, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-icon svg { width: 3rem; height: 3rem; color: var(--primary); }

.stat-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
@media (max-width: 640px) { .stat-bar { grid-template-columns: repeat(2, 1fr); } }
.stat-value {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s;
}
.feature-card:hover { border-color: hsla(43, 72%, 47%, 0.3); }
.feature-card .num {
  font-size: 0.75rem;
  font-weight: 700;
  color: hsla(43, 72%, 47%, 0.4);
  margin-bottom: 0.75rem;
}

.process-timeline .timeline-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
}
.timeline-dot {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: hsla(43, 72%, 47%, 0.1);
  border: 1px solid hsla(43, 72%, 47%, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--primary);
}
.timeline-line {
  width: 1px;
  background: var(--border);
  margin: 0.5rem auto;
  min-height: 3.75rem;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: 0.75rem;
  transition: background 0.2s;
}
.benefit-item:hover { background: var(--card); }
.benefit-check { color: var(--primary); flex-shrink: 0; margin-top: 0.125rem; }

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 1rem;
}
.faq-item summary {
  padding: 1.25rem 1.75rem;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  transition: color 0.2s;
}
.faq-item summary:hover { color: var(--primary); }
.faq-item summary::marker,
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .faq-toggle { color: var(--primary); font-size: 1.25rem; transition: transform 0.2s; }
.faq-item[open] .faq-toggle { transform: rotate(45deg); }
.faq-item .faq-answer {
  padding: 0 1.75rem 1.25rem;
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

.related-service {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: border-color 0.2s;
}
.related-service:hover { border-color: hsla(43, 72%, 47%, 0.3); }

.cta-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 3rem 4rem;
  text-align: center;
}
@media (max-width: 640px) { .cta-box { padding: 2rem; } }

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 1024px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }

.footer h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.footer a {
  font-size: 0.875rem;
  color: var(--fg-muted);
  transition: color 0.2s;
  display: block;
  padding: 0.3rem 0;
}
.footer a:hover { color: var(--fg); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.75rem; color: var(--fg-muted); }
.footer-bottom a { font-size: 0.75rem; display: inline; }

/* ===== Legal Pages ===== */
.legal-content h2 { font-size: 1.125rem; font-weight: 600; margin: 2rem 0 0.5rem; color: var(--fg); }
.legal-content h3 { font-weight: 500; margin: 1rem 0 0.25rem; color: var(--fg); }
.legal-content p { font-size: 0.875rem; color: var(--fg-muted); line-height: 1.7; margin-bottom: 0.75rem; }
.legal-content ul { padding-left: 1.25rem; list-style: disc; }
.legal-content ul li { font-size: 0.875rem; color: var(--fg-muted); padding: 0.25rem 0; }

/* ===== Contact Page ===== */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 1024px) { .contact-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .contact-cards { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: border-color 0.2s;
}
.contact-card:hover { border-color: hsla(43, 72%, 47%, 0.3); }

/* ===== Accessibility Panel ===== */
.a11y-trigger {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 60;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-fg);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: opacity 0.2s;
}
.a11y-trigger:hover { opacity: 0.9; }
.a11y-trigger svg { width: 1.375rem; height: 1.375rem; }

.a11y-panel {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
}
.a11y-panel.open { display: flex; align-items: center; justify-content: flex-end; padding: 1rem 1.5rem; }
.a11y-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
}
.a11y-content {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  width: 100%;
  max-width: 24rem;
  max-height: 85vh;
  overflow-y: auto;
}

/* a11y classes */
html.a11y-readable * { font-family: Arial, Helvetica, sans-serif !important; }
html.a11y-contrast { filter: contrast(1.4); }
html.a11y-grayscale { filter: grayscale(1); }
html.a11y-contrast.a11y-grayscale { filter: contrast(1.4) grayscale(1); }
html.a11y-no-images img,
html.a11y-no-images svg:not([data-a11y-keep]),
html.a11y-no-images video { visibility: hidden !important; }
html.a11y-no-motion *,
html.a11y-no-motion *::before,
html.a11y-no-motion *::after {
  animation-duration: 0s !important;
  transition-duration: 0s !important;
}
html.a11y-highlight-links a {
  outline: 2px solid var(--primary) !important;
  outline-offset: 2px;
  text-decoration: underline !important;
}
html.a11y-focus *:focus {
  outline: 3px solid var(--primary) !important;
  outline-offset: 3px;
}

/* ===== Animations ===== */
@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } }
@keyframes float-card { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes scroll-wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(8px); } }

.animate-spin-slow { animation: spin-slow 30s linear infinite; }
.animate-pulse-dot { animation: pulse-dot 2s ease-in-out infinite; }
.animate-float { animation: float-card 4s ease-in-out infinite; }
.animate-float-delayed { animation: float-card 4s ease-in-out infinite 2s; }

/* ===== Scroll animations ===== */
.fade-in-up {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger children inside a grid */
.stagger > .fade-in-up:nth-child(2) { transition-delay: 0.08s; }
.stagger > .fade-in-up:nth-child(3) { transition-delay: 0.16s; }
.stagger > .fade-in-up:nth-child(4) { transition-delay: 0.24s; }
.stagger > .fade-in-up:nth-child(5) { transition-delay: 0.32s; }
.stagger > .fade-in-up:nth-child(6) { transition-delay: 0.40s; }
/* Never hide on no-js */
.no-js .fade-in-up { opacity: 1; transform: none; }

/* ===== Accessibility button active state ===== */
.a11y-btn.active {
  background: hsla(43, 72%, 47%, 0.15) !important;
  border-color: hsla(43, 72%, 47%, 0.45) !important;
  color: var(--primary) !important;
}

/* ===== Focus visible (keyboard nav) ===== */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ===== Service hero responsive grid ===== */
.service-hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 640px) {
  .service-hero-grid { grid-template-columns: 1fr; }
  .service-hero-grid .service-icon { display: none; }
}

/* ===== WordPress Specific ===== */
.wp-block-image { margin: 1.5rem 0; }
.alignleft { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }
.aligncenter { display: block; margin: 1.5rem auto; }
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}
