/* =============================================
   GREEN CARE — CSS DESIGN TOKENS
   Sourced from brand advert (deep teal palette)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

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

:root {
  /* === BRAND COLOURS (from advert) === */
  --green-900: #142d27;
  --green-800: #1f4037;
  --green-750: #2a5548;
  --green-700: #3a6b5e;
  --green-600: #4a7d6e;
  --green-500: #5a8f7f;
  --sage-400:  #7fad9b;
  --sage-300:  #a8c9bb;
  --sage-200:  #c8dfd6;
  --sage-100:  #dceee5;
  --sage-50:   #eef7f2;
  --white:     #ffffff;
  --off-white: #f5f9f7;
  --gray-800:  #1a202c;
  --gray-700:  #2d3748;
  --gray-600:  #4a5568;
  --gray-500:  #718096;
  --gray-400:  #a0aec0;
  --gray-200:  #e2e8f0;
  --gray-100:  #f7fafc;
  --whatsapp:  #25D366;
  --whatsapp-dark: #128C7E;

  /* === TYPOGRAPHY === */
  --font-heading: 'Outfit', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* === FONT SIZES === */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;
  --text-7xl:  4.5rem;

  /* === SPACING === */
  --section-py:     5rem;
  --section-py-sm:  3rem;
  --container-max:  1200px;
  --container-px:   1.5rem;

  /* === SHADOWS === */
  --shadow-sm:  0 1px 3px rgba(26, 45, 39, 0.08), 0 1px 2px rgba(26, 45, 39, 0.04);
  --shadow-md:  0 4px 16px rgba(26, 45, 39, 0.10), 0 2px 6px rgba(26, 45, 39, 0.06);
  --shadow-lg:  0 12px 40px rgba(26, 45, 39, 0.14), 0 4px 12px rgba(26, 45, 39, 0.08);
  --shadow-xl:  0 24px 64px rgba(26, 45, 39, 0.18);

  /* === BORDER RADIUS === */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-pill: 9999px;

  /* === TRANSITIONS === */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   350ms ease;
}

/* === BASE STYLES === */
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--gray-700);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--green-800);
  line-height: 1.2;
  font-weight: 700;
}

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

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

ul { list-style: none; }

button, [role="button"] {
  cursor: pointer;
  font-family: var(--font-heading);
}

/* === UTILITY CLASSES === */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

.section {
  padding: var(--section-py) 0;
}

.section--dark {
  background: linear-gradient(135deg, var(--green-800) 0%, var(--green-750) 100%);
}

.section--alt {
  background-color: var(--sage-50);
}

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

.section-label {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-400);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  margin-bottom: 1rem;
}

.section-title--white {
  color: var(--white);
}

.section-desc {
  font-size: var(--text-lg);
  color: var(--gray-600);
  max-width: 640px;
  line-height: 1.7;
}

.section-desc--white {
  color: var(--sage-200);
}

.text-center { text-align: center; }
.mx-auto     { margin-left: auto; margin-right: auto; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  border: 2px solid transparent;
  transition: all var(--transition-base);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.btn--primary {
  background: var(--green-700);
  color: var(--white);
  border-color: var(--green-700);
}
.btn--primary:hover {
  background: var(--green-800);
  border-color: var(--green-800);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

.btn--outline-green {
  background: transparent;
  color: var(--green-700);
  border-color: var(--green-700);
}
.btn--outline-green:hover {
  background: var(--green-700);
  color: var(--white);
}

.btn--white {
  background: var(--white);
  color: var(--green-800);
  border-color: var(--white);
}
.btn--white:hover {
  background: var(--sage-100);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  border-color: var(--whatsapp);
}
.btn--whatsapp:hover {
  background: var(--whatsapp-dark);
  border-color: var(--whatsapp-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--sm {
  padding: 0.625rem 1.5rem;
  font-size: var(--text-sm);
}

.btn--lg {
  padding: 1.1rem 2.5rem;
  font-size: var(--text-lg);
}

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* === FADE-IN ANIMATION === */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
}

/* === PAGE HERO BANNER === */
.page-hero {
  background: linear-gradient(135deg, var(--green-800) 0%, var(--green-700) 100%);
  padding: 7rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.page-hero__content { position: relative; z-index: 1; }
.page-hero__label {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-300);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.page-hero__label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--sage-400);
  border-radius: 2px;
}
.page-hero h1 {
  color: var(--white);
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  margin-bottom: 1rem;
}
.page-hero p {
  color: var(--sage-200);
  font-size: var(--text-lg);
  max-width: 580px;
}

/* === CTA BANNER === */
.cta-banner {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-800) 60%, var(--green-750) 100%);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(127,173,155,0.08);
  pointer-events: none;
}
.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(127,173,155,0.06);
  pointer-events: none;
}
.cta-banner__inner { position: relative; z-index: 1; }
.cta-banner h2 {
  color: var(--white);
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  margin-bottom: 0.75rem;
}
.cta-banner p {
  color: var(--sage-200);
  font-size: var(--text-lg);
  margin-bottom: 2rem;
}
.cta-banner__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  :root {
    --section-py: var(--section-py-sm);
  }
  .btn { padding: 0.75rem 1.5rem; font-size: var(--text-sm); }
  .btn--lg { padding: 0.875rem 2rem; font-size: var(--text-base); }
}
