/*
Theme Name: SJTW Academy
Theme URI: https://wordpress.dougoveto.com
Author: Walter (port of static SJTW site)
Description: WordPress theme port of the St. Joseph the Worker Academy static site. Intended for the wordpress.dougoveto.com testbed; not for production use.
Version: 0.1.0
Requires at least: 6.0
Requires PHP: 8.0
License: Proprietary — internal testbed only
Text Domain: sjtw
*/

:root {
  --navy: #2a3320;
  --navy-mid: #3D472B;
  --navy-light: #4d5a36;
  --gold: #D9B166;
  --gold-light: #F2D6A2;
  --cream: #F2D6A2;
  --cream-dark: #e8c98a;
  --white: #fdf8ee;
  --text-muted: #a89070;
  --border: rgba(217,177,102,0.3);
  --crimson: #952209;
  --brown: #955F2F;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'EB Garamond', Georgia, serif; background: var(--navy); color: var(--cream); line-height: 1.7; overflow-x: hidden; }

/* ── NAV ── */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(42,51,32,0.96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; height: 72px; transition: background 0.3s; }
.nav-logo { font-family: 'Cinzel', serif; font-size: 1.05rem; font-weight: 600; color: var(--gold); text-decoration: none; letter-spacing: 0.08em; display: flex; align-items: center; gap: 0.75rem; }
.nav-logo .cross { font-size: 1.3rem; color: var(--gold-light); }
.nav-links { display: flex; gap: 0; list-style: none; }
.nav-links > li { position: relative; }
.nav-links > li > a { display: block; padding: 0 1.1rem; font-family: 'Cinzel', serif; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream-dark); text-decoration: none; height: 72px; line-height: 72px; transition: color 0.2s; }
.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--gold); }
.nav-links > li > a .caret { display: inline-block; margin-left: 0.3rem; font-size: 0.6rem; transform: translateY(-1px); opacity: 0.7; }

