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

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

:root {
  --background: hsl(30, 15%, 7%);
  --foreground: hsl(35, 20%, 88%);
  --card: hsl(30, 12%, 10%);
  --card-foreground: hsl(35, 20%, 88%);
  --primary: hsl(350, 35%, 35%);
  --primary-foreground: hsl(35, 20%, 95%);
  --secondary: hsl(30, 8%, 18%);
  --muted: hsl(30, 8%, 15%);
  --muted-foreground: hsl(35, 12%, 55%);
  --border: hsl(30, 10%, 20%);
  --wine: hsl(350, 35%, 35%);
  --wine-light: hsl(350, 30%, 45%);
  --wine-dark: hsl(350, 35%, 25%);
  --graphite: hsl(30, 8%, 12%);
  --graphite-light: hsl(30, 8%, 22%);
  --beige: hsl(35, 25%, 75%);
  --beige-muted: hsl(35, 15%, 55%);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --content-max: 1200px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: hsla(350, 35%, 35%, 0.3);
  color: var(--foreground);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

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

/* Layout */
.content-container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 1024px) {
  .content-container { padding: 0 3rem; }
}

/* Divider */
.divider-line {
  width: 3rem;
  height: 1px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--beige-muted), transparent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.5s ease;
  cursor: pointer;
  height: 3rem;
  padding: 0.75rem 2rem;
  border: none;
}
.btn-lg { height: 3.5rem; padding: 1rem 2.5rem; }
.btn-sm { height: 2.5rem; padding: 0.5rem 1.5rem; font-size: 0.75rem; }

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  border: 1px solid var(--primary);
}
.btn-primary:hover {
  background: var(--wine-light);
  border-color: var(--wine-light);
}

.btn-outline {
  background: var(--wine-dark);
  color: var(--primary-foreground);
  border: 1px solid var(--wine-dark);
}
.btn-outline:hover {
  background: var(--wine);
  border-color: var(--wine);
}

/* Header */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: all 0.5s ease;
}
.header.scrolled {
  background: hsla(30, 15%, 7%, 0.95);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}
@media (min-width: 1024px) { .header-inner { height: 6rem; } }

.header-logo {
  font-family: 'Caveat', cursive;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: hsl(40, 50%, 65%);
  transition: opacity 0.3s;
}
@media (min-width: 1024px) { .header-logo { font-size: 1.875rem; } }
.header-logo:hover { opacity: 0.8; }

.nav-desktop { display: none; align-items: center; gap: 2.5rem; }
@media (min-width: 1024px) { .nav-desktop { display: flex; } }

.nav-link {
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  transition: color 0.3s;
}
.nav-link:hover { color: var(--foreground); }

/* Mobile menu */
.mobile-toggle { display: flex; flex-direction: column; gap: 6px; padding: 0.5rem; background: none; border: none; cursor: pointer; }
@media (min-width: 1024px) { .mobile-toggle { display: none; } }
.mobile-toggle span { width: 24px; height: 1px; background: var(--foreground); transition: all 0.3s; }
.mobile-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s ease;
}
.mobile-menu.open { max-height: 20rem; }
.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1rem 0 2rem;
  border-top: 1px solid var(--border);
}
@media (min-width: 1024px) { .mobile-menu { display: none; } }

/* Hero */
.hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero { min-height: 100vh; }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--background), var(--background), var(--graphite-light));
  opacity: 0.5;
}
.hero-content {
  position: relative;
  z-index: 10;
  padding: 6rem 0 2rem;
  width: 100%;
}
@media (min-width: 1024px) {
  .hero-content { padding: 7rem 0 5rem; }
}
.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 72rem;
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }
}

