:root {
  --primary: #2E8B57;
  --primary-dark: #236b43;
  --secondary: #4CAF50;
  --accent: #A5D6A7;
  --bg: #FFFFFF;
  --text: #222222;
  --text-muted: #5a5a5a;
  --glass: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.25);
  --shadow: 0 12px 40px rgba(46, 139, 87, 0.12);
  --shadow-lg: 0 24px 60px rgba(34, 34, 34, 0.12);
  --radius: 16px;
  --header-h: 80px;
  --font-display: "Poppins", sans-serif;
  --font-body: "Inter", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.25s ease, opacity 0.25s ease;
}

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

/* Loader */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-ring {
  width: 56px;
  height: 56px;
  border: 3px solid var(--accent);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}

.loader-logo {
  height: 48px;
  width: auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.navbar-brand img {
  height: 44px;
  width: auto;
}

.nav-link {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text) !important;
  padding: 0.5rem 1rem !important;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0.25rem;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 0.65rem 1.35rem;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(46, 139, 87, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(46, 139, 87, 0.45);
  color: #fff;
}

.btn-outline-custom {
  border: 2px solid var(--primary);
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  background: transparent;
  transition: all 0.25s ease;
}

.btn-outline-custom:hover {
  background: var(--primary);
  color: #fff;
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  border: none;
  font-weight: 600;
  padding: 0.65rem 1.35rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-whatsapp:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.4);
}

.navbar-toggler {
  border: none;
  padding: 0.35rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.mobile-nav-cta {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 2rem) 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: #1e3d2f;
  background-image: url("../../slide.png");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(34, 34, 34, 0.78) 0%,
    rgba(46, 139, 87, 0.55) 50%,
    rgba(34, 34, 34, 0.65) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  border-radius: 50px;
  color: #fff;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.hero h1 {
  color: #fff;
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.hero-lead {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  max-width: 640px;
  margin-bottom: 1.75rem;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 2rem;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  backdrop-filter: blur(8px);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-glass-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  padding: 1.5rem;
  color: #fff;
}

.hero-glass-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.hero-stat-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  text-align: center;
}

.hero-stat-row strong {
  display: block;
  font-size: 1.35rem;
  color: var(--accent);
}

.hero-stat-row span {
  font-size: 0.75rem;
  opacity: 0.9;
}

/* Section common */
section {
  padding: 5rem 0;
  position: relative;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  margin-bottom: 1rem;
  color: var(--text);
}

.section-desc {
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 2.5rem;
}

.bg-soft {
  background: linear-gradient(180deg, #f8fdf9 0%, #fff 100%);
}

.bg-gradient-green {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
}

/* Mini CTA strip */
.mini-cta {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(90deg, rgba(46, 139, 87, 0.08), rgba(165, 214, 167, 0.25));
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mini-cta p {
  margin: 0;
  font-weight: 500;
  font-size: 0.95rem;
}

.mini-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.mini-cta .btn-sm-custom {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  border-radius: 50px;
}

/* About features */
.feature-card {
  height: 100%;
  padding: 1.75rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(46, 139, 87, 0.12);
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), rgba(76, 175, 80, 0.35));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
}

.about-image-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.about-float-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 1.25rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.about-float-badge .years {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

/* Service cards */
.service-card {
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card-body {
  padding: 2rem 1.75rem;
}

.service-card .service-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1.25rem;
  border-radius: 16px;
  background: linear-gradient(145deg, #e8f5e9, var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.service-card .en-sub {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

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

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

/* Location cards */
.location-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  height: 320px;
  box-shadow: var(--shadow);
  transition: transform 0.4s ease;
}

.location-card:hover {
  transform: scale(1.02);
}

.location-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.location-card:hover img {
  transform: scale(1.08);
}

.location-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: #fff;
}

.location-overlay h3 {
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.location-overlay p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

.location-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
}

/* Stats */
.stats-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d3b32 50%, var(--primary-dark) 100%);
  color: #fff;
  padding: 4.5rem 0;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.95rem;
  opacity: 0.88;
}

/* Why choose grid */
.why-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  height: 100%;
}

.why-card i {
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Main CTA */
.cta-section {
  padding: 5rem 0;
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.1rem;
  opacity: 0.95;
  max-width: 560px;
  margin: 0 auto 2rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.btn-light-custom {
  background: #fff;
  color: var(--primary);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  border: none;
  transition: transform 0.25s ease;
}

.btn-light-custom:hover {
  transform: translateY(-2px);
  color: var(--primary-dark);
}

.btn-outline-light-custom {
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
  font-weight: 600;
  padding: 0.7rem 1.45rem;
  border-radius: 50px;
}

.btn-outline-light-custom:hover {
  background: #fff;
  color: var(--primary);
}

/* Contact */
.contact-info-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  height: 100%;
  border: 1px solid rgba(46, 139, 87, 0.1);
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), rgba(76, 175, 80, 0.3));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.contact-form-wrap {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(46, 139, 87, 0.08);
}

.form-control,
.form-select {
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.map-placeholder {
  border-radius: var(--radius);
  overflow: hidden;
  height: 280px;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--primary);
  margin-top: 1.5rem;
}

.map-placeholder iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
.site-footer {
  background: #1a1f1c;
  color: rgba(255, 255, 255, 0.85);
  padding: 4rem 0 0;
}

.footer-brand img {
  height: 48px;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.75;
  max-width: 280px;
}

.footer-title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  opacity: 0.8;
  font-size: 0.92rem;
}

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

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-links a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.25s ease, transform 0.25s ease;
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-3px);
  color: #fff;
}

.footer-bottom {
  margin-top: 3rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.65;
}

/* Floating buttons */
.float-actions {
  position: fixed;
  bottom: 1.5rem;
  right: 1.25rem;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: none;
}

.float-btn:hover {
  transform: scale(1.08);
  color: #fff;
}

.float-btn.call {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.float-btn.whatsapp {
  background: #25D366;
}

/* Mobile sticky bar */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 850;
  background: #fff;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
  padding: 0.65rem 1rem;
  gap: 0.5rem;
}

.mobile-sticky-bar a {
  flex: 1;
  text-align: center;
  padding: 0.75rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.mobile-sticky-bar .bar-call {
  background: var(--primary);
  color: #fff;
}

.mobile-sticky-bar .bar-wa {
  background: #25D366;
  color: #fff;
}

/* Scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@media (max-width: 991.98px) {
  .hero-glass-card {
    margin-top: 2rem;
  }

  .mobile-nav-cta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 0;
    border-top: 1px solid #eee;
    margin-top: 0.5rem;
  }

  .float-actions {
    bottom: 5.5rem;
  }

  .mobile-sticky-bar {
    display: flex;
  }

  body {
    padding-bottom: 70px;
  }
}

@media (max-width: 575.98px) {
  section {
    padding: 3.5rem 0;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }
}