/* Dropdown menus */
.nav-links > li:hover > .dropdown,
.nav-links > li:focus-within > .dropdown { display: block; }
.dropdown {
  display: none;
  position: absolute; top: 72px; left: 0;
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold);
  min-width: 260px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  padding: 0.5rem 0;
  animation: ddFade 0.18s ease;
}
@keyframes ddFade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.dropdown a {
  display: block;
  padding: 0.65rem 1.25rem;
  font-family: 'EB Garamond', serif;
  font-size: 0.95rem;
  color: var(--cream-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(217,177,102,0.08);
  transition: background 0.15s, color 0.15s, padding-left 0.15s;
  height: auto; line-height: 1.4;
  letter-spacing: normal; text-transform: none; font-weight: 400;
}
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { background: var(--navy-light); color: var(--gold); padding-left: 1.5rem; }
.nav-cta { font-family: 'Cinzel', serif; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.55rem 1.3rem; background: var(--crimson); color: var(--white); text-decoration: none; border: none; cursor: pointer; transition: background 0.2s; }
.nav-cta:hover { background: #b52a0a; }

/* ── MOBILE NAV ── */
.mobile-menu-btn { display: none; }
.mobile-drawer { display: none; position: fixed; inset: 0; z-index: 999; background: var(--navy); flex-direction: column; padding: 90px 2rem 3rem; overflow-y: auto; border-top: 2px solid var(--gold); }
.mobile-drawer.open { display: flex; }
.mobile-drawer-inner { flex: 1; }
.drawer-section { margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.drawer-section:last-child { border-bottom: none; }
.drawer-primary { display: block; padding: 0.4rem 0; font-family: 'Cormorant Garamond', serif; font-size: 1.55rem; font-weight: 500; color: var(--gold-light); text-decoration: none; letter-spacing: 0.01em; }
.drawer-primary:hover { color: var(--gold); }
.drawer-sub { display: block; padding: 0.5rem 0 0.5rem 1.25rem; font-family: 'EB Garamond', serif; font-size: 1rem; font-weight: 400; color: var(--cream-dark); text-decoration: none; border-left: 1px solid rgba(217,177,102,0.2); margin-left: 0.25rem; margin-top: 0.25rem; }
.drawer-sub:hover { color: var(--gold); border-left-color: var(--gold); }
.drawer-sub:first-of-type { margin-top: 0.6rem; }
.mobile-drawer .mobile-cta { display: inline-block; margin-top: 2rem; align-self: flex-start; font-family: 'Cinzel', serif; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; padding: 1rem 2.5rem; background: var(--crimson); color: var(--white); text-decoration: none; }
.mobile-close-btn { position: absolute; top: 1.5rem; right: 2rem; background: none; border: none; color: var(--cream); font-size: 1.8rem; cursor: pointer; line-height: 1; }
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .mobile-menu-btn { display: block; background: none; border: 1px solid var(--border); color: var(--cream); padding: 0.4rem 0.8rem; font-family: 'Cinzel', serif; font-size: 0.65rem; letter-spacing: 0.12em; cursor: pointer; }
}

/* ── SECTIONS / COMPONENTS ── */
section { padding: 5rem 2rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label { font-family: 'Cinzel', serif; font-size: 0.65rem; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.75rem; }
.section-label::after { content:''; flex:1; max-width:60px; height:1px; background:var(--border); }
h2.section-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 300; line-height: 1.2; color: var(--white); margin-bottom: 1.5rem; }
h2.section-title em { font-style: italic; color: var(--gold-light); }
.section-intro { font-size: 1.1rem; color: var(--cream-dark); max-width: 680px; line-height: 1.8; }

.btn-primary { font-family: 'Cinzel', serif; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; padding: 1rem 2.2rem; background: var(--crimson); color: var(--white); text-decoration: none; transition: background 0.2s; display: inline-block; }
.btn-primary:hover { background: #b52a0a; }
.btn-secondary { font-family: 'Cinzel', serif; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; padding: 1rem 2.2rem; border: 1px solid var(--border); color: var(--cream); text-decoration: none; transition: border-color 0.2s, color 0.2s; display: inline-block; }
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

/* ── SUB-HERO (for inner pages) ── */
.subhero { background: var(--navy-mid); padding: 9rem 2rem 4rem; text-align: center; border-bottom: 1px solid var(--border); }
.subhero .section-label { justify-content: center; }
.subhero .section-label::after { display: none; }
.subhero .section-label::before { content:''; flex:1; max-width:60px; height:1px; background:var(--border); }
.subhero h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 300; line-height: 1.15; color: var(--white); margin: 0.5rem 0 1rem; }
.subhero h1 em { font-style: italic; color: var(--gold-light); }
.subhero p { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-style: italic; color: var(--cream-dark); max-width: 600px; margin: 0 auto; }

/* ── FOOTER ── */
footer { background: #161e0f; border-top: 1px solid var(--border); padding: 4rem 2rem 2rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand h3 { font-family: 'Cinzel', serif; font-size: 1rem; font-weight: 600; color: var(--gold); letter-spacing: 0.08em; margin-bottom: 0.5rem; }
.footer-brand .tagline { font-family: 'Cormorant Garamond', serif; font-size: 0.9rem; font-style: italic; color: var(--text-muted); margin-bottom: 1.25rem; }
.footer-brand p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }
.footer-col h4 { font-family: 'Cinzel', serif; font-size: 0.65rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul a { font-size: 0.88rem; color: var(--text-muted); text-decoration: none; }
.footer-col ul a:hover { color: var(--cream); }
.footer-bottom { border-top: 1px solid rgba(217,177,102,0.12); padding-top: 2rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.8rem; color: var(--text-muted); font-family: 'Cinzel', serif; letter-spacing: 0.08em; }
.newsletter-form { display: flex; gap: 0; margin-top: 1rem; }
.newsletter-form input { padding: 0.6rem 1rem; background: var(--navy-mid); border: 1px solid var(--border); border-right: none; color: var(--cream); font-family: 'EB Garamond', serif; font-size: 0.9rem; outline: none; flex: 1; min-width: 0; }
.newsletter-form button { padding: 0.6rem 1.1rem; background: var(--gold); border: none; font-family: 'Cinzel', serif; font-size: 0.6rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy); cursor: pointer; white-space: nowrap; }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── PAGE LAYOUT BLOCKS ── */
.block { padding: 4rem 2rem; }
.block:nth-child(even) { background: var(--navy-mid); }
.block .section-inner { max-width: 1100px; margin: 0 auto; }

/* ── COMPONENTS REUSED ACROSS PAGES ── */
.cost-card { padding: 3rem; border: 1px solid var(--border); background: rgba(217,177,102,0.04); margin-top: 2rem; }
.cost-figure { font-family: 'Cormorant Garamond', serif; font-size: 4rem; font-weight: 300; color: var(--gold-light); line-height: 1; }
.cost-figure small { font-size: 1rem; color: var(--text-muted); font-family: 'Cinzel', serif; letter-spacing: 0.2em; text-transform: uppercase; display: block; margin-top: 0.5rem; }
.cost-details { margin-top: 2rem; }
.cost-row { display: flex; justify-content: space-between; padding: 1rem 0; border-bottom: 1px solid rgba(217,177,102,0.12); font-size: 1rem; }
.cost-row:last-child { border-bottom: none; }
.cost-row .label { color: var(--cream-dark); }
.cost-row .value { color: var(--gold-light); font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 1.1rem; }

.timeline { margin-top: 3rem; position: relative; }
.timeline::before { content: ''; position: absolute; left: 19px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding-left: 60px; padding-bottom: 2.5rem; }
.timeline-item::before { content: ''; position: absolute; left: 11px; top: 8px; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); border: 3px solid var(--navy); }
.timeline-item h4 { font-family: 'Cinzel', serif; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; }
.timeline-item h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 500; color: var(--white); margin-bottom: 0.5rem; }
.timeline-item p { color: var(--cream-dark); line-height: 1.7; font-size: 0.95rem; }

