/**
 * Bishop Stang High School — Base Typography
 * Add to child theme style.css or Divi > Theme Options > Custom CSS
 *
 * Fonts: Playfair Display (headings) + Source Sans 3 (body/UI)
 * Google Fonts import is handled by the header plugin.
 * This file sets sizing, weight, and line-height only.
 * Colors are intentionally omitted — set per section as needed.
 */

/* =============================================
   BASE BODY TYPOGRAPHY
============================================= */
body,
.et_pb_text,
.et_pb_module {
    font-family: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

p {
    font-family: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
}

/* =============================================
   HEADINGS — Playfair Display
============================================= */
h1, h2, h3, h4, h5, h6,
.et_pb_text h1,
.et_pb_text h2,
.et_pb_text h3,
.et_pb_text h4,
.et_pb_text h5,
.et_pb_text h6 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: 0.5em;
}

h1, .et_pb_text h1 {
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

h2, .et_pb_text h2 {
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.1;
}

h3, .et_pb_text h3 {
    font-size: clamp(22px, 3vw, 34px);
    line-height: 1.15;
}

h4, .et_pb_text h4 {
    font-size: clamp(18px, 2.5vw, 26px);
    line-height: 1.2;
}

h5, .et_pb_text h5 {
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.3;
}

h6, .et_pb_text h6 {
    font-size: 16px;
    line-height: 1.4;
    letter-spacing: 0.02em;
}

/* =============================================
   ITALIC HEADINGS — used in mockup overlays
   eg. card headlines, spotlight titles
============================================= */
h1 em, h2 em, h3 em,
.et_pb_text h1 em,
.et_pb_text h2 em,
.et_pb_text h3 em {
    font-style: italic;
    font-weight: 700;
}

/* =============================================
   LEAD / INTRO PARAGRAPH
   Slightly larger body text for section intros
============================================= */
.lead,
.et_pb_text .lead {
    font-family: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
    font-size: clamp(17px, 2vw, 22px);
    font-weight: 400;
    line-height: 1.65;
}

/* =============================================
   EYEBROW / LABEL TEXT
   Small all-caps labels used above headings
============================================= */
.eyebrow,
.section-label,
.et_pb_text .eyebrow {
    font-family: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    line-height: 1;
    display: block;
    margin-bottom: 12px;
}

/* =============================================
   UI TEXT — nav, buttons, labels, badges
============================================= */
.ui-text,
button,
.et_pb_button {
    font-family: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
    letter-spacing: 0.04em;
}

/* =============================================
   LINKS
   Color intentionally omitted — set per section
============================================= */
a {
    font-family: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    text-decoration: none;
}

/* =============================================
   BLOCKQUOTE
============================================= */
blockquote,
.et_pb_text blockquote {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 400;
    line-height: 1.5;
    border-left: 3px solid #a80532;
    padding-left: 24px;
    margin: 1.5em 0;
}

/* =============================================
   LISTS
============================================= */
ul, ol {
    font-family: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    padding-left: 1.5em;
}

li {
    margin-bottom: 0.4em;
}

/* =============================================
   CAPTIONS / SMALL TEXT
============================================= */
small,
.caption,
figcaption {
    font-family: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.02em;
}

/* =============================================
   UTILITY CLASSES
   Use these as CSS Class on any Divi module
============================================= */

/**
 * bs-eyebrow
 * The line + text element used in hero sections
 * e.g. "— North Dartmouth, Massachusetts · Est. 1959"
 * Works on both light and dark backgrounds
 * Color set via Divi text color setting or inline
 */
.bs-eyebrow {
    font-family: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    line-height: 1;
}

.bs-eyebrow::before {
    content: '';
    display: block;
    width: 28px;
    height: 1px;
    background: currentColor;
    opacity: 0.45;
    flex-shrink: 0;
}

/**
 * bs-section-label
 * Small all-caps maroon label used above section headings
 * e.g. "Life at Stang", "Explore Stang", "Why Bishop Stang"
 * Color is maroon by default — override with Divi color setting
 */
.bs-section-label {
    font-family: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #a80532;
    display: block;
    margin-bottom: 12px;
    line-height: 1;
}

/**
 * bs-kicker
 * Slightly smaller accent label — used in card contexts
 * e.g. "Student Spotlight", "Start Here"
 */
.bs-kicker {
    font-family: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #a80532;
    display: block;
    margin-bottom: 10px;
    line-height: 1;
}
@media (max-width: 768px) {
    body,
    .et_pb_text,
    p {
        font-size: 15px;
    }

    ul, ol {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    body,
    .et_pb_text,
    p {
        font-size: 15px;
        line-height: 1.65;
    }
}
/* =============================================
   BASE BUTTON
   All buttons share this foundation
============================================= */
.bs-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 14px 30px !important;
    font-family: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    border-radius: 2px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    border: 1px solid transparent !important;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease !important;
    -webkit-font-smoothing: antialiased !important;
    position: relative !important;
}
 
.bs-btn:hover {
    text-decoration: none !important;
    transform: translateY(-2px) !important;
}
 
.bs-btn:active {
    transform: translateY(0) !important;
}
 
/* Optional icon inside button */
.bs-btn i,
.bs-btn svg {
    font-size: 13px !important;
    flex-shrink: 0 !important;
    transition: transform 0.2s ease !important;
}
 
.bs-btn:hover i {
    transform: translateX(2px) !important;
}
 
/* =============================================
   VARIANT 1: MAROON FILLED
   Use on: white/light/off-white backgrounds
   e.g. "Visit Campus" on white section
============================================= */
.bs-btn-maroon {
    background: #a80532 !important;
    color: #ffffff !important;
    border-color: #a80532 !important;
    box-shadow: 0 2px 8px rgba(168, 5, 50, 0.22) !important;
}
 
.bs-btn-maroon:hover {
    background: #7a0025 !important;
    border-color: #7a0025 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(168, 5, 50, 0.32) !important;
}
 
/* =============================================
   VARIANT 2: WHITE FILLED
   Use on: maroon/dark/colored backgrounds
   e.g. "Apply for Admission" on maroon CTA section
============================================= */
.bs-btn-white {
    background: #ffffff !important;
    color: #a80532 !important;
    border-color: #ffffff !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12) !important;
}
 
.bs-btn-white:hover {
    background: #f0eaec !important;
    border-color: #f0eaec !important;
    color: #7a0025 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18) !important;
}
 
/* =============================================
   VARIANT 3: DARK OUTLINE
   Use on: white/light backgrounds as secondary button
   e.g. "Explore Student Life" alongside a filled button
============================================= */
.bs-btn-outline-dark {
    background: transparent !important;
    color: #1a1a1a !important;
    border-color: #e8e0e2 !important;
}
 
.bs-btn-outline-dark:hover {
    background: #f9f7f8 !important;
    border-color: #a80532 !important;
    color: #a80532 !important;
}
 
/* =============================================
   VARIANT 4: WHITE OUTLINE (GHOST)
   Use on: dark/maroon/hero backgrounds as secondary button
   e.g. "Schedule a Visit" over hero image
============================================= */
.bs-btn-outline-white {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.88) !important;
    border-color: rgba(255, 255, 255, 0.38) !important;
    font-weight: 500 !important;
}
 
