/* ==========================================================================
   Balintawak Canada — original site design (no theme/template dependency)
   ========================================================================== */

:root {
    /* Palette sampled directly from the real Balintawak Canada logo
       (images/logo.jpg) — deep red / black / white, no orange. */
    --ink: #121212;
    --ink-soft: #2b2b2b;
    --paper: #ffffff;
    --paper-tint: #f6f5f3;
    --muted: #6b6f7a;
    --line: #e7e5e1;

    --accent: #b6222a;
    --accent-dark: #841118;
    --accent-glow: #d94a4f;
    --gradient: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);

    --font-display: "Archivo Black", "Arial Black", sans-serif;
    --font-heading: "Space Grotesk", "Segoe UI", sans-serif;
    --font-body: "Inter", "Segoe UI", sans-serif;

    --radius: 14px;
    --shadow: 0 20px 40px -20px rgba(18, 20, 26, 0.25);
    --shadow-sm: 0 8px 20px -12px rgba(18, 20, 26, 0.2);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink-soft);
    background: var(--paper);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent-dark); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent); text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--ink);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 0.6em;
}
h1 { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.6rem); text-transform: uppercase; letter-spacing: 0.5px; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1.1em; }
blockquote {
    border-left: 4px solid var(--accent);
    margin: 1.5em 0;
    padding: 0.4em 1.4em;
    font-style: italic;
    color: var(--ink);
    font-size: 1.1rem;
    background: var(--paper-tint);
    border-radius: 0 var(--radius) var(--radius) 0;
}
ul, ol { padding-left: 1.3em; }

/* ---------- layout / grid ---------- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.custom-container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.row { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.row > [class*="col-"] { padding: 0 12px; }
.col-md-3 { flex: 0 0 25%; max-width: 25%; }
.col-md-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; }
.col-md-8 { flex: 0 0 66.6667%; max-width: 66.6667%; margin: 0 auto; }
.col-md-12, .col-xl-12 { flex: 0 0 100%; max-width: 100%; }
.col-xl-8 { flex: 0 0 66.6667%; max-width: 66.6667%; margin: 0 auto; }
@media (max-width: 860px) {
    .col-md-3, .col-md-4, .col-md-6, .col-md-8, .col-xl-8 { flex: 0 0 100%; max-width: 100%; margin: 0; }
}

.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-white { color: #fff; }
.text-muted { color: var(--muted); }
.text-success { color: #1e7e34; }
.text-danger { color: var(--accent); }
.mb-1 { margin-bottom: 0.35rem; }
.mb-2 { margin-bottom: 0.7rem; }
.mb-3 { margin-bottom: 1.1rem; }
.mb-4 { margin-bottom: 1.6rem; }
.mt-4 { margin-top: 1.6rem; }
.ml-2 { margin-left: 0.5rem; }
.w-100 { width: 100%; }
.rounded { border-radius: var(--radius); }
.img-fluid { max-width: 100%; height: auto; }
.font-weight-bold { font-weight: 700; }
.padding-top-120 { padding-top: 100px; }

/* ---------- header / nav ---------- */
.navbar-area {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.navbar-area .custom-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 16px;
    gap: 24px;
}
.navbar-collapse {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 32px;
    flex: 1;
}
.site-title {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    color: var(--ink);
    text-transform: uppercase;
}
.site-title:hover { color: var(--accent); }
.site-logo { width: 46px; height: 46px; object-fit: contain; display: block; }
.navbar-nav {
    list-style: none;
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}
.navbar-nav li { flex-shrink: 0; }
.navbar-nav li a { white-space: nowrap; }
.navbar-nav li a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ink-soft);
    position: relative;
    padding-bottom: 4px;
}
.navbar-nav li a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}
.navbar-nav li a:hover { color: var(--ink); }
.navbar-nav li a:hover::after { transform: scaleX(1); }
.navbar-toggler {
    display: none;
    border: none;
    background: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--ink);
}
.navbar-toggler-icon { display: inline-block; }

