/* Minimal, consolidated stylesheet */

:root {
  --bg: #111;
  --text: #323232; /* default body text on light backgrounds */
  --muted: #fafafa;
  --white: #ffffff;
  --brand-accent: #ff637e;
  --container-max: 1200px;
  --nav-height: 72px;
  --gap: 24px;
  --radius: 8px;
  --shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

/* Page type: blog posts use white background but keep site footer dark */
.blog-post-page {
  background: var(--white);
  color: #111;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.blog-post-page main {
  flex: 1;
}
.blog-post-page .navbar {
  background: transparent;
}
.blog-post-page .footer {
  background: #111;
  color: #fff;
}
.blog-post-page .footer-copy {
  color: var(--muted);
}

/* Reset / base */
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* Navbar */
.navbar {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  z-index: 50;
  transition: background-color 220ms ease, box-shadow 220ms ease,
    color 220ms ease;
}
/* Logo states */
.logo {
  width: 80px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}
.navbar--transparent .logo {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}
.navbar--scrolled .logo,
.terms-page .navbar .logo,
.blog-post-page .navbar .logo {
  filter: none;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -10% 0 0 0;
  height: 110%;
  background: url('assets/pareja-catolica-common-app.webp') center/cover
    no-repeat;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
  pointer-events: none;
}
.hero-logo {
  width: 420px;
  margin-top: 32px;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}
.hero h1 {
  position: relative;
  z-index: 2;
  margin: 12px 16px 0 16px;
  font-family: Poppins, Arial, sans-serif;
  font-weight: 500;
  color: #fff;
  font-size: 2rem;
  text-align: center;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
  margin-bottom: 0;
}
.hero-tagline {
  position: relative;
  z-index: 2;
  margin: 12px 16px 0;
  font-family: Poppins, Arial, sans-serif;
  font-weight: 500;
  color: #fff;
  font-size: 1.5rem;
  text-align: center;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

/* Community */
.community {
  background: var(--white);
  padding: 48px 16px;
  display: flex;
  justify-content: center;
}
.community-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap);
  max-width: 1100px;
  width: 100%;
}
.community-text {
  flex: 1;
}
.community h2 {
  margin: 0;
  color: #323232;
  font-family: Poppins, Arial, sans-serif;
  font-weight: 600;
  font-size: 2rem;
  text-align: left;
}
.community-media img {
  max-width: 360px;
  width: 100%;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  border: 0;
}
.community-sub {
  margin-top: 12px;
  color: #555;
  font-family: Poppins, Arial, sans-serif;
}
.store-badge {
  margin-top: 16px;
  max-width: 200px;
  width: 100%;
  display: block;
}

@media (min-width: 900px) {
  .community-inner {
    flex-direction: row;
    align-items: center;
  }
  .community-text {
    padding-right: 24px;
  }
  .community-media {
    flex: 0 0 360px;
  }
}

/* Blog listing */
.blog {
  background: var(--bg);
  padding: 16px;
}
.blog .container {
  max-width: var(--container-max);
  margin: 0 auto;
}
.blog-title {
  font-family: Poppins, Arial, sans-serif;
  font-size: 2rem;
  text-align: center;
  color: #fff;
  margin-bottom: 32px;
}
.blog-subtitle {
  font-family: Poppins, Arial, sans-serif;
  max-width: 900px;
  margin: 0 auto 28px auto;
  color: #fff;
  text-align: center;
}
.posts {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}
.posts article {
  display: flex;
  flex-direction: column;
}

