:root {
  --ink: #17211d;
  --forest-950: #0b231c;
  --forest-900: #102f26;
  --forest-800: #174334;
  --forest-700: #1e5944;
  --cream: #f6f1e7;
  --paper: #fffdf8;
  --sand: #e6dcc8;
  --gold: #d5b66f;
  --gold-light: #ecd9a8;
  --muted: #68726d;
  --white: #fff;
  --whatsapp: #238b57;
  --shadow: 0 24px 60px rgba(11, 35, 28, 0.14);
  --radius: 4px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 116px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

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

h1,
h2,
h3,
p,
blockquote,
dl,
dd {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.035em;
}

h1 {
  margin-bottom: 18px;
  color: var(--white);
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: 0.96;
}

h2 {
  margin-bottom: 22px;
  color: var(--forest-950);
  font-size: clamp(2.25rem, 5vw, 4.2rem);
  line-height: 1.06;
}

h3 {
  margin-bottom: 10px;
  color: var(--forest-900);
  font-size: 1.12rem;
  line-height: 1.35;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  padding: 88px 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--forest-900);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.notice {
  position: relative;
  z-index: 50;
  color: var(--gold-light);
  background: var(--forest-950);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.notice__inner {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.notice p {
  margin: 0;
}

.notice strong {
  color: var(--white);
  font-weight: 650;
}

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  color: var(--forest-950);
  background: rgba(255, 253, 248, 0.96);
  border-bottom: 1px solid rgba(16, 47, 38, 0.1);
  backdrop-filter: blur(14px);
  transition: box-shadow 180ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 12px 36px rgba(11, 35, 28, 0.09);
}

.header__inner {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.header-whatsapp {
  flex: 0 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand img {
  flex: 0 0 auto;
}

.brand span {
  display: grid;
  line-height: 1.05;
}

.brand strong {
  color: var(--forest-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  font-weight: 600;
}

.brand small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.primary-nav > a:not(.button) {
  position: relative;
  font-size: 0.87rem;
  font-weight: 650;
  text-decoration: none;
}

.primary-nav > a:not(.button)::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: var(--forest-700);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.primary-nav > a:not(.button):hover::after,
.primary-nav > a:not(.button):focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-button {
  display: none;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 0.92rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:focus-visible,
.primary-nav a:focus-visible,
.brand:focus-visible,
.text-link:focus-visible,
.menu-button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.button--small {
  min-height: 42px;
  padding: 11px 17px;
  font-size: 0.78rem;
}

.button--gold {
  color: var(--forest-950);
  background: var(--gold);
}

.button--gold:hover {
  background: var(--gold-light);
}

.button--whatsapp {
  color: var(--white);
  background: var(--whatsapp);
}

.button--whatsapp:hover {
  background: #1d7449;
}

.button--whatsapp svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.hero {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  color: var(--white);
  background: var(--forest-950);
}

.hero__image,
.hero__veil {
  position: absolute;
  inset: 0;
}

.hero__image {
  background-image: url("public/images/bible-study-hero.webp");
  background-position: 62% center;
  background-size: cover;
  transform: scale(1.01);
}

.hero__veil {
  background:
    linear-gradient(90deg, rgba(8, 26, 21, 0.97) 0%, rgba(8, 26, 21, 0.83) 42%, rgba(8, 26, 21, 0.22) 72%),
    linear-gradient(0deg, rgba(8, 26, 21, 0.38), transparent 45%);
}

.hero__inner {
  position: relative;
  display: grid;
  min-height: 660px;
  align-items: center;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 52px;
  padding-block: 72px;
}

.hero__content {
  max-width: 680px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 20px;
  color: var(--gold-light);
  font-size: 0.73rem;
  font-weight: 750;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 1px;
  background: currentColor;
  content: "";
}

.eyebrow--dark {
  color: var(--forest-700);
}

.eyebrow--light {
  color: var(--gold-light);
}

.hero__reference {
  margin-bottom: 23px;
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
  font-style: italic;
}

.hero__lead {
  max-width: 610px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.text-link {
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  text-underline-offset: 5px;
}

.text-link span {
  display: inline-block;
  margin-left: 5px;
}

.meeting-card {
  padding: 30px;
  border-top: 3px solid var(--gold);
  color: var(--white);
  background: rgba(10, 34, 27, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.meeting-card__label {
  margin-bottom: 18px;
  color: var(--gold-light);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.meeting-card dl {
  margin-bottom: 0;
}

.meeting-card dl > div {
  position: relative;
  padding: 16px 0 16px 92px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.meeting-card dt {
  position: absolute;
  top: 19px;
  left: 0;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.meeting-card dd {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.16rem;
  line-height: 1.3;
}

.meeting-card small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
}

.scripture-band {
  color: var(--forest-950);
  background: var(--gold);
}

.scripture-band__inner {
  display: grid;
  min-height: 200px;
  align-items: center;
  grid-template-columns: auto 1fr;
  gap: 25px;
  padding-block: 40px;
}

.scripture-band__mark {
  align-self: start;
  color: rgba(16, 47, 38, 0.28);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 6rem;
  line-height: 0.85;
}

.scripture-band blockquote {
  max-width: 910px;
  margin-bottom: 0;
}

.scripture-band blockquote p {
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2.3rem);
  line-height: 1.35;
}

.scripture-band cite {
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.scripture-band cite span {
  opacity: 0.65;
}

.topic {
  background:
    radial-gradient(circle at 0 100%, rgba(213, 182, 111, 0.13), transparent 34%),
    var(--paper);
}

.section-heading {
  max-width: 710px;
  margin-bottom: 54px;
}

.section-heading--center {
  margin-inline: auto;
  text-align: center;
}

.section-heading--center .eyebrow {
  justify-content: center;
}

.section-heading > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.question-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--sand);
  border: 1px solid var(--sand);
}

.question-card {
  min-height: 220px;
  padding: 34px;
  background: var(--paper);
}

.question-card > span {
  display: inline-block;
  margin-bottom: 30px;
  color: var(--forest-700);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.88rem;
  font-style: italic;
}

.question-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 400;
}

.question-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.91rem;
}

.study {
  overflow: hidden;
  background: var(--cream);
}

.study__grid {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(48px, 8vw, 108px);
}

.study__image {
  position: relative;
}

.study__image::before {
  position: absolute;
  z-index: 0;
  inset: -22px 36px 28px -22px;
  border: 1px solid rgba(30, 89, 68, 0.28);
  content: "";
}

.study__image img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.study__caption {
  position: absolute;
  z-index: 2;
  right: -26px;
  bottom: 38px;
  display: grid;
  padding: 18px 22px;
  color: var(--white);
  background: var(--forest-900);
  border-left: 3px solid var(--gold);
}

.study__caption strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.96rem;
  font-weight: 400;
}

.study__caption span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.study__intro {
  max-width: 650px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1.02rem;
}

.principles {
  padding: 0;
  margin: 0;
  list-style: none;
}

.principles li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 19px;
  padding: 21px 0;
  border-top: 1px solid var(--sand);
}

.principles li > span {
  color: var(--forest-700);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.82rem;
  font-style: italic;
}

.principles h3 {
  margin-bottom: 5px;
  font-size: 1rem;
}

.principles p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.format {
  color: var(--white);
  background:
    linear-gradient(rgba(11, 35, 28, 0.98), rgba(11, 35, 28, 0.98)),
    url("public/images/bible-study-hero.webp") center / cover;
}

.format .section-heading h2 {
  color: var(--white);
}

.format .section-heading > p:last-child {
  color: rgba(255, 255, 255, 0.62);
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.16);
}

.format-card {
  min-height: 250px;
  padding: 34px 28px;
  background: var(--forest-950);
}

.format-card svg {
  width: 38px;
  height: 38px;
  margin-bottom: 38px;
  fill: none;
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.format-card h3 {
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 400;
}

.format-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.57);
  font-size: 0.88rem;
}

.join {
  background: var(--paper);
}

.join__card {
  position: relative;
  display: grid;
  overflow: hidden;
  align-items: center;
  grid-template-columns: minmax(0, 1.5fr) minmax(270px, 0.5fr);
  gap: 70px;
  padding: 68px 74px;
  color: var(--white);
  background: var(--forest-900);
  box-shadow: var(--shadow);
}

.join__card::after {
  position: absolute;
  top: -120px;
  right: 16%;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(213, 182, 111, 0.18);
  border-radius: 50%;
  content: "";
}

.join__copy,
.join__action {
  position: relative;
  z-index: 1;
}

.join h2 {
  color: var(--white);
}

.join__copy > p:not(.eyebrow, .join__translation) {
  max-width: 690px;
  color: rgba(255, 255, 255, 0.7);
}

.join__translation {
  margin-bottom: 0;
  color: var(--gold-light);
  font-size: 0.84rem;
}

.join__action {
  display: grid;
  gap: 12px;
}

.join__action small {
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.68rem;
  text-align: center;
}

.join__action small strong {
  color: var(--white);
  font-weight: 700;
}

.site-footer {
  padding: 44px 0;
  color: rgba(255, 255, 255, 0.56);
  background: #071a15;
  font-size: 0.72rem;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer__inner p {
  margin-bottom: 0;
}

.brand--footer strong {
  color: var(--white);
}

.brand--footer small {
  color: rgba(255, 255, 255, 0.4);
}

.mobile-join {
  display: none;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 20px;
  bottom: 20px;
  display: grid;
  width: min(390px, calc(100% - 40px));
  padding: 17px 19px;
  color: var(--white);
  background: var(--forest-950);
  border-left: 3px solid var(--gold);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 400;
}

.toast span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.72rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal--delay {
  transition-delay: 100ms;
}

.reveal--delay-2 {
  transition-delay: 200ms;
}

.reveal--delay-3 {
  transition-delay: 300ms;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .primary-nav {
    gap: 18px;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.48fr);
    gap: 34px;
  }

  .join__card {
    padding: 56px 48px;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 76px;
  }

  body {
    padding-bottom: 76px;
  }

  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .section {
    padding: 64px 0;
  }

  .notice__inner {
    justify-content: center;
    min-height: 44px;
    padding-block: 6px;
    text-align: center;
  }

  .notice {
    font-size: 0.62rem;
    line-height: 1.45;
  }

  .header__inner {
    min-height: 70px;
    gap: 12px;
  }

  .header-whatsapp {
    min-height: 42px;
    padding: 10px 13px;
    font-size: 0.74rem;
  }

  .menu-button {
    position: relative;
    z-index: 3;
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    border: 0;
    color: var(--forest-950);
    background: transparent;
    cursor: pointer;
  }

  .menu-button__lines,
  .menu-button__lines::before,
  .menu-button__lines::after {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    content: "";
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .menu-button__lines::before {
    transform: translateY(-7px);
  }

  .menu-button__lines::after {
    transform: translateY(5px);
  }

  .menu-button[aria-expanded="true"] .menu-button__lines {
    background: transparent;
  }

  .menu-button[aria-expanded="true"] .menu-button__lines::before {
    transform: translateY(1px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] .menu-button__lines::after {
    transform: translateY(-1px) rotate(-45deg);
  }

  .primary-nav {
    position: fixed;
    z-index: 2;
    top: 106px;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    align-content: start;
    gap: 0;
    padding: 34px 16px;
    background: var(--paper);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .primary-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .primary-nav > a:not(.button) {
    padding: 18px 8px;
    border-bottom: 1px solid var(--sand);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.3rem;
    font-weight: 400;
  }

  .primary-nav > a:not(.button)::after {
    display: none;
  }

  .primary-nav .button {
    margin-top: 26px;
  }

  .hero,
  .hero__inner {
    min-height: auto;
  }

  .hero__image {
    background-position: 67% center;
  }

  .hero__veil {
    background:
      linear-gradient(90deg, rgba(8, 26, 21, 0.93), rgba(8, 26, 21, 0.62)),
      linear-gradient(0deg, rgba(8, 26, 21, 0.72), transparent 50%);
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 42px;
    padding-top: 78px;
    padding-bottom: 58px;
  }

  h1 {
    font-size: clamp(2.8rem, 13vw, 4.3rem);
  }

  .hero__lead {
    font-size: 0.98rem;
  }

  .hero__actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .hero__actions .button {
    width: 100%;
  }

  .meeting-card {
    padding: 24px;
  }

  .meeting-card dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 22px;
  }

  .meeting-card dl > div {
    padding: 14px 0;
  }

  .meeting-card dt {
    position: static;
    margin-bottom: 5px;
  }

  .scripture-band__inner {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .scripture-band__mark {
    height: 47px;
  }

  .question-grid {
    grid-template-columns: 1fr;
  }

  .question-card {
    min-height: 0;
  }

  .question-card > span {
    margin-bottom: 30px;
  }

  .study__grid {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .study__image {
    width: calc(100% - 16px);
  }

  .study__caption {
    right: -16px;
    bottom: 24px;
  }

  .format-grid {
    grid-template-columns: 1fr;
  }

  .format-card {
    min-height: 0;
  }

  .format-card svg {
    margin-bottom: 28px;
  }

  .join__card {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 46px 28px;
  }

  .footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .mobile-join {
    position: fixed;
    z-index: 35;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    padding: 10px 16px max(10px, env(safe-area-inset-bottom));
    background: rgba(255, 253, 248, 0.96);
    border-top: 1px solid rgba(16, 47, 38, 0.12);
    backdrop-filter: blur(12px);
    transition: transform 180ms ease;
  }

  .mobile-join.is-hidden {
    transform: translateY(110%);
  }

  .mobile-join .button {
    width: 100%;
    min-height: 48px;
  }

  .toast {
    right: 16px;
    bottom: 86px;
    width: calc(100% - 32px);
  }
}

@media (max-width: 390px) {
  .brand strong {
    font-size: 1.05rem;
  }

  .brand small {
    display: none;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .header-whatsapp {
    padding-inline: 11px;
    font-size: 0.7rem;
  }

  .meeting-card dl {
    grid-template-columns: 1fr;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
