@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/CormorantGaramond-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/Figtree-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --navy-950: #07182c;
  --navy-900: #0b2340;
  --navy-800: #133659;
  --navy-700: #1d4a73;
  --ink: #132238;
  --ink-soft: #536277;
  --paper: #f7f0e3;
  --paper-deep: #e8dcc8;
  --paper-light: #fffdf8;
  --gold: #c79a42;
  --gold-light: #e6c77d;
  --gold-deep: #7c5c12;
  --rose: #9a4f59;
  --line: rgba(18, 44, 71, 0.15);
  --shadow: 0 28px 80px rgba(6, 27, 49, 0.18);
  font-family: "Figtree", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 12%, rgba(230, 199, 125, 0.18), transparent 30rem),
    radial-gradient(circle at 88% 52%, rgba(29, 74, 115, 0.12), transparent 34rem),
    var(--paper);
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.055'/%3E%3C/svg%3E");
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 92px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 30;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy-900);
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.star-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 27px;
  line-height: 1;
  transform: rotate(8deg);
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--navy-800);
}

.language-switcher {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.62);
}

.language-switcher button {
  border: 0;
  border-radius: 999px;
  min-width: 37px;
  min-height: 32px;
  background: transparent;
  color: var(--ink-soft);
  font: 700 12px/1 "Figtree", sans-serif;
  cursor: pointer;
}

.language-switcher button.is-active {
  background: var(--navy-900);
  color: var(--paper-light);
}

.hero {
  width: min(1180px, calc(100% - 40px));
  min-height: 750px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: 64px;
  padding: 74px 0 96px;
  position: relative;
}

.hero-copy {
  position: relative;
  z-index: 2;
  animation: rise-in 720ms cubic-bezier(.2, .7, .2, 1) both;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--rose);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", serif;
  color: var(--navy-900);
  text-wrap: balance;
}

h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(64px, 8.6vw, 118px);
  font-weight: 470;
  line-height: 0.82;
  letter-spacing: -0.045em;
}

.hero-lede {
  max-width: 570px;
  margin: 34px 0 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  min-height: 52px;
  padding: 0 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px 18px 4px 18px;
  border: 1px solid var(--navy-900);
  background: var(--navy-900);
  color: var(--paper-light);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(7, 24, 44, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(7, 24, 44, 0.22);
}

.button.secondary {
  background: transparent;
  color: var(--navy-900);
  box-shadow: none;
}

.availability-note {
  width: 100%;
  color: var(--ink-soft);
  font-size: 12px;
}

.hero-visual {
  min-height: 620px;
  position: relative;
  display: grid;
  place-items: center;
  animation: rise-in 880ms 100ms cubic-bezier(.2, .7, .2, 1) both;
}

.aureole {
  position: absolute;
  width: 510px;
  aspect-ratio: 1;
  border: 1px solid rgba(199, 154, 66, 0.42);
  border-radius: 50%;
}

.aureole::before,
.aureole::after {
  content: "";
  position: absolute;
  inset: 42px;
  border: 1px dashed rgba(199, 154, 66, 0.26);
  border-radius: inherit;
}

.aureole::after {
  inset: 92px;
  border-style: solid;
}

.phone-stage {
  width: min(330px, 72vw);
  padding: 10px;
  border-radius: 48px;
  background: var(--navy-950);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
  transform: rotate(3deg);
}

.phone-stage img {
  display: block;
  width: 100%;
  border-radius: 39px;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
}

.rosary-line {
  position: absolute;
  z-index: 3;
  right: 4%;
  top: 5%;
  display: grid;
  gap: 17px;
  filter: drop-shadow(0 8px 14px rgba(7, 24, 44, 0.18));
  transform: rotate(-8deg);
}

.rosary-line span {
  width: 12px;
  height: 17px;
  border-radius: 50%;
  display: block;
  background: var(--gold-light);
  border: 1px solid var(--gold);
  position: relative;
}

.rosary-line span::after {
  content: "";
  width: 1px;
  height: 18px;
  background: var(--gold);
  position: absolute;
  top: 16px;
  left: 5px;
}

.rosary-line span:last-child::after {
  height: 30px;
}

.rosary-line::after {
  content: "✦";
  color: var(--gold);
  font-size: 32px;
  margin: 6px 0 0 -9px;
}

.story-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 110px 0;
  border-top: 1px solid var(--line);
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.3fr);
  gap: 90px;
}

.section-number {
  color: var(--gold);
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  letter-spacing: 0.12em;
}

.story-section h2 {
  margin: 12px 0 0;
  font-size: clamp(48px, 6vw, 78px);
  font-weight: 460;
  line-height: 0.94;
  letter-spacing: -0.025em;
}