.events-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-top: 3rem; }
.event-card { padding: 2rem; border: 1px solid var(--border); background: rgba(217,177,102,0.03); }
.event-date { font-family: 'Cinzel', serif; font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.75rem; }
.event-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; color: var(--white); margin-bottom: 0.75rem; }
.event-card p { color: var(--cream-dark); line-height: 1.7; font-size: 0.95rem; }
.event-card a { display: inline-block; margin-top: 1rem; font-family: 'Cinzel', serif; font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--border); padding-bottom: 2px; }

.form-card { background: var(--navy-mid); border: 1px solid var(--border); padding: 3rem; max-width: 680px; margin: 3rem auto 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-family: 'Cinzel', serif; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.4rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.75rem 1rem; background: var(--navy); border: 1px solid var(--border); color: var(--cream); font-family: 'EB Garamond', serif; font-size: 1rem; outline: none; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { min-height: 100px; resize: vertical; }
.form-submit { width: 100%; padding: 1rem; background: var(--crimson); color: var(--white); border: none; font-family: 'Cinzel', serif; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; cursor: pointer; margin-top: 1rem; }
.form-submit:hover { background: #b52a0a; }

@media (max-width: 900px) {
  .events-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ── HOME PAGE ── */
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: var(--navy) linear-gradient(160deg, #1e2a14 0%, #2a3820 100%); /* Hero background image is uploaded via WP Media Library and applied through page settings; static-site base64 background omitted intentionally. */ }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(160deg,rgba(30,42,20,0.45) 0%,rgba(42,56,32,0.35) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 860px; padding: 2rem; }
.hero-crest { width: 120px; height: auto; margin: 0 auto 1.5rem; display: block; filter: drop-shadow(0 4px 24px rgba(0,0,0,0.5)); }
.hero-pretitle { font-family: 'Cinzel', serif; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.5rem; display: flex; align-items: center; gap: 1rem; justify-content: center; }
.hero-pretitle::before, .hero-pretitle::after { content: ''; display: block; width: 40px; height: 1px; background: var(--gold); }
.hero h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.8rem, 6vw, 5.2rem); font-weight: 300; line-height: 1.1; color: var(--white); margin-bottom: 0.5rem; letter-spacing: -0.01em; text-shadow: 0 2px 20px rgba(0,0,0,0.4); }
.hero h1 em { font-style: italic; color: var(--gold-light); display: block; }
.hero-tagline { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; font-style: italic; color: var(--white); max-width: 560px; margin: 2rem auto 2.5rem; line-height: 1.6; text-shadow: 0 2px 10px rgba(0,0,0,0.4); }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 3rem; border: 1px solid var(--border); }
.faq-item { display: grid; grid-template-columns: 280px 1fr; gap: 0; border-top: 1px solid var(--border); border-right: 1px solid var(--border); margin-top: -1px; margin-right: -1px; }
.faq-question { padding: 2.5rem; border-right: 1px solid var(--border); background: var(--navy-mid); }
.faq-question h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; font-weight: 500; font-style: italic; color: var(--gold-light); line-height: 1.4; }
.faq-answer { padding: 2.5rem; }
.faq-answer p { font-size: 1rem; color: var(--cream-dark); line-height: 1.8; }
.faq-answer a { display: inline-block; margin-top: 1rem; font-family: 'Cinzel', serif; font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--border); padding-bottom: 2px; }
.faq-answer a:hover { border-color: var(--gold); }