/* Post card (anchor) */
.post {
  display: flex;
  flex-direction: column;
  flex: 1;
  background: #fff;
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.post:hover,
.post:focus {
  transform: translateY(-6px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
  outline: none;
}
.post-media {
  height: 160px;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  margin-bottom: 12px;
}
.post h3 {
  margin: 0 0 8px 0;
  font-family: Poppins, Arial, sans-serif;
}
.post p {
  margin: 0 0 12px 0;
  font-family: Poppins, Arial, sans-serif;
  color: #555;
}
.post[role='article'] {
  outline-offset: 6px;
}

/* Footer */
.footer {
  background: #111;
  padding: 66px 16px;
  color: #fff;
}
.footer-content {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
.footer-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-logo {
  width: 80px;
}
.footer-copy {
  color: var(--muted);
  font-family: Poppins, Arial, sans-serif;
  font-weight: 400;
  font-size: 0.75rem;
}
.contact {
  flex: 1;
}
.contact h3,
.legal h3 {
  margin: 0 0 8px 0;
  font-family: Poppins, Arial, sans-serif;
}
.contact-icons {
  display: flex;
  gap: 24px;
}

/* Contact icons: use currentColor so CSS controls SVG color */
.contact-icon {
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.18s ease;
}
.contact-icon svg {
  display: block;
  transition: transform 0.2s, fill 0.18s, stroke 0.18s;
}
.contact-icon svg * {
  transition: fill 0.18s, stroke 0.18s;
  fill: currentColor;
  stroke: currentColor;
}
.contact-icon:hover,
.contact-icon:focus {
  color: var(--brand-accent);
  outline: none;
}
.contact-icon:hover svg {
  transform: scale(1.12);
}

.legal {
  margin-left: 32px;
}
.legal-link {
  color: var(--muted);
  text-decoration: none;
  font-family: Poppins, Arial, sans-serif;
  font-size: 0.8rem;
}
.legal-link:hover {
  color: var(--brand-accent);
}

/* Responsive tweaks */
@media (min-width: 600px) {
  .logo {
    width: 110px;
  }
  .hero h1 {
    font-size: 2.8rem;
  }
}
@media (min-width: 800px) {
  .posts {
    grid-template-columns: repeat(3, 1fr);
  }
  .post-media {
    height: 140px;
  }
}

/* Background utilities for blog cards */
.post-media.bg-1 {
  background-image: url('assets/blog/candice-picard-vLENm-coX5Y-unsplash.jpg');
}
.post-media.bg-2 {
  background-image: url('assets/blog/woman.jpg');
}
.post-media.bg-3 {
  background-image: url('assets/blog/photo-1497030947858-3f40f1508e84.jpg');
}
.post-media.bg-4 {
  background-image: url('assets/blog/towfiqu-barbhuiya-7xqcgokDBmI-unsplash.jpg');
}
.post-media.bg-5 {
  background-image: url('assets/blog/jonathan-borba-aBNnuIoW1lo-unsplash.jpg');
}

/* Blog post content styles (centralized to replace inline styles) */
.blog-post-page .container {
  padding: 80px 16px 40px;
  max-width: var(--container-max);
  margin: 0 auto;
}
.blog-post {
  max-width: 900px;
  margin: 0 auto;
  background: transparent;
}
.blog-post h1 {
  font-family: Poppins, Arial, sans-serif;
  font-size: 2rem;
  margin-bottom: 8px;
  color: inherit;
}
.blog-post .post-meta {
  color: #666666;
  margin: 0 0 18px 0;
}
.blog-post .post-content {
  color: #333333;
  line-height: 1.6;
  font-size: 1rem;
}
.blog-post .post-content ul {
  padding-left: 1.2rem;
  margin: 12px 0;
}
.blog-post .post-content ul li {
  margin-bottom: 10px;
}

/* Terms page styling (replaces inline styles in terms.html) */
.terms {
  max-width: 900px;
  margin: 40px auto;
  padding: 32px 16px;
  color: #323232;
  background: #fff;
  border-radius: 8px;
}
.terms h1 {
  font-family: Poppins, Arial, sans-serif;
}

/* Terms page: page-level white background */
.terms-page {
  background: #ffffff;
  color: #111111;
}
.terms-page .navbar {
  background-color: var(--white);
  box-shadow: 0 6px 20px rgba(17, 17, 17, 0.08);
}
.terms-page .footer {
  background: #111;
  color: #fff;
}
.terms-page .footer-copy {
  color: var(--muted);
}

/* Navbar scrolled state: when page scrolls past hero, navbar becomes white with subtle shadow */
.navbar--scrolled {
  background-color: var(--white);
  box-shadow: 0 6px 20px rgba(17, 17, 17, 0.08);
}

/* Language switcher */
.lang-switcher {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  gap: 6px;
  background: rgba(17, 17, 17, 0.4);
  border-radius: 999px;
  padding: 2px;
}
.navbar--scrolled .lang-switcher,
.terms-page .lang-switcher,
.blog-post-page .lang-switcher {
  background: rgba(0, 0, 0, 0.06);
}
.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: Poppins, Arial, sans-serif;
  font-weight: 600;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.navbar--scrolled .lang-btn,
.terms-page .lang-btn,
.blog-post-page .lang-btn {
  color: #333;
}
.lang-btn.active,
.lang-btn[aria-pressed='true'] {
  background: #fff;
  color: #111;
}
.navbar--scrolled .lang-btn.active,
.terms-page .lang-btn.active,
.blog-post-page .lang-btn.active {
  background: #111;
  color: #fff;
}
