/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { min-height: 100vh; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
button { background: none; border: none; cursor: pointer; color: inherit; font-family: inherit; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #F5F5F0; }
::-webkit-scrollbar-thumb { background: #8fb896; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #5e9368; }

/* ── Navigation ─────────────────────────────────────────── */
#navbar {
  background: transparent;
  border-bottom: 1px solid transparent;
}
#navbar.scrolled {
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(190, 211, 192, 0.4);
  box-shadow: 0 1px 0 rgba(27, 67, 50, 0.06);
}

.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #5e9368;
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-link:hover::after { width: 100%; }

/* Mobile menu */
#mobileMenu {
  background: rgba(250, 250, 247, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}
.mobile-link {
  position: relative;
}
.mobile-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: #5e9368;
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.mobile-link:hover::after { width: 60%; }

.menu-line { transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
#menuBtn.active .menu-line:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
#menuBtn.active .menu-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
#menuBtn.active .menu-line:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
  width: 1.5rem;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #1B4332;
  color: #FAFAF7;
  padding: 16px 32px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid #1B4332;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #285233;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary span { position: relative; z-index: 1; }
.btn-primary svg { position: relative; z-index: 1; transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: #1B4332;
  padding: 16px 32px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid #bdd3c0;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-secondary:hover {
  background: #1B4332;
  color: #FAFAF7;
  border-color: #1B4332;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero-eyebrow { transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s; }
.hero-headline { transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.35s; }
.hero-sub { transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.5s; }
.hero-cta { transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.65s; }

.hero-eyebrow.visible,
.hero-headline.visible,
.hero-sub.visible,
.hero-cta.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.hero-image-wrap { transition: all 1s cubic-bezier(0.22, 1, 0.36, 1); }
.hero-img {
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-image-wrap:hover .hero-img {
  transform: scale(1.03);
}
.hero-image-dot {
  animation: pulse-dot 3s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.hero-accent {
  animation: float-accent 6s ease-in-out infinite;
}
@keyframes float-accent {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.scroll-line {
  animation: scroll-anim 2s ease-in-out infinite;
}
@keyframes scroll-anim {
  0% { transform: translateY(-100%); }
  50% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* ── Section Shared ─────────────────────────────────────── */
.section-eyebrow { transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.section-title { transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s; }
.section-eyebrow.visible,
.section-title.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ── Divider ────────────────────────────────────────────── */
.divider-line { transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.divider-line.visible {
  opacity: 1 !important;
}

/* ── Services ───────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 0;
}
@media (min-width: 768px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  padding: 32px 0;
  border-top: 1px solid #d4d0c6;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #5e9368;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card:hover::before { width: 100%; }
.service-card:hover { padding-left: 16px; }

.service-icon-wrap {
  width: 48px;
  height: 48px;
}
.service-icon {
  color: #1B4332;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card:hover .service-icon {
  color: #5e9368;
  transform: translateY(-2px);
}

.service-title { transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.service-card:hover .service-title { color: #285233; }
.service-desc { transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.05s; }
.service-card:hover .service-desc { color: #4a6b4f; }

/* ── About ──────────────────────────────────────────────── */
.about-image-wrap { transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.about-img { transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1); }
.about-image-wrap:hover .about-img { transform: scale(1.02); }
.about-image-accent { transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.about-image-wrap:hover .about-image-accent { transform: translate(-4px, 4px); }

.about-eyebrow { transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.about-title { transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s; }
.about-text { transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.about-eyebrow.visible,
.about-title.visible,
.about-text.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ── Gallery ────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 16px;
}
@media (min-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 2px;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery-item:hover img { transform: scale(1.06); }

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27, 67, 50, 0.7) 0%, rgba(27, 67, 50, 0) 60%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }

/* ── Testimonial ────────────────────────────────────────── */
.testimonial-quote-icon { transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.testimonial-text { transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s; }
.testimonial-text.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ── Contact ────────────────────────────────────────────── */
.contact-icon-wrap {
  width: 32px;
  height: 32px;
}
.contact-icon {
  color: #1B4332;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.contact-item:hover .contact-icon { color: #5e9368; transform: translateY(-2px); }

.contact-map {
  border-radius: 4px;
  overflow: hidden;
  min-height: 400px;
  box-shadow: 0 4px 24px rgba(27, 67, 50, 0.08);
}
.contact-map iframe {
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.contact-map:hover iframe { transform: scale(1.01); }

/* ── Utility ────────────────────────────────────────────── */
.opacity-0 { opacity: 0; }
.translate-y-6 { transform: translateY(1.5rem); }
.translate-y-0 { transform: translateY(0); }

/* ── Reduced motion ─────────────────────────────────────── */
@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; }
  .hero-eyebrow, .hero-headline, .hero-sub, .hero-cta,
  .section-eyebrow, .section-title,
  .about-eyebrow, .about-title, .about-text,
  .testimonial-text {
    opacity: 1 !important;
    transform: none !important;
  }
  .gallery-item-overlay { opacity: 1; }
}

/* ── Print ──────────────────────────────────────────────── */
@media print {
  #navbar, #mobileMenu, .scroll-indicator { display: none; }
  body { background: white; }
  section { page-break-inside: avoid; }
}
