/* ============================================================
   Exóticos do Éden - Design System & Styles
   Source of truth: DESIGN.md
   ============================================================ */

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

/* --- Design Tokens (CSS Custom Properties) --- */
:root {
  --color-primary: #3B5A2B;
  --color-primary-light: #5A7A3A;
  --color-secondary: #C9A34E;
  --color-accent: #C84B31;
  --color-surface: #F5F1E6;
  --color-surface-alt: #EDE8D8;
  --color-on-surface: #2C2417;
  --color-on-surface-muted: #6B5E4B;
  --color-white: #FFFDF7;

  --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Outfit', system-ui, -apple-system, sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 32px;
  --space-xl: 64px;
  --space-xxl: 96px;

  --nav-height: 64px;
  --max-width: 1200px;

  --transition-base: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-on-surface);
  background-color: var(--color-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-weight: 600;
}

h1 {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.15;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.2;
}

p {
  max-width: 65ch;
}

.text-muted {
  color: var(--color-on-surface-muted);
}

.text-sm {
  font-size: 14px;
  line-height: 1.5;
}

.label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-secondary);
}

/* --- Containers --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-lg);
  }
}

.section {
  padding: 48px 0;
}

@media (min-width: 768px) {
  .section {
    padding: 64px 0;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 96px 0;
  }
}

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

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

.section--dark h2,
.section--dark h3 {
  color: var(--color-white);
}

.section--dark .text-muted {
  color: rgba(255, 253, 247, 0.7);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: all var(--transition-base);
  cursor: pointer;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  border: 2px solid var(--color-primary);
}

.btn--primary:hover {
  background-color: var(--color-primary-light);
  border-color: var(--color-primary-light);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn--outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn--accent {
  background-color: var(--color-accent);
  color: var(--color-white);
  border: 2px solid var(--color-accent);
}

.btn--accent:hover {
  background-color: #b5422a;
  border-color: #b5422a;
}

.btn--white {
  background-color: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-white);
}

.btn--white:hover {
  background-color: transparent;
  color: var(--color-white);
}

.btn--lg {
  padding: 18px 36px;
  font-size: 17px;
}

/* --- Ornamental Divider --- */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  padding: 0 var(--space-lg);
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-secondary), transparent);
}

.divider__diamond {
  width: 8px;
  height: 8px;
  background-color: var(--color-secondary);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background-color: rgba(245, 241, 230, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  z-index: 100;
  transition: border-color var(--transition-base), background-color var(--transition-base);
}

.nav--scrolled {
  border-bottom-color: var(--color-secondary);
  background-color: rgba(245, 241, 230, 0.97);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-primary);
}

.nav__logo img {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.nav__links {
  display: none;
  align-items: center;
  gap: var(--space-lg);
}

@media (min-width: 1024px) {
  .nav__links {
    display: flex;
  }
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-on-surface-muted);
  transition: color var(--transition-base);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-secondary);
  transition: width var(--transition-base);
}

.nav__link:hover {
  color: var(--color-primary);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__cta {
  display: none;
}

@media (min-width: 1024px) {
  .nav__cta {
    display: inline-flex;
  }
}

.nav__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .nav__hamburger {
    display: none;
  }
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-primary);
  transition: all var(--transition-base);
  border-radius: 2px;
}

.nav__hamburger--active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger--active span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger--active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-surface);
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: var(--space-lg);
  gap: var(--space-md);
  transform: translateX(100%);
  transition: transform var(--transition-base);
}

.mobile-menu--open {
  transform: translateX(0);
}

.mobile-menu__link {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  color: var(--color-primary);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-surface-alt);
  transition: color var(--transition-base);
}

.mobile-menu__link:hover {
  color: var(--color-primary-light);
}

.mobile-menu__cta {
  margin-top: auto;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100dvh;
  padding-top: calc(var(--nav-height) + 48px);
  padding-bottom: 48px;
  display: flex;
  align-items: center;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}

@media (min-width: 768px) {
  .hero__grid {
    grid-template-columns: 55fr 45fr;
    gap: var(--space-xl);
  }
}

.hero__content {
  order: 2;
}

@media (min-width: 768px) {
  .hero__content {
    order: 1;
  }
}

.hero__subtitle {
  margin-bottom: var(--space-md);
}

.hero__title {
  margin-bottom: var(--space-lg);
}

.hero__text {
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-on-surface-muted);
  margin-bottom: var(--space-lg);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.hero__image {
  order: 1;
  position: relative;
}

@media (min-width: 768px) {
  .hero__image {
    order: 2;
  }
}

