/* ============================================================
   COVENANT CHRISTIAN HIGH SCHOOL: SHARED STYLESHEET
   Colors: Green #2A5533 | Gold #C49330 | Maroon #6e251e | Teal #3E7C8A
   Fonts: Oswald Bold (headings) | Aleo (body) | Sacramento (accents)
   ============================================================ */

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

:root {
  --green:        #2A5533;
  --green-dark:   #1C3A23;
  --green-mid:    #3A6A42;
  --gold:         #C49330;
  --gold-light:   #D4A840;
  --gold-pale:    #F5E8C8;
  --maroon:       #6e251e;
  --maroon-dark:  #4a1712;
  --teal:         #3E7C8A;
  --dark:         #1A1A1A;
  --charcoal:     #2C2C2C;
  --mid:          #5A5A5A;
  --light-gray:   #9A9A9A;
  --cream:        #FAF8F3;
  --off-white:    #F0EBE2;
  --white:        #FFFFFF;
  --max-width:    1200px;
  --section-pad:  96px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Aleo', Georgia, serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Oswald', sans-serif; font-weight: 700; line-height: 1.08; letter-spacing: 0.02em; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* PLACEHOLDERS */
.img-placeholder {
  background: var(--off-white);
  display: flex; align-items: center; justify-content: center;
}
.img-placeholder::after {
  content: attr(data-label);
  font-family: 'Oswald', sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--light-gray);
  text-align: center; padding: 12px;
}

/* UTILITIES */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 36px; }

.section-eyebrow {
  font-family: 'Oswald', sans-serif; font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold);
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.section-eyebrow::before, .section-eyebrow::after {
  content: ''; width: 28px; height: 2px; background: var(--gold); flex-shrink: 0;
}

/* BUTTONS */
.btn { font-family: 'Oswald', sans-serif; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; border-radius: 2px; display: inline-block; transition: background 0.18s, color 0.18s, border-color 0.18s; cursor: pointer; border: none; }
.btn-sm  { font-size: 11px; padding: 10px 22px; }
.btn-md  { font-size: 12px; padding: 13px 28px; }
.btn-lg  { font-size: 13px; padding: 16px 36px; }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-dark); }
.btn-gold  { background: var(--gold);  color: var(--dark); }
.btn-gold:hover { background: var(--gold-light); }
.btn-white { background: var(--white); color: var(--green); }
.btn-white:hover { background: var(--off-white); }
.btn-outline-green { background: transparent; color: var(--green); border: 1.5px solid var(--green); }
.btn-outline-green:hover { background: var(--green); color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.45); }
.btn-outline-white:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-outline-gold { background: transparent; color: var(--gold-pale); border: 1.5px solid rgba(196,147,48,0.5); }
.btn-outline-gold:hover { border-color: var(--gold); }

.arrow-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Oswald', sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green); border-bottom: 1.5px solid var(--gold);
  padding-bottom: 2px; transition: color 0.18s, gap 0.18s;
}
.arrow-link:hover { color: var(--gold); gap: 12px; }
.arrow-link svg { width: 14px; height: 14px; }
.arrow-link--gold { color: var(--gold); border-color: rgba(196,147,48,0.4); }
.arrow-link--gold:hover { border-color: var(--gold); }

/* NAV */
.site-nav { background: var(--white); border-bottom: 1px solid rgba(42,85,51,0.12); position: sticky; top: 0; z-index: 200; box-shadow: 0 1px 10px rgba(0,0,0,0.05); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 88px; max-width: var(--max-width); margin: 0 auto; padding: 0 36px; }
.nav-logo img { height: 68px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a { font-family: 'Oswald', sans-serif; font-size: 15px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--charcoal); padding: 6px 14px; border-radius: 2px; transition: color 0.18s, background 0.18s; }
.nav-links a:hover { color: var(--green); background: rgba(42,85,51,0.06); }
.nav-links a.nav-give { background: var(--gold); color: var(--white); }
.nav-links a.nav-give:hover { background: var(--gold-light); }
.nav-links a.nav-active { color: var(--green); }
.nav-hamburger { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; background: none; border: none; cursor: pointer; margin-left: 8px; padding: 0; }
.nav-hamburger span { display: block; width: 20px; height: 2px; background: var(--green); border-radius: 2px; }

