/* ═══════════════════════════════════════════════════════════════
   schmitz-dop.de — Design System & Stylesheet
   Kameramann & Director of Photography — Christian Schmitz
   ═══════════════════════════════════════════════════════════════ */

/* ── Fonts ── */
@font-face {
  font-family: 'Syne';
  src: url('../fonts/syne-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Syne';
  src: url('../fonts/syne-latin-ext.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-latin-ext.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── Design Tokens ── */
:root {
  /* Colors */
  --bg: #FAFAFA;
  --bg-alt: #F5F3F0;
  --text: #1E293B;
  --text-secondary: #636E72;
  --text-muted: #B2BEC3;
  --accent: #0097A7;
  --accent-light: #4DD0E1;
  --accent-dark: #00838F;
  --red: #E74C3C;
  --red-light: #FF7675;
  --border: #DFE6E9;
  --dark: #1A1A2E;
  --dark-lighter: #232340;
  --dark-surface: rgba(255, 255, 255, 0.06);
  --overlay: rgba(26, 26, 46, 0.75);
  --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --card-shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.12);
  --white: #FFFFFF;

  /* Typography */
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  /* Spacing (8dp) */
  --space-xs: 4px;
  --space-s: 8px;
  --space-m: 16px;
  --space-l: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Layout */
  --max-width: 1280px;
  --content-width: 1080px;
  --text-width: 680px;
  --nav-height: 72px;
  --nav-height-mobile: 64px;
  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 12px;

  /* Transitions */
  --transition: 300ms cubic-bezier(0.23, 1, 0.32, 1);
  --transition-slow: 600ms cubic-bezier(0.23, 1, 0.32, 1);
  --transition-fast: 150ms ease-out;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ── Focus States (Accessibility) ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Skip Link ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-m);
  background: var(--accent);
  color: #fff;
  padding: var(--space-s) var(--space-m);
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 9999;
}
.skip-link:focus { top: var(--space-m); }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 600; }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }

p { max-width: var(--text-width); margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.text-accent { color: var(--accent); }
.text-muted { color: var(--text-secondary); }
.text-center { text-align: center; }
.text-center p { margin-left: auto; margin-right: auto; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-m);
}

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

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

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

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

.section-dark .text-muted,
.section-dark .section-label {
  color: var(--accent-light);
}

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

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-s);
  padding: 14px var(--space-xl);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 151, 167, 0.25);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 151, 167, 0.35);
}

.btn-outline {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--text);
}
.btn-white:hover {
  background: var(--bg-alt);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

.btn-red {
  background: var(--red);
  color: #fff;
}
.btn-red:hover {
  background: #c0392b;
  transform: translateY(-2px);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-m);
}

/* ═══════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  transition: var(--transition);
}

.nav.scrolled {
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

/* Dark nav for dark hero pages */
.nav-dark {
  background: rgba(26, 26, 46, 0.85);
}
.nav-dark .nav-logo,
.nav-dark .nav-link { color: #fff; }
.nav-dark.scrolled {
  background: rgba(26, 26, 46, 0.95);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  white-space: nowrap;
}
.nav-logo span {
  color: var(--accent);
}

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

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  transition: color var(--transition-fast);
  position: relative;
}
.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-btn {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition-fast);
}
.nav-dark .nav-dropdown-btn { color: #fff; }
.nav-dropdown-btn:hover { color: var(--accent); }
.nav-dropdown-btn svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}
.nav-dropdown:hover .nav-dropdown-btn svg,
.nav-dropdown.open .nav-dropdown-btn svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: -16px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  padding: var(--space-s) 0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-link {
  display: block;
  padding: 10px 20px;
  font-size: 0.9375rem;
  color: var(--text);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.nav-dropdown-link:hover {
  background: var(--bg-alt);
  color: var(--accent);
}

/* Nav CTA */
.nav-cta {
  padding: 10px 20px;
  font-size: 0.875rem;
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-dark .nav-toggle span { background: #fff; }

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 999;
  padding: calc(var(--nav-height) + var(--space-2xl)) var(--space-xl) var(--space-2xl);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.nav-mobile.open {
  opacity: 1;
  visibility: visible;
}

.nav-mobile-link {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  padding: var(--space-m) 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color var(--transition-fast);
}
.nav-mobile-link:hover { color: var(--accent-light); }

.nav-mobile-sub {
  padding-left: var(--space-l);
}
.nav-mobile-sub a {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  padding: var(--space-s) 0;
  display: block;
}
.nav-mobile-sub a:hover { color: var(--accent-light); }

.nav-mobile-cta {
  margin-top: var(--space-xl);
}

/* ═══════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--dark);
  color: #fff;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img,
.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 26, 46, 0.7) 0%,
    rgba(26, 26, 46, 0.5) 40%,
    rgba(26, 26, 46, 0.8) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}
.hero-content p {
  font-size: 1.1875rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: var(--space-xl);
  max-width: 600px;
}
.hero-content h1 {
  color: #fff;
  margin-bottom: var(--space-l);
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-s);
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--accent-light);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { top: -50%; }
  100% { top: 150%; }
}

/* Hero small (subpages) */
.hero-small {
  min-height: 50vh;
  padding-top: calc(var(--nav-height) + var(--space-3xl));
  padding-bottom: var(--space-3xl);
}

/* ═══════════════════════════════════════════════════
   STATS BAR
   ═══════════════════════════════════════════════════ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-l);
  text-align: center;
  padding: var(--space-3xl) 0;
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--accent-light);
  line-height: 1;
}
.stat-label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  margin-top: var(--space-s);
}

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

.service-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--dark);
}

.service-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform var(--transition-slow);
}
.service-card:hover .service-card-bg {
  transform: scale(1.05);
}

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26, 26, 46, 0.85) 0%,
    rgba(26, 26, 46, 0.2) 50%,
    transparent 100%
  );
  transition: background var(--transition);
}
.service-card:hover .service-card-overlay {
  background: linear-gradient(
    to top,
    rgba(26, 26, 46, 0.9) 0%,
    rgba(26, 26, 46, 0.4) 60%,
    rgba(26, 26, 46, 0.2) 100%
  );
}

.service-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-l);
  z-index: 1;
}
.service-card-content h3 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
}
.service-card-content p {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  margin-bottom: var(--space-m);
  max-width: none;
}
.service-card-arrow {
  color: var(--accent-light);
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  transition: gap var(--transition);
}
.service-card:hover .service-card-arrow {
  gap: var(--space-s);
}

/* ═══════════════════════════════════════════════════
   LOGO MARQUEE
   ═══════════════════════════════════════════════════ */
.marquee {
  overflow: hidden;
  padding: var(--space-2xl) 0;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: var(--space-3xl);
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-logo {
  height: 36px;
  width: auto;
  opacity: 0.4;
  filter: grayscale(1);
  transition: var(--transition);
}
.marquee-logo:hover {
  opacity: 1;
  filter: grayscale(0);
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════════
   PORTFOLIO GRID
   ═══════════════════════════════════════════════════ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  margin-bottom: var(--space-xl);
}
.filter-btn {
  padding: var(--space-s) var(--space-m);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--white);
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

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

.portfolio-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  cursor: pointer;
  background: var(--dark);
}

.portfolio-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.portfolio-card:hover .portfolio-card-img {
  transform: scale(1.05);
}

.portfolio-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,46,0.85) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-l);
}
.portfolio-card:hover .portfolio-card-overlay {
  opacity: 1;
}

