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

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

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 300;
  background-color: #F5F0E8;
  color: #1A1A1A;
  line-height: 1.6;
}

/* ─── NAV ─── */
.nav-transparent {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.nav-scrolled {
  background-color: rgba(245, 240, 232, 0.97);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

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

.nav-scrolled .menu-line {
  background-color: #1A1A1A !important;
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #2D6A4F;
  transition: width 0.3s ease;
}

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

/* ─── MOBILE MENU ─── */
.mobile-menu {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mobile-menu.open {
  opacity: 1 !important;
  pointer-events: all !important;
}

.mobile-menu-link {
  position: relative;
}

.mobile-menu-link::after {
  content: '';
  display: block;
  width: 0;
  height: 1px;
  background: #2D6A4F;
  transition: width 0.3s ease;
}

.mobile-menu-link:hover::after {
  width: 100%;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.pexels.com/photos/3990588/pexels-photo-3990588.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(27, 67, 50, 0.88) 0%,
    rgba(45, 106, 79, 0.82) 50%,
    rgba(27, 67, 50, 0.88) 100%
  );
}

.hero-content {
  padding-top: 80px;
  padding-bottom: 80px;
}

.hero-eyebrow {
  letter-spacing: 0.25em;
  font-size: 0.7rem;
}

.hero-headline {
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-weight: 300;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

/* ─── BUTTONS ─── */
.btn-primary {
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  transform: translateY(-1px);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.15) !important;
}

.btn-primary-shrink {
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.btn-primary-shrink:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  transform: translateY(-1px);
}

/* ─── SECTION TYPOGRAPHY ─── */
.section-eyebrow {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #2D6A4F;
}

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.2;
  color: #1A1A1A;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 1rem;
  font-weight: 300;
  color: #6B7280;
  line-height: 1.7;
}

/* ─── SERVICE CARDS ─── */
.service-card {
  transition: transform 0.4s ease;
}

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

.service-card:hover .service-card-inner {
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

.service-card-inner {
  transition: box-shadow 0.4s ease;
}

/* ─── COMMUNITY CARDS ─── */
.community-card {
  transition: transform 0.4s ease;
}

.community-card:hover {
  transform: translateY(-2px);
}

/* ─── INPUTS ─── */
.input-field {
  border: none;
  border-bottom: 1px solid #E8DFD0;
  padding: 0.75rem 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 300;
  font-size: 0.95rem;
  color: #1A1A1A;
  background: transparent;
  outline: none;
  transition: border-color 0.3s ease;
  width: 100%;
  border-radius: 0;
  -webkit-appearance: none;
}

.input-field::placeholder {
  color: #B0A898;
  font-weight: 300;
}

.input-field:focus {
  border-bottom-color: #2D6A4F;
}

select.input-field {
  cursor: pointer;
}

/* ─── SUBMIT BUTTON ─── */
.btn-submit {
  position: relative;
  width: 100%;
  padding: 1rem 2rem;
  background-color: #2D6A4F;
  color: #F5F0E8;
  border: none;
  border-radius: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-submit:hover {
  background-color: #1B4332;
}

.btn-submit-success {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal[data-revealed="false"] {
  opacity: 0;
  transform: translateY(24px);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }
  .reveal[data-revealed="true"] {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 767px) {
  .hero-content {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .hero-headline {
    font-size: 2rem;
  }

  .hero-sub {
    font-size: 0.95rem;
  }

  .service-card-inner {
    padding: 1.5rem !important;
  }

  #about .relative {
    margin-bottom: 2rem;
  }

  .absolute.\-bottom-6.\-left-6 {
    position: absolute;
    bottom: -1.5rem;
    left: -0.5rem;
    width: 100%;
    height: auto;
    padding: 1.5rem;
  }

  .absolute.\-bottom-6.\-left-6 p {
    font-size: 0.85rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .absolute.\-bottom-6.\-left-6 {
    bottom: -3rem;
    left: -1.5rem;
    width: 20rem;
    height: 20rem;
  }
}