/* DRAWER */
.nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 299; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.nav-overlay.is-open { opacity: 1; pointer-events: auto; }
.nav-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 680px; max-width: 95vw; background: var(--maroon-dark); z-index: 300; overflow-y: auto; transform: translateX(100%); transition: transform 0.32s cubic-bezier(0.4,0,0.2,1); }
.nav-drawer.is-open { transform: translateX(0); }
/* Mobile: stack the nav so the logo sits centered above the menu */
@media (max-width: 900px) {
  .nav-inner { flex-direction: column; align-items: center; gap: 12px; height: auto; padding-top: 14px; padding-bottom: 14px; }
  .nav-logo { order: -1; }
  .nav-logo img { height: 58px; }
  .nav-links { justify-content: center; flex-wrap: nowrap; gap: 4px; }
  .nav-links a { padding: 6px 10px; font-size: 14px; }
  .nav-hamburger { margin-left: 2px; }
}
@media (max-width: 420px) { .nav-links a { padding: 5px 7px; font-size: 12.5px; letter-spacing: 0.03em; } }
.drawer-inner { padding: 30px 40px 48px; }
.drawer-close { display: flex; align-items: center; justify-content: flex-end; margin-bottom: 20px; }
.drawer-close-btn { background: rgba(255,255,255,0.1); border: none; border-radius: 50%; color: var(--white); width: 38px; height: 38px; padding: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 0; font-size: 0; transition: background 0.18s; }
.drawer-close-btn svg { width: 15px; height: 15px; }
.drawer-close-btn:hover { background: rgba(255,255,255,0.18); }
.drawer-section { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.drawer-section:last-of-type { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.drawer-section-header { display: block; padding-bottom: 0; margin-bottom: 6px; }
.drawer-section-header > div:not(.drawer-thumb) { display: grid; grid-template-columns: 1fr auto; column-gap: 14px; align-items: start; }
.drawer-thumb { display: none; }
.drawer-section-title { grid-column: 1; grid-row: 1; font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 17px; text-transform: uppercase; color: var(--white); letter-spacing: 0.04em; margin-bottom: 3px; }
.drawer-section-desc { grid-column: 1 / -1; grid-row: 2; font-family: 'Aleo', serif; font-style: italic; font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.45; margin-bottom: 0; }
.drawer-visit-btn { grid-column: 2; grid-row: 1; justify-self: end; align-self: start; white-space: nowrap; font-family: 'Oswald', sans-serif; font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(196,147,48,0.35); padding: 4px 10px; border-radius: 2px; transition: border-color 0.18s; }
.drawer-visit-btn:hover { border-color: var(--gold); }
.drawer-sublinks { display: flex; flex-wrap: wrap; gap: 7px 16px; padding-bottom: 0; margin-bottom: 0; }
.drawer-sublinks a { font-family: 'Aleo', serif; font-size: 13px; color: rgba(255,255,255,0.45); transition: color 0.18s; position: relative; padding-left: 10px; }
.drawer-sublinks a::before { content: '·'; position: absolute; left: 0; color: rgba(255,255,255,0.2); }
.drawer-sublinks a:hover { color: rgba(255,255,255,0.85); }
.drawer-scroll-hint { grid-column: 1 / -1; display: none; flex-direction: column; align-items: center; gap: 6px; padding: 12px 0 4px; font-family: 'Oswald', sans-serif; font-size: 9px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.25); }
.drawer-scroll-hint svg { width: 16px; height: 16px; stroke: rgba(255,255,255,0.25); fill: none; }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
.bounce { animation: bounce 1.6s ease-in-out infinite; }

/* PAGE HERO */
.page-hero { background: var(--green-dark); padding: 80px 0 72px; position: relative; overflow: hidden; }
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 30%; opacity: 0.18; }
.page-hero-inner { position: relative; z-index: 2; max-width: var(--max-width); margin: 0 auto; padding: 0 36px; }
.page-hero-eyebrow { font-family: 'Oswald', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.page-hero-eyebrow::before,
.page-hero-eyebrow::after { content: ''; display: block; width: 28px; height: 1px; background: var(--gold); }
.page-hero h1 { font-size: clamp(48px, 6vw, 80px); text-transform: uppercase; color: var(--white); margin-bottom: 20px; }
.page-hero-sub { font-family: 'Aleo', serif; font-size: clamp(17px, 1.8vw, 21px); color: rgba(255,255,255,0.68); max-width: 620px; line-height: 1.65; font-style: italic; }

/* VIDEO */
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 4px; background: #111; border: 1px solid rgba(255,255,255,0.08); }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

/* CTA BAR */
.cta-bar { background: var(--green); padding: 64px 0; }
.cta-bar-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 36px; display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.cta-bar-text h2 { font-size: clamp(24px, 2.8vw, 36px); text-transform: uppercase; color: var(--white); margin-bottom: 8px; }
.cta-bar-text p { font-size: 16px; color: rgba(255,255,255,0.62); line-height: 1.6; }
.cta-bar-actions { display: flex; gap: 14px; flex-shrink: 0; }

/* FOOTER */
.site-footer { background: var(--charcoal); padding: 64px 0 32px; border-top: 3px solid var(--green); }
.footer-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 36px; }
.footer-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 44px; margin-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.footer-brand .brand-name { font-family: 'Oswald', sans-serif; font-size: 14px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--white); display: block; margin-bottom: 3px; }
.footer-brand .brand-loc { font-family: 'Aleo', serif; font-size: 12px; color: rgba(255,255,255,0.32); font-style: italic; display: block; margin-bottom: 16px; }
.footer-brand p { font-family: 'Aleo', serif; font-size: 13px; color: rgba(255,255,255,0.38); line-height: 1.75; margin-bottom: 16px; max-width: 300px; }
.footer-contact { font-family: 'Aleo', serif; font-size: 12.5px; color: rgba(255,255,255,0.32); line-height: 1.9; }
.footer-contact a { transition: color 0.18s; }
.footer-contact a:hover { color: rgba(255,255,255,0.65); }
.footer-col h4, .footer-stay h4 { font-family: 'Oswald', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.48); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { font-family: 'Aleo', serif; font-size: 13.5px; color: rgba(255,255,255,0.40); transition: color 0.18s; }
.footer-col ul li a:hover { color: rgba(255,255,255,0.78); }
.footer-search { display: flex; margin-bottom: 22px; }
.footer-search input { flex: 1; padding: 9px 12px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); border-right: none; color: var(--white); font-family: 'Aleo', serif; font-size: 13px; border-radius: 2px 0 0 2px; outline: none; }
.footer-search input::placeholder { color: rgba(255,255,255,0.28); }
.footer-search button { background: var(--teal); border: 1px solid var(--teal); color: var(--white); font-family: 'Oswald', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 9px 14px; border-radius: 0 2px 2px 0; cursor: pointer; }
.follow-label { font-family: 'Oswald', sans-serif; font-size: 10px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.32); display: block; margin-bottom: 10px; }
.footer-social { display: flex; gap: 10px; }
.social-icon { width: 32px; height: 32px; border-radius: 3px; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; transition: background 0.18s; }
.social-icon:hover { background: rgba(255,255,255,0.16); }
.social-icon svg { width: 15px; height: 15px; fill: rgba(255,255,255,0.55); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; }
.footer-bottom p { font-family: 'Aleo', serif; font-size: 12px; color: rgba(255,255,255,0.2); }