/* Portrait — FIRST on mobile, SECOND on desktop */
.hero-portrait {
  position: relative;
  order: 1;
  min-width: 0;
  height: 45vh;
  overflow: hidden;
}
@media (min-width: 1024px) {
  .hero-portrait {
    order: 2;
    height: auto;
    overflow: visible;
  }
}
.hero-portrait-inner {
  width: 100%;
  height: 100%;
  background: var(--secondary);
  overflow: hidden;
}
@media (min-width: 1024px) {
  .hero-portrait-inner {
    aspect-ratio: 3/4;
    height: auto;
  }
}
.hero-portrait-inner img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0.9;
}
/* Gradient fade at bottom — mobile only */
.hero-portrait-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 6rem;
  background: linear-gradient(to top, var(--background), transparent);
  pointer-events: none;
}
@media (min-width: 1024px) {
  .hero-portrait-fade { display: none; }
}
.hero-portrait-border {
  display: none;
}
@media (min-width: 1024px) {
  .hero-portrait-border {
    display: block;
    position: absolute;
    bottom: -1rem; right: -1rem;
    width: 100%; height: 100%;
    border: 1px solid hsla(35, 15%, 55%, 0.2);
    z-index: -1;
  }
}

/* Text — SECOND on mobile, FIRST on desktop */
.hero-text {
  min-width: 0;
  order: 2;
  padding: 0 1rem;
  margin-top: -2rem;
  position: relative;
  z-index: 2;
}
@media (min-width: 1024px) {
  .hero-text {
    order: 1;
    padding: 0;
    margin-top: 0;
  }
}

.hero-subtitle {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--beige-muted);
  margin-bottom: 0.75rem;
}
@media (min-width: 1024px) { .hero-subtitle { margin-bottom: 1rem; } }

.hero-title {
  font-size: 1.75rem;
  color: var(--foreground);
  line-height: 1.15;
  text-wrap: balance;
  margin-bottom: 1.25rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
@media (min-width: 768px) { .hero-title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 2.75rem; margin-bottom: 2rem; } }

/* CTA — full width on mobile, inline on desktop */
.hero-cta {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 1024px) {
  .hero-cta { margin-top: 1.5rem; margin-bottom: 2rem; }
}
.btn-full-mobile {
  width: 100%;
  text-align: center;
}
@media (min-width: 640px) {
  .btn-full-mobile { width: auto; }
}

.hero-desc {
  font-weight: 300;
  font-size: 1.05rem;
  color: var(--muted-foreground);
  max-width: 40rem;
  margin-bottom: 0;
  line-height: 1.7;
}
@media (min-width: 1024px) {
  .hero-desc { font-size: 1.25rem; line-height: 1.7; }
}

/* CTA Banner */
.cta-banner {
  padding: 1.5rem 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
@media (min-width: 1024px) { .cta-banner { padding: 3.5rem 0; } }

/* Sections */
.section { padding: 2.5rem 0; }
@media (min-width: 1024px) { .section { padding: 6rem 0; } }

.section-bg-card { background: var(--card); }
.section-bg-graphite { background: hsla(30, 8%, 22%, 0.3); }
.section-bg-graphite-subtle { background: hsla(30, 8%, 22%, 0.2); }

.section-header { text-align: center; margin-bottom: 2rem; }
@media (min-width: 1024px) { .section-header { margin-bottom: 4rem; } }

.section-label {
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--beige-muted);
  margin-bottom: 1rem;
}
.section-title {
  font-size: 1.875rem;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}
@media (min-width: 1024px) { .section-title { font-size: 2.25rem; } }

/* Como Atendo */
.como-content { max-width: 48rem; margin: 0 auto; }
.como-content p { color: var(--muted-foreground); font-weight: 300; line-height: 1.7; margin-bottom: 2rem; }
.como-quote {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.como-quote p {
  color: var(--foreground);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.125rem;
  text-align: center;
  margin-bottom: 0;
}
@media (min-width: 1024px) { .como-quote p { font-size: 1.25rem; } }

.pillar-grid { display: grid; gap: 2rem; padding-top: 2rem; }
@media (min-width: 1024px) { .pillar-grid { grid-template-columns: repeat(3, 1fr); } }
.pillar { text-align: center; }
.pillar-line { width: 3rem; height: 1px; background: var(--beige-muted); margin: 0 auto 1rem; }
.pillar h3 { font-size: 1.125rem; color: var(--foreground); margin-bottom: 0.5rem; }
.pillar p { font-size: 0.875rem; color: var(--muted-foreground); }

/* Trabalho Espiritual */
.trabalho-content { max-width: 48rem; margin: 0 auto; }
.trabalho-content > p { color: var(--muted-foreground); font-weight: 300; line-height: 1.7; margin-bottom: 2rem; }
.trabalho-box {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 2rem;
}
@media (min-width: 1024px) { .trabalho-box { padding: 2.5rem; } }
.trabalho-box h3 { font-size: 1.25rem; color: var(--foreground); margin-bottom: 1rem; }
.trabalho-box li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}
.trabalho-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--beige-muted);
  margin-top: 0.75rem;
  flex-shrink: 0;
}
.trabalho-footer {
  font-size: 0.875rem;
  color: var(--beige-muted);
  text-align: center;
  padding-top: 1rem;
  margin-top: 2rem;
}

