/* Landing page styles — Editorial Serif design.
   Blog posts and terms pages keep using styles.css. */

:root {
  --ivory: #faf6f0;
  --ink: #2b2420;
  --ink-soft: #6b5f56;
  --pink: #fb5e77;
  --ink-link: #c92647; /* darker pink — 5.1:1 on --ivory, meets WCAG AA */
  --teal: #1fd3c2;
  --gold: #c9a36a;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', Arial, sans-serif;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}

/* Nav */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 64px);
  transition:
    background-color 240ms ease,
    box-shadow 240ms ease;
}
.nav--scrolled {
  background: var(--ink);
  box-shadow: 0 6px 24px rgba(43, 36, 32, 0.25);
}
.nav-logo img {
  width: 120px;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.lang {
  display: flex;
  gap: 2px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 3px;
}
.lang a,
.lang .active {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.lang .active {
  background: #fff;
  color: var(--ink);
}
.lang a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.nav-cta {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 10px 22px;
  backdrop-filter: blur(8px);
  transition:
    background 0.25s,
    color 0.25s;
}
.nav-cta:hover {
  background: #fff;
  color: var(--ink);
}
.nav-cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
@media (max-width: 540px) {
  .nav-cta {
    display: none;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('assets/pareja-catolica-app.webp') center 35% / cover
    no-repeat;
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg {
    animation: none;
  }
}
.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20, 14, 12, 0.35) 0%,
    rgba(20, 14, 12, 0.7) 50%,
    rgba(20, 14, 12, 0.35) 100%
  );
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(64px, 10vh, 120px) clamp(20px, 5vw, 64px);
  text-align: center;
}
.hero-kicker {
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  color: #fff;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
}
.hero-sub {
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  margin-top: 22px;
  font-weight: 400;
}
.hero-actions {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}
.hero-actions img {
  width: 190px;
}
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
}
.hero-scroll:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
  border-radius: 2px;
  box-shadow: 0 0 0 4px rgba(43, 36, 32, 0.45);
}

/* Section shell */
.section {
  padding: clamp(80px, 12vw, 140px) clamp(20px, 5vw, 64px);
}
.shell {
  max-width: 1100px;
  margin: 0 auto;
}
.kicker {
  color: var(--pink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.heading {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.lede {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-top: 20px;
  max-width: 56ch;
}

/* App section */
.app-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
@media (min-width: 880px) {
  .app-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
  }
}
.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
}
.phone-stage::before {
  content: '';
  position: absolute;
  inset: 8% -4% 0;
  background: radial-gradient(
    ellipse at 50% 45%,
    rgba(251, 94, 119, 0.14),
    rgba(31, 211, 194, 0.1) 55%,
    transparent 75%
  );
  border-radius: 50%;
}
/* Arch frame — a quiet nod to church architecture */
.phone-arch {
  position: relative;
  padding: clamp(28px, 4vw, 44px);
  background: linear-gradient(180deg, #fff 0%, #f4ece1 100%);
  border-radius: 200px 200px 28px 28px;
  box-shadow: 0 30px 70px rgba(43, 36, 32, 0.12);
}
.phone-arch img {
  width: min(280px, 60vw);
}
.app-copy .store {
  margin-top: 32px;
}
.app-copy .store img {
  width: 180px;
}
.pillars {
  margin-top: 36px;
  display: grid;
  gap: 22px;
}
.pillar {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.pillar-dot {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 16px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(43, 36, 32, 0.08);
}
.pillar h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.pillar p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Quote band */
.quote-band {
  background: var(--ink);
  color: var(--ivory);
  text-align: center;
}
.quote-band blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  line-height: 1.35;
  max-width: 24ch;
  margin: 0 auto;
  text-wrap: balance;
}
.quote-band cite {
  display: block;
  margin-top: 26px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Blog */
.blog-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.blog-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 26px rgba(43, 36, 32, 0.07);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.card:hover,
.card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(43, 36, 32, 0.13);
  outline: none;
}
.card-media {
  height: 180px;
  background-size: cover;
  background-position: center;
}
.card-body {
  padding: 22px 24px 26px;
}
.card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.3;
  margin-bottom: 8px;
}
.card p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}
.card-media.bg-1 {
  background-image: url('assets/blog/candice-picard-vLENm-coX5Y-unsplash.jpg');
}
.card-media.bg-2 {
  background-image: url('assets/blog/woman.jpg');
}
.card-media.bg-3 {
  background-image: url('assets/blog/photo-1497030947858-3f40f1508e84.jpg');
}
.card-media.bg-4 {
  background-image: url('assets/blog/towfiqu-barbhuiya-7xqcgokDBmI-unsplash.jpg');
}
.card-media.bg-5 {
  background-image: url('assets/blog/jonathan-borba-aBNnuIoW1lo-unsplash.jpg');
}

/* Content pages (blog posts, terms, child protection) */
.nav--solid {
  position: sticky;
  background: var(--ink);
  box-shadow: 0 6px 24px rgba(43, 36, 32, 0.18);
}
.content-page main {
  display: block;
}
.content-page .container {
  padding: clamp(48px, 7vw, 80px) clamp(20px, 5vw, 64px);
}
.blog-post {
  max-width: 760px;
  margin: 0 auto;
}
.blog-post h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.blog-post .post-meta {
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 18px 0 36px;
}
.blog-post .post-content p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.85;
  margin: 0 0 22px;
}
.blog-post .post-content strong {
  color: var(--ink);
}
.blog-post .post-content a {
  color: var(--ink-link);
  text-underline-offset: 2px;
}
.blog-post .post-content a:hover,
.blog-post .post-content a:focus-visible {
  color: var(--ink);
}
.blog-post .post-content ul {
  padding-left: 1.2rem;
  margin: 0 0 22px;
}
.blog-post .post-content ul li {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 10px;
}
.terms {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 80px) clamp(20px, 5vw, 32px);
}
.terms h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
}
.terms h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 44px 0 14px;
}
.terms h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 32px 0 10px;
}
.terms p,
.terms li {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 14px;
}
.terms ul,
.terms ol {
  padding-left: 1.2rem;
  margin: 0 0 18px;
}
.terms a {
  color: var(--ink-link);
}
.terms a:hover,
.terms a:focus {
  color: var(--ink);
}

/* Footer */
.footer {
  background: var(--ink);
  color: rgba(250, 246, 240, 0.75);
  padding: 64px clamp(20px, 5vw, 64px) 40px;
}
.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand img {
  width: 72px;
  margin-bottom: 14px;
}
.footer-brand p {
  font-size: 0.85rem;
  max-width: 30ch;
}
.footer h4 {
  color: var(--ivory);
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer a {
  color: rgba(250, 246, 240, 0.75);
  text-decoration: none;
}
.footer a,
.footer-col span[aria-current='page'] {
  font-size: 0.9rem;
}
.footer a:hover {
  color: var(--pink);
}
.footer a:focus-visible {
  color: var(--pink);
  outline: 2px solid var(--pink);
  outline-offset: 3px;
  border-radius: 2px;
}
.footer-col p + p {
  margin-top: 6px;
}
.footer-meta {
  max-width: 1100px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(250, 246, 240, 0.14);
  font-size: 0.78rem;
}
