/* ===================================
   CASA -- Um refugio para mulheres que sentem dor
   Foundation Stylesheet
   =================================== */

/* --- Custom Properties --- */
:root {
  /* Colors */
  --brown: #574325;
  --brown-light: #7a6340;
  --brown-dark: #3d2e18;
  --brown-muted: #8b7355;
  --brown-faint: rgba(87, 67, 37, 0.06);
  --cream: #F4EFE8;
  --cream-dark: #EAE2D8;
  --cream-warm: #F9F6F2;
  --white: #FDFBF8;
  --text: #574325;
  --text-light: #7a6340;
  --text-muted: #a89880;
  --border: #ddd2c4;
  --border-light: #ece5db;
  --whatsapp: #25D366;

  /* Typography */
  --font-display: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
  --font-body: 'Cormorant Garamond', 'Georgia', serif;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;
  --space-4xl: 12rem;

  /* Border Radius */
  --radius: 4px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-full: 50%;

  /* Transitions */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-breath: cubic-bezier(0.45, 0, 0.55, 1);
  --transition: 0.5s var(--ease-out);
  --transition-slow: 1s var(--ease-out);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

::selection {
  background: var(--brown);
  color: var(--cream);
}

/* --- Container --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container--narrow {
  max-width: 780px;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(253, 251, 248, 0.95);
  backdrop-filter: blur(12px);
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border-light);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--brown);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.05em;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--brown);
}

.nav-cta {
  background: var(--brown);
  color: var(--cream) !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
}

.nav-cta:hover {
  background: var(--brown-dark);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--brown);
  border-radius: 2px;
  transition: var(--transition);
}

/* --- Typography --- */
.font-display { font-family: var(--font-display); }
.font-body { font-family: var(--font-body); }
.font-sans { font-family: var(--font-sans); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.25;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.35;
}

p {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.85;
}

.section-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  font-weight: 500;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  margin-top: var(--space-xs);
}

.section-header {
  text-align: left;
  margin-bottom: var(--space-xl);
}

.section-header--center {
  text-align: center;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--brown);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--brown-dark);
}

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

.btn-outline:hover {
  background: var(--brown);
  color: var(--cream);
}

.btn-lg {
  padding: 1.15rem 3rem;
  font-size: 0.9rem;
}

/* --- Sections --- */
.section {
  padding: var(--space-3xl) 0;
}

.section--cream {
  background: var(--cream);
}

.section--breathing {
  padding: var(--space-4xl) 0;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-phrase {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-style: italic;
  font-weight: 300;
  color: var(--text-light);
  margin-bottom: var(--space-sm);
}

.hero-title-name {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: lowercase;
  display: block;
  color: var(--brown);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text-light);
  margin-top: var(--space-sm);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero-illustration {
  width: clamp(250px, 40vw, 380px);
  height: auto;
  margin: var(--space-xl) auto var(--space-lg);
  opacity: 0.85;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.countdown-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--brown);
  line-height: 1;
}

.countdown-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.hero-detail {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.hero-actions {
  margin-top: var(--space-md);
}

/* --- Impact Phrase --- */
.impact-phrase {
  padding: var(--space-4xl) 0;
  text-align: center;
}

.impact-phrase-text {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  color: var(--brown);
  max-width: 600px;
  margin: 0 auto;
}

/* --- About --- */
.about-text {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 2;
  color: var(--text);
  text-align: center;
  max-width: 650px;
  margin: 0 auto;
}

/* --- Audience --- */
.audience-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.audience-item {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--text);
  padding: var(--space-sm) var(--space-lg);
  border-bottom: 1px solid var(--border-light);
  width: 100%;
  max-width: 500px;
  text-align: center;
}

.audience-item:last-child {
  border-bottom: none;
}

/* --- Reasons --- */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.reason-card {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
}

.reason-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: var(--space-sm);
  color: var(--brown);
}

.reason-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-light);
}

/* --- Schedule --- */
.schedule-timeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  max-width: 600px;
  margin: 0 auto;
}

