/*
Theme Name: Fairytale
Theme URI: https://fairytale.better.co.mz/
Description: Fairytale custom theme — visual storytellers.
Author: Fairytale
Version: 1.0.1780037937
Text Domain: fairytale
*/
:root {
  --forest: #0E2218;
  --forest-deep: #081410;
  --forest-mid: #15301F;
  --gold: #C8A878;
  --gold-soft: #B89968;
  --cream: #F5EFE6;
  --cream-dim: #D9D2C5;
  --line: rgba(200, 168, 120, 0.25);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--forest);
  color: var(--cream);
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

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

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, rgba(8,20,16,0.6), transparent);
  transition: background 0.4s ease, padding 0.3s;
}
.nav.scrolled {
  background: rgba(8,20,16,0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 12px 32px;
}
.nav-brand {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none;
}
.nav-mark { width: 32px; height: 32px; object-fit: contain; }
.nav-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  letter-spacing: 0.36em;
  color: var(--cream);
  font-weight: 500;
}
.nav-links {
  display: flex; gap: 36px; align-items: center;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links li { list-style: none; }
.nav-links a {
  color: var(--cream-dim);
  text-decoration: none;
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  transition: color 0.3s;
  padding: 8px 0;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%;
  width: 0; height: 1px;
  background: var(--gold);
  transition: all 0.3s;
}
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after,
.nav-links .current-menu-item > a::after,
.nav-links .current_page_item > a::after {
  width: 100%; left: 0;
}
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a { color: var(--gold); }
.nav-cta {
  color: var(--cream);
  border: 1px solid var(--gold);
  padding: 10px 20px;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  cursor: pointer;
  background: transparent;
  text-decoration: none;
  transition: all 0.4s;
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
}
.nav-cta:hover { background: var(--gold); color: var(--forest); }
.nav-mobile-toggle {
  display: none;
  background: none; border: none; color: var(--cream);
  cursor: pointer; padding: 8px;
}
@media (max-width: 820px) {
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    width: 100%; max-width: 320px; height: 100vh;
    background: var(--forest-deep);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    padding: 40px;
    border-left: 1px solid var(--line);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a, .nav-cta { font-size: 13px; }
  .nav-mobile-toggle { display: block; z-index: 101; position: relative; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes kenBurns {
  from { transform: scale(1.02); }
  to   { transform: scale(1.10); }
}
@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ============ HOME HERO ============ */
.home-hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.home-hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  filter: brightness(0.62) saturate(0.95);
  transform: scale(1.04);
  animation: kenBurns 18s ease-in-out infinite alternate;
}
.home-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(8,20,16,0.45) 0%, transparent 30%,
    transparent 60%, rgba(8,20,16,0.85) 100%);
}
.home-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 48px 80px;
  animation: fadeUp 1.6s 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.home-hero-eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--gold);
  font-size: 16px;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}
.home-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(44px, 8vw, 110px);
  line-height: 1;
  letter-spacing: 0.01em;
  margin-bottom: 28px;
  max-width: 14ch;
}
.home-hero-title em { font-style: italic; color: var(--gold); }
.home-hero-meta {
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--cream-dim);
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.home-hero-meta .dot { color: var(--gold); font-size: 6px; }
.home-hero-corner {
  position: absolute;
  z-index: 2;
  color: var(--cream-dim);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  line-height: 1.6;
}
.home-hero-corner.tr { top: 100px; right: 48px; text-align: right; }
.home-hero-scroll {
  position: absolute;
  bottom: 32px; right: 48px;
  z-index: 2;
  color: var(--cream-dim);
  font-size: 9px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  animation: drift 2.4s ease-in-out infinite;
}
@media (max-width: 720px) {
  .home-hero-content { padding: 0 24px 60px; }
  .home-hero-corner, .home-hero-scroll { display: none; }
  .home-hero-meta { gap: 12px; font-size: 10px; }
}

/* ============ HOME INTRO ============ */
.home-intro {
  padding: 120px 32px 100px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.home-intro-label {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--gold);
  font-size: 16px;
  margin-bottom: 28px;
  display: flex; align-items: center; justify-content: center; gap: 16px;
}
.home-intro-label::before, .home-intro-label::after {
  content: ''; width: 36px; height: 1px;
  background: var(--gold); opacity: 0.5;
}
.home-intro-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.3;
  margin-bottom: 32px;
}
.home-intro-text {
  font-size: 15px;
  line-height: 1.85;
  color: var(--cream-dim);
}

