/* ============================================================
   Spes Nostra International School – Design system
   ============================================================ */
:root {
  --blue: #173C60;
  --blue-dark: #0F2A45;
  --blue-mid: #1E4A73;
  --gold: #E8B923;
  --gold-light: #F5D76E;
  --cream: #FBF9F4;
  --cream-dark: #F3EFE6;
  --text: #1A2A3A;
  --text-muted: #4A5A6A;
  --white: #FFFFFF;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(15, 42, 69, 0.12);
  --transition: 0.25s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Source Sans 3", system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.65;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  line-height: 1.25;
  color: var(--blue-dark);
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--gold); }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 244, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(23, 60, 96, 0.08);
  transition: box-shadow var(--transition);
}
.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(15, 42, 69, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img {
  height: 48px;
  width: auto;
}
.nav-logo-text {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--blue-dark);
  line-height: 1.15;
}
.nav-logo-text span {
  display: block;
  font-size: 0.58rem;
  font-family: "Source Sans 3", sans-serif;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--blue-mid);
  text-transform: uppercase;
  max-width: 11.5rem;
  line-height: 1.25;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.35rem;
  list-style: none;
}
.nav-links a {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text);
  padding: 0.35rem 0;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
}

.nav-cta {
  background: var(--blue) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.1rem !important;
  border-radius: 6px;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
}
.nav-cta:hover {
  background: var(--blue-dark) !important;
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--blue-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ========== HERO (Home) ========== */
.hero {
  position: relative;
  padding: 3.25rem 0 3.75rem;
  text-align: center;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(232, 185, 35, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(23, 60, 96, 0.05), transparent);
  pointer-events: none;
}

.hero-logo {
  width: 150px;
  margin: 0 auto 1.35rem;
  filter: drop-shadow(0 6px 16px rgba(15, 42, 69, 0.15));
}

.hero-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-size: clamp(1.9rem, 4.8vw, 2.9rem);
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 0.35rem;
}

.hero-motto {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--blue-mid);
  margin-bottom: 1.5rem;
}

.hero-banner {
  background: var(--blue);
  color: var(--white);
  padding: 0.95rem 1.4rem;
  margin: 0 auto 1.75rem;
  max-width: 680px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.hero-banner h2 {
  font-size: clamp(1.25rem, 3.2vw, 1.7rem);
  color: var(--white);
  font-weight: 600;
}

.hero-lead {
  max-width: 620px;
  margin: 0 auto 1.75rem;
  font-size: 1.08rem;
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.hero-virtues {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.4rem;
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: var(--blue);
  text-transform: uppercase;
}
.hero-virtues span { position: relative; }
.hero-virtues span:not(:last-child)::after {
  content: "•";
  position: absolute;
  right: -0.95rem;
  color: var(--gold);
}

/* ========== PAGE HERO (inner pages) ========== */
.page-hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  color: var(--white);
  padding: 2.75rem 0 2.5rem;
  text-align: center;
}
.page-hero h1 {
  color: var(--white);
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  margin-bottom: 0.5rem;
}
.page-hero p {
  max-width: 560px;
  margin: 0 auto;
  opacity: 0.92;
  font-size: 1.08rem;
}

/* ========== SECTIONS ========== */
section {
  padding: 3.75rem 0;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.45rem;
}

.section-title {
  font-size: clamp(1.55rem, 3.2vw, 2.1rem);
  margin-bottom: 0.7rem;
}

.section-subtitle {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 2rem;
}

.section-narrow {
  max-width: 720px;
  margin-inline: auto;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: all var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--blue-dark);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-gold {
  background: var(--gold);
  color: var(--blue-dark);
}
.btn-gold:hover {
  background: var(--gold-light);
  color: var(--blue-dark);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  border-color: var(--blue);
  color: var(--blue);
}
.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
}
.btn-outline-white {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  color: var(--white);
}
.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.9rem;
}

/* ========== INTRO / TEXT BLOCKS ========== */
.intro-block {
  background: var(--white);
  border-top: 1px solid rgba(23, 60, 96, 0.06);
  border-bottom: 1px solid rgba(23, 60, 96, 0.06);
}
.intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.75rem;
  align-items: center;
}
.intro-text p {
  margin-bottom: 1rem;
  color: var(--text);
}
.intro-highlight {
  background: var(--cream);
  border-left: 4px solid var(--gold);
  padding: 1.25rem 1.4rem;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--blue-dark);
}

/* ========== CARDS / PEARLS ========== */
.pearls-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.pearls-header .section-subtitle {
  margin-inline: auto;
}

.pearls-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.35rem;
}

.pearl-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.6rem 1.45rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(23, 60, 96, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.pearl-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(15, 42, 69, 0.13);
}
.pearl-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
}

.pearl-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--blue);
  color: var(--white);
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50%;
  margin-bottom: 0.85rem;
}

