/* ============================================================
   ZESTO TECH — MAIN CSS DESIGN SYSTEM
   Colors extracted from Zesto Logo:
   - Logo Green: #4A8A1E (main accent)
   - Logo Dark: #1A1A1A
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,900;1,400;1,600&family=Inter:wght@300;400;500;600;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&display=swap');

/* ======================== CSS VARIABLES ======================== */
:root {
  /* Brand Colors from Logo */
  --green-primary: #4A8A1E;
  --green-light: #6AAE35;
  --green-dark: #357015;
  --green-glow: rgba(74, 138, 30, 0.3);
  --green-subtle: rgba(74, 138, 30, 0.08);

  /* Backgrounds */
  --bg-base: #080808;
  --bg-surface: #0F0F0F;
  --bg-elevated: #161616;
  --bg-card: #111111;
  --bg-overlay: rgba(8, 8, 8, 0.95);

  /* Typography */
  --text-primary: #F2F2ED;
  --text-secondary: #C8C8C3;
  --text-muted: #777772;
  --text-faint: #444440;

  /* UI */
  --border: rgba(255,255,255,0.06);
  --border-accent: rgba(74, 138, 30, 0.35);
  --divider: rgba(255,255,255,0.04);

  /* Typography Families */
  --font-serif: 'Playfair Display', 'Georgia', serif;
  --font-elegant: 'Cormorant Garamond', serif;
  --font-sans: 'Inter', -apple-system, sans-serif;

  /* Spacing */
  --section-pad: clamp(80px, 10vw, 140px);
  --container-max: 1360px;
  --container-pad: clamp(20px, 5vw, 80px);

  /* Transitions */
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-expo: cubic-bezier(0.95, 0.05, 0.795, 0.035);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --transition-fast: 0.2s var(--ease-smooth);
  --transition-med: 0.4s var(--ease-smooth);
  --transition-slow: 0.7s var(--ease-out-expo);

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow-sm: 0 2px 20px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 40px rgba(0,0,0,0.6);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.8);
  --shadow-green: 0 0 40px rgba(74, 138, 30, 0.2);
  --shadow-green-strong: 0 0 20px rgba(74, 138, 30, 0.5);
}

/* ======================== RESET ======================== */
*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }
ul { list-style: none; }

/* ======================== TYPOGRAPHY ======================== */
.t-display {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.t-hero {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(2.5rem, 6vw, 6.5rem);
  line-height: 1.0;
  letter-spacing: -0.03em;
}
.t-h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.t-h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.t-h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 500;
  line-height: 1.3;
}
.t-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--green-primary);
}
.t-body {
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.75;
  color: var(--text-secondary);
}
.t-elegant {
  font-family: var(--font-elegant);
  font-style: italic;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 300;
  color: var(--text-secondary);
}

/* ======================== LAYOUT ======================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.section {
  padding: var(--section-pad) 0;
  position: relative;
}
.section--dark { background: var(--bg-base); }
.section--surface { background: var(--bg-surface); }
.section--elevated { background: var(--bg-elevated); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ======================== SECTION LABELS ======================== */
.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.section-label::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--green-primary);
}
.section-label span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--green-primary);
}