/* RESPONSIVE */
@media (max-width: 1024px) { :root { --section-pad: 72px; } .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 768px) { :root { --section-pad: 56px; } .container { padding: 0 24px; } .nav-inner { padding: 0 24px; } .cta-bar-inner { flex-direction: column; text-align: center; } .cta-bar-actions { flex-direction: column; width: 100%; } .footer-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .page-hero { padding: 56px 0 48px; } .drawer-inner { padding: 24px 24px 48px; } }

.drawer-explore {
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 8px;
  margin-top: 10px;
}
/* Slide-out menu collapses to a single column on narrow screens */
@media (max-width: 640px) { .drawer-inner { grid-template-columns: 1fr; } }

/* VIDEO PAGE HERO (inner pages with background video) */
.video-page-hero { position: relative; height: 72vh; min-height: 480px; max-height: 720px; overflow: hidden; display: flex; align-items: flex-end; }
.video-hero-bg { position: absolute; inset: 0; background: var(--green-dark); }
.video-hero-bg iframe { position: absolute; top: 50%; left: 50%; width: 177.78vh; min-width: 100%; height: 56.25vw; min-height: 100%; transform: translate(-50%,-50%); pointer-events: none; border: none; }
.video-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,40,25,0.88) 0%, rgba(20,40,25,0.45) 50%, rgba(20,40,25,0.15) 100%); }
.video-hero-inner { position: relative; z-index: 2; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 52px 56px; }
.video-hero-inner .page-hero-eyebrow { font-family: 'Oswald', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.video-hero-inner .page-hero-eyebrow::before,
.video-hero-inner .page-hero-eyebrow::after { content: ''; display: block; width: 28px; height: 1px; background: var(--gold); }
.video-hero-inner h1 { font-size: clamp(42px, 5.5vw, 72px); text-transform: uppercase; color: var(--white); margin-bottom: 16px; line-height: 1.0; }
.video-hero-inner .page-hero-sub { font-family: 'Aleo', serif; font-size: clamp(16px, 1.7vw, 20px); color: rgba(255,255,255,0.70); max-width: 580px; line-height: 1.65; font-style: italic; }

/* VIDEO HERO LOADING SPINNER */
.hero-video-loader { position:absolute; inset:0; background:var(--green-dark); display:flex; align-items:center; justify-content:center; z-index:2; transition:opacity 0.6s ease; }
.hero-video-spinner { width:48px; height:48px; border:3px solid rgba(255,255,255,0.15); border-top-color:var(--gold); border-radius:50%; animation:hero-spin 0.8s linear infinite; }
@keyframes hero-spin { to { transform:rotate(360deg); } }

/* ============================================================
   PARALLAX (site-wide, subtle)
   Wrap an image in .parallax; the .parallax-img inside drifts
   slightly slower than the scroll. JS in main.js drives it.
   Falls back to a normal static image if JS or motion is off.
   ============================================================ */
.parallax { position: relative; overflow: hidden; }
.parallax .parallax-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  will-change: transform;
}
/* Give the drifting image extra height so the edges never show */
.parallax.js-parallax .parallax-img { height: 128%; top: -14%; position: absolute; left: 0; }
@media (prefers-reduced-motion: reduce) {
  .parallax.js-parallax .parallax-img { height: 100%; top: 0; transform: none !important; }
}