.pearl-card h3 {
  font-size: 1.18rem;
  margin-bottom: 0.5rem;
  color: var(--blue-dark);
}
.pearl-card p {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ========== CONTENT SECTIONS (inner pages) ========== */
.content-section {
  padding: 3.25rem 0;
  border-bottom: 1px solid rgba(23, 60, 96, 0.07);
}
.content-section:last-of-type {
  border-bottom: none;
}
.content-section:nth-child(even) {
  background: var(--white);
}

.content-block {
  max-width: 720px;
}
.content-block p {
  margin-bottom: 1rem;
  color: var(--text);
}
.content-block p:last-child {
  margin-bottom: 0;
}
.content-block ul {
  margin: 0.75rem 0 1rem 1.25rem;
  color: var(--text);
}
.content-block li {
  margin-bottom: 0.4rem;
}

/* ========== INFO BANNER ========== */
.info-banner {
  background: var(--blue);
  color: var(--white);
  padding: 1.35rem 0;
}
.info-banner .container {
  text-align: center;
}
.info-banner p {
  font-size: 1.02rem;
  font-weight: 500;
}
.info-banner strong {
  color: var(--gold-light);
}

/* ========== CTA BAND ========== */
.cta-band {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 55%, var(--blue-mid) 100%);
  color: var(--white);
  text-align: center;
  padding: 3.75rem 0;
}
.cta-band h2 {
  color: var(--white);
  font-size: clamp(1.55rem, 3.2vw, 2.1rem);
  margin-bottom: 0.65rem;
}
.cta-band > .container > p {
  max-width: 520px;
  margin: 0 auto 1.75rem;
  opacity: 0.92;
  font-size: 1.05rem;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

/* ========== FOUNDING / INFO CARD ========== */
.founding-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 2.25rem;
  align-items: start;
}
.founding-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.6rem;
  border: 1px solid rgba(23, 60, 96, 0.08);
}
.founding-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.9rem;
}
.founding-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.founding-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.96rem;
  color: var(--text);
}
.founding-card li::before {
  content: "✦";
  color: var(--gold);
  font-size: 0.8rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* ========== FORMS ========== */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(23, 60, 96, 0.07);
  max-width: 560px;
  margin-inline: auto;
}
.form-group {
  margin-bottom: 1.15rem;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
  color: var(--blue-dark);
}
.form-group label .req {
  color: #c0392b;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(23, 60, 96, 0.18);
  border-radius: 7px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--cream);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(23, 60, 96, 0.12);
  background: var(--white);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.form-check input {
  margin-top: 0.25rem;
  flex-shrink: 0;
}
.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
  text-align: center;
}
.form-success {
  display: none;
  text-align: center;
  padding: 1.5rem;
  background: rgba(46, 125, 50, 0.08);
  border-radius: 8px;
  color: #2e7d32;
  font-weight: 500;
}
.form-success.visible {
  display: block;
}

/* ========== BANK / DONATION BOX ========== */
.bank-box {
  background: var(--cream);
  border: 1px solid rgba(23, 60, 96, 0.1);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  margin-top: 1.25rem;
  max-width: 480px;
}
.bank-box strong {
  color: var(--blue-dark);
}
.bank-box .iban {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  margin-top: 0.5rem;
  word-break: break-all;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--blue-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 2.5rem 0 1.5rem;
  font-size: 0.93rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 1.75rem;
}
.footer-brand {
  max-width: 260px;
}
.footer-brand img {
  height: 58px;
  margin-bottom: 0.65rem;
  filter: brightness(1.08);
}
.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.5;
}
.footer-links h4 {
  color: var(--white);
  font-size: 0.88rem;
  margin-bottom: 0.65rem;
  font-family: "Source Sans 3", sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.footer-links ul {
  list-style: none;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  display: block;
  padding: 0.2rem 0;
  font-size: 0.92rem;
}
.footer-links a:hover {
  color: var(--gold-light);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.15rem;
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.8;
}
.footer-bottom a {
  color: var(--gold-light);
}

/* ========== SUBNAV (page section links) ========== */
.subnav {
  background: var(--white);
  border-bottom: 1px solid rgba(23, 60, 96, 0.08);
  padding: 0.85rem 0;
  position: sticky;
  top: 64px;
  z-index: 50;
}
.subnav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  list-style: none;
  justify-content: center;
}
.subnav-list a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.25rem 0;
}
.subnav-list a:hover,
.subnav-list a.active {
  color: var(--blue);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 960px) {
  .intro-grid,
  .founding-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .pearls-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 1rem 1.4rem 1.35rem;
    gap: 0.25rem;
    border-bottom: 1px solid rgba(23, 60, 96, 0.1);
    box-shadow: 0 12px 30px rgba(15, 42, 69, 0.1);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 0.55rem 0;
    width: 100%;
  }
  .nav-cta {
    text-align: center;
    margin-top: 0.4rem;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-toggle.open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }
  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }
  .subnav {
    top: 58px;
  }
  .hero {
    padding: 2.25rem 0 2.75rem;
  }
  .hero-logo {
    width: 120px;
  }
  section,
  .content-section {
    padding: 2.75rem 0;
  }
}

@media (max-width: 480px) {
  .nav-logo-text { font-size: 0.95rem; }
  .nav-logo img { height: 42px; }
  .hero-virtues {
    gap: 0.35rem 1rem;
    font-size: 0.9rem;
  }
  .pearl-card {
    padding: 1.3rem 1.15rem;
  }
  .form-card {
    padding: 1.5rem 1.2rem;
  }
}
