/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { min-height: 100vh; }

/* ===== NAVBAR ===== */
.nav-fixed {
  background: rgba(253, 248, 240, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(244, 216, 142, 0.3);
  transition: box-shadow 0.3s ease;
}
.nav-fixed.scrolled {
  box-shadow: 0 4px 30px rgba(30, 21, 16, 0.08);
}
.h-18 { height: 4.5rem; }

/* Mobile menu */
.mobile-menu { animation: slideDown 0.3s ease; }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.mobile-menu-link { transition: transform 0.2s ease; }
.mobile-menu-link:active { transform: scale(0.97); }

/* Hamburger animation */
.menu-line { transition: all 0.3s ease; }
#menuBtn[aria-expanded="true"] .menu-line:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
#menuBtn[aria-expanded="true"] .menu-line:nth-child(2) { opacity: 0; }
#menuBtn[aria-expanded="true"] .menu-line:nth-child(3) { width: 5rem; margin-left: 0; }

/* ===== GEO SHAPES ===== */
.geo-shapes { z-index: 0; }
.geo-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.geo-circle--1 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(222, 63, 30, 0.08) 0%, transparent 70%);
  top: 15%; left: -80px;
  animation: float1 8s ease-in-out infinite;
}
.geo-circle--2 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(232, 173, 46, 0.1) 0%, transparent 70%);
  bottom: 30%; right: -40px;
  animation: float2 10s ease-in-out infinite;
}
.geo-circle--3 {
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(222, 63, 30, 0.06) 0%, transparent 70%);
  top: 60%; left: 10%;
  animation: float1 12s ease-in-out infinite reverse;
}
.geo-triangle {
  position: absolute;
  width: 0; height: 0;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 70px solid rgba(222, 63, 30, 0.06);
  top: 25%; right: 8%;
  animation: rotate1 15s linear infinite;
}
.geo-rect {
  position: absolute;
  width: 60px; height: 60px;
  background: rgba(232, 173, 46, 0.07);
  border-radius: 12px;
  bottom: 20%; left: 5%;
  transform: rotate(45deg);
  animation: float2 9s ease-in-out infinite;
}
.geo-diamond {
  position: absolute;
  width: 30px; height: 30px;
  background: rgba(222, 63, 30, 0.08);
  border-radius: 6px;
  top: 45%; right: 15%;
  transform: rotate(30deg);
  animation: rotate1 20s linear infinite reverse;
}

@keyframes float1 {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(15px) rotate(5deg); }
}
@keyframes rotate1 {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===== REVEAL ANIMATIONS (progressive enhancement) ===== */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }
  .reveal-visible {
    opacity: 1;
    transform: translateY(0);
  }
  .service-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .service-card.reveal-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #FDF8F0; }
::-webkit-scrollbar-thumb { background: #e5c9a0; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #d1a86e; }

/* ===== SELECTION ===== */
::selection { background: rgba(222, 63, 30, 0.15); color: #1E1510; }

/* ===== FOCUS ===== */
:focus-visible { outline: 2px solid #de3f1e; outline-offset: 2px; border-radius: 4px; }

/* ===== RESPONSIVE TWEAKS ===== */
@media (max-width: 640px) {
  .font-display { line-height: 1.15; }
}