.portfolio-card-title {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
}
.portfolio-card-meta {
  color: rgba(255,255,255,0.7);
  font-size: 0.8125rem;
  margin-top: var(--space-xs);
}
.portfolio-card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 64px;
  height: 64px;
  background: rgba(0, 151, 167, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.portfolio-card-play svg {
  width: 24px;
  height: 24px;
  fill: #fff;
  margin-left: 3px;
}
.portfolio-card:hover .portfolio-card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ═══════════════════════════════════════════════════
   LIGHTBOX
   ═══════════════════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
}
.lightbox-close {
  position: absolute;
  top: var(--space-l);
  right: var(--space-l);
  width: 44px;
  height: 44px;
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2001;
  transition: opacity var(--transition-fast);
}
.lightbox-close:hover { opacity: 0.7; }
.lightbox-content {
  width: 100%;
  max-width: 1000px;
  aspect-ratio: 16/9;
}
.lightbox-content iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius);
}

/* ═══════════════════════════════════════════════════
   ABOUT / BIO SECTION
   ═══════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-3xl);
  align-items: center;
}
.about-img {
  border-radius: var(--radius-lg);
  aspect-ratio: 3/4;
  object-fit: cover;
  width: 100%;
}
.about-content h2 { margin-bottom: var(--space-l); }
.about-content p { color: var(--text-secondary); }

/* ═══════════════════════════════════════════════════
   WORKFLOW / PROCESS
   ═══════════════════════════════════════════════════ */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-l);
}
.workflow-step {
  text-align: center;
  padding: var(--space-xl) var(--space-m);
}
.workflow-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: var(--space-m);
}
.workflow-step h3 {
  margin-bottom: var(--space-s);
}
.workflow-step p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  max-width: none;
}

/* ═══════════════════════════════════════════════════
   EQUIPMENT ACCORDION
   ═══════════════════════════════════════════════════ */
.accordion {
  border-top: 1px solid var(--border);
  max-width: var(--content-width);
}
.accordion-item {
  border-bottom: 1px solid var(--border);
}
.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--space-l);
  width: 100%;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  transition: color var(--transition-fast);
  cursor: pointer;
}
.accordion-header:hover { color: var(--accent); }
.accordion-header[aria-expanded="true"] {
  color: var(--accent);
}
.accordion-icon {
  width: 20px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
}
.accordion-icon::before,
.accordion-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  transition: transform var(--transition);
}
.accordion-icon::before {
  width: 100%;
  height: 2px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}
.accordion-icon::after {
  width: 2px;
  height: 100%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}
.accordion-header[aria-expanded="true"] .accordion-icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.accordion-panel-inner {
  padding: 0 var(--space-l) var(--space-l);
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}
.accordion-panel-inner ul {
  list-style: disc;
  padding-left: 1.25em;
}
.accordion-panel-inner li {
  margin-bottom: var(--space-xs);
}