@media (max-width: 991px) {
    .navbar-toggler { display: block; }
    .navbar-collapse {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding-top: 16px;
        flex: none;
    }
    .navbar-collapse.is-open { display: flex; }
    .navbar-nav { flex-direction: column; gap: 16px; width: 100%; }
    .nav-right-content { width: 100%; }
    .nav-right-content .btn-wrap { justify-content: center; display: flex; }
}

/* ---------- buttons ---------- */
.btn-wrap .boxed-btn,
.boxed-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 999px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}
.boxed-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.boxed-btn.active {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    box-shadow: none;
}
.boxed-btn.active:hover { background: #fff; color: var(--ink); }

/* ---------- hero (home) ---------- */
.hero-section {
    position: relative;
    background: var(--ink);
    color: #fff;
    padding: 130px 0 100px;
    text-align: center;
    overflow: hidden;
}

/* Carousel: stacked slides, one visible (is-active) at a time, crossfaded by JS */
.hero-carousel {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    /* Biased toward the top: all 3 carousel photos are group/pair shots
       with faces in the upper third, but the hero is much wider than the
       source photos, so `cover` crops heavily top/bottom at "center" —
       that was cutting faces off. */
    background-position: center 20%;
    opacity: 0;
    transition: opacity 1.4s ease;
}
.hero-slide.is-active { opacity: 1; }

/* Fixed dark overlay so text stays legible no matter which/how bright the
   photo underneath is — deliberately NOT relying on background-blend-mode,
   since that only works when the image is a CSS background on the same
   element as the gradient, which breaks once the image is swapped per-slide. */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at 20% 20%, rgba(182,34,42,0.45), transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(182,34,42,0.25), transparent 45%),
        linear-gradient(160deg, rgba(18,18,18,0.88) 0%, rgba(18,18,18,0.72) 55%, rgba(132,17,24,0.75) 130%);
    pointer-events: none;
}

