/*
==========================================================================
ASSEMBLIES OF CHRIST — SHARED SITE STYLES
==========================================================================

The homepage redesign uses the home-* classes below. Study pages continue to
use Tailwind and /assets/css/studies.css, so their structure remains unchanged.
*/

/* OPTIONAL DARK THEME — leave disabled unless intentionally enabling it. */
/*
@import url("/assets/css/dark-theme.css");
*/

:root {
    --color-maroon-950: #3a0c04;
    --color-maroon-900: #5e2f27;
    --color-maroon-800: #72362b;
    --color-maroon-700: #8b4030;
    --color-maroon-200: #f0d0c2;
    --color-maroon-100: #f8e8e0;
    --color-maroon-50: #fdf6f3;
    --color-cream-100: #f9f5eb;
    --color-cream-50: #fdfbf7;

    --font-sans: Inter, system-ui, sans-serif;
    --font-serif: Merriweather, Georgia, serif;

    --home-navy: #17324d;
    --home-navy-soft: #294a66;
    --home-gold: #b77912;
    --home-gold-dark: #8e5d0b;
    --home-ink: #2d3741;
    --home-muted: #69737d;
    --home-paper: #fbfaf6;
    --home-paper-warm: #f7f3ea;
    --home-surface: #fffdf8;
    --home-line: #e6dcc8;
    --home-serif: "Cormorant Garamond", Georgia, serif;
}

html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: clip; }
*, *::before, *::after { box-sizing: border-box; }
img, svg, video, iframe { max-width: 100%; }

/* Homepage foundation */
.home-page {
    margin: 0;
    background: var(--home-paper);
    color: var(--home-ink);
    font-family: Inter, system-ui, sans-serif;
    line-height: 1.65;
}
.home-page a { color: inherit; }
.home-shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.home-screen-reader-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.home-skip-link {
    position: fixed; z-index: 100; left: 18px; top: 12px; transform: translateY(-150%);
    background: var(--home-navy); color: white; padding: 10px 14px; border-radius: 4px;
}
.home-skip-link:focus { transform: translateY(0); }

/* Header */
.home-header { background: rgba(251, 250, 246, .96); border-bottom: 1px solid rgba(230, 220, 200, .55); }
.home-nav { min-height: 106px; display: flex; align-items: center; }
.home-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 42px; }
.home-brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.home-brand-name {
    color: var(--home-navy); font-family: var(--home-serif); font-size: clamp(1.75rem, 2.4vw, 2.25rem);
    font-weight: 600; letter-spacing: .025em; text-transform: uppercase;
}
.home-brand-tagline {
    color: var(--home-gold-dark); margin-top: 7px; font-family: Georgia, serif; font-size: .72rem;
    font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.home-desktop-nav { display: flex; align-items: center; gap: clamp(34px, 4.5vw, 62px); }
.home-desktop-nav a, .home-mobile-nav a {
    color: var(--home-navy); font-family: Georgia, serif; font-size: .82rem;
    font-weight: 600; letter-spacing: .045em; text-decoration: none; text-transform: uppercase;
}
.home-desktop-nav a { position: relative; padding: 14px 0; }
.home-desktop-nav a::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: 6px; height: 2px;
    background: var(--home-gold); transition: right .2s ease;
}
.home-desktop-nav a:hover::after, .home-desktop-nav a:focus-visible::after, .home-desktop-nav a.is-active::after { right: 0; }
.home-menu-button {
    display: none; width: 42px; height: 42px; padding: 8px; border: 1px solid var(--home-line);
    border-radius: 50%; color: var(--home-navy); background: transparent;
}
.home-menu-button svg { width: 100%; height: 100%; }
.home-mobile-nav { width: min(1180px, calc(100% - 48px)); margin: 0 auto 18px; padding: 12px 0 4px; border-top: 1px solid var(--home-line); }
.home-mobile-nav a { display: block; padding: 10px 2px; }