/* ═══════════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════════ */
.cta-section {
  text-align: center;
}
.cta-section h2 {
  margin-bottom: var(--space-m);
}
.cta-section p {
  margin-left: auto;
  margin-right: auto;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}
.section-dark .cta-section p {
  color: rgba(255,255,255,0.7);
}

/* ═══════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════ */
.faq-list {
  max-width: var(--text-width);
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: var(--space-l) 0;
}
.faq-question {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  margin-bottom: var(--space-s);
  color: var(--text);
}
.faq-answer {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}
.faq-answer p { max-width: none; }

/* ═══════════════════════════════════════════════════
   CONTACT FORM
   ═══════════════════════════════════════════════════ */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-l);
  max-width: var(--text-width);
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.form-group-full {
  grid-column: 1 / -1;
}
.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}
.form-input,
.form-textarea,
.form-select {
  padding: 14px var(--space-m);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition-fast);
  width: 100%;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent);
  outline: none;
}
.form-textarea {
  min-height: 150px;
  resize: vertical;
}
.form-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════
   BLOG CARDS
   ═══════════════════════════════════════════════════ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-l);
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}
.blog-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-4px);
}
.blog-card-img {
  aspect-ratio: 16/9;
  object-fit: cover;
  width: 100%;
}
.blog-card-body {
  padding: var(--space-l);
}
.blog-card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: var(--space-s);
}
.blog-card-body h3 {
  margin-bottom: var(--space-s);
  font-size: 1.125rem;
}
.blog-card-body p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  max-width: none;
}

/* ═══════════════════════════════════════════════════
   CARDS (General)
   ═══════════════════════════════════════════════════ */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-4px);
}

/* Feature List with check marks */
.feature-list {
  list-style: none;
}
.feature-list li {
  position: relative;
  padding-left: var(--space-l);
  margin-bottom: var(--space-s);
  color: var(--text-secondary);
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 8l3 3 5-5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: var(--space-3xl) 0 var(--space-xl);
}

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

.footer-brand p {
  max-width: 300px;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.5);
  margin-top: var(--space-m);
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: var(--space-m);
}

.footer-links a {
  display: block;
  color: rgba(255,255,255,0.5);
  font-size: 0.9375rem;
  padding: var(--space-xs) 0;
  transition: color var(--transition-fast);
}
.footer-links a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
}
.footer-legal {
  display: flex;
  gap: var(--space-l);
}
.footer-legal a {
  color: rgba(255,255,255,0.4);
  transition: color var(--transition-fast);
}
.footer-legal a:hover {
  color: rgba(255,255,255,0.8);
}

/* ═══════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ═══════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }
.reveal-delay-6 { transition-delay: 0.48s; }

/* ═══════════════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════════════ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ═══════════════════════════════════════════════════
   404 PAGE
   ═══════════════════════════════════════════════════ */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-2xl);
}
.error-code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 700;
  color: var(--border);
  line-height: 1;
}

/* ═══════════════════════════════════════════════════
   SUCCESS PAGE
   ═══════════════════════════════════════════════════ */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-2xl);
}
.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-l);
}
.success-icon svg {
  width: 40px;
  height: 40px;
  stroke: #fff;
}

/* ═══════════════════════════════════════════════════
   LEGAL PAGES
   ═══════════════════════════════════════════════════ */
.legal-content {
  max-width: var(--text-width);
  margin: 0 auto;
}
.legal-content h2 {
  font-size: 1.5rem;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-m);
}
.legal-content h3 {
  font-size: 1.125rem;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-s);
}
.legal-content p,
.legal-content li {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: none;
}
.legal-content ul {
  list-style: disc;
  padding-left: 1.25em;
  margin-bottom: 1em;
}
.legal-content li {
  margin-bottom: var(--space-xs);
}
.legal-content a {
  color: var(--accent);
}
.legal-content a:hover {
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .hero-scroll-line::after { animation: none; }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .container { padding: 0 var(--space-l); }
  .section { padding: var(--space-3xl) 0; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .workflow-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
  .about-grid { gap: var(--space-2xl); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-height: var(--nav-height-mobile); }
  .container { padding: 0 20px; }
  .section { padding: var(--space-2xl) 0; }

  /* Nav */
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile { display: block; }

  /* Hero */
  .hero { min-height: 85vh; }
  .hero-small { min-height: auto; padding-top: calc(var(--nav-height) + var(--space-2xl)); padding-bottom: var(--space-2xl); }
  .hero-content h1 { font-size: clamp(1.75rem, 7vw, 2.5rem); }
  .hero-scroll { display: none; }

  /* Grids */
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .workflow-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: var(--space-m); }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-bottom { flex-direction: column; gap: var(--space-m); text-align: center; }
  .footer-legal { justify-content: center; }

  /* Buttons */
  .btn-group { flex-direction: column; }
  .btn-group .btn { width: 100%; }

  /* Filter bar horizontal scroll */
  .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--space-s);
  }
  .filter-btn {
    flex-shrink: 0;
    scroll-snap-align: start;
  }
}