.hero-content { position: relative; z-index: 2; }
.hero-section h1 { color: #fff; }
.hero-section .kicker { text-transform: uppercase; letter-spacing: 3px; color: var(--accent-glow); font-weight: 700; margin-bottom: 1rem; display: block; font-family: var(--font-heading); font-size: 0.85rem; }
.hero-section .lead { max-width: 760px; margin: 0 auto 1.4rem; color: #d8d9e0; font-size: 1.15rem; }

/* ---------- page hero (inner pages) ---------- */
.page-hero {
    background: var(--ink);
    color: #fff;
    padding: 90px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::after {
    content: "";
    position: absolute;
    right: -10%;
    top: -40%;
    width: 60%;
    height: 220%;
    background: var(--gradient);
    opacity: 0.15;
    transform: rotate(18deg);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; }
.page-hero .lead { max-width: 760px; margin: 0 auto; color: #cfd1da; }

/* ---------- sections ---------- */
.section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title .kicker { text-transform: uppercase; letter-spacing: 2px; color: var(--accent-dark); font-weight: 700; display: block; margin-bottom: 0.5rem; font-family: var(--font-heading); font-size: 0.85rem; }

/* ---------- cards ---------- */
.brand-card {
    text-align: center;
    padding: 34px 26px;
    height: 100%;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.brand-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.brand-card h4 a { color: var(--ink); }
.brand-card h4 a:hover { color: var(--accent-dark); }
.brand-card.text-left { text-align: left; }
.card-icon { font-size: 2.2rem; color: var(--accent); margin-bottom: 1rem; }

.path-card {
    display: block;
    padding: 42px 30px;
    background: var(--paper-tint);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    height: 100%;
    color: inherit;
    transition: all .25s ease;
}
.path-card:hover { background: var(--ink); color: #fff; transform: translateY(-6px); box-shadow: var(--shadow); }
.path-card:hover h3, .path-card:hover p, .path-card:hover i { color: #fff; }
.path-card h3 { margin-bottom: 0.75rem; }
.path-card i { font-size: 2rem; color: var(--accent); margin-bottom: 1rem; display: block; }

.team-photo, .gallery-photo {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: var(--radius);
}

/* ---------- glossary / rules ---------- */
.glossary-term { margin-bottom: 1.6rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.glossary-term dt { font-family: var(--font-heading); font-weight: 700; color: var(--accent-dark); font-size: 1.15rem; margin-bottom: 0.3rem; }
.glossary-term dd { margin-left: 0; color: var(--ink-soft); }

.rule-list { list-style: none; padding: 0; }
.rule-list li {
    margin-bottom: 0.9rem;
    padding-left: 2rem;
    position: relative;
}
.rule-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0;
    width: 22px;
    height: 22px;
    background: var(--gradient);
    color: #fff;
    border-radius: 50%;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- subnav ---------- */
.subnav { background: var(--paper-tint); padding: 18px 0; border-bottom: 1px solid var(--line); }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; }
.subnav a { font-family: var(--font-heading); font-weight: 600; font-size: 0.9rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.5px; }
.subnav a:hover { color: var(--accent-dark); }

/* ---------- CTA band ---------- */
.cta-band {
    background: var(--gradient);
    color: #fff;
    padding: 64px 0;
    text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band .lead { color: rgba(255,255,255,0.9); }
.cta-band .boxed-btn { background: #fff; color: var(--accent-dark); box-shadow: none; }
.cta-band .boxed-btn:hover { background: var(--ink); color: #fff; }

/* ---------- FAQ accordion ---------- */
.accordion .card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; }
.accordion .card-header { background: var(--paper-tint); padding: 0; }
.accordion .card-header button.btn {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 16px 22px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
}
.accordion .card-body { padding: 18px 22px; display: none; }
.accordion .card-body.is-open { display: block; }

/* ---------- map embed ---------- */
.embed-responsive { position: relative; width: 100%; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden; }
.embed-responsive-item { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- footer ---------- */
.footer-section { background: var(--ink); color: #cfd1da; }
.footer-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.1); flex-wrap: wrap; gap: 16px; }
.footer-logo .site-title { color: #fff; }
.footer-social { list-style: none; display: flex; gap: 12px; margin: 0; padding: 0; }
.footer-social a {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #fff;
}
.footer-social a:hover { background: var(--gradient); }
.footer-section h5 { color: #fff; font-family: var(--font-heading); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; margin-top: 40px; }
.footer-list-col { list-style: none; padding: 0; }
.footer-list-col li { margin-bottom: 8px; }
.footer-list-col a { color: #b7bac4; }
.footer-list-col a:hover { color: var(--accent-glow); }
.footer-contact { color: #b7bac4; }
.copyright-area { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 30px; padding-top: 24px; }
.copyright-area p { color: #8a8d99; margin: 0; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- profile page ---------- */
.profile-photo { border-radius: var(--radius); width: 100%; height: 380px; object-fit: cover; }

/* ---------- forms (contact / apply / registration) ---------- */
.form-label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--ink); }
.form-control,
input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
select, textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink-soft);
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.form-control:focus, input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(182, 34, 42, 0.12);
}
textarea { resize: vertical; min-height: 90px; }
fieldset.form-section { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 0 0 28px; }
fieldset.form-section legend { font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; color: var(--accent-dark); padding: 0 10px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 1.1rem; }
.form-check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.form-check input[type="checkbox"], .form-check input[type="radio"] { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; accent-color: var(--accent); }
.form-check label { font-size: 0.95rem; color: var(--ink-soft); }
.form-radio-group { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 1.1rem; }
.form-hint { font-size: 0.85rem; color: var(--muted); margin-top: -4px; margin-bottom: 1.1rem; }
.conditional-section { display: none; }
.conditional-section.is-visible { display: block; }
.conduct-list { padding-left: 1.2rem; }
.conduct-list li { margin-bottom: 10px; }
