/* ============================================================
   bsgthailand.org · Shared stylesheet
   Voice: Provincial Council of Brothers of Saint Gabriel, Thai
   Tone: dignified · reverent · institutional
   ============================================================ */

:root {
  /* Sacred palette (mirrors montfortian.net) */
  --navy: #1a3a5c;
  --navy-light: #2c5f8a;
  --navy-dark: #0d2640;
  --gold: #8b6914;
  --gold-light: #c4960a;
  --cream: #f5f3ed;
  --cream-soft: #fdfbf7;

  /* Text */
  --text: #2a2a2a;
  --text-light: #666;
  --text-soft: #888;

  /* Borders */
  --border: #e8e3d6;
  --border-soft: #efece2;
}

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

html, body {
  font-family: 'Inter', 'Sarabun', sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Cinzel', 'Noto Serif', serif; color: var(--navy); }

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

/* ============= NAV ============= */
.site-nav {
  background: white;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  display: flex; align-items: center;
  padding: 0 24px;
  flex-wrap: wrap;
}
.site-nav .brand {
  font-family: 'Cinzel', serif; font-weight: 700;
  font-size: 1em; color: var(--navy);
  padding: 14px 18px 14px 0;
  margin-right: auto;
}
.site-nav .brand small { display: block; font-family: 'Inter', sans-serif; font-weight: 400; font-size: 0.65em; color: var(--text-soft); letter-spacing: 1px; margin-top: 2px; }
.site-nav .links { display: flex; gap: 0; flex-wrap: wrap; align-items: center; }
.site-nav .links a {
  padding: 16px 16px;
  font-size: 0.86em; font-weight: 500;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}
.site-nav .links a:hover, .site-nav .links a.active {
  border-bottom-color: var(--gold);
  color: var(--gold);
}
.site-nav .links a.external::after {
  content: ' ↗';
  font-size: 0.8em; opacity: 0.5;
}
.site-nav .lang-toggle {
  margin-left: 12px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.78em;
  color: var(--text-light);
  background: var(--cream-soft);
}

/* ============= HERO ============= */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 60%, var(--gold) 200%);
  color: white;
  padding: 90px 24px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(139,105,20,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(44,95,138,0.10) 0%, transparent 50%);
}
.hero > * { position: relative; z-index: 1; }
.hero .mark { font-size: 2.6em; opacity: 0.45; margin-bottom: 22px; letter-spacing: 4px; }
.hero h1 {
  font-size: clamp(1.8em, 4.2vw, 3em);
  color: white;
  letter-spacing: 3px;
  margin-bottom: 14px;
  line-height: 1.25;
}
.hero .tagline {
  font-size: clamp(0.95em, 1.8vw, 1.2em);
  font-weight: 300;
  opacity: 0.85;
  margin-bottom: 10px;
  font-family: 'Cinzel', serif; letter-spacing: 2px;
}
.hero .since {
  font-size: 0.85em; opacity: 0.55; letter-spacing: 3px;
  margin-bottom: 38px;
}
.hero-quote {
  max-width: 660px; margin: 0 auto;
  font-style: italic; font-size: 1.02em;
  opacity: 0.78; line-height: 1.75;
  border-left: 3px solid var(--gold-light);
  padding: 4px 0 4px 22px;
  text-align: left;
}
.hero-quote cite {
  display: block; margin-top: 10px;
  font-style: normal; font-size: 0.82em;
  color: var(--gold-light); letter-spacing: 1px;
}

/* ============= HERO ACTIONS ============= */
.hero-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  max-width: 880px; margin: 50px auto 0;
}
.hero-action {
  padding: 26px 22px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(4px);
  text-align: center;
  transition: all 0.25s;
  color: white;
}
.hero-action:first-child { border-radius: 10px 0 0 10px; }
.hero-action:last-child { border-radius: 0 10px 10px 0; }
.hero-action:hover { background: rgba(255,255,255,0.12); transform: translateY(-3px); color: var(--gold-light); }
.hero-action .label { font-family: 'Cinzel', serif; font-size: 0.95em; letter-spacing: 2px; margin-bottom: 6px; }
.hero-action .desc { font-size: 0.82em; opacity: 0.7; font-weight: 300; }

