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

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

body {
  margin: 0;
  overflow-x: hidden;
}

::selection {
  background: #065f46;
  color: #fefdf8;
}

/* Scroll reveal base — content is visible by default, JS adds animation */
.reveal-section {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-section {
    opacity: 0;
    transform: translateY(32px);
  }

  .reveal-section.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero animations */
.hero-headline {
  opacity: 0;
  transform: translateY(24px);
  animation: heroReveal 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s forwards;
}

.hero-eyebrow {
  opacity: 0;
  transform: translateY(16px);
  animation: heroReveal 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s forwards;
}

.hero-sub {
  opacity: 0;
  transform: translateY(16px);
  animation: heroReveal 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
}

.hero-cta {
  opacity: 0;
  transform: translateY(16px);
  animation: heroReveal 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s forwards;
}

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll indicator */
.scroll-indicator {
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Section styles */
.section-eyebrow {
  font-family: 'Inter', system-ui, sans-serif;
}

.section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

/* Service cards */
.service-card {
  border-left: none;
  border-right: none;
  border-top: 1px solid;
}

@media (min-width: 768px) {
  .service-card {
    border-left: 1px solid;
    border-right: 1px solid;
  }
}

/* Buttons */
.btn-primary,
.btn-secondary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after,
.btn-secondary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover::after,
.btn-secondary:hover::after {
  opacity: 1;
}

/* Mobile menu */
.mobile-menu-open {
  overflow: hidden;
}

/* Navbar scroll state */
.nav-scrolled {
  background: rgba(254, 253, 248, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(6, 95, 70, 0.08);
}

.nav-scrolled .nav-logo {
  color: #064e3b !important;
}

.nav-scrolled .nav-link {
  color: rgba(6, 78, 59, 0.7) !important;
}

.nav-scrolled .menu-line {
  background: #064e3b !important;
}

/* Smooth focus styles */
input:focus,
textarea:focus,
button:focus {
  outline: 2px solid #10b981;
  outline-offset: 2px;
}

/* Image placeholder fallback */
img {
  max-width: 100%;
  height: auto;
}

/* Subtle texture on cream backgrounds */
.bg-cream-50,
.bg-cream-100 {
  background-image: radial-gradient(ellipse at 20% 50%, rgba(6, 95, 70, 0.02) 0%, transparent 50%);
}

/* Print styles */
@media print {
  nav, .scroll-indicator, #contact-form button {
    display: none;
  }
  body {
    color: #000;
    background: #fff;
  }
}