/* ============ HOME FEATURED ============ */
.home-featured {
  padding: 60px 32px 120px;
  max-width: 1480px;
  margin: 0 auto;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 16px;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.1;
  margin: 0;
}
.section-title em { font-style: italic; color: var(--gold); }
.section-link {
  color: var(--cream-dim);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s;
  display: flex; align-items: center; gap: 10px;
}
.section-link:hover { color: var(--gold); }
.section-link svg { width: 14px; height: 14px; transition: transform 0.4s; }
.section-link:hover svg { transform: translateX(4px); }

/* ============ HOME SERVICES ============ */
.home-services {
  padding: 100px 32px;
  background: var(--forest-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.services-grid {
  max-width: 1280px;
  margin: 60px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.service-card {
  padding: 48px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.4s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.service-card:hover { background: rgba(200,168,120,0.04); }
.service-num {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.2em;
  margin-bottom: 24px;
}
.service-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 28px;
  margin-bottom: 16px;
}
.service-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--cream-dim);
  margin-bottom: 24px;
}
.service-link {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center; gap: 8px;
  transition: gap 0.3s;
}
.service-card:hover .service-link { gap: 14px; }

/* ============ CTA STRIP ============ */
.cta-strip {
  padding: 140px 32px;
  text-align: center;
}
.cta-strip h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.2;
  margin-bottom: 36px;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}
.cta-strip h2 em { color: var(--gold); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 32px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--cream);
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--gold);
  transform: translateY(101%);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: -1;
}
.btn:hover { color: var(--forest); }
.btn:hover::before { transform: translateY(0); }
.btn svg { width: 12px; height: 12px; transition: transform 0.4s; }
.btn:hover svg { transform: translateX(4px); }
.btn-filled { background: var(--gold); color: var(--forest); }
.btn-filled::before { display: none; }
.btn-filled:hover { background: var(--cream); }

/* ============ COLLECTION CARDS ============ */
.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}
.collection-card {
  cursor: pointer;
  transition: transform 0.4s;
  text-decoration: none;
  color: inherit;
}
.collection-card:hover { transform: translateY(-4px); }
.card-cover {
  aspect-ratio: 4/5;
  overflow: hidden;
  position: relative;
  margin-bottom: 18px;
  background: var(--forest-mid);
}
.card-cover img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.92);
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.5s;
}
.collection-card:hover .card-cover img {
  transform: scale(1.06); filter: brightness(1.05);
}
.card-lock {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(8,20,16,0.85);
  color: var(--cream-dim);
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  padding: 6px 12px;
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
}
.card-info { padding: 0 4px; }
.card-tag {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.card-names {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 6px;
}
.card-meta {
  font-size: 11px;
  color: var(--cream-dim);
  letter-spacing: 0.06em;
}

/* ============ PORTFOLIO ============ */
.portfolio {
  padding: 140px 32px 100px;
  max-width: 1480px;
  margin: 0 auto;
}
.portfolio-header {
  text-align: center;
  margin-bottom: 64px;
}
.portfolio-eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--gold);
  font-size: 16px;
  margin-bottom: 16px;
}
.portfolio-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  margin-bottom: 24px;
}
.portfolio-sub {
  font-size: 14px;
  color: var(--cream-dim);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto;
}

/* ============ SAVE THE DATE ============ */
.save-hero {
  padding: 160px 32px 80px;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}
.save-eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--gold);
  font-size: 16px;
  margin-bottom: 16px;
}
.save-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(44px, 7vw, 80px);
  line-height: 1.05;
  margin-bottom: 28px;
}
.save-title em { font-style: italic; color: var(--gold); }
.save-sub {
  font-size: 16px;
  line-height: 1.7;
  color: var(--cream-dim);
  max-width: 580px;
  margin: 0 auto 48px;
}

