/* ══════════════════════════════════════════════════════
   English with Juliana — Practice Hub
   Stylesheet
   Palette: #7D4B43 (Queimado) · #D1B1A8 (Rosa Quartzito)
            #F9F4EC (Areia de Inverno) · #773D3A (Café Robusta)
   Fonts:   Cormorant Garamond (headings) · Poppins (body/UI)
══════════════════════════════════════════════════════ */

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

:root {
  --queimado:   #7D4B43;
  --rosa:       #D1B1A8;
  --areia:      #F9F4EC;
  --cafe:       #773D3A;
  --white:      #FFFFFF;
  --text-dark:  #3a2a28;
  --text-mid:   #7a5c58;
  --text-light: #b09490;

  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body:    'Poppins', sans-serif;

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --shadow-sm:  0 2px 12px rgba(125, 75, 67, 0.07);
  --shadow-md:  0 8px 32px rgba(125, 75, 67, 0.11);
  --shadow-lg:  0 20px 60px rgba(125, 75, 67, 0.14);

  --nav-height: 68px;
  --transition: 0.3s ease;
}

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

body {
  background-color: var(--areia);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Hero Header ──────────────────────────────────── */
.hero {
  background-color: var(--white);
  border-bottom: 1px solid rgba(209, 177, 168, 0.3);
  padding: 80px 24px 72px;
  text-align: center;
}

.hero__inner {
  max-width: 680px;
  margin: 0 auto;
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rosa);
  margin-bottom: 14px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  color: var(--cafe);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.97rem;
  color: var(--text-mid);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ── Sticky Nav ───────────────────────────────────── */
.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(249, 244, 236, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(209, 177, 168, 0.35);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow var(--transition);
}

.sticky-nav.scrolled {
  box-shadow: var(--shadow-sm);
}

.sticky-nav__inner {
  display: flex;
  gap: 10px;
  padding: 0 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--text-mid);
  text-decoration: none;
  padding: 9px 22px;
  border-radius: 100px;
  border: 1.5px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-btn:hover {
  color: var(--queimado);
  border-color: var(--rosa);
  background: rgba(209, 177, 168, 0.12);
}

.nav-btn.active {
  color: var(--white);
  background: var(--queimado);
  border-color: var(--queimado);
}

/* ── Main Content ─────────────────────────────────── */
.main-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 24px 100px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

/* ── Activity Section ─────────────────────────────── */
.activity-section {
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

/* ── Card ─────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 52px 56px 56px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(209, 177, 168, 0.2);
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card__label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--rosa);
  margin-bottom: 10px;
}

.card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  color: var(--cafe);
  line-height: 1.15;
  margin-bottom: 18px;
}

.card__description {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.93rem;
  color: var(--text-mid);
  line-height: 1.85;
  max-width: 600px;
  margin-bottom: 40px;
}

/* ── Embed Wrapper ────────────────────────────────── */
.embed-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--areia);
  border: 1px solid rgba(209, 177, 168, 0.25);
  min-height: 200px;
}

.embed-wrapper iframe {
  display: block;
  width: 100%;
  min-height: 780px;
  border: none;
}

/* ── Embed Placeholder ────────────────────────────── */
.embed-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 72px 32px;
  text-align: center;
}

.embed-placeholder__icon {
  font-size: 1.6rem;
  color: var(--rosa);
  display: block;
  margin-bottom: 6px;
}

.embed-placeholder p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.92rem;
  color: var(--text-mid);
}

.embed-placeholder__hint {
  font-size: 0.78rem !important;
  color: var(--text-light) !important;
}

.embed-placeholder code {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  background: rgba(209, 177, 168, 0.18);
  color: var(--queimado);
  padding: 2px 7px;
  border-radius: 4px;
}

/* ── Footer ───────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 40px 24px 56px;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--text-light);
  border-top: 1px solid rgba(209, 177, 168, 0.25);
}

/* ── Back to Top ──────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 200;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--queimado);
  color: var(--white);
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--cafe);
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 768px) {
  .hero {
    padding: 60px 20px 52px;
  }

  .card {
    padding: 36px 28px 40px;
  }

  .card__description {
    margin-bottom: 28px;
  }

  .embed-wrapper iframe {
    min-height: 600px;
  }

  .main-content {
    gap: 56px;
    padding: 56px 20px 80px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 2.4rem;
  }

  .sticky-nav__inner {
    gap: 6px;
  }

  .nav-btn {
    font-size: 0.76rem;
    padding: 8px 16px;
  }

  .card {
    padding: 28px 20px 32px;
    border-radius: var(--radius-md);
  }

  .embed-wrapper iframe {
    min-height: 500px;
  }
}