.story-copy {
  align-self: end;
  max-width: 660px;
}

.story-copy p {
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 19px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  min-height: 92px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 4px 22px 4px 22px;
  background: rgba(255, 253, 248, 0.54);
  color: var(--navy-800);
  font-weight: 650;
}

.privacy-panel {
  width: min(1180px, calc(100% - 40px));
  margin: 40px auto 110px;
  padding: clamp(38px, 6vw, 76px);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  background: var(--navy-900);
  color: rgba(255, 253, 248, 0.78);
  border-radius: 6px 46px 6px 46px;
  position: relative;
  overflow: hidden;
}

.privacy-panel::after {
  content: "✦";
  position: absolute;
  right: 40px;
  top: 18px;
  color: rgba(230, 199, 125, 0.18);
  font-size: 180px;
}

.privacy-panel h2 {
  margin: 0;
  color: var(--paper-light);
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 430;
  line-height: 0.93;
}

.privacy-panel p {
  max-width: 590px;
  margin: 0 0 22px;
  font-size: 18px;
  position: relative;
  z-index: 2;
}

.privacy-panel a {
  color: var(--gold-light);
  font-weight: 700;
}

.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 48px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
}

.site-footer nav {
  display: flex;
  gap: 18px;
}

.site-footer a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-shell {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 0 120px;
}

.legal-shell .eyebrow {
  margin-bottom: 16px;
}

.legal-shell h1 {
  max-width: 820px;
  font-size: clamp(58px, 9vw, 94px);
}

.legal-meta {
  margin: 22px 0 56px;
  color: var(--ink-soft);
  font-size: 14px;
}

.legal-article {
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 5px 34px 5px 34px;
  background: rgba(255, 253, 248, 0.7);
  box-shadow: 0 18px 55px rgba(7, 24, 44, 0.07);
}

.legal-article h2 {
  margin: 48px 0 12px;
  font-size: 34px;
  line-height: 1;
}

.legal-article h2:first-child {
  margin-top: 0;
}

.legal-article p,
.legal-article li {
  color: #37465a;
  font-size: 17px;
}

.legal-article a {
  color: var(--navy-700);
  font-weight: 700;
}

.legal-article strong {
  color: var(--navy-900);
}

.legal-article ul {
  padding-left: 22px;
}

.contact-card {
  margin: 34px 0 0;
  padding: 24px;
  background: var(--navy-900);
  color: var(--paper-light);
  border-radius: 4px 24px 4px 24px;
}

.contact-card a {
  color: var(--gold-light);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 62px;
  }

  .hero-visual {
    min-height: 590px;
  }

  .story-grid,
  .privacy-panel {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 600px) {
  .site-header,
  .hero,
  .story-section,
  .privacy-panel,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    min-height: 76px;
    gap: 12px;
  }

  .wordmark {
    font-size: 23px;
  }

  .star-mark {
    width: 26px;
    font-size: 22px;
  }

  .hero {
    min-height: auto;
    padding-bottom: 70px;
  }

  h1 {
    font-size: clamp(58px, 20vw, 82px);
  }

  .hero-visual {
    min-height: 520px;
  }

  .aureole {
    width: 390px;
  }

  .story-section {
    padding: 76px 0;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .privacy-panel {
    margin-bottom: 70px;
  }

  .site-footer {
    flex-direction: column;
  }

  .legal-shell {
    width: min(100% - 28px, 860px);
    padding-top: 62px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==== Páginas de novena — craft alinhado à home (light-only, manuscrito) ==== */
.novena-page {
  width: min(880px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0 96px;
  animation: rise-in 720ms cubic-bezier(.2, .7, .2, 1) both;
}
.breadcrumb {
  margin-bottom: 30px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
}
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--navy-800); }
.breadcrumb span[aria-hidden] { margin: 0 9px; color: var(--gold); }
.breadcrumb > span:last-child { color: var(--navy-800); }

/* Hero com aureole, ecoando a home */
.novena-hero {
  position: relative;
  padding: 30px 0 20px;
  overflow: visible;
}
.novena-hero::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -40px;
  width: 320px;
  aspect-ratio: 1;
  border: 1px solid rgba(199, 154, 66, 0.34);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.novena-hero::after {
  content: "✦";
  position: absolute;
  top: 40px;
  right: 78px;
  color: rgba(199, 154, 66, 0.5);
  font-size: 30px;
  pointer-events: none;
}
.novena-hero > * { position: relative; z-index: 1; }
.novena-hero h1 {
  max-width: 15ch;
  font-size: clamp(46px, 7vw, 82px);
  font-weight: 470;
  line-height: 0.9;
  letter-spacing: -0.035em;
  margin: 6px 0 0;
}
.novena-hero .hero-lede {
  max-width: 60ch;
  margin: 26px 0 30px;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.8vw, 20px);
}