.schedule-item {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
}

.schedule-time {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 100px;
  padding-top: 0.3rem;
}

.schedule-content {
  border-left: 1px solid var(--border-light);
  padding-left: var(--space-lg);
}

.schedule-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: var(--space-xs);
  color: var(--brown);
}

.schedule-desc {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* --- Professionals --- */
.professionals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.professional-card {
  text-align: center;
}

.professional-photo {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 0 auto var(--space-md);
}

.professional-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.professional-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

.professional-role {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.professional-credential {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  margin-bottom: var(--space-sm);
}

.professional-bio {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* --- Info --- */
.info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  max-width: 500px;
  margin: 0 auto;
}

.info-item {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  color: var(--text);
  text-align: center;
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-light);
  width: 100%;
}

.info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* --- Clarice Quote --- */
.clarice-quote {
  padding: var(--space-4xl) 0;
  text-align: center;
  background: var(--cream-warm);
}

.clarice-quote-text {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.6;
  color: var(--brown);
  max-width: 650px;
  margin: 0 auto;
  quotes: none;
}

.clarice-quote-author {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: var(--space-lg);
}

/* --- FAQ --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 650px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: var(--space-md);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--brown);
  text-align: left;
  gap: var(--space-sm);
}

.faq-question:hover {
  color: var(--brown-dark);
}

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease-out);
  color: var(--text-muted);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--brown);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease-out);
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 0 var(--space-md);
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-light);
}

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

.cta-illustration {
  width: 80px;
  height: auto;
  margin: 0 auto var(--space-xl);
  opacity: 0.8;
}

.cta-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-style: italic;
  font-weight: 400;
  color: var(--brown);
  max-width: 500px;
  margin: 0 auto var(--space-xl);
  line-height: 1.5;
}

/* --- Footer --- */
.footer {
  padding: var(--space-xl) 0;
  text-align: center;
  border-top: 1px solid var(--border-light);
}

.footer-organizer {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.footer-brand {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: var(--space-sm);
}

.footer-brand a {
  color: var(--brown);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-brand a:hover {
  color: var(--brown-dark);
}

/* --- Floating WhatsApp Button --- */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background: var(--whatsapp);
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.whatsapp-float.visible {
  opacity: 0.9;
  transform: scale(1);
  pointer-events: auto;
}

.whatsapp-float:hover {
  opacity: 1;
  transform: scale(1.08);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

/* --- Responsive --- */

/* Tablet */
@media (max-width: 768px) {
  /* Navbar hamburger */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: var(--cream);
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.5s var(--ease-out);
    z-index: 200;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1rem;
  }

  /* Grid collapses */
  .reasons-grid {
    grid-template-columns: 1fr;
  }

  .professionals-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  .countdown {
    gap: var(--space-md);
  }

  /* Reduce section padding */
  .section {
    padding: var(--space-2xl) 0;
  }

  .section--breathing {
    padding: var(--space-3xl) 0;
  }

  /* Typography adjustments */
  .hero-title-name {
    font-size: clamp(3rem, 12vw, 5rem);
  }

  .hero-illustration {
    width: clamp(200px, 50vw, 300px);
  }

  .impact-phrase-text {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
  }

  .clarice-quote-text {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
  }

  .cta-tagline {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
  }
}

/* Phone */
@media (max-width: 480px) {
  .professionals-grid {
    grid-template-columns: 1fr;
  }

  .countdown {
    flex-wrap: wrap;
    justify-content: center;
  }

  .schedule-item {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .schedule-content {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border-light);
    padding-top: var(--space-sm);
  }

  .container {
    padding: 0 1.25rem;
  }

  /* Floating button adjusts */
  .whatsapp-float {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }

  /* Reduce hero padding for small screens */
  .hero {
    padding: var(--space-lg) 0 var(--space-xl);
  }

  .hero-illustration {
    width: clamp(180px, 60vw, 250px);
  }

  /* Smaller countdown on phone */
  .countdown-value {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }
}
