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

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

body {
  min-height: 100vh;
  overflow-x: hidden;
}

::selection {
  background: rgba(6, 95, 70, 0.2);
  color: #064e3b;
}

/* ========== NAVBAR ========== */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
  background: rgba(2, 44, 34, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255, 254, 248, 0.08);
}

/* ========== HERO ========== */
.hero-gradient {
  background: linear-gradient(
    135deg,
    #022c22  0%,
    #064e3b  25%,
    #065f46  50%,
    #15803d  75%,
    #16a34a  100%
  );
}

.hero-orb {
  background: radial-gradient(circle, rgba(255, 254, 248, 0.5) 0%, transparent 70%);
}

.hero-orb--1 {
  width: 600px;
  height: 600px;
  top: -10%;
  right: -5%;
}

.hero-orb--2 {
  width: 400px;
  height: 400px;
  bottom: 5%;
  left: -3%;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.3) 0%, transparent 70%);
}

.hero-orb--3 {
  width: 250px;
  height: 250px;
  top: 40%;
  left: 30%;
  background: radial-gradient(circle, rgba(134, 239, 172, 0.25) 0%, transparent 70%);
}

/* Hero entrance animations (above-fold — always visible) */
.hero-eyebrow {
  animation: heroFadeIn 0.8s ease forwards;
  opacity: 0;
  animation-delay: 0.2s;
}

.hero-headline {
  animation: heroSlideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  animation-delay: 0.4s;
}

.hero-subtext {
  animation: heroFadeIn 0.9s ease forwards;
  opacity: 0;
  animation-delay: 0.7s;
}

.hero-ctas {
  animation: heroFadeIn 0.9s ease forwards;
  opacity: 0;
  animation-delay: 0.9s;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroSlideUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll indicator */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: heroFadeIn 1s ease forwards;
  opacity: 0;
  animation-delay: 1.4s;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,254,248,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.15); }
}

/* ========== BUTTONS ========== */
.cta-primary {
  box-shadow: 0 4px 24px rgba(6, 95, 70, 0.35), 0 1px 3px rgba(6, 95, 70, 0.2);
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(6, 95, 70, 0.4), 0 2px 6px rgba(6, 95, 70, 0.25);
}

.cta-secondary:hover {
  transform: translateY(-2px);
}

/* ========== SECTION HEADINGS ========== */
.section-eyebrow {
  letter-spacing: 0.2em;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 3.25rem);
}

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

.service-card-inner {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  height: 100%;
  border: 1px solid rgba(6, 95, 70, 0.08);
  box-shadow: 0 2px 8px rgba(6, 95, 70, 0.04);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease;
}

.service-card:hover .service-card-inner {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(6, 95, 70, 0.12);
}

.service-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #065f46;
  transition: background 0.3s ease, color 0.3s ease;
}

.service-card:hover .service-icon-wrap {
  background: linear-gradient(135deg, #065f46 0%, #15803d 100%);
  color: #fff8f0;
}

.service-card-title {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
}

/* ========== ABOUT ========== */
.about-pattern {
  background-image: radial-gradient(circle at 1px 1px, rgba(255,254,248,0.3) 1px, transparent 0);
  background-size: 32px 32px;
}

.about-img-main {
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.about-img-float {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

/* ========== GALLERY ========== */
.gallery-item {
  cursor: default;
}

.gallery-item img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ========== CONTACT FORM ========== */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(6, 95, 70, 0.15);
  border-radius: 12px;
  background: #fffef8;
  color: #064e3b;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9375rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  outline: none;
}

.form-input::placeholder {
  color: rgba(6, 78, 59, 0.35);
}

.form-input:focus {
  border-color: #065f46;
  box-shadow: 0 0 0 3px rgba(6, 95, 70, 0.1);
  background: #fff;
}

.form-input option {
  background: #064e3b;
  color: #fff8f0;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #065f46 0%, #15803d 100%);
  color: #fff8f0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 1rem 2rem;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.3s ease;
  box-shadow: 0 4px 16px rgba(6, 95, 70, 0.3);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(6, 95, 70, 0.4);
}

.btn-submit:active {
  transform: translateY(0);
}

/* ========== SCROLL REVEAL (below-fold, progressive enhancement) ========== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .reveal.fade-up {
    opacity: 1;
    transform: translateY(0);
  }

  /* Default state is visible — JS adds the hidden state for animation */
  .reveal.revealed-fade-up {
    opacity: 0;
    transform: translateY(32px);
  }
}

/* Reduced motion: ensure everything is always visible */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.revealed-fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-eyebrow,
  .hero-headline,
  .hero-subtext,
  .hero-ctas {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .scroll-line {
    animation: none;
    opacity: 0.6;
  }

  .gallery-item img {
    transition: none;
  }

  .service-card-inner {
    transition: none;
  }

  .cta-primary:hover,
  .cta-secondary:hover,
  .btn-submit:hover {
    transform: none;
  }
}