/* Hero */
.home-hero { background: linear-gradient(100deg, #fbfaf6 0%, #fbfaf6 54%, #f7f1e6 100%); border-bottom: 1px solid rgba(230, 220, 200, .55); }
.home-hero-grid { display: grid; grid-template-columns: minmax(0, .97fr) minmax(470px, 1.03fr); align-items: stretch; min-height: 510px; }
.home-hero-copy { align-self: center; padding: 64px 52px 70px 0; }
.home-hero h1 {
    color: var(--home-navy); margin: 0; font-family: var(--home-serif); font-size: clamp(3rem, 5.15vw, 4.8rem);
    font-weight: 600; line-height: .98; letter-spacing: -.025em; text-wrap: balance;
}
.home-accent-line { display: block; width: 38px; height: 2px; margin: 28px 0 24px; background: var(--home-gold); }
.home-hero-copy p { max-width: 580px; margin: 0; color: #44515c; font-family: Georgia, serif; font-size: 1.08rem; line-height: 1.8; }
.home-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }
.home-button {
    display: inline-flex; min-height: 47px; align-items: center; justify-content: center; padding: 11px 28px;
    border: 1px solid var(--home-gold); border-radius: 3px; font-family: Georgia, serif; font-size: .78rem;
    font-weight: 700; letter-spacing: .07em; text-decoration: none; text-transform: uppercase; transition: .2s ease;
}
.home-button-primary { background: var(--home-gold); color: white !important; box-shadow: 0 7px 18px rgba(142, 93, 11, .12); }
.home-button-primary:hover, .home-button-primary:focus-visible { background: var(--home-gold-dark); border-color: var(--home-gold-dark); transform: translateY(-1px); }
.home-button-secondary { background: transparent; color: var(--home-gold-dark) !important; }
.home-button-secondary:hover, .home-button-secondary:focus-visible { background: rgba(183, 121, 18, .07); }
.home-hero-visual { min-width: 0; margin: 0; overflow: hidden; position: relative; }
.home-hero-visual::before {
    content: ""; position: absolute; inset: 0 auto 0 0; width: 18%; z-index: 1;
    background: linear-gradient(90deg, var(--home-paper) 0%, rgba(251,250,246,0) 100%); pointer-events: none;
}
.home-hero-visual img { width: 100%; height: 100%; min-height: 510px; object-fit: cover; object-position: center; display: block; }

/* Shared headings */
.home-section-heading { text-align: center; margin-bottom: 34px; }
.home-section-heading h2 {
    margin: 0; color: var(--home-navy); font-family: Georgia, serif; font-size: .94rem;
    font-weight: 700; letter-spacing: .105em; text-transform: uppercase;
}
.home-section-heading span { display: block; width: 34px; height: 1px; margin: 9px auto 0; background: var(--home-gold); }

/* Study cards */
.home-studies { padding: 64px 0 58px; background: var(--home-paper); }
.home-study-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.home-study-card {
    display: grid; grid-template-columns: 72px 1fr; gap: 20px; align-items: start; min-height: 176px;
    padding: 28px; background: rgba(255, 253, 248, .7); border: 1px solid var(--home-line);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.home-study-card:hover { border-color: #d3bf98; box-shadow: 0 12px 28px rgba(35, 45, 55, .06); transform: translateY(-2px); }
.home-icon-circle {
    display: grid; place-items: center; width: 62px; height: 62px; border: 1px solid #d5aa5e;
    border-radius: 50%; color: var(--home-gold); flex: 0 0 auto;
}
.home-icon-circle svg { width: 34px; height: 34px; }
.home-study-card h3, .home-aim-item h3 { margin: 0; color: var(--home-navy); font-family: Georgia, serif; font-weight: 600; }
.home-study-card h3 { font-size: 1.08rem; line-height: 1.35; }
.home-study-card p { margin: 8px 0 16px; color: var(--home-muted); font-family: Georgia, serif; font-size: .87rem; line-height: 1.55; }
.home-study-card a, .home-card-note {
    color: var(--home-gold-dark); font-family: Georgia, serif; font-size: .73rem; font-weight: 700;
    letter-spacing: .05em; text-decoration: none; text-transform: uppercase;
}
.home-study-card a:hover, .home-study-card a:focus-visible { color: var(--home-navy); }
.home-study-card-muted { background: rgba(247, 243, 234, .52); }
.home-card-note { opacity: .72; }

/* Aim */
.home-aim { padding: 54px 0 60px; background: var(--home-paper-warm); border-block: 1px solid rgba(230, 220, 200, .62); }
.home-aim-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-aim-item { display: grid; grid-template-columns: 68px 1fr; gap: 22px; min-width: 0; padding: 0 34px; }
.home-aim-item + .home-aim-item { border-left: 1px solid var(--home-line); }
.home-aim-item:first-child { padding-left: 0; }
.home-aim-item:last-child { padding-right: 0; }
.home-icon-large { width: 58px; height: 58px; }
.home-icon-large svg { width: 31px; height: 31px; }
.home-aim-item h3 { font-size: 1rem; line-height: 1.4; }
.home-aim-item p { margin: 8px 0 0; color: #5d6872; font-family: Georgia, serif; font-size: .88rem; line-height: 1.65; }

/* Contact */
.home-contact { padding: 84px 0; background: var(--home-navy); color: #f9f6ee; }
.home-contact-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 82px; align-items: start; }
.home-eyebrow { color: #e0b75f; font-family: Georgia, serif; font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.home-contact-copy h2 { margin: 10px 0 18px; color: white; font-family: var(--home-serif); font-size: clamp(2.5rem, 4vw, 3.8rem); font-weight: 600; line-height: 1; }
.home-contact-copy p { max-width: 430px; margin: 0; color: #cfdae2; font-family: Georgia, serif; line-height: 1.75; }
.home-contact-form { display: grid; gap: 18px; }
.home-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.home-contact-form label { display: block; margin-bottom: 7px; color: #dae2e8; font-size: .76rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.home-contact-form input, .home-contact-form textarea {
    width: 100%; border: 1px solid #587087; border-radius: 2px; background: #203d57; color: white;
    padding: 12px 13px; font: inherit; outline: none; transition: border-color .2s ease, box-shadow .2s ease;
}
.home-contact-form input:focus, .home-contact-form textarea:focus { border-color: #e0b75f; box-shadow: 0 0 0 3px rgba(224, 183, 95, .14); }
.home-contact-form textarea { resize: vertical; min-height: 135px; }
.home-contact-form .home-button { justify-self: start; cursor: pointer; }

/* Footer */
.home-footer { padding: 30px 0 34px; background: var(--home-paper); border-top: 1px solid var(--home-line); }
.home-footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.home-footer-brand { color: var(--home-navy); font-family: var(--home-serif); font-size: 1.25rem; font-weight: 600; text-decoration: none; }
.home-footer-links { display: flex; gap: 26px; }
.home-footer-links a { color: var(--home-navy); font-family: Georgia, serif; font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-decoration: none; text-transform: uppercase; }
.home-footer-inner p { justify-self: end; margin: 0; color: var(--home-muted); font-size: .72rem; }

/* Existing shared helpers retained for current and future pages */
.site-tagline, .site-introduction, .studies-introduction, .contact-introduction, .footer-tagline, .footer-mission { text-wrap: balance; }
.featured-study, .study-card { min-width: 0; }
.google-form-container { min-height: 948px; }
.google-form-container iframe { display: block; width: 100%; min-height: 948px; border: 0; }

/* Keyboard focus */
.home-page a:focus-visible, .home-page button:focus-visible, .home-page input:focus-visible, .home-page textarea:focus-visible { outline: 2px solid #e0b75f; outline-offset: 3px; }

@media (max-width: 980px) {
    .home-shell { width: min(100% - 36px, 860px); }
    .home-nav { min-height: 90px; }
    .home-desktop-nav { display: none; }
    .home-menu-button { display: inline-grid; place-items: center; }
    .home-mobile-nav { display: block; }
    .home-mobile-nav.hidden { display: none; }
    .home-hero-grid { grid-template-columns: 1fr; }
    .home-hero-copy { padding: 58px 0 34px; text-align: center; }
    .home-hero-copy p { margin-inline: auto; }
    .home-accent-line { margin-inline: auto; }
    .home-actions { justify-content: center; }
    .home-hero-visual { height: 420px; }
    .home-hero-visual::before { inset: 0 0 auto; width: 100%; height: 16%; background: linear-gradient(180deg, var(--home-paper) 0%, rgba(251,250,246,0) 100%); }
    .home-hero-visual img { min-height: 420px; }
    .home-study-grid { grid-template-columns: 1fr; }
    .home-study-card { min-height: 0; }
    .home-aim-grid { grid-template-columns: 1fr; gap: 28px; }
    .home-aim-item, .home-aim-item:first-child, .home-aim-item:last-child { padding: 0; }
    .home-aim-item + .home-aim-item { border-left: 0; border-top: 1px solid var(--home-line); padding-top: 28px; }
    .home-contact-grid { grid-template-columns: 1fr; gap: 42px; }
    .home-footer-inner { grid-template-columns: 1fr; text-align: center; }
    .home-footer-links { justify-content: center; flex-wrap: wrap; }
    .home-footer-inner p { justify-self: center; }
}

@media (max-width: 640px) {
    .home-shell, .home-mobile-nav { width: min(100% - 28px, 600px); }
    .home-nav { min-height: 82px; }
    .home-brand-name { font-size: 1.55rem; }
    .home-brand-tagline { max-width: 230px; font-size: .61rem; line-height: 1.35; }
    .home-hero-copy { padding-top: 46px; }
    .home-hero h1 { font-size: clamp(2.55rem, 13vw, 3.45rem); }
    .home-hero-copy p { font-size: 1rem; line-height: 1.7; }
    .home-actions { flex-direction: column; }
    .home-button { width: 100%; }
    .home-hero-visual { height: 310px; }
    .home-hero-visual img { min-height: 310px; object-position: 64% center; }
    .home-studies, .home-aim { padding-block: 48px; }
    .home-study-card { grid-template-columns: 1fr; padding: 24px; }
    .home-icon-circle { width: 56px; height: 56px; }
    .home-aim-item { grid-template-columns: 58px 1fr; gap: 16px; }
    .home-form-row { grid-template-columns: 1fr; }
    .home-contact { padding-block: 62px; }
}

/* ========================================================================
   MULTIPAGE NAVIGATION, STUDIES DIRECTORY, AND CONTACT PAGE
   Added so Home, Bible Studies, and Contact each have a trackable pathname.
   ======================================================================== */
.home-contact-cta { padding: 64px 0; background: var(--home-navy); color: #f9f6ee; }
.home-contact-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 52px; }
.home-contact-cta h2 { max-width: 720px; margin: 8px 0 10px; color: white; font-family: var(--home-serif); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 600; line-height: 1.05; }
.home-contact-cta p { max-width: 760px; margin: 0; color: #cfdae2; font-family: Georgia, serif; line-height: 1.7; }
.home-contact-cta .home-button { flex: 0 0 auto; }

.internal-page { min-height: 100vh; }
.internal-hero { padding: 88px 0 82px; background: linear-gradient(115deg, var(--home-paper) 0%, var(--home-paper) 57%, #f3ead9 100%); border-bottom: 1px solid var(--home-line); }
.internal-hero-compact { padding-block: 78px 72px; }
.internal-hero-inner { max-width: 860px; text-align: center; }
.internal-hero h1 { margin: 10px 0 20px; color: var(--home-navy); font-family: var(--home-serif); font-size: clamp(3rem, 6vw, 5rem); font-weight: 600; line-height: .98; letter-spacing: -.025em; text-wrap: balance; }
.internal-hero p { max-width: 720px; margin: 0 auto; color: #4e5a64; font-family: Georgia, serif; font-size: 1.08rem; line-height: 1.8; }
.internal-section { padding: 72px 0 82px; background: var(--home-paper); }
.internal-heading { margin-bottom: 42px; }

.library-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.library-card { min-width: 0; padding: 38px; background: var(--home-surface); border: 1px solid var(--home-line); box-shadow: 0 14px 36px rgba(35,45,55,.045); }
.library-card-featured { border-top: 3px solid var(--home-gold); }
.library-card-icon { display: grid; width: 64px; height: 64px; place-items: center; margin-bottom: 26px; color: var(--home-gold); border: 1px solid #d5aa5e; border-radius: 50%; }
.library-card-icon svg { width: 34px; height: 34px; }
.library-kicker { color: var(--home-gold-dark); font-family: Georgia, serif; font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.library-card h2 { margin: 9px 0 15px; color: var(--home-navy); font-family: var(--home-serif); font-size: clamp(2rem, 3.2vw, 2.8rem); font-weight: 600; line-height: 1.04; }
.library-card p { margin: 0 0 24px; color: #5c6872; font-family: Georgia, serif; line-height: 1.72; }
.library-link { color: var(--home-gold-dark) !important; font-family: Georgia, serif; font-size: .76rem; font-weight: 700; letter-spacing: .055em; text-decoration: none; text-transform: uppercase; }
.library-link:hover, .library-link:focus-visible { color: var(--home-navy) !important; }
.library-note-section { padding: 58px 0; background: var(--home-paper-warm); border-block: 1px solid var(--home-line); }
.library-note { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.library-note h2 { margin: 8px 0 8px; color: var(--home-navy); font-family: var(--home-serif); font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; line-height: 1.05; }
.library-note p { max-width: 740px; margin: 0; color: #5c6872; font-family: Georgia, serif; line-height: 1.7; }
.library-note .home-button { flex: 0 0 auto; }

.contact-page-section { padding: 76px 0 88px; background: var(--home-paper); }
.contact-page-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 82px; align-items: start; }
.contact-page-intro h2 { margin: 0 0 15px; color: var(--home-navy); font-family: var(--home-serif); font-size: clamp(2.2rem, 4vw, 3.3rem); font-weight: 600; line-height: 1.05; }
.contact-page-intro > p { margin: 0; color: #5a6670; font-family: Georgia, serif; line-height: 1.8; }
.contact-page-note { margin-top: 30px; padding: 22px; background: var(--home-paper-warm); border-left: 3px solid var(--home-gold); }
.contact-page-note strong { color: var(--home-navy); font-family: Georgia, serif; }
.contact-page-note p { margin: 7px 0 0; color: #59656f; font-size: .92rem; line-height: 1.6; }
.contact-page-note code { padding: .1em .3em; background: rgba(23,50,77,.07); border-radius: 3px; color: var(--home-navy); }
.contact-page-form { display: grid; gap: 19px; padding: 38px; background: var(--home-navy); box-shadow: 0 18px 42px rgba(23,50,77,.13); }
.contact-page-form label { display: block; margin-bottom: 7px; color: #dae2e8; font-size: .76rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.contact-page-form input, .contact-page-form textarea { width: 100%; padding: 13px 14px; border: 1px solid #587087; border-radius: 2px; background: #203d57; color: white; font: inherit; outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.contact-page-form input:focus, .contact-page-form textarea:focus { border-color: #e0b75f; box-shadow: 0 0 0 3px rgba(224,183,95,.14); }
.contact-page-form textarea { min-height: 180px; resize: vertical; }
.contact-page-form .home-button { justify-self: start; cursor: pointer; }

@media (max-width: 980px) {
    .home-contact-cta-inner, .library-note { align-items: flex-start; flex-direction: column; }
    .library-grid { grid-template-columns: 1fr; }
    .contact-page-grid { grid-template-columns: 1fr; gap: 42px; }
}

@media (max-width: 640px) {
    .home-contact-cta, .internal-section, .contact-page-section { padding-block: 54px; }
    .internal-hero, .internal-hero-compact { padding-block: 58px 52px; }
    .internal-hero h1 { font-size: clamp(2.7rem, 14vw, 3.7rem); }
    .library-card, .contact-page-form { padding: 26px; }
    .home-contact-cta .home-button, .library-note .home-button, .contact-page-form .home-button { width: 100%; }
}



/* ========================================================================
   BRAND WORDMARK REFINEMENT
   Keeps the connecting word “of” quieter without changing the site name.
   ======================================================================== */
.brand-of {
    display: inline-block;
    font-size: .62em;
    font-weight: 600;
    letter-spacing: .035em;
    line-height: 1;
    position: relative;
    top: -.08em;
}

.home-footer-brand .brand-of { font-size: .66em; }
