/* ======================== */
/*  CSS Reset & Variables   */
/* ======================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors — earthy, calming palette */
  --primary: #2d6a4f;
  --primary-light: #40916c;
  --primary-lighter: #e8f5ee;
  --primary-dark: #1b4332;
  --accent: #b7e4c7;

  --text-dark: #1a1a2e;
  --text-body: #4a4a5a;
  --text-muted: #8a8a9a;
  --white: #ffffff;
  --bg: #ffffff;
  --bg-soft: #f8faf9;
  --border: #e8e8ec;

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  /* Spacing */
  --section-py: 100px;

  /* Transitions */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Radius */
  --radius: 12px;
  --radius-lg: 20px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background-color: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3, h4 {
  color: var(--text-dark);
  line-height: 1.3;
}

/* ======================== */
/*       Container          */
/* ======================== */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ======================== */
/*        Navbar            */
/* ======================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 0;
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  color: var(--primary);
  font-size: 1.4rem;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--text-dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-body);
  position: relative;
}

.nav-links a:not(.nav-cta):hover {
  color: var(--primary);
}

.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-links a:not(.nav-cta):hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.88rem !important;
}

.nav-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ======================== */
/*          Hero            */
/* ======================== */
.hero {
  position: relative;
  padding: 120px 0 80px;
  background: linear-gradient(135deg, #f0faf4 0%, #ffffff 40%, #f5f7ff 70%, #f8faf9 100%);
  overflow: hidden;
}

/* Subtle dot-grid pattern */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--primary) 0.6px, transparent 0.6px);
  background-size: 28px 28px;
  opacity: 0.04;
  pointer-events: none;
  z-index: 1;
}

/* Soft glow accent */
.hero::after {
  content: '';
  position: absolute;
  top: -120px;
  left: -80px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(45, 106, 79, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--primary);
  background: var(--primary-lighter);
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 24px;
  animation: heroFadeInUp 0.7s ease both;
}

.hero-badge i {
  animation: spinStar 4s linear infinite;
}

@keyframes spinStar {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3.6rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 20px;
  animation: heroFadeInUp 0.7s ease 0.12s both;
}

.hero-title .highlight {
  color: var(--primary);
  position: relative;
  white-space: nowrap;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 8px;
  background: var(--accent);
  opacity: 0.45;
  border-radius: 4px;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  animation: underlineGrow 0.6s ease 0.9s forwards;
}

@keyframes underlineGrow {
  to { transform: scaleX(1); }
}

.hero-desc {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 32px;
  animation: heroFadeInUp 0.7s ease 0.24s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  animation: heroFadeInUp 0.7s ease 0.36s both;
}

/* Trust stats bar */
.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(45, 106, 79, 0.1);
  animation: heroFadeInUp 0.7s ease 0.5s both;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat-number {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-top: 2px;
}

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

.hero-decoration {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  pointer-events: none;
  z-index: 1;
}

.hero-circle {
  position: absolute;
  border-radius: 50%;
}

.hero-circle-1 {
  width: 440px;
  height: 440px;
  background: linear-gradient(135deg, var(--primary-lighter) 0%, var(--accent) 100%);
  opacity: 0.4;
  top: 30px;
  right: -80px;
  animation: float 8s ease-in-out infinite;
}

.hero-circle-2 {
  width: 260px;
  height: 260px;
  background: linear-gradient(225deg, rgba(45, 106, 79, 0.12) 0%, var(--primary-lighter) 100%);
  opacity: 0.5;
  top: 160px;
  right: 180px;
  animation: float 6s ease-in-out infinite reverse;
}

/* Third decorative circle */
.hero-circle-3 {
  width: 120px;
  height: 120px;
  background: var(--accent);
  opacity: 0.25;
  top: 60px;
  right: 260px;
  animation: float 5s ease-in-out 1s infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* ======================== */
/*        Buttons           */
/* ======================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(45, 106, 79, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--text-dark);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1rem;
}

/* ======================== */
/*       Sections           */
/* ======================== */
.section {
  padding: var(--section-py) 0;
}

.section-about {
  background: var(--bg-soft);
}

.section-services {
  background: var(--bg);
}

.section-benefits {
  background: var(--bg-soft);
}

.section-contact {
  background: var(--bg);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--text-dark);
}