/* ============= SECTION ============= */
.section { padding: 80px 24px; max-width: 1080px; margin: 0 auto; }
.section h2 {
  font-size: 1.7em;
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.section .line { width: 56px; height: 3px; background: var(--gold); margin-bottom: 26px; }
.section .lede {
  font-size: 1.08em; color: var(--text);
  max-width: 760px; line-height: 1.75;
}
.section p { color: var(--text-light); max-width: 760px; margin-bottom: 16px; }

.section.alt { background: white; max-width: none; padding-left: 24px; padding-right: 24px; }
.section.alt > .inner { max-width: 1080px; margin: 0 auto; }

/* ============= TIMELINE ============= */
.timeline { margin: 36px 0; position: relative; padding-left: 40px; }
.timeline::before {
  content: ''; position: absolute; left: 14px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, var(--gold), var(--navy));
}
.tl-item { position: relative; margin-bottom: 30px; }
.tl-item::before {
  content: ''; position: absolute; left: -33px; top: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--gold); border: 3px solid var(--cream);
}
.tl-year { font-family: 'Cinzel', serif; font-weight: 700; color: var(--navy); font-size: 1.1em; }
.tl-text { color: var(--text-light); font-size: 0.95em; margin-top: 4px; line-height: 1.65; }

/* ============= CARDS / GRID ============= */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px; margin-top: 24px;
}
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px;
  transition: all 0.2s;
  display: block; color: inherit; text-decoration: none;
}
.card:hover { border-color: var(--gold-light); box-shadow: 0 6px 20px rgba(0,0,0,0.06); transform: translateY(-2px); }
.card h3 { font-size: 1em; margin-bottom: 8px; color: var(--navy); letter-spacing: 1px; }
.card .meta { font-size: 0.78em; color: var(--text-soft); margin-bottom: 10px; }
.card p { font-size: 0.9em; color: var(--text-light); margin: 0; }

/* ============= TABLE ============= */
table.tidy {
  width: 100%; border-collapse: collapse;
  background: white; font-size: 0.92em;
  border: 1px solid var(--border);
  margin: 16px 0;
}
table.tidy th {
  background: var(--navy); color: white;
  text-align: left; padding: 10px 14px;
  font-weight: 600; font-size: 0.85em; letter-spacing: 0.5px;
}
table.tidy td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}
table.tidy tr:last-child td { border-bottom: none; }
table.tidy tr:nth-child(even) td { background: var(--cream-soft); }

/* ============= BLOCKQUOTE / CALLOUT ============= */
blockquote.callout {
  background: linear-gradient(90deg, var(--cream-soft) 0%, white 100%);
  border-left: 4px solid var(--gold);
  padding: 16px 24px;
  margin: 22px 0;
  font-style: italic;
  color: var(--navy-dark);
  font-size: 1.02em;
  border-radius: 0 6px 6px 0;
}
blockquote.callout cite {
  display: block; margin-top: 8px;
  font-style: normal; font-size: 0.82em;
  color: var(--text-soft); letter-spacing: 1px;
}

/* ============= FOOTER ============= */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.78);
  padding: 50px 24px 30px;
}
.site-footer .inner {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
}
.site-footer h4 {
  color: var(--gold-light);
  font-size: 0.85em; letter-spacing: 2px;
  margin-bottom: 14px;
  font-family: 'Inter', sans-serif; font-weight: 600;
  text-transform: uppercase;
}
.site-footer p, .site-footer li { font-size: 0.85em; line-height: 1.7; }
.site-footer ul { list-style: none; }
.site-footer a { color: rgba(255,255,255,0.78); }
.site-footer a:hover { color: var(--gold-light); }
.site-footer .credit {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 36px; padding-top: 18px;
  text-align: center; font-size: 0.78em;
  color: rgba(255,255,255,0.5);
}

/* ============= RESPONSIVE ============= */
@media (max-width: 760px) {
  .site-nav { padding: 8px 16px; }
  .site-nav .links { width: 100%; justify-content: flex-start; overflow-x: auto; }
  .hero { padding: 60px 18px 70px; }
  .hero-actions { grid-template-columns: 1fr; }
  .hero-action:first-child, .hero-action:last-child { border-radius: 10px; }
  .hero-action { margin-bottom: 8px; }
  .section { padding: 60px 18px; }
  .site-footer .inner { grid-template-columns: 1fr; gap: 30px; }
}

/* ============= UTILITY ============= */
.center { text-align: center; }
.muted { color: var(--text-soft); }
.small { font-size: 0.85em; }
.thai { font-family: 'Sarabun', 'Noto Serif Thai', sans-serif; }
.en-quiet { font-size: 0.85em; color: var(--text-soft); font-weight: 400; }