.save-templates {
  padding: 60px 32px 100px;
  max-width: 1480px;
  margin: 0 auto;
}
.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 48px;
}
.template-card {
  cursor: pointer;
  transition: transform 0.4s;
}
.template-card:hover { transform: translateY(-4px); }
.template-cover {
  aspect-ratio: 5/7;
  overflow: hidden;
  position: relative;
  margin-bottom: 18px;
  background: var(--forest-mid);
}
.template-cover img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.55);
  transition: filter 0.4s, transform 0.6s;
}
.template-card:hover .template-cover img { transform: scale(1.04); }
.template-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--cream);
  text-align: center;
  padding: 40px 24px;
}
.template-preview {
  border: 1px solid rgba(245,239,230,0.4);
  padding: 32px 20px;
  background: rgba(8,20,16,0.3);
  backdrop-filter: blur(2px);
  width: 100%;
}
.tp-eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--gold);
  font-size: 12px;
  margin-bottom: 14px;
}
.tp-names {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 14px;
}
.tp-divider {
  width: 30px; height: 1px;
  background: var(--gold);
  margin: 0 auto 14px;
}
.tp-date {
  font-size: 9px;
  letter-spacing: 0.4em;
  color: var(--cream-dim);
}
.template-info { padding: 0 4px; }
.template-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 22px;
  margin-bottom: 6px;
}
.template-style {
  font-size: 11px;
  color: var(--cream-dim);
  margin-bottom: 8px;
}
.template-price {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ============ HOW IT WORKS ============ */
.save-how {
  padding: 100px 32px;
  background: var(--forest-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.save-how-inner { max-width: 1200px; margin: 0 auto; }
.save-how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.step-card {
  padding: 40px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.step-num {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--gold);
  font-size: 36px;
  line-height: 1;
  margin-bottom: 20px;
}
.step-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  margin-bottom: 10px;
}
.step-desc {
  font-size: 13px;
  color: var(--cream-dim);
  line-height: 1.6;
}

/* ============ PRICING ============ */
.save-pricing {
  padding: 100px 32px 60px;
  max-width: 1100px;
  margin: 0 auto;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 4px;
  margin-top: 48px;
  background: var(--line);
}
.pricing-card {
  padding: 48px 32px;
  background: var(--forest);
  transition: background 0.4s;
}
.pricing-card:hover { background: var(--forest-mid); }
.pricing-card.featured {
  background: var(--forest-mid);
  position: relative;
}
.pricing-card.featured::before {
  content: 'Mais popular';
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%) translateY(-50%);
  background: var(--gold);
  color: var(--forest);
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  padding: 4px 14px;
}
.price-tier {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0.16em;
  margin-bottom: 18px;
}
.price-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 32px;
  margin-bottom: 10px;
}
.price-amount {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  color: var(--cream);
  margin-bottom: 4px;
}
.price-amount-sub {
  font-size: 11px;
  color: var(--cream-dim);
  margin-bottom: 30px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.price-features {
  list-style: none;
  margin-bottom: 32px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.price-features li {
  font-size: 13px;
  line-height: 1.6;
  color: var(--cream-dim);
  padding: 8px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.price-features li::before {
  content: '✦';
  color: var(--gold);
  font-size: 9px;
  margin-top: 4px;
}

/* ============ FOOTER ============ */
.footer {
  padding: 100px 32px 50px;
  text-align: center;
  border-top: 1px solid var(--line);
  background: var(--forest-deep);
}
.footer-mark {
  width: 80px;
  margin: 0 auto 24px;
  display: block;
  opacity: 0.85;
}
.footer-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  letter-spacing: 0.4em;
  margin-bottom: 6px;
}
.footer-tag {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--gold);
  font-size: 14px;
  margin-bottom: 36px;
}
.footer-links {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-bottom: 36px;
  flex-wrap: wrap;
  list-style: none;
}
.footer-links li { list-style: none; }
.footer-links a {
  color: var(--cream-dim);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--gold); }
.footer-info {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-dim);
  line-height: 2.2;
}
.footer-info a { color: var(--gold); text-decoration: none; }
.footer-divider {
  width: 40px; height: 1px;
  background: var(--gold);
  opacity: 0.5;
  margin: 30px auto;
}
.footer-copy {
  font-size: 10px;
  color: var(--cream-dim);
  opacity: 0.6;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ============ TOAST ============ */
.toast {
  position: fixed;
  bottom: 30px; left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--forest-deep);
  color: var(--cream);
  padding: 14px 24px;
  border: 1px solid var(--gold);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 300;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ============ WP body padding for fixed nav on inner pages ============ */
body.has-fixed-nav { padding-top: 0; }

/* ==============================================
   FAIRYTALE LOGO TYPOGRAPHY — alinhar com logo oficial (2026-05-29)
   ============================================== */

/* Header brand: mark botanical pequeno + palavra "FAIRYTALE" em fonte oficial */
.nav-brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.nav-mark { width: 40px; height: 40px; display: block; object-fit: contain; }
.nav-name {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 300 !important;
    font-style: normal !important;
    font-size: 18px !important;
    letter-spacing: 0.28em !important;
    text-transform: uppercase !important;
    color: inherit;
    line-height: 1;
    padding-top: 2px;
}
@media (max-width: 640px) {
    .nav-name { font-size: 15px; letter-spacing: 0.22em; }
    .nav-mark { width: 34px; height: 34px; }
}

/* Footer mark: tamanho proporcional ao PNG real (320x235) + mix-blend-mode esconde fundo verde do PNG sobre forest-deep */
.footer-mark {
    width: 160px !important;
    height: auto !important;
    max-width: 160px;
    object-fit: contain;
    display: block;
    margin: 0 auto 20px;
    mix-blend-mode: screen;
    opacity: 0.9;
}
/* Header mark idem: garantir blend para combinar com nav (que tem gradient transparent→forest) */
.nav-mark {
    mix-blend-mode: screen;
    opacity: 0.95;
}