.bs-btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.10) !important;
    border-color: rgba(255, 255, 255, 0.65) !important;
    color: #ffffff !important;
}
 
/* =============================================
   VARIANT 5: MAROON OUTLINE
   Use on: white/light backgrounds as secondary button
   when you want the maroon color on both buttons
   e.g. two maroon buttons side by side
============================================= */
.bs-btn-outline-maroon {
    background: transparent !important;
    color: #a80532 !important;
    border-color: #a80532 !important;
}
 
.bs-btn-outline-maroon:hover {
    background: #a80532 !important;
    color: #ffffff !important;
    border-color: #a80532 !important;
}
 
/* =============================================
   SIZE MODIFIERS
   Optional — add alongside variant class
============================================= */
 
/* Smaller — for compact spaces, cards, banners */
.bs-btn-sm {
    padding: 10px 20px !important;
    font-size: 11px !important;
    letter-spacing: 0.1em !important;
}
 
/* Larger — for hero sections, major CTAs */
.bs-btn-lg {
    padding: 18px 40px !important;
    font-size: 13px !important;
}
 
/* Full width — stacks in narrow columns */
.bs-btn-full {
    width: 100% !important;
    justify-content: center !important;
}
 
/* =============================================
   BUTTON GROUP
   Wraps two or more buttons inline
   Stacks vertically on mobile
============================================= */
.bs-button-group {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    flex-wrap: wrap !important;
}
 