/* ======================== BUTTONS ======================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 16px 36px;
  border-radius: 0;
  transition: all var(--transition-med);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  transition: transform 0.4s var(--ease-out-expo);
}
.btn:hover::before { transform: translateX(0); }

.btn-primary {
  background: var(--green-primary);
  color: #fff;
}
.btn-primary::before { background: var(--green-dark); }
.btn-primary:hover { color: #fff; }

.btn-outline {
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--text-primary);
}
.btn-outline::before { background: rgba(255,255,255,0.06); }
.btn-outline:hover { border-color: var(--green-primary); }

.btn-ghost {
  color: var(--green-primary);
  padding: 12px 0;
}
.btn-ghost::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--green-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-med);
}
.btn-ghost:hover::after { transform: scaleX(1); }

.btn-icon {
  width: 48px; height: 48px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: all var(--transition-med);
}
.btn-icon:hover { border-color: var(--green-primary); background: var(--green-subtle); }

/* ======================== NAVIGATION ======================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 24px 0;
  transition: all 0.5s var(--ease-smooth);
}
.nav.scrolled {
  padding: 14px 0;
  background: rgba(8,8,8,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav__logo img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}
.nav__menu {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav__link {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  transition: color var(--transition-fast);
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 1px;
  background: var(--green-primary);
  transform: scaleX(0);
  transition: transform var(--transition-med);
}
.nav__link:hover { color: var(--text-primary); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link.active { color: var(--green-primary); }
.nav__link.active::after { transform: scaleX(1); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
}
.nav__hamburger span {
  display: block;
  height: 1.5px;
  background: var(--text-primary);
  transition: all var(--transition-med);
}

.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(30px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-med);
}
.nav__mobile.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}
.nav__mobile .nav__link {
  font-size: 1.5rem;
  letter-spacing: 0.2em;
}

/* ======================== FOOTER ======================== */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer__logo {
  margin-bottom: 20px;
}
.footer__logo img {
  height: 30px;
  width: auto;
  filter: brightness(0) invert(1);
}
.footer__tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.7;
}
.footer__social {
  display: flex;
  gap: 12px;
}
.footer__social-link {
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  transition: all var(--transition-med);
}
.footer__social-link:hover {
  border-color: var(--green-primary);
  color: var(--green-primary);
}
.footer__col-title {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}
.footer__links a:hover { color: var(--green-primary); }
.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer__copy {
  font-size: 0.78rem;
  color: var(--text-faint);
}

/* ======================== WHATSAPP FAB ======================== */
.whatsapp-fab {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 900;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
  transition: all var(--transition-med);
  animation: fabPulse 3s ease-in-out infinite;
}
.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.6);
}
.whatsapp-fab svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}
@keyframes fabPulse {
  0%, 100% { box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 8px 50px rgba(37, 211, 102, 0.8); }
}

/* ======================== CARDS ======================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-med);
}
.card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.8s var(--ease-smooth);
}
.card:hover .card__img { transform: scale(1.04); }
.card__body { padding: 28px; }
.card__label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.card__label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--green-primary);
}
.card__label span {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-primary);
}
.card__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}
.card__text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* ======================== STAT COUNTER ======================== */
.stat-item {
  text-align: center;
}
.stat-item__number {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 700;
  color: var(--green-primary);
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}
.stat-item__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ======================== FORMS ======================== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.form-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-control {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 14px 18px;
  font-size: 0.9rem;
  transition: border-color var(--transition-fast);
  outline: none;
  border-radius: var(--radius-sm);
}
.form-control:focus { border-color: var(--green-primary); }
.form-control::placeholder { color: var(--text-faint); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; }

/* ======================== DIVIDERS ======================== */
.divider {
  width: 60px;
  height: 1px;
  background: var(--green-primary);
  margin: 24px 0;
}
.divider--center { margin: 24px auto; }
.divider--long { width: 100%; background: var(--border); }

/* ======================== TAGS / BADGES ======================== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid var(--border-accent);
  color: var(--green-primary);
  border-radius: 2px;
}
.badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: var(--green-subtle);
  border: 1px solid var(--border-accent);
  color: var(--green-light);
  border-radius: 2px;
}

/* ======================== PAGE HERO ======================== */
.page-hero {
  padding: 180px 0 100px;
  position: relative;
  overflow: hidden;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(74,138,30,0.06) 0%, transparent 60%);
}
.page-hero__grid-line {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(74,138,30,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,138,30,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
}

/* ======================== SCROLLBAR ======================== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--green-primary); border-radius: 10px; }

/* ======================== SELECTION ======================== */
::selection { background: var(--green-primary); color: #fff; }

/* ======================== RESPONSIVE ======================== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; gap: 20px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .nav__menu { display: none; }
  .nav__hamburger { display: flex; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
}
