/* ==========================================================================
   Winners' Chapel International Vienna — Design System
   Palette: deep navy + antique gold + warm ivory + wine accent
   Type: Fraunces (display) / Inter (body + utility)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500;1,9..144,600&family=Inter:wght@400;500;600;700;800&display=swap');

:root{
  /* colors */
  --navy-deep:   #10142A;
  --navy-mid:    #1B2140;
  --navy-line:   #2C3560;
  --gold:        #C79A3D;
  --gold-light:  #E7CB86;
  --wine:        #7C2333;
  --wine-light:  #9C3A4C;
  --paper:       #FAF6EC;
  --paper-warm:  #F1E8D2;
  --ink:         #1B1E2B;
  --ink-soft:    #565A6B;
  --line:        #DED0AC;
  --white:       #FFFFFF;

  /* type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* layout */
  --max-w: 1180px;
  --radius: 4px;
  --shadow-soft: 0 12px 32px -16px rgba(16, 20, 42, 0.35);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body{
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4,h5{ font-family: var(--font-display); margin: 0 0 0.5em; font-weight: 600; line-height: 1.15; }
p{ margin: 0 0 1em; }

:focus-visible{
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.container{
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow{
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section{ padding: 84px 0; }
.section--tight{ padding: 56px 0; }
.section--dark{ background: var(--navy-deep); color: var(--paper); }
.section--dark .eyebrow{ color: var(--gold-light); }
.section--warm{ background: var(--paper-warm); }

.section-head{ max-width: 720px; margin-bottom: 48px; }
.section-head.center{ margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2{ font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-head p{ color: var(--ink-soft); font-size: 1.05rem; }
.section--dark .section-head p{ color: #C7CCE0; }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover{ transform: translateY(-1px); }
.btn-gold{ background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover{ background: var(--gold-light); }
.btn-outline{ background: transparent; color: var(--paper); border-color: rgba(250,246,236,0.4); }
.btn-outline:hover{ border-color: var(--gold); color: var(--gold-light); }
.btn-outline-dark{ background: transparent; color: var(--navy-deep); border-color: var(--navy-deep); }
.btn-outline-dark:hover{ background: var(--navy-deep); color: var(--paper); }
.btn-wine{ background: var(--wine); color: var(--paper); }
.btn-wine:hover{ background: var(--wine-light); }
.btn-sm{ padding: 9px 18px; font-size: 0.85rem; }

/* ---------- Header ---------- */
.site-header{
  position: sticky; top: 0; z-index: 100;
  background: rgba(16,20,42,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--navy-line);
}
.site-header .container{
  display: flex; align-items: center; justify-content: space-between;
  height: 84px;
}
.brand{ display: flex; align-items: center; gap: 12px; color: var(--paper); }
.brand-mark{
  width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; color: var(--gold);
  font-size: 1.05rem; flex-shrink: 0;
}
.brand-text{ font-family: var(--font-display); line-height: 1.15; }
.brand-text strong{ display: block; font-size: 1.05rem; font-weight: 600; color: var(--paper); }
.brand-text span{ display: block; font-size: 0.72rem; letter-spacing: 0.08em; color: var(--gold-light); text-transform: uppercase; }

.main-nav{ display: flex; align-items: center; gap: 2px; }
.main-nav > ul{ display: flex; align-items: center; gap: 2px; }
.main-nav a{
  display: block; padding: 10px 14px; color: #D8DBEA;
  font-size: 0.92rem; font-weight: 500; border-radius: var(--radius);
  transition: color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.main-nav a:hover{ color: var(--gold-light); background: rgba(255,255,255,0.05); }
.main-nav .current > a{ color: var(--gold); }

.has-dropdown{ position: relative; }
.dropdown{
  position: absolute; top: 100%; left: 0; min-width: 230px;
  background: var(--navy-mid); border: 1px solid var(--navy-line);
  border-radius: var(--radius); padding: 8px; margin-top: 6px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  box-shadow: var(--shadow-soft);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown{ opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a{ padding: 9px 12px; font-size: 0.88rem; }

.nav-toggle{
  display: none; background: none; border: none; color: var(--paper);
  width: 40px; height: 40px; cursor: pointer;
}
.nav-toggle svg{ width: 24px; height: 24px; }

.give-btn{ margin-left: 10px; }

@media (max-width: 980px){
  .main-nav{
    position: fixed; inset: 84px 0 0 0; background: var(--navy-deep);
    flex-direction: column; align-items: stretch; padding: 10px 20px 40px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }
  .main-nav.open{ transform: translateX(0); }
  .main-nav > ul{ flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a{ padding: 14px 6px; border-bottom: 1px solid var(--navy-line); }
  .dropdown{
    position: static; opacity: 1; visibility: visible; transform: none;
    display: none; background: rgba(255,255,255,0.03); box-shadow: none;
    margin: 0 0 6px; border: none;
  }
  .has-dropdown.open .dropdown{ display: block; }
  .give-btn{ margin: 16px 6px 0; text-align: center; justify-content: center; }
  .nav-toggle{ display: block; }
}

/* ---------- Hero ---------- */
.hero{
  background: linear-gradient(155deg, var(--navy-deep) 0%, #191F3C 60%, var(--navy-mid) 100%);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.hero::after{
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 82% 18%, rgba(199,154,61,0.16), transparent 45%);
  pointer-events: none;
}
.hero-inner{
  position: relative; padding: 108px 0 96px;
  max-width: 760px;
}
.hero-inner .eyebrow{ color: var(--gold-light); }
.hero-inner h1{
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  font-weight: 700;
  margin-bottom: 20px;
}
.hero-inner h1 em{ font-style: italic; color: var(--gold-light); font-weight: 500; }
.hero-inner .lede{
  font-size: 1.15rem; color: #C7CCE0; max-width: 560px; margin-bottom: 36px;
}
.hero-cta{ display: flex; gap: 14px; flex-wrap: wrap; }
.hero-rule{
  width: 64px; height: 3px; background: var(--gold); margin-bottom: 24px;
  border-radius: 2px;
}

.page-banner{
  background: var(--navy-deep); color: var(--paper);
  padding: 64px 0 52px;
}
.page-banner h1{ font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 10px; }
.page-banner .crumb{ color: var(--gold-light); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- Cards / grid ---------- */
.grid-3{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
@media (max-width: 900px){
  .grid-3{ grid-template-columns: repeat(2, 1fr); }
  .grid-2{ grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 620px){
  .grid-3{ grid-template-columns: 1fr; }
}

.info-card{
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px;
}
.info-card .icon{ color: var(--gold); margin-bottom: 16px; }
.info-card h3{ font-size: 1.2rem; margin-bottom: 12px; }
.info-card .btn{ margin-top: 18px; }

/* ---------- Pillars (signature element) ---------- */
.pillars-wrap{ margin-top: 20px; }
.pillars-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--navy-line);
  border: 1px solid var(--navy-line);
}
@media (max-width: 900px){ .pillars-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px){ .pillars-grid{ grid-template-columns: 1fr; } }

.pillar{
  background: var(--navy-deep);
  padding: 30px 22px 26px;
  position: relative;
}
.pillar::before{
  content: "";
  display: block;
  width: 34px; height: 6px;
  background: var(--gold);
  margin-bottom: 18px;
  clip-path: polygon(8% 0, 92% 0, 100% 100%, 0% 100%);
}
.pillar .num{
  font-family: var(--font-body); font-weight: 700; font-size: 0.72rem;
  color: var(--gold-light); letter-spacing: 0.1em; margin-bottom: 8px; display: block;
}
.pillar h3{ color: var(--paper); font-size: 1.05rem; margin-bottom: 10px; }
.pillar p{ color: #AEB4CC; font-size: 0.86rem; font-style: italic; margin-bottom: 8px; line-height: 1.55; }
.pillar cite{ color: var(--gold-light); font-size: 0.76rem; font-style: normal; letter-spacing: 0.03em; }

/* ---------- Quote / mandate ---------- */
.mandate{
  border-left: 3px solid var(--gold);
  padding: 6px 0 6px 28px;
  margin: 28px 0;
}
.mandate p{
  font-family: var(--font-display); font-style: italic; font-size: 1.35rem;
  color: var(--navy-deep); line-height: 1.5; margin-bottom: 6px;
}
.section--dark .mandate p{ color: var(--paper); }
.mandate cite{ font-style: normal; font-size: 0.85rem; color: var(--ink-soft); letter-spacing: 0.03em; }

/* ---------- Tabs (WOFBI / Announcements) ---------- */
.tabs{ margin-top: 10px; }
.tab-list{ display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; border-bottom: 1px solid var(--line); padding-bottom: 0; }
.tab-btn{
  background: none; border: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 0.88rem;
  padding: 12px 4px; margin-right: 22px; color: var(--ink-soft);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab-btn:hover{ color: var(--navy-deep); }
.tab-btn.active{ color: var(--wine); border-bottom-color: var(--gold); }
.tab-panel{ display: none; }
.tab-panel.active{ display: block; animation: fade-in 0.25s ease; }
@keyframes fade-in{ from{ opacity: 0; } to{ opacity: 1; } }

.course-list{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 32px; margin-top: 18px; }
@media (max-width: 700px){ .course-list{ grid-template-columns: 1fr; } }
.course-list li{
  padding: 10px 0 10px 22px; border-bottom: 1px dashed var(--line);
  position: relative; font-size: 0.95rem;
}
.course-list li::before{
  content: "";
  position: absolute; left: 0; top: 17px;
  width: 8px; height: 8px; background: var(--gold); border-radius: 50%;
}

/* ---------- Service / location strip ---------- */
.strip-card{
  background: var(--navy-deep); color: var(--paper);
  padding: 36px; border-radius: var(--radius);
}
.strip-card + .strip-card{ background: var(--wine); }
.strip-card h3{ color: var(--gold-light); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 18px; }
.strip-card .big{ font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 4px; }
.strip-card .sub{ color: #C7CCE0; font-size: 0.92rem; margin-bottom: 18px; }
.strip-card a.btn{ margin-top: 6px; }

/* ---------- Placeholder tiles (gallery / testimonies) ---------- */
.placeholder-note{
  background: var(--paper-warm); border: 1px dashed var(--line);
  border-radius: var(--radius); padding: 18px 22px; margin-bottom: 36px;
  font-size: 0.92rem; color: var(--ink-soft); display: flex; gap: 12px; align-items: flex-start;
}
.placeholder-note svg{ flex-shrink: 0; color: var(--gold); margin-top: 2px; }

.gallery-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px){ .gallery-grid{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px){ .gallery-grid{ grid-template-columns: repeat(2, 1fr); } }
.gallery-tile{
  aspect-ratio: 1; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-deep));
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); opacity: 0.85;
}

.testimony-card{
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; position: relative;
}
.testimony-card .mark{ color: var(--gold); margin-bottom: 12px; }
.testimony-card h4{ font-size: 1rem; color: var(--ink-soft); font-weight: 600; }

/* ---------- Tables (downloads) ---------- */
.dl-table{ width: 100%; border-collapse: collapse; margin-top: 10px; }
.dl-table li{
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px 4px; border-bottom: 1px solid var(--line);
}
.dl-table .dl-title{ font-weight: 500; }
.dl-table .dl-title span{ display: block; font-size: 0.78rem; color: var(--ink-soft); font-weight: 400; margin-top: 3px; }

/* ---------- Team list (join us) ---------- */
.team-list{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 800px){ .team-list{ grid-template-columns: 1fr; } }
.team-item{ padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.team-item h3{ font-size: 1.05rem; margin-bottom: 10px; }
.team-item p{ color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 14px; }
.team-item a.join{ font-size: 0.85rem; font-weight: 600; color: var(--wine); }
.team-item a.join:hover{ color: var(--gold); }

/* ---------- Zone list (WSF) ---------- */
.zone-list{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 10px; }
@media (max-width: 900px){ .zone-list{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px){ .zone-list{ grid-template-columns: 1fr; } }
.zone-item{
  padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  font-size: 0.92rem;
}
.zone-item .zone-name{ font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; margin-bottom: 2px; display: block; }

/* ---------- Bank details (give online) ---------- */
.bank-card{
  background: var(--navy-deep); color: var(--paper);
  border-radius: var(--radius); padding: 40px; margin: 30px 0;
}
.bank-card .row{ display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--navy-line); flex-wrap: wrap; }
.bank-card .row:last-child{ border-bottom: none; }
.bank-card .label{ color: #AEB4CC; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; }
.bank-card .value{ font-family: var(--font-display); font-size: 1.15rem; color: var(--gold-light); }

.verse-block{ border-top: 1px solid var(--line); margin-top: 40px; padding-top: 32px; display: grid; gap: 26px; }
.verse-block blockquote{ margin: 0; }
.verse-block p{ font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--navy-deep); }
.verse-block cite{ font-style: normal; font-size: 0.82rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer{ background: var(--navy-deep); color: #B9BEDA; padding: 72px 0 0; }
.footer-grid{ display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; }
@media (max-width: 900px){ .footer-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .footer-grid{ grid-template-columns: 1fr; } }
.site-footer h4{ color: var(--paper); font-family: var(--font-body); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer p{ font-size: 0.92rem; line-height: 1.7; }
.footer-links li{ margin-bottom: 10px; }
.footer-links a{ font-size: 0.92rem; transition: color 0.15s ease; }
.footer-links a:hover{ color: var(--gold-light); }
.reach-us p{ margin-bottom: 6px; font-size: 0.92rem; }
.reach-us a{ color: var(--gold-light); }
.social-row{ display: flex; gap: 12px; margin-top: 18px; }
.social-row a{
  width: 36px; height: 36px; border: 1px solid var(--navy-line); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--paper);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.social-row a:hover{ border-color: var(--gold); color: var(--gold-light); }
.footer-bottom{
  border-top: 1px solid var(--navy-line); padding: 22px 0; font-size: 0.82rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #7C82A0;
}

/* ---------- Misc content pages ---------- */
.prose{ max-width: 760px; }
.prose h2{ margin-top: 1.6em; }
.prose p{ color: var(--ink-soft); font-size: 1.02rem; }
.age-groups{ display: flex; gap: 16px; flex-wrap: wrap; margin: 28px 0; }
.age-groups span{
  background: var(--navy-deep); color: var(--gold-light); padding: 10px 20px;
  border-radius: 30px; font-family: var(--font-display); font-size: 0.95rem;
}

/* ---------- Logo + CMS polish additions ---------- */
.site-header .container{ min-height: 90px; }
.brand-logo{
  width: 58px; height: 58px; border: 0; border-radius: 14px;
  background: var(--paper); padding: 4px; overflow: hidden;
  box-shadow: 0 8px 24px -14px rgba(0,0,0,0.55);
}
.brand-logo img{ width: 100%; height: 100%; object-fit: contain; }
.hero-logo{
  width: 118px; height: auto; border-radius: 22px;
  background: rgba(250,246,236,0.96); padding: 8px;
  margin: 0 0 24px; box-shadow: 0 20px 45px -24px rgba(0,0,0,0.65);
}
.footer-brand{ display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.footer-brand img{ width: 58px; height: 58px; object-fit: contain; background: var(--paper); border-radius: 14px; padding: 5px; }
.footer-brand h4{ margin-bottom: 0; }
.gallery-tile.gallery-photo{ position: relative; overflow: hidden; background: var(--navy-deep); opacity: 1; align-items: stretch; justify-content: stretch; }
.gallery-photo img{ width: 100%; height: 100%; object-fit: cover; }
.gallery-photo figcaption{
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 14px 12px; color: var(--paper); font-size: 0.85rem;
  background: linear-gradient(180deg, transparent, rgba(16,20,42,0.86));
}
.card-meta{ display: block; color: var(--gold); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; }
.testimony-card p{ color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 12px; }
.cms-announcements{ margin-bottom: 36px; }
.announcement-card p{ color: var(--ink-soft); font-size: 0.95rem; }
[hidden]{ display: none !important; }

@media (max-width: 980px){
  .site-header .container{ height: 76px; min-height: 76px; }
  .brand-logo{ width: 46px; height: 46px; border-radius: 12px; }
  .brand-text strong{ font-size: 0.95rem; }
  .brand-text span{ font-size: 0.64rem; }
  .main-nav{
    position: fixed; top: 76px; left: 0; right: 0; bottom: 0; inset: 76px 0 0 0;
    z-index: 1000; display: block; width: 100%; height: calc(100dvh - 76px);
    min-height: calc(100vh - 76px); padding: 16px 24px 36px;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    background: linear-gradient(180deg, var(--navy-deep), #161B36);
    transform: translateX(105%); opacity: 0; visibility: hidden;
    transition: transform 0.25s ease, opacity 0.2s ease, visibility 0.2s ease;
  }
  .main-nav.open{ transform: translateX(0); opacity: 1; visibility: visible; }
  .main-nav > ul{ display: flex; flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .main-nav > ul > li{ display: block; width: 100%; }
  .main-nav a{ display: block; width: 100%; padding: 15px 8px; border-bottom: 1px solid var(--navy-line); border-radius: 0; }
  .dropdown{
    position: static; display: block; opacity: 1; visibility: visible; transform: none;
    min-width: 0; margin: 0 0 8px; padding: 6px 0 6px 18px;
    background: rgba(255,255,255,0.035); border: 0; border-left: 2px solid var(--gold); box-shadow: none;
  }
  .dropdown a{ padding: 11px 8px; font-size: 0.86rem; }
  .give-btn{ margin: 18px 0 0; justify-content: center; border-bottom: 0; }
  .hero-inner{ padding-top: 72px; padding-bottom: 74px; }
  .hero-logo{ width: 94px; }
}

@media (max-width: 520px){
  .container{ padding: 0 18px; }
  .brand{ gap: 9px; }
  .brand-text strong{ max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .main-nav{ padding-left: 18px; padding-right: 18px; }
}