/* Vertical stack variant */
.bs-button-group--vertical {
    flex-direction: column !important;
    align-items: flex-start !important;
}
 
/* Center aligned group */
.bs-button-group--center {
    justify-content: center !important;
}
 
/* =============================================
   DIVI BUTTON MODULE OVERRIDE
   Forces Divi's .et_pb_button to match
   our button system when used via Divi module
============================================= */
.et_pb_button {
    font-family: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    border-radius: 2px !important;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease !important;
    padding: 14px 30px !important;
}
 
.et_pb_button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}
 
/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 600px) {
    .bs-button-group {
        gap: 10px !important;
    }
 
    /* Stack buttons vertically on very small screens */
    .bs-button-group--stack-mobile {
        flex-direction: column !important;
        align-items: stretch !important;
    }
 
    .bs-button-group--stack-mobile .bs-btn {
        text-align: center !important;
        justify-content: center !important;
    }
}

/* =============================================
   ACTION BAND
============================================= */
.bs-action-band {
    background: #a80532;
    padding: 22px 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.bs-action-band-text {
    font-size: 15px;
    color: rgba(255,255,255,0.78);
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.bs-action-band-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .bs-action-band {
        padding: 20px 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .bs-action-band-btns {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .bs-action-band { padding: 20px 16px; }
    .bs-action-band-btns { flex-direction: column; }
    .bs-action-band-btns .bs-btn { justify-content: center; }
}

/* =============================================
   HERO HEADING — .bs-h1
   Large fluid heading for hero/inner page titles
   Use in Divi: Advanced → CSS Class → bs-h1
============================================= */
.bs-h1,
.bs-h1 h1,
.et_pb_text .bs-h1 h1 {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: clamp(36px, 6vw, 70px) !important;
    line-height: 1.06 !important;
    font-weight: 700 !important;
    letter-spacing: -0.03em !important;
    text-wrap: balance !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    max-width: 100% !important;
}

/* =============================================
   IMAGE OVERLAY CARD
   White card with maroon left border
   sits over bottom-left of a photo
   Use: position the parent as relative,
   drop this inside as absolute
   .bs-photo-card — the card itself
============================================= */
.bs-story-photo {
    position: relative;
    min-height: 440px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.bs-photo-card {
    position: absolute;
    left: 28px;
    bottom: 28px;
    background: rgba(255, 255, 255, 0.94);
    padding: 22px 24px;
    max-width: 310px;
    border-left: 4px solid #a80532;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
    z-index: 2;
}

.bs-photo-card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.bs-photo-card-text {
    font-size: 13px;
    color: #6d6e71;
    line-height: 1.55;
}

@media (max-width: 768px) {
    .bs-story-photo {
        min-height: 320px;
    }

    .bs-photo-card {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
    }
}

/* =============================================
   PHOTO COLLAGE BLOCK
   Self-contained — drop in a Code module
============================================= */
.bs-collage-block {
    padding: 110px 64px;
    background: #fff;
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 52px;
    align-items: center;
}

.bs-collage-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.bs-collage-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(28px, 3.5vw, 46px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #1a1a1a;
    margin: 12px 0 18px 0;
    text-wrap: balance;
}

.bs-collage-text {
    font-size: 17px;
    line-height: 1.75;
    color: #5f5f5f;
    max-width: 420px;
    margin-bottom: 14px;
}

/* Three photo grid */
.bs-collage-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    grid-template-rows: 230px 230px;
    gap: 16px;
}

.bs-collage-tile {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

/* Subtle dark overlay on each tile */
.bs-collage-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(80,0,20,0.22));
    pointer-events: none;
}

/* Large tile spans both rows */
.bs-collage-tile--large {
    grid-row: span 2;
}

/* Responsive */
@media (max-width: 1024px) {
    .bs-collage-block {
        grid-template-columns: 1fr;
        padding: 64px 24px;
        gap: 36px;
    }

    .bs-collage-grid {
        grid-template-rows: 200px 200px;
    }

    .bs-collage-text {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .bs-collage-block {
        padding: 48px 16px;
    }

    .bs-collage-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 160px 160px;
        gap: 10px;
    }
}

/* =============================================
   CLEAR PATH — PROCESS STEPS
============================================= */
.bs-process-list {
    display: grid;
    gap: 14px;
    counter-reset: bs-process;
}

.bs-process-item {
    counter-increment: bs-process;
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 24px;
    padding: 26px;
    border: 1px solid #e8e0e2;
    background: #fff;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.bs-process-item:hover {
    transform: translateY(-2px);
    border-color: rgba(168,5,50,0.26);
}

.bs-process-num {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #a80532;
    color: #fff;
    display: grid;
    place-items: center;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    flex-shrink: 0;
}

.bs-process-num::before {
    content: counter(bs-process, decimal-leading-zero);
}

.bs-process-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    line-height: 1.15;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.bs-process-text {
    font-size: 15px;
    color: #6d6e71;
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 600px) {
    .bs-process-item {
        grid-template-columns: 52px 1fr;
        gap: 16px;
        padding: 20px;
    }

    .bs-process-num {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .bs-process-title { font-size: 18px; }
}

/* =============================================
   FAQ ACCORDION
============================================= */
.bs-faq {
    display: grid;
    gap: 12px;
    margin-top: 30px;
}

.bs-faq-item {
    border: 1px solid #e8e0e2;
    background: #fff;
    transition: border-color 0.2s ease;
}

.bs-faq-item--open {
    border-color: rgba(168,5,50,0.28);
}

.bs-faq-btn {
    width: 100%;
    border: none !important;
    background: transparent !important;
    padding: 22px 24px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 20px !important;
    cursor: pointer !important;
    text-align: left !important;
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 20px !important;
    color: #1a1a1a !important;
    transition: color 0.2s ease !important;
    box-shadow: none !important;
}

.bs-faq-btn:hover {
    color: #a80532 !important;
}

.bs-faq-icon {
    color: #a80532;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 26px;
    font-weight: 300;
    flex-shrink: 0;
    transition: transform 0.25s ease;
    display: inline-block;
}

.bs-faq-item--open .bs-faq-icon {
    transform: rotate(45deg);
}

.bs-faq-content {
    color: #6d6e71;
    font-size: 16px;
    line-height: 1.7;
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.bs-faq-item--open .bs-faq-content {
    max-height: 600px;
    padding: 0 24px 24px;
}

@media (max-width: 600px) {
    .bs-faq-btn {
        font-size: 17px !important;
        padding: 18px 18px !important;
    }

    .bs-faq-content {
        font-size: 15px;
    }

    .bs-faq-item--open .bs-faq-content {
        padding: 0 18px 20px;
    }
}


/* Reveal on Scroll */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Divi Visual Builder override */
body.et-fb .reveal-on-scroll {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}