/* ==========================================================================
   All Life — Landing Umbrella
   Design system enxuto. Mobile-first. WCAG 2.1 AA.
   ========================================================================== */

:root {
  /* Paleta da marca (extraída do site original) */
  --color-primary:        #0c4633;  /* Verde All Life — confiança, vida */
  --color-primary-deep:   #0a3a28;
  --color-primary-soft:   #9ad3ca;  /* Mint — frescor, cuidado */
  --color-accent:         #d8db39;  /* Lima — energia, ação */
  --color-cream:          #E3E5D9;
  --color-bg:             #f8f8f7;
  --color-surface:        #ffffff;
  --color-text:           #1a1a1a;
  --color-text-muted:     #4a4a4a;
  --color-text-soft:      #6c757d;
  --color-border:         #e3e5d9;

  /* Tipografia */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Espaçamentos */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  /* Raio e sombra */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 4px 24px rgba(12, 70, 51, 0.08);
  --shadow-card-hover: 0 12px 36px rgba(12, 70, 51, 0.16);

  /* Container */
  --container-max: 1180px;
}

/* Reset enxuto */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; }

/* Foco visível — WCAG 2.4.7 */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link — acessibilidade */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-3) var(--space-4);
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
.site-header .brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.site-header .brand img { height: 36px; width: auto; }
.site-header nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-3);
}
.site-header nav a:hover { color: var(--color-primary); text-decoration: none; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: var(--space-24) 0 var(--space-16);
  background:
    radial-gradient(ellipse at top right, rgba(154, 211, 202, 0.35), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(216, 219, 57, 0.18), transparent 55%),
    linear-gradient(180deg, var(--color-bg) 0%, #ffffff 100%);
  overflow: hidden;
}
.hero-content {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(154, 211, 202, 0.3);
  padding: var(--space-2) var(--space-4);
  border-radius: 999px;
  margin-bottom: var(--space-6);
}
.hero h1 {
  font-size: clamp(2.25rem, 5vw + 1rem, 4rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-primary-deep);
  margin: 0 0 var(--space-6);
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--color-primary) 0%, var(--color-primary-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: clamp(1.05rem, 1vw + 0.85rem, 1.25rem);
  color: var(--color-text-muted);
  max-width: 580px;
  margin: 0 auto var(--space-8);
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  color: var(--color-primary);
  padding: var(--space-3) var(--space-4);
  border-radius: 999px;
  transition: transform 0.2s ease;
}
.hero-cta i { transition: transform 0.3s ease; }
.hero-cta:hover { text-decoration: none; }
.hero-cta:hover i { transform: translateY(4px); }

/* ==========================================================================
   Produtos — 3 cards
   ========================================================================== */
.products {
  padding: var(--space-16) 0 var(--space-24);
}
.products .section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-12);
}
.products h2 {
  font-size: clamp(1.75rem, 3vw + 0.5rem, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-primary-deep);
  margin: 0 0 var(--space-3);
}
.products .section-head p {
  color: var(--color-text-muted);
  margin: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 860px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}

.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--card-accent, var(--color-primary));
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--card-accent, var(--color-primary));
}
.product-card .logo-wrap {
  height: 64px;
  display: flex;
  align-items: center;
  margin-bottom: var(--space-6);
}
.product-card .logo-wrap img {
  max-height: 56px;
  width: auto;
}
.product-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary-deep);
  margin: 0 0 var(--space-2);
  letter-spacing: -0.01em;
}
.product-card .audience {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--card-accent, var(--color-primary));
  margin-bottom: var(--space-4);
}
.product-card p {
  color: var(--color-text-muted);
  margin: 0 0 var(--space-8);
  flex-grow: 1;
}
.product-card .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: var(--card-accent, var(--color-primary));
  color: #fff;
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: 999px;
  transition: filter 0.2s ease, transform 0.2s ease;
  align-self: flex-start;
}
.product-card .cta:hover {
  text-decoration: none;
  filter: brightness(1.1);
  transform: translateX(2px);
}
.product-card .cta i { font-size: 0.85em; }

/* Todos os produtos seguem a paleta All Life — marca unificada */
.product-card.alllife,
.product-card.vet,
.product-card.iago { --card-accent: #0c4633; }

/* ==========================================================================
   Sobre / Ecossistema
   ========================================================================== */
.about {
  padding: var(--space-16) 0;
  background: linear-gradient(180deg, #fff 0%, var(--color-cream) 100%);
}
.about-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.about h2 {
  font-size: clamp(1.5rem, 2vw + 0.5rem, 2rem);
  font-weight: 700;
  color: var(--color-primary-deep);
  margin: 0 0 var(--space-6);
}
.about p {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-primary-deep);
  color: rgba(255, 255, 255, 0.85);
  padding: var(--space-12) 0 var(--space-8);
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  justify-content: space-between;
  align-items: flex-start;
}
.site-footer .brand-block {
  max-width: 320px;
}
.site-footer .brand-block img {
  height: 40px;
  width: auto;
  margin-bottom: var(--space-3);
  filter: brightness(0) invert(1);
}
.site-footer .brand-block p {
  font-size: 0.9rem;
  margin: 0 0 var(--space-2);
  color: rgba(255, 255, 255, 0.7);
}
.site-footer a {
  color: #fff;
}
.site-footer a:hover {
  color: var(--color-accent);
}
.site-footer .social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-3);
}
.site-footer .social a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  transition: background 0.2s ease;
}
.site-footer .social a:hover {
  background: var(--color-accent);
  color: var(--color-primary-deep);
}
.site-footer .copyright {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-6);
  margin-top: var(--space-4);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

/* ==========================================================================
   Motion — respeitando preferência do usuário
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .product-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease forwards;
  }
  .product-card:nth-child(1) { animation-delay: 0.05s; }
  .product-card:nth-child(2) { animation-delay: 0.15s; }
  .product-card:nth-child(3) { animation-delay: 0.25s; }

  .hero-cta i {
    animation: bounce 2.4s ease-in-out infinite;
  }
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Responsivo refino
   ========================================================================== */
@media (max-width: 600px) {
  .hero { padding: var(--space-16) 0 var(--space-12); }
  .products { padding: var(--space-12) 0 var(--space-16); }
  .site-footer .container { flex-direction: column; }
}