.hero__image img {
  border-radius: var(--radius-lg);
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.hero__image::before {
  content: '';
  position: absolute;
  top: -12px;
  right: -12px;
  bottom: 12px;
  left: 12px;
  border: 2px solid var(--color-secondary);
  border-radius: var(--radius-lg);
  z-index: -1;
}

@media (max-width: 767px) {
  .hero__image::before {
    display: none;
  }

  .hero__image img {
    aspect-ratio: 16 / 10;
  }
}

/* ============================================================
   ABOUT / "POR QUE ESCOLHER O ÉDEN"
   ============================================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: start;
}

@media (min-width: 768px) {
  .about__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about__header {
  margin-bottom: var(--space-lg);
}

.about__header h2 {
  margin-top: var(--space-sm);
}

.about__text {
  color: var(--color-on-surface-muted);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.feature {
  padding: var(--space-lg) 0;
}

.feature__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-surface-alt);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  color: var(--color-primary);
}

.feature__icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature__title {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.feature__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-on-surface-muted);
}

.about__image img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

@media (max-width: 767px) {
  .about__image img {
    aspect-ratio: 16 / 10;
  }
}

/* ============================================================
   GENETICS
   ============================================================ */
.genetics__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 768px) {
  .genetics__grid {
    grid-template-columns: 45fr 55fr;
  }
}

.genetics__image img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 2px solid var(--color-secondary);
}

.genetics__content h2 {
  margin-bottom: var(--space-lg);
}

.genetics__content p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-on-surface-muted);
  margin-bottom: var(--space-lg);
}

.genetics__highlights {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.highlight {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
}

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

.highlight__number {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.highlight__label {
  font-size: 13px;
  color: var(--color-on-surface-muted);
}

@media (max-width: 767px) {
  .genetics__highlights {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   GALLERY / FILHOTES
   ============================================================ */
.gallery__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-xl);
}

.gallery__header h2 {
  margin-top: var(--space-sm);
  margin-bottom: var(--space-md);
}

.gallery__header p {
  color: var(--color-on-surface-muted);
  margin: 0 auto;
}

.gallery__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__item:first-child {
    grid-row: span 2;
  }
}

@media (min-width: 1024px) {
  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery__item:first-child {
    grid-row: span 2;
  }
}

.gallery__item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  aspect-ratio: 4 / 3;
}

.gallery__item:first-child img {
  aspect-ratio: auto;
  min-height: 100%;
}

.gallery__item:hover img {
  transform: scale(1.05);
}

.gallery__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44, 36, 23, 0.8) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: var(--space-lg);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.gallery__item:hover .gallery__overlay {
  opacity: 1;
}

.gallery__overlay-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--space-xs);
}

.gallery__overlay-status {
  font-size: 13px;
  color: rgba(255, 253, 247, 0.8);
}

.gallery__cta {
  text-align: center;
  margin-top: var(--space-xl);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.testimonials__header h2 {
  margin-top: var(--space-sm);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .testimonials__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial {
  padding: var(--space-lg);
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-surface-alt);
  position: relative;
}

.testimonial__quote {
  font-family: var(--font-heading);
  font-size: 60px;
  font-weight: 700;
  color: var(--color-secondary);
  line-height: 1;
  position: absolute;
  top: 16px;
  left: 24px;
  opacity: 0.3;
}

.testimonial__text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-on-surface);
  margin-bottom: var(--space-lg);
  padding-top: var(--space-lg);
  font-style: italic;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary);
  flex-shrink: 0;
}

.testimonial__name {
  font-weight: 600;
  font-size: 14px;
  color: var(--color-on-surface);
}

.testimonial__location {
  font-size: 13px;
  color: var(--color-on-surface-muted);
}

/* ============================================================
   CTA / CONTACT
   ============================================================ */
.cta-section {
  text-align: center;
}

.cta-section h2 {
  margin-bottom: var(--space-md);
}

.cta-section p {
  margin: 0 auto var(--space-lg);
  font-size: 18px;
  line-height: 1.7;
  opacity: 0.85;
}

.cta-section .hero__actions {
  justify-content: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer__brand {
  max-width: 360px;
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.footer__desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 253, 247, 0.7);
}

.footer__title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.footer__link {
  display: block;
  font-size: 14px;
  color: rgba(255, 253, 247, 0.7);
  padding: var(--space-xs) 0;
  transition: color var(--transition-base);
}

.footer__link:hover {
  color: var(--color-secondary);
}

.footer__bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 253, 247, 0.15);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer__copyright {
  font-size: 13px;
  color: rgba(255, 253, 247, 0.5);
}

.footer__socials {
  display: flex;
  gap: var(--space-md);
}

.footer__social {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 253, 247, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-base);
}

.footer__social:hover {
  background-color: var(--color-secondary);
}

.footer__social svg {
  width: 18px;
  height: 18px;
  fill: var(--color-white);
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal--delay-1 { transition-delay: 0.06s; }
.reveal--delay-2 { transition-delay: 0.12s; }
.reveal--delay-3 { transition-delay: 0.18s; }
.reveal--delay-4 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   UTILITY
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.body-lock {
  overflow: hidden;
}