/* Hero background parallax (JS adds .js-hero-parallax on desktop only) */
.page-hero.js-hero-parallax .page-hero-bg { top: -16%; bottom: auto; height: 132%; will-change: transform; }

/* Mobile: center all text except inside cards, forms, and structural chrome */
@media (max-width: 768px) {
  body { text-align: center; }
  .site-nav, .nav-drawer, .site-footer, form, table,
  [class*="card"], .req-item, .gd-area, .process-step, .wtg-benefit, .dd-col, .dd-links { text-align: left; }
}

/* ── DRAWER DIRECTORY (dd): 6-section scannable layout ── */
.dd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(172px, 1fr)); gap: 26px 24px; }
.dd-col { display: flex; flex-direction: column; min-width: 0; }
.dd-photo { display: block; height: 82px; border-radius: 3px; overflow: hidden; margin-bottom: 11px; }
.dd-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dd-title { display: flex; align-items: center; gap: 7px; font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold); padding-bottom: 8px; margin-bottom: 11px; border-bottom: 1px solid rgba(196,147,48,0.42); transition: color 0.18s; }
.dd-title:hover { color: #D4A840; }
.dd-title svg { width: 14px; height: 14px; opacity: 0.72; flex-shrink: 0; }
.dd-links { display: flex; flex-direction: column; gap: 8px; }
.dd-links a { font-family: 'Aleo', serif; font-size: 14.5px; line-height: 1.2; color: rgba(255,255,255,0.82); transition: color 0.15s, padding-left 0.15s; }
.dd-links a:hover { color: #fff; padding-left: 4px; }
@media (max-width: 540px) { .dd-grid { grid-template-columns: 1fr 1fr; gap: 22px 18px; } }
@media (max-width: 380px) { .dd-grid { grid-template-columns: 1fr; } }

/* ── DRAWER TITLE HEADER ── */
.drawer-top { display:flex; align-items:center; justify-content:space-between; gap:20px; padding-bottom:20px; margin-bottom:34px; border-bottom:1px solid rgba(196,147,48,0.35); }
.drawer-heading { display:flex; flex-direction:column; gap:5px; }
.drawer-eyebrow { font-family:'Oswald',sans-serif; font-weight:600; font-size:11px; letter-spacing:0.22em; text-transform:uppercase; color:var(--gold); }
.drawer-title { font-family:'Oswald',sans-serif; font-weight:600; font-size:24px; letter-spacing:0.03em; text-transform:uppercase; color:#fff; line-height:1; }

/* ── STANDARD ICON TREATMENT: green circle, white icon ── */
.icon-circle { width:56px; height:56px; background:var(--green); border-radius:50%; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.icon-circle svg { width:34px; height:34px; fill:var(--white); }
.icon-circle .icon-emoji { font-size:24px; line-height:1; filter:grayscale(1) brightness(10); }

/* ------------------------------------------------------------
   Covenant Connect chat widget
   "Talk to Someone" is hidden while its behaviour after a form
   submission is sorted out. Done here rather than in
   assets/covenant-chat.js so the widget file stays untouched and
   this survives any update Caleb pushes to it.

   The widget injects its own stylesheet at runtime, so this needs
   !important to win. To bring the button back, delete this block.

   The actions bar holds only this one button, since "Stay Informed"
   renders only when a page sets window.CC_SHOW_CONNECT = true. So
   the whole bar is hidden, which also removes its 8px top margin
   rather than leaving an empty strip.
   ------------------------------------------------------------ */
#cchs-chat-actions { display: none !important; }