.testimonials { background: linear-gradient(160deg, #1e2a14 0%, #2a3820 100%); }
.testimonials-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-top: 3rem; }
.testimonial-card { padding: 2.5rem; border: 1px solid var(--border); background: rgba(255,255,255,0.02); position: relative; }
.testimonial-card::before { content: '\201C'; position: absolute; top: 1rem; left: 2rem; font-family: 'Cormorant Garamond', serif; font-size: 5rem; line-height: 1; color: rgba(217,177,102,0.15); }
.testimonial-card blockquote { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-style: italic; color: var(--cream); line-height: 1.8; margin-bottom: 1.5rem; padding-top: 1rem; }
.testimonial-card cite { font-family: 'Cinzel', serif; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-style: normal; display: block; }
.testimonial-card small { display: block; font-size: 0.85rem; color: var(--text-muted); margin-top: 0.2rem; font-family: 'EB Garamond', serif; letter-spacing: 0; text-transform: none; }

.joinus { background: var(--navy-mid); }
.joinus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); margin-top: 3rem; border: 1px solid var(--border); }
.joinus-card { background: var(--navy); padding: 2.5rem 2rem; text-decoration: none; color: inherit; transition: background 0.3s; }
.joinus-card:hover { background: var(--navy-light); }
.joinus-icon { font-size: 2.5rem; color: var(--gold); margin-bottom: 1rem; }
.joinus-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 500; color: var(--white); margin-bottom: 0.75rem; }
.joinus-card p { font-size: 0.95rem; color: var(--cream-dark); line-height: 1.7; margin-bottom: 1rem; }
.joinus-card .arrow { font-family: 'Cinzel', serif; font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }

.contact-cta { background: var(--navy); text-align: center; border-top: 1px solid var(--border); }
.contact-cta h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 300; color: var(--white); margin-bottom: 1rem; }
.contact-cta h2 em { font-style: italic; color: var(--gold-light); }
.contact-cta p { color: var(--cream-dark); max-width: 600px; margin: 0 auto 2.5rem; }
.contact-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; max-width: 800px; margin: 3rem auto 0; }
.contact-item .label { font-family: 'Cinzel', serif; font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.4rem; }
.contact-item .value { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; color: var(--cream); }
.contact-item .value a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--border); }
.contact-item .value a:hover { border-color: var(--gold); color: var(--gold); }

@media (max-width: 900px) {
  .faq-grid, .testimonials-grid, .joinus-grid, .contact-details { grid-template-columns: 1fr; }
  .faq-item { grid-template-columns: 1fr; }
  .faq-question { border-right: none; border-bottom: 1px solid var(--border); }
}

/* ── WORDPRESS-SPECIFIC ── */
/* Push fixed nav below the WP admin bar when an admin is logged in */
body.admin-bar nav { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar nav { top: 46px; } }
/* WP image alignment classes */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin: 0 auto 1em; }
/* Default page wrapper — pages without a custom template */
.default-page-wrap { padding: 9rem 2rem 5rem; max-width: 900px; margin: 0 auto; }
.default-page-wrap h1 { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(2rem, 4vw, 3rem); color: var(--white); margin-bottom: 2rem; }
.default-page-wrap p { color: var(--cream-dark); margin-bottom: 1.25rem; }
