@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

:root {
  --primary: #2d6a4f;
  --primary-dark: #1b4332;
  --primary-light: #40916c;
  --accent: #52b788;
  --accent-light: #d8f3dc;
  --white: #ffffff;
  --off-white: #f8f9f5;
  --light-gray: #f0f2ed;
  --mid-gray: #c8cdc4;
  --text-dark: #1a1f18;
  --text-mid: #3d4a3a;
  --text-light: #6b7a67;
  --shadow-sm: 0 2px 12px rgba(45,106,79,0.08);
  --shadow-md: 0 8px 32px rgba(45,106,79,0.12);
  --shadow-lg: 0 20px 60px rgba(45,106,79,0.16);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}
h1,h2,h3,h4 { font-family: 'Playfair Display', serif; line-height: 1.2; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--primary-dark);
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(27,67,50,0.97);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
}
.nav-container {
  max-width: 1280px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.navbar .nav-logo img {
  height: 58px;
  width: auto;
  max-width: 240px;
  border-radius: 0;
  object-fit: contain;
}
.footer .nav-logo img {
  height: 64px;
  width: auto;
  max-width: 260px;
  border-radius: 0;
  object-fit: contain;
}
.nav-logo-text {
  font-family: 'Avenir Next', Avenir, sans-serif;
  font-size: 1.25rem; font-weight: 700; color: var(--accent);
}
.nav-logo-text span { color: var(--white); }
.nav-links { display: flex; align-items: center; list-style: none; gap: 0.2rem; }
.nav-links a {
  color: rgba(255,255,255,0.82); font-size: 0.88rem; font-weight: 500;
  padding: 0.5rem 0.95rem; border-radius: 8px;
  transition: var(--transition); letter-spacing: 0.02em;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--white); background: rgba(82,183,136,0.18);
}
.nav-cta { background: var(--accent) !important; color: var(--white) !important; }
.nav-cta:hover { background: var(--primary-light) !important; transform: translateY(-1px); }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--white);
  border-radius: 2px; transition: var(--transition); display: block;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== FOOTER ===== */
.footer { background: var(--primary-dark); color: var(--white); padding: 4.5rem 2rem 1.5rem; }
.footer-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .nav-logo { margin-bottom: 1rem; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.88rem; line-height: 1.75; max-width: 280px; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: 0.65rem; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); font-size: 0.75rem; font-weight: 700;
  color: var(--white); letter-spacing: 0;
}
.footer-social a:hover { background: var(--accent); transform: translateY(-2px); }
.footer-col h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-light); margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col ul a { color: rgba(255,255,255,0.6); font-size: 0.88rem; transition: var(--transition); }
.footer-col ul a:hover { color: var(--white); padding-left: 5px; }
.footer-bottom {
  max-width: 1280px; margin: 1.5rem auto 0;
  display: flex; justify-content: center; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  text-align: center;
}
.footer-bottom p { color: rgba(255,255,255,0.4); font-size: 0.8rem; }

/* ===== SHARED COMPONENTS ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 2rem 2rem; }
.section-center { text-align: center; }
.section-center .section-label { justify-content: center; }
.section-center .section-subtitle { margin: 0 auto; }

.section-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primary-light); margin-bottom: 0.75rem;
}
.section-label::before {
  content: ''; width: 22px; height: 2px;
  background: var(--accent); border-radius: 2px;
}
.section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; color: var(--text-dark); margin-bottom: 1rem; }
.section-subtitle { font-size: 1rem; color: var(--text-light); max-width: 580px; line-height: 1.75; }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.8rem; border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem; font-weight: 600;
  cursor: pointer; transition: var(--transition);
  border: none; letter-spacing: 0.02em;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(45,106,79,0.3); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }
.btn-white { background: var(--white); color: var(--primary-dark); }
.btn-white:hover { background: var(--accent-light); transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--primary-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(82,183,136,0.3); }
.btn-white-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.6); }
.btn-white-outline:hover { background: var(--white); color: var(--primary-dark); transform: translateY(-2px); }

.tag {
  display: inline-block; background: var(--accent-light);
  color: var(--primary-dark); font-size: 0.72rem; font-weight: 600;
  padding: 0.25rem 0.75rem; border-radius: 20px; letter-spacing: 0.04em;
}

/* ===== PAGE HEADER ===== */
.page-header {
  min-height: 44vh;
  padding: 7rem 2rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.page-header-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.page-header-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.02) brightness(0.9);
  transform: scale(1);
}

.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(140deg, rgba(27,67,50,0.24) 0%, rgba(45,106,79,0.12) 100%),
    radial-gradient(ellipse at 70% 50%, rgba(82,183,136,0.06) 0%, transparent 60%);
  z-index: 1;
}
.page-header h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  color: var(--white);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  max-width: 900px;
  z-index: 2;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}
.page-header p {
  color: rgba(255,255,255,0.82);
  font-size: 1.08rem;
  position: relative;
  z-index: 2;
  max-width: 700px;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}
.breadcrumb {
  display: flex; align-items: center; justify-content: center;
  gap: 0.5rem; margin-bottom: 1.5rem;
  font-size: 0.82rem; color: rgba(255,255,255,0.5);
  position: relative; z-index: 2;
  flex-wrap: wrap;
}
.breadcrumb span { color: rgba(255,255,255,0.3); }
.breadcrumb a { color: var(--accent-light); transition: var(--transition); }
.breadcrumb a:hover { color: var(--white); }

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 18, 14, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-dialog {
  position: relative;
  max-width: min(1200px, 96vw);
  max-height: 92vh;
}

.lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 92vh;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.lightbox-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(27,67,50,0.82);
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
}

/* ===== FADE UP ===== */
.fade-up { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s !important; }
.delay-2 { transition-delay: 0.2s !important; }
.delay-3 { transition-delay: 0.3s !important; }
.delay-4 { transition-delay: 0.4s !important; }

/* ===== FLOATING ACTIONS ===== */
.floating-actions {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 12px 30px rgba(27, 67, 50, 0.22);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.floating-btn i {
  font-size: 1.35rem;
}

.floating-btn:hover {
  transform: translateY(-3px) scale(1.03);
}

.floating-btn.whatsapp-btn {
  background: linear-gradient(135deg, #25d366 0%, #128c4a 100%);
}

.floating-btn.scroll-top-btn {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

.floating-btn.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ===== MOBILE ===== */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .navbar .nav-logo img {
    height: 50px;
    max-width: 200px;
  }
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--primary-dark); padding: 1rem;
    flex-direction: column; gap: 0.2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 0.75rem 1rem; }
  .nav-toggle { display: flex; }
  .section { padding: 4rem 1.5rem; }
  .page-header {
    min-height: 38vh;
    padding: 6rem 1.5rem 2.5rem;
  }
  .lightbox-overlay { padding: 1rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .floating-actions {
    right: 1rem;
    bottom: 1rem;
  }
  .floating-btn {
    width: 52px;
    height: 52px;
  }
}