/* Lutas */
.lutas-content { max-width: 56rem; margin: 0 auto; }
.lutas-header-desc { color: var(--muted-foreground); font-weight: 300; max-width: 40rem; margin: 0 auto; text-align: center; }
.lutas-grid { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .lutas-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }
.luta-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  transition: transform 0.4s ease;
}
@media (min-width: 1024px) { .luta-card { padding: 2rem; } }
.luta-card:hover { transform: translateY(-2px); }
.luta-card h3 { font-size: 1.25rem; color: var(--foreground); margin-bottom: 0.75rem; }
.luta-card p { color: var(--muted-foreground); font-weight: 300; font-size: 0.875rem; line-height: 1.7; }
.lutas-bottom { text-align: center; color: var(--muted-foreground); font-weight: 300; margin-top: 3rem; max-width: 40rem; margin-left: auto; margin-right: auto; }

/* Sobre */
.sobre-content { max-width: 48rem; margin: 0 auto; }
.sobre-content p { color: var(--muted-foreground); font-weight: 300; line-height: 1.7; margin-bottom: 1.5rem; }
.sobre-line { width: 3rem; height: 1px; background: var(--beige-muted); margin: 2.5rem auto 0; }

/* Agendar */
.agendar-content { max-width: 40rem; margin: 0 auto; text-align: center; }
.agendar-content .desc { color: var(--muted-foreground); font-weight: 300; margin-bottom: 2rem; max-width: 32rem; margin-left: auto; margin-right: auto; }
.agendar-content .note { font-size: 0.875rem; color: var(--muted-foreground); margin-top: 1.5rem; }

/* Etica */
.etica-content { max-width: 48rem; margin: 0 auto; }
.etica-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.etica-item:last-child { border-bottom: none; }
.etica-num { font-family: var(--font-serif); font-size: 1.5rem; color: var(--beige-muted); }
.etica-item p { color: var(--muted-foreground); font-weight: 300; line-height: 1.7; padding-top: 0.25rem; }

/* Cartomancia Banner */
.cartomancia-banner {
  background: var(--primary);
  padding: 0.75rem 1rem;
  text-align: center;
}
.cartomancia-banner p {
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 0.9rem;
}
.cartomancia-banner a {
  color: var(--foreground);
  font-weight: 600;
  text-decoration: underline;
}
.cartomancia-banner a:hover {
  opacity: 0.8;
}

/* Footer */
.footer {
  padding: 3rem 0;
  background: var(--graphite);
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .footer-inner { flex-direction: row; justify-content: space-between; }
}
.footer-logo { font-family: 'Caveat', cursive; font-size: 1.5rem; color: hsl(40, 50%, 65%); }
.footer-social { display: flex; align-items: center; gap: 1.25rem; }
.footer-social a { color: var(--muted-foreground); transition: color 0.3s; }
.footer-social a:hover { color: var(--foreground); }
.footer-social svg { width: 20px; height: 20px; }
.footer-nav { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
@media (min-width: 1024px) { .footer-nav { flex-direction: row; gap: 1.5rem; } }
.footer-nav a { font-size: 0.875rem; color: var(--muted-foreground); transition: color 0.3s; }
.footer-nav a:hover { color: var(--foreground); }
.footer-copy { font-size: 0.875rem; color: var(--muted-foreground); font-weight: 300; }

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in { animation: fadeIn 0.8s ease-out forwards; }
.animate-fade-in-d1 { animation: fadeIn 0.8s ease-out 0.2s forwards; opacity: 0; }
.animate-fade-in-d2 { animation: fadeIn 0.8s ease-out 0.4s forwards; opacity: 0; }
