/* ============================================================
   Handwerkerkiste - Modern Redesign
   ============================================================ */

/* --- Custom Properties --- */
:root {
  --color-primary: #E87A2E;
  --color-primary-dark: #C4641F;
  --color-primary-light: #FFF3EB;
  --color-dark: #1B2434;
  --color-dark-soft: #2D3A4A;
  --color-text: #3A3A3A;
  --color-text-light: #6B7280;
  --color-bg: #FFFFFF;
  --color-bg-warm: #FAF8F5;
  --color-bg-grey: #F3F1EE;
  --color-border: #E5E2DD;
  --color-white: #FFFFFF;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-card: 0 2px 12px rgba(0,0,0,0.06);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --max-width: 1140px;
  --nav-height: 72px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary-dark);
}

address {
  font-style: normal;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-dark);
  line-height: 1.3;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 600; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center { text-align: center; }
.text-muted { color: var(--color-text-light); }
.lead { font-size: 1.15rem; color: var(--color-text-light); line-height: 1.8; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 2px solid transparent;
  letter-spacing: 0.02em;
}

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

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

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

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


/* ============================================================
   NAVIGATION
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.header--scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255,255,255,0.98);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 42px;
  width: auto;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              filter 0.4s ease;
}

.nav-logo:hover .nav-logo-img {
  transform: rotate(-8deg) scale(1.12);
  filter: drop-shadow(0 2px 8px rgba(232, 122, 46, 0.5));
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-dark);
  letter-spacing: -0.01em;
  transition: color 0.3s ease, letter-spacing 0.4s ease;
}

.nav-logo:hover .nav-logo-text {
  color: var(--color-primary);
  letter-spacing: 0.03em;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  align-items: center;
}

.nav-link {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-dark-soft);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--color-primary);
  background-color: var(--color-primary-light);
}

.nav-link.active {
  color: var(--color-primary);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 1px;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger {
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle--active .hamburger {
  background-color: transparent;
}

.nav-toggle--active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle--active .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}


/* ============================================================
   HERO (Home)
   ============================================================ */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 2rem) 1.5rem 4rem;
  background:
    linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-soft) 50%, #3D4F63 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 70%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(232,122,46,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--color-bg) 0%, transparent 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero-logo {
  width: 120px;
  height: auto;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.3));
  animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 4.5rem);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2.5vw, 1.4rem);
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}

.hero-text {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: rgba(255,255,255,0.75);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-cta .btn-outline {
  color: var(--color-white);
  border-color: rgba(255,255,255,0.4);
}

.hero-cta .btn-outline:hover {
  background-color: var(--color-white);
  color: var(--color-dark);
  border-color: var(--color-white);
}


/* ============================================================
   HIGHLIGHTS (Home - 3 columns)
   ============================================================ */

.highlights {
  padding: 5rem 0 4rem;
  background: var(--color-bg);
  position: relative;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.highlight-card {
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-md);
  background: var(--color-bg-warm);
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.highlight-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  border-radius: 50%;
  color: var(--color-primary);
}

.highlight-icon svg {
  width: 28px;
  height: 28px;
}

.highlight-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--color-dark);
}

.highlight-card p {
  font-size: 0.92rem;
  color: var(--color-text-light);
  line-height: 1.7;
}


/* ============================================================
   SERVICES PREVIEW (Home)
   ============================================================ */

.services-preview {
  padding: 5rem 0;
  background: var(--color-bg-warm);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-primary);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.service-item {
  text-align: center;
  padding: 2rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.service-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  color: var(--color-primary);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-item h3 {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-dark);
}


/* ============================================================
   CTA SECTION
   ============================================================ */

.cta-section {
  padding: 5rem 0;
  background:
    linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  text-align: center;
}

.cta-content h2 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.cta-content p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}


/* ============================================================
   PAGE HERO (Subpages)
   ============================================================ */

.page-hero {
  padding: calc(var(--nav-height) + 3rem) 1.5rem 3rem;
  text-align: center;
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-soft) 100%);
  position: relative;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, var(--color-bg) 0%, transparent 100%);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.page-hero h1 {
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
}


/* ============================================================
   CONTENT SECTIONS
   ============================================================ */

.content-section {
  padding: 4rem 0;
}

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

.section-intro {
  text-align: center;
  font-size: 1.05rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto 3rem;
}


/* ============================================================
   ABOUT PAGE
   ============================================================ */

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.about-image {
}

.about-image img {
  width: 100%;
  height: auto;
}

.about-text h2 {
  margin-bottom: 1rem;
}

.about-text .lead {
  margin-bottom: 1.5rem;
}

.about-highlight {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-primary);
  margin-top: 2rem;
}

.about-highlight-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  color: var(--color-primary);
}

.about-highlight p {
  font-size: 0.95rem;
  margin: 0;
}


/* ============================================================
   SERVICES PAGE
   ============================================================ */

.services-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-detail-card {
  padding: 2.5rem 2rem;
  border-radius: var(--radius-md);
  background: var(--color-bg-warm);
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-detail-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-detail-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  color: var(--color-primary);
}

.service-detail-icon svg {
  width: 100%;
  height: 100%;
}

.service-detail-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.service-detail-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.network-callout {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 2.5rem;
  margin-top: 3rem;
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-soft) 100%);
  border-radius: var(--radius-lg);
  color: var(--color-white);
}

.network-callout-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  color: var(--color-primary);
}

.network-callout-icon svg {
  width: 100%;
  height: 100%;
}

