/* ========== BASE ========== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
}

::selection {
  background: rgba(128, 0, 32, 0.15);
  color: #800020;
}

/* ========== NAVBAR ========== */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(255, 248, 245, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(128, 0, 32, 0.08), 0 8px 32px rgba(128, 0, 32, 0.06);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #800020;
  border-radius: 1px;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 60%;
}

/* ========== BUTTONS ========== */
.btn-primary {
  background: linear-gradient(135deg, #800020 0%, #9a1533 50%, #b82042 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #9a1533 0%, #b82042 50%, #d13a5e 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary span {
  position: relative;
  z-index: 1;
}

.btn-cta-primary {
  background: linear-gradient(135deg, #ff5c91 0%, #ff2e76 50%, #e80055 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-cta-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ff8aad 0%, #ff5c91 50%, #ff2e76 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-cta-primary:hover::before {
  opacity: 1;
}

.btn-cta-primary span {
  position: relative;
  z-index: 1;
}

.btn-cta-secondary {
  transition: all 0.3s ease;
}

/* ========== HERO SHAPES ========== */
.hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.geo {
  position: absolute;
  opacity: 0.08;
}

.geo-1 {
  top: 8%;
  left: 5%;
  width: 180px;
  height: 180px;
  background: #ffb8c8;
  border-radius: 50%;
  animation: float1 8s ease-in-out infinite;
}

.geo-2 {
  top: 15%;
  right: 10%;
  width: 120px;
  height: 120px;
  background: #ff8aad;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  animation: float2 10s ease-in-out infinite;
}

.geo-3 {
  bottom: 25%;
  left: 8%;
  width: 90px;
  height: 90px;
  border: 3px solid #ffb8c8;
  border-radius: 50%;
  animation: float3 7s ease-in-out infinite;
}

.geo-4 {
  top: 40%;
  right: 5%;
  width: 140px;
  height: 140px;
  background: #fce7eb;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: float4 9s ease-in-out infinite;
}

.geo-5 {
  bottom: 15%;
  right: 20%;
  width: 60px;
  height: 60px;
  background: #ff5c91;
  transform: rotate(45deg);
  animation: float1 6s ease-in-out infinite;
}

.geo-6 {
  top: 60%;
  left: 15%;
  width: 40px;
  height: 40px;
  border: 2px solid #fce7eb;
  transform: rotate(45deg);
  animation: float3 8s ease-in-out infinite;
}

.geo-7 {
  top: 5%;
  left: 40%;
  width: 200px;
  height: 200px;
  border: 2px solid rgba(255, 184, 200, 0.3);
  border-radius: 50%;
  animation: float2 12s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes float2 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(15px) rotate(-5deg); }
}

@keyframes float3 {
  0%, 100% { transform: translateY(0) rotate(45deg); }
  50% { transform: translateY(-25px) rotate(50deg); }
}

@keyframes float4 {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  50% { transform: translateY(10px) rotate(10deg) scale(1.05); }
}

/* ========== SERVICE CARDS ========== */
.service-card {
  perspective: 1000px;
}

.service-card:hover {
  transform: translateY(-4px);
}

/* ========== FAQ ========== */
.faq-item {
  transition: all 0.3s ease;
}

.faq-btn[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  background: #fce7eb !important;
}

.faq-content {
  transition: max-height 0.4s ease, padding 0.3s ease;
}

/* ========== MOBILE MENU ========== */
.menu-line {
  display: block;
}

#menuBtn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

#menuBtn.active .menu-line:nth-child(2) {
  opacity: 0;
  transform: translateX(10px);
}

#menuBtn.active .menu-line:nth-child(3) {
  width: 5px;
  transform: rotate(-45deg) translate(3px, -3px);
}

/* ========== SCROLL REVEAL ========== */
[data-reveal] {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  [data-reveal="up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  [data-reveal="left"] {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  [data-reveal="right"] {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  [data-reveal].revealed {
    opacity: 1;
    transform: none;
  }
}

/* ========== MOBILE ========== */
@media (max-width: 768px) {
  .geo-1 { width: 100px; height: 100px; }
  .geo-2 { width: 70px; height: 70px; }
  .geo-4 { width: 80px; height: 80px; }
  .geo-7 { width: 120px; height: 120px; }
}

/* ========== FORM STYLES ========== */
input:focus, select:focus, textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(128, 0, 32, 0.1);
}

input:invalid:not(:placeholder-shown),
select:invalid:not([value=""]) {
  border-color: #dc2626;
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ========== PRINT ========== */
@media print {
  #navbar, .hero-shapes, button { display: none; }
  body { color: #000; background: #fff; }
}