/* Corpo do artigo */
.novena-body { margin-top: 44px; }
.novena-body article > h2 {
  position: relative;
  margin: 52px 0 14px;
  padding-left: 30px;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 480;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.novena-body article > h2::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0.14em;
  color: var(--gold);
  font-size: 0.52em;
}
.novena-body p { margin: 0 0 16px; color: var(--ink); font-size: 18px; line-height: 1.75; }
/* Capitular iluminada no parágrafo de abertura */
.novena-lead::first-letter {
  float: left;
  font-family: "Cormorant Garamond", serif;
  font-size: 4.6em;
  line-height: 0.72;
  font-weight: 600;
  color: var(--gold-deep);
  padding: 6px 12px 0 0;
}
.feast-day {
  display: inline-block;
  margin-bottom: 10px;
  padding: 7px 16px;
  border: 1px solid rgba(199, 154, 66, 0.5);
  border-radius: 4px 18px 4px 18px;
  background: rgba(230, 199, 125, 0.1);
  color: var(--navy-800);
  font-size: 14px;
  font-weight: 650;
}
.feast-day strong { color: var(--navy-900); }

/* FAQ elegante */
.faq-item { padding: 20px 0; border-top: 1px solid var(--line); }
.faq-item:first-of-type { border-top: 0; }
.faq-item h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  font-weight: 560;
  color: var(--navy-800);
  margin: 0 0 6px;
}
.faq-item p { margin: 0; color: var(--ink-soft); font-size: 17px; }

/* Painel CTA navy, ecoando .privacy-panel */
.novena-cta {
  position: relative;
  margin-top: 56px;
  padding: clamp(34px, 5vw, 56px);
  background: var(--navy-900);
  color: rgba(255, 253, 248, 0.82);
  border-radius: 6px 46px 6px 46px;
  overflow: hidden;
  text-align: left;
}
.novena-cta::after {
  content: "✦";
  position: absolute;
  right: 34px;
  top: 6px;
  color: rgba(230, 199, 125, 0.16);
  font-size: 160px;
  pointer-events: none;
}
.novena-cta h2 {
  position: relative;
  z-index: 1;
  color: var(--paper-light);
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 440;
  line-height: 0.98;
  margin: 0 0 12px;
}
.novena-cta p { position: relative; z-index: 1; max-width: 60ch; margin: 0 0 24px; font-size: 18px; }

/* Novenas relacionadas — cartões pétala como .feature-list */
.novena-related { margin-top: 60px; }
.novena-related h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 30px;
  font-weight: 480;
  color: var(--navy-900);
  margin: 0 0 20px;
}
.novena-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}
.novena-related-card {
  min-height: 78px;
  display: flex;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 4px 22px 4px 22px;
  background: rgba(255, 253, 248, 0.54);
  color: var(--navy-800);
  text-decoration: none;
  font-weight: 650;
  transition: transform 180ms ease, border-color 180ms ease;
}
.novena-related-card:hover { transform: translateY(-2px); border-color: rgba(199, 154, 66, 0.6); }
.novena-related-all {
  display: inline-block;
  margin-top: 20px;
  color: var(--navy-700);
  font-weight: 700;
  text-underline-offset: 3px;
}

/* Hub /novenas */
.novena-grid-section { margin-top: 8px; }
.novena-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
.novena-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 24px;
  min-height: 128px;
  justify-content: flex-end;
  border: 1px solid var(--line);
  border-radius: 4px 26px 4px 26px;
  background: rgba(255, 253, 248, 0.6);
  text-decoration: none;
  box-shadow: 0 16px 46px rgba(7, 24, 44, 0.07);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.novena-card:hover {
  transform: translateY(-3px);
  border-color: rgba(199, 154, 66, 0.6);
  box-shadow: 0 22px 60px rgba(7, 24, 44, 0.12);
}
.novena-card-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 27px;
  font-weight: 540;
  line-height: 1;
  color: var(--navy-900);
}
.novena-card-feast {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.novena-hub-link { margin-top: 22px; }
.novena-hub-link a { color: var(--navy-700); font-weight: 700; text-decoration: none; text-underline-offset: 3px; }
.novena-hub-link a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .novena-page { width: min(100% - 28px, 880px); }
  .novena-hero::before { width: 220px; right: -20px; }
  .novena-lead::first-letter { font-size: 3.8em; }
}

/* Foco de teclado na identidade da marca (a11y — cartões/links das novenas) */
.breadcrumb a:focus-visible,
.novena-card:focus-visible,
.novena-related-card:focus-visible,
.novena-related-all:focus-visible,
.novena-hub-link a:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 3px;
}