/* ======================== */
/*      About Cards         */
/* ======================== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.about-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  transition: var(--transition);
}

.about-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  border-color: transparent;
}

.about-icon {
  font-size: 2.4rem;
  margin-bottom: 20px;
}

.about-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.about-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ======================== */
/*     Service Cards        */
/* ======================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.service-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-lighter);
}

.service-img {
  width: 100%;
  height: 260px;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-img img {
  transform: scale(1.05);
}

.service-body {
  padding: 32px 30px;
}

.service-icon {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 14px;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

.service-link:hover {
  color: var(--primary-dark);
  gap: 12px;
}

/* ======================== */
/*       Benefits           */
/* ======================== */
.benefits-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.benefits-text .section-label,
.benefits-text .section-title {
  text-align: left;
}

.benefits-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-top: 16px;
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.benefit-item:hover {
  transform: translateX(6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  border-color: transparent;
}

.benefit-check {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  background: var(--primary-lighter);
  color: var(--primary);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
}

.benefit-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.benefit-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ======================== */
/*       Contact            */
/* ======================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.contact-card {
  text-align: center;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  border-color: transparent;
}

.contact-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.contact-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.contact-card a {
  color: var(--primary);
  font-weight: 500;
}

.contact-card a:hover {
  color: var(--primary-dark);
}

.contact-cta {
  text-align: center;
}

/* ======================== */
/*      Google Maps         */
/* ======================== */
.contact-map {
  margin-top: 48px;
  margin-bottom: 48px;
}

.map-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 24px;
  color: var(--text-dark);
}

.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.map-wrapper iframe {
  display: block;
  width: 100%;
  height: 400px;
}

/* ======================== */
/*  Floating WhatsApp Btn   */
/* ======================== */
.wa-float-wrapper {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 12px;
}

.wa-float-label {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--text-dark);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(20px);
  animation: waLabelSlideIn 0.5s ease 3s forwards;
  pointer-events: none;
}

.wa-float-label.visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.wa-float-label.hidden {
  animation: waLabelSlideOut 0.3s ease forwards;
}

.wa-label-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 0 0 4px;
  line-height: 1;
  transition: var(--transition);
}

.wa-label-close:hover {
  color: var(--text-dark);
}

.wa-float {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  flex-shrink: 0;
}

.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
  color: var(--white);
}

.wa-icon {
  font-size: 32px;
  line-height: 1;
}

.wa-float-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #25D366;
  opacity: 0;
  animation: wa-pulse 2s ease-out infinite;
  pointer-events: none;
}

@keyframes waLabelSlideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes waLabelSlideOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(20px);
    pointer-events: none;
  }
}

@keyframes wa-pulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* ======================== */
/*        Footer            */
/* ======================== */
.footer {
  background: var(--text-dark);
  padding: 60px 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand .logo-icon {
  color: var(--accent);
}

.footer-brand .logo-text {
  color: var(--white);
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  max-width: 280px;
}

.footer-links h4 {
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a,
.footer-links li {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ======================== */
/*    Scroll Reveal Anim    */
/* ======================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation delays */
.about-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.about-card.reveal:nth-child(3) { transition-delay: 0.2s; }

.service-card.reveal:nth-child(2) { transition-delay: 0.15s; }
.service-card.reveal:nth-child(3) { transition-delay: 0.3s; }
.service-card.reveal:nth-child(4) { transition-delay: 0.45s; }

.benefit-item.reveal:nth-child(2) { transition-delay: 0.08s; }
.benefit-item.reveal:nth-child(3) { transition-delay: 0.16s; }
.benefit-item.reveal:nth-child(4) { transition-delay: 0.24s; }
.benefit-item.reveal:nth-child(5) { transition-delay: 0.32s; }

.contact-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.contact-card.reveal:nth-child(3) { transition-delay: 0.2s; }

/* ======================== */
/*      Responsive          */
/* ======================== */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.8rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefits-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .benefits-text .section-label,
  .benefits-text .section-title {
    text-align: center;
  }

  .benefits-desc {
    text-align: center;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-py: 72px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 32px 40px;
    gap: 24px;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition-slow);
  }

  .nav-links.active {
    right: 0;
  }

  .hero {
    padding: 110px 0 60px;
  }

  .hero-stats {
    gap: 24px;
  }

  .hero-stat-number {
    font-size: 1.3rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-desc {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.9rem;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-img {
    height: 220px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    text-align: center;
  }

  .hero-decoration {
    display: none;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.9rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
  }

  .hero-stat-number {
    font-size: 1.2rem;
  }
}
