/* Seminario Bautista Internacional — palette and fonts taken from the live site (sbibolivia.org):
   black header/footer, gold #B3A479 nav and accents, cream #E3DBC3 sections, navy #11253A buttons and class band,
   Poppins for nav/buttons, Open Sans for body. */
:root {
  --black: #000000;
  --white: #ffffff;
  --gold: #b3a479;
  --cream: #e3dbc3;
  --navy: #11253a;
  --ink: #000000;
  --ink-soft: #333333;
  --line: #cfc6a8;
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: Poppins, "Open Sans", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--black); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; text-wrap: balance; margin: 0 0 .6em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-weight: 600; color: var(--ink-soft); }
p { margin: 0 0 1em; max-width: 70ch; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 900px; }
.center { text-align: center; max-width: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--white); color: var(--black); padding: 10px 16px; border-radius: 6px; font-weight: 700; }
.skip:focus { top: 8px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.site-header :focus-visible, .site-footer :focus-visible, .classes-teaser :focus-visible, .hero :focus-visible, .banner :focus-visible { outline-color: var(--white); }

/* Header */
.site-header { background: var(--black); padding-block: 24px 28px; }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.brand img { width: min(300px, 70vw); height: auto; }
.nav-toggle { display: none; font: 700 .95rem var(--font-head); text-transform: uppercase; letter-spacing: .04em; color: var(--black); background: var(--gold); border: 0; border-radius: 56px; padding: 12px 22px; cursor: pointer; }
.main-nav { background: var(--gold); border-radius: 56px; padding: 16px 12px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 4px; }
.main-nav a {
  display: block; padding: 4px 18px;
  font: 700 .95rem var(--font-head); text-transform: uppercase; text-decoration: none;
  color: var(--black);
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--navy); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

@media (max-width: 1000px) {
  .nav-toggle { display: inline-block; }
  .main-nav { display: none; width: 100%; border-radius: 28px; padding: 12px; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav a { padding: 12px 16px; }
}
@media (min-width: 1001px) { .main-nav { display: block !important; } }

/* Buttons */
.btn {
  display: inline-block; font: 700 1.05rem var(--font-head); text-transform: uppercase; text-decoration: none; letter-spacing: .02em;
  background: var(--navy); color: var(--white); border: 0; border-radius: 56px; padding: 14px 32px; cursor: pointer;
}
.btn:hover { background: var(--black); color: var(--white); }
.btn-gold, .classes-teaser .btn { background: var(--gold); color: var(--black); }
.btn-gold:hover, .classes-teaser .btn:hover { background: var(--white); color: var(--black); }

/* Hero (home) */
.hero { position: relative; color: var(--white); background: var(--black) var(--banner) center / cover no-repeat; isolation: isolate; }
.hero::before, .banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(0,0,0,.9), rgba(0,0,0,.45) 60%, rgba(0,0,0,.6)); }
.hero-inner { padding-block: clamp(64px, 12vw, 140px); display: grid; gap: 24px; justify-items: start; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; margin: 0; max-width: 18ch; }
.hero-text { font-size: clamp(1.05rem, 1.8vw, 1.3rem); max-width: 60ch; margin: 0; }

/* Page banners */
.banner { position: relative; color: var(--white); background: var(--black) var(--banner) center / cover no-repeat; isolation: isolate; padding-block: clamp(48px, 8vw, 96px); }
.banner h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; margin: 0; }
.banner-plain { background: var(--black); }
.banner-plain::before { display: none; }

/* Home sections */
.about-sbi { background: var(--cream); padding-block: clamp(40px, 7vw, 80px); }
.split { display: grid; gap: 32px 48px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 800px) { .split { grid-template-columns: 1fr 1fr; } }
.split-text, .split-img { min-width: 0; }
.split-img { width: 100%; }
.classes-teaser { background: var(--navy); color: var(--white); padding-block: clamp(40px, 7vw, 80px); }
.classes-teaser h2 { color: var(--white); }
.class-cards { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.class-cards li { border: 1px solid rgba(255,255,255,.35); padding: 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; min-width: 0; }
.class-cards h3 { font-size: 1.15rem; font-weight: 600; margin: 0; }

/* Prose pages */
.prose-section { padding-block: clamp(32px, 6vw, 72px); }
.prose-section h2 { margin-top: 1.4em; }
.prose-section h2:first-child { margin-top: 0; }
.wide { margin: 32px 0 0; }
.wide img { width: 100%; }

/* Classes */
.classes-wrap { padding-block: clamp(32px, 6vw, 72px); }
.year { margin-bottom: 48px; }
.year h2 { padding-bottom: 12px; border-bottom: 3px solid var(--gold); }
.class-list { display: grid; gap: 10px; }
.class { border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.class[open] { background: var(--cream); border-color: var(--gold); }
.class summary { cursor: pointer; padding: 16px 20px; font: 600 1rem var(--font-head); color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.class summary::-webkit-details-marker { display: none; }
.class summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--black); flex: none; }
.class[open] summary::after { content: "–"; }
.class-body { padding: 0 20px 18px; }
.class-body p { margin-bottom: .6em; }
.credit { font: 600 .85rem var(--font-head); color: var(--navy); text-transform: uppercase; letter-spacing: .04em; }
.class:target { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Statement of faith */
.faith-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.faith-list p { max-width: none; margin: 0; }
.faith-sub { list-style: none; margin: 14px 0 0; padding: 0 0 0 clamp(16px, 4vw, 40px); border-left: 3px solid var(--gold); display: grid; gap: 14px; }
.refs { color: var(--navy); font-size: .93em; }
.distintivos { list-style: none; margin: 12px 0 0; padding: 0 0 0 clamp(16px, 4vw, 40px); border-left: 3px solid var(--gold); }
.distintivos strong { color: var(--navy); font-size: 1.15em; }

/* Faculty */
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.person { min-width: 0; }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--cream); }
.person h2 { font-size: 1.05rem; font-weight: 600; margin: 12px 0 0; text-transform: uppercase; color: var(--ink); }

/* Rector */
.director { display: grid; gap: 32px 48px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 800px) { .director { grid-template-columns: minmax(240px, 360px) 1fr; } }
.director-photo { width: 100%; height: auto; }
.director-text { min-width: 0; }

/* Contact */
.contact { background: var(--cream); padding-block: clamp(40px, 7vw, 80px); }
.contact-grid { display: grid; gap: 32px 48px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-info, .contact-form { min-width: 0; }
.lead { font-size: 1.05rem; }
address { font-style: normal; margin: 0 0 20px; }
.map iframe { width: 100%; aspect-ratio: 4 / 3; border: 0; background: var(--white); }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font: 600 .95rem var(--font-head); }
.req { color: #b00020; }
.field input, .field textarea { font: inherit; padding: 12px 14px; border: 1px solid #8a8168; border-radius: 6px; background: var(--white); color: var(--ink); width: 100%; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--navy); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: #b00020; border-width: 2px; }
.form-status { margin: 16px 0 0; font-weight: 600; max-width: none; }

/* Footer */
.site-footer { background: var(--black); color: var(--white); padding-block: 28px; }
.footer-top { display: grid; gap: 20px; justify-items: start; padding-bottom: 24px; border-bottom: 3px solid var(--white); }
.footer-slogan { margin: 0; font-size: 1.05rem; max-width: 60ch; }
.footer-logo { height: 64px; width: auto; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-links a { color: var(--white); font: 700 .95rem var(--font-head); text-decoration: none; }
.footer-links a:hover { color: var(--gold); text-decoration: underline; }
.copyright { margin: 20px 0 0; font-size: .9rem; max-width: none; }