.network-callout h3 {
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.network-callout p {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
}


/* ============================================================
   REFERENCES PAGE
   ============================================================ */

.reference-project {
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--color-bg-warm);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.reference-title {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  color: var(--color-dark);
}

.reference-compare {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.reference-compare--single {
  justify-content: center;
}

.reference-image {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 360px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reference-image:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.reference-image--single {
  max-width: 400px;
}

.reference-image a {
  display: block;
}

.reference-image img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.reference-label {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  z-index: 1;
}

.reference-label--before {
  background: var(--color-dark);
  color: var(--color-white);
}

.reference-label--after {
  background: var(--color-primary);
  color: var(--color-white);
}

.reference-arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.reference-arrow svg {
  width: 100%;
  height: 100%;
}


/* ============================================================
   CONTACT PAGE
   ============================================================ */

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

#map_canvas {
  width: 100%;
  height: 380px;
}

.contact-info h2 {
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
}

.contact-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-card-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  color: var(--color-primary);
  margin-top: 2px;
}

.contact-card-icon svg {
  width: 100%;
  height: 100%;
}

.contact-note {
  font-size: 0.82rem;
  color: var(--color-text-light);
  font-style: italic;
  margin-top: 0.25rem;
}


/* ============================================================
   LEGAL TEXT
   ============================================================ */

.legal-text {
  max-width: 800px;
}

.legal-text h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  font-size: 1.1rem;
}

.legal-text h3:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.legal-text p {
  font-size: 0.92rem;
  color: var(--color-text-light);
}

.legal-address {
  padding: 1rem 1.5rem;
  background: var(--color-bg-warm);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-primary);
  margin: 1rem 0;
  font-size: 0.92rem;
}

.legal-list {
  list-style: none;
  padding: 0;
}

.legal-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.92rem;
  color: var(--color-text-light);
}

.legal-list li:last-child {
  border-bottom: none;
}


/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.7);
  padding-top: 3rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 2rem;
  align-items: start;
}

.footer-logo {
  height: 48px;
  width: auto;
  margin-bottom: 0.75rem;
  opacity: 0.8;
}

.footer-tagline {
  font-style: italic;
  font-size: 0.9rem;
}

.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.footer-contact a {
  color: var(--color-primary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1rem 1.5rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

.footer-credit {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-credit a {
  color: rgba(255,255,255,0.5);
  transition: color 0.2s ease;
}

.footer-credit a:hover {
  color: var(--color-primary);
}

.claude-stamp-footer {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem 0.2rem 0.4rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(217, 119, 87, 0.3);
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
}

.claude-stamp-footer:hover {
  background: rgba(217, 119, 87, 0.15);
  border-color: rgba(217, 119, 87, 0.6);
  transform: rotate(-3deg) scale(1.05);
}

.claude-stamp-footer svg.claude-logo {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px;
  max-width: 14px;
  min-height: 14px;
  max-height: 14px;
  flex: 0 0 14px;
  opacity: 0.8;
  display: inline-block;
  overflow: hidden;
  vertical-align: middle;
}

.claude-stamp-footer:hover .claude-logo {
  opacity: 1;
}

.claude-stamp-footer span {
  color: rgba(255,255,255,0.55);
}

.claude-stamp-footer:hover span {
  color: rgba(255,255,255,0.85);
}


/* ============================================================
   LIGHTBOX
   ============================================================ */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-overlay--active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.5rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 1;
}


/* ============================================================
   ANIMATIONS
   ============================================================ */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Stagger animation for grid items */
.highlights-grid .fade-in:nth-child(2) { transition-delay: 0.1s; }
.highlights-grid .fade-in:nth-child(3) { transition-delay: 0.2s; }

.services-grid .fade-in:nth-child(2) { transition-delay: 0.05s; }
.services-grid .fade-in:nth-child(3) { transition-delay: 0.1s; }
.services-grid .fade-in:nth-child(4) { transition-delay: 0.15s; }
.services-grid .fade-in:nth-child(5) { transition-delay: 0.2s; }

.services-detail-grid .fade-in:nth-child(2) { transition-delay: 0.1s; }
.services-detail-grid .fade-in:nth-child(3) { transition-delay: 0.2s; }
.services-detail-grid .fade-in:nth-child(4) { transition-delay: 0.3s; }
.services-detail-grid .fade-in:nth-child(5) { transition-delay: 0.4s; }


/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 900px) {
  .highlights-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image {
    max-width: 400px;
    margin: 0 auto;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-links {
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
  }

  .services-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 640px) {
  :root {
    --nav-height: 60px;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    position: relative;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    height: 100dvh;
    background: var(--color-white);
    flex-direction: column;
    padding: calc(var(--nav-height) + 1.5rem) 1.5rem 2rem;
    gap: 0.5rem;
    align-items: stretch;
    box-shadow: -4px 0 30px rgba(0,0,0,0.2);
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-menu--open {
    right: 0;
  }

  .nav-link {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  .nav-link.active::after {
    display: none;
  }

  .nav-link.active {
    background: var(--color-primary-light);
    border-radius: var(--radius-sm);
  }

  .nav-logo-text {
    font-size: 1.05rem;
  }

  .hero {
    min-height: 85vh;
    padding: calc(var(--nav-height) + 2rem) 1.25rem 3rem;
    overflow: hidden;
  }

  .hero-content {
    max-width: 100%;
    padding: 0 0.5rem;
  }

  .hero-logo {
    width: 80px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .reference-compare {
    flex-direction: column;
  }

  .reference-image {
    max-width: 100%;
  }

  .reference-image img {
    height: 220px;
  }

  .reference-arrow {
    transform: rotate(90deg);
    width: 32px;
    height: 32px;
  }

  .network-callout {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .highlight-card {
    padding: 2rem 1.5rem;
  }

  .content-section {
    padding: 3rem 0;
  }

  .page-hero {
    padding: calc(var(--nav-height) + 2rem) 1.5rem 2rem;
  }

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

  .service-item {
    padding: 1.5rem 1rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 400px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}
