/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.4
*/

/* =====================================================================
   CABRAMATTA BUSINESS ASSOCIATION — Brand styling for Flatsome
   Matches the Tailwind homepage preview (Outfit/Inter, CBA red, etc.)
   ===================================================================== */

/* --- Google Fonts (must stay at top, after the header comment) --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* --- Brand variables (override Flatsome primary blue -> CBA red) --- */
:root {
    --cba-red: #C8102E;
    --cba-red-dark: #a30d25;
    --cba-dark: #0f0f23;
    --primary-color: #C8102E !important;
    --fs-color-primary: #C8102E !important;
}

/* ---------------------------------------------------------------
   1. TYPOGRAPHY
   --------------------------------------------------------------- */
body,
input,
select,
textarea,
button,
.button {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

h1, h2, h3, h4, h5, h6,
.heading-font,
.entry-title,
.section-title,
.title-inner,
.thumbnail .name,
.price-table .title {
    font-family: 'Outfit', sans-serif !important;
    letter-spacing: -0.01em;
}

h1, h2 { font-weight: 800; }
h3, h4 { font-weight: 700; }
body  { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* ---------------------------------------------------------------
   2. PRIMARY COLOUR OVERRIDES (force red where Flatsome used blue)
   --------------------------------------------------------------- */
a { color: var(--cba-red); }
a:hover { color: var(--cba-red-dark); }

.nav-line-bottom > li > a:before,
.nav-line > li > a:before { background-color: var(--cba-red); }

/* ---------------------------------------------------------------
   3. BUTTONS  (gradient pill + hover lift, matches .btn-primary)
   --------------------------------------------------------------- */
.button {
    font-weight: 700;
    text-transform: none;
    letter-spacing: .2px;
    transition: all .3s ease;
}

/* Solid primary -> red gradient pill */
.button.primary:not(.is-outline):not(.is-link) {
    background-color: var(--cba-red);
    background-image: linear-gradient(135deg, #C8102E 0%, #a30d25 100%);
    border-color: transparent;
    color: #fff;
    border-radius: 99px;
    box-shadow: 0 4px 15px rgba(200, 16, 46, .4);
}
.button.primary:not(.is-outline):not(.is-link):hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(200, 16, 46, .55);
    color: #fff;
}

/* Outline primary (membership "Apply Now") */
.button.primary.is-outline {
    color: var(--cba-red);
    border-color: var(--cba-red);
    background: transparent;
    border-radius: 12px;
}
.button.primary.is-outline:hover {
    background: var(--cba-red);
    color: #fff;
}

/* Outline white (hero "Explore Events" + featured card button) */
.button.white.is-outline {
    border-color: rgba(255, 255, 255, .6);
    color: #fff;
    border-radius: 99px;
    background: transparent;
}
.button.white.is-outline:hover {
    background: #fff;
    color: var(--cba-dark);
}

/* ---------------------------------------------------------------
   4. SECTION TITLES  (big mixed-case headings + red accent bar)
   --------------------------------------------------------------- */
.section-title { text-transform: none !important; border: none !important; }
.section-title b { display: none !important; }        /* hide all flanking lines */
.section-title-center { justify-content: center; text-align: center; }

/* Force large heading size (overrides the invalid inline font-size:xxlarge%) */
.section-title-main {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800;
    font-size: 2.6rem !important;
    line-height: 1.15;
    display: inline-block;
}

.section-title-center .section-title-main:after {
    content: "";
    display: block;
    width: 70px;
    height: 4px;
    background: var(--cba-red);
    border-radius: 2px;
    margin: 16px auto 0;
}
.section-title-bold .section-title-main:after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: var(--cba-red);
    border-radius: 2px;
    margin: 14px 0 0;
}

/* Partners heading stays small / uppercase / grey (no bar) */
.partners-section .section-title-main {
    font-size: 1.1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 2px;
    color: #9ca3af;
}
.partners-section .section-title-main:after { display: none; }

/* ---------------------------------------------------------------
   5. HERO SECTION  (full height, vertical centre, badge pill)
   --------------------------------------------------------------- */
.hero-section {
    display: flex;
    align-items: center;
}
.hero-section > .section-content { width: 100%; }

.hero-section h1 { font-weight: 800; line-height: 1.05; }

/* The first red <strong> line acts as the pill badge */
.hero-section .ux-text strong {
    display: inline-block;
    padding: 6px 20px;
    border: 1px solid rgba(200, 16, 46, .5);
    background: rgba(200, 16, 46, .15);
    border-radius: 99px;
    letter-spacing: 2px;
    font-size: .8rem;
}
.hero-section h1 strong { all: unset; }   /* don't pill the headline */

/* ---------------------------------------------------------------
   6. CARD / COLUMN HOVER LIFT (purpose + price tables)
   --------------------------------------------------------------- */
.purpose-section .col-inner {
    transition: transform .35s cubic-bezier(.175,.885,.32,1.275), box-shadow .35s ease;
}
.purpose-section .col:hover .col-inner {
    transform: translateY(-10px);
}

.membership-card {
    transition: transform .35s cubic-bezier(.175,.885,.32,1.275), box-shadow .35s ease;
    border-radius: 18px;
    overflow: hidden;
}
.membership-card:hover { transform: translateY(-10px); }

/* Featured (Full Member) card pops forward on desktop */
@media (min-width: 850px) {
    .membership-section .featured-table {
        transform: scale(1.04);
        z-index: 2;
        box-shadow: 0 25px 50px -12px rgba(200, 16, 46, .45);
    }
    .membership-section .featured-table:hover {
        transform: scale(1.04) translateY(-8px);
    }
}

/* ---------------------------------------------------------------
   7. CULTURAL COUNCIL + EVENT IMAGES
   --------------------------------------------------------------- */
.cac-section .img img { border-radius: 12px; }

.events-section .ux-banner,
.events-section .img { border-radius: 12px; overflow: hidden; }

/* ---------------------------------------------------------------
   8. COMMITTEE AVATARS (circular + hover zoom)
   --------------------------------------------------------------- */
.committee-section .img {
    border-radius: 50%;
    box-shadow: 0 12px 25px rgba(0, 0, 0, .12);
    transition: transform .4s ease, box-shadow .3s ease;
}
.committee-section .img-inner { border-radius: 50%; }
.committee-section .img img {
    border-radius: 50% !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 4px solid #fff;
    transition: transform .4s ease;
}
.committee-section .col:hover .img {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(200, 16, 46, .25);
}
.committee-section .col:hover .img img { transform: scale(1.06); }
.committee-section h4 { margin-bottom: 2px; }

/* ---------------------------------------------------------------
   9. EVENT TABS  (active tab in brand red)
   --------------------------------------------------------------- */
.nav-tabs > li.active > a,
.nav-tabs > li > a:hover {
    color: var(--cba-red);
    border-color: var(--cba-red);
}

/* ---------------------------------------------------------------
   10. ACCORDION (governance) — bordered rounded box, dividers
   --------------------------------------------------------------- */
.governance-section .accordion {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .04);
}
.governance-section .accordion-item { border-bottom: 1px solid #e5e7eb; }
.governance-section .accordion-item:last-child { border-bottom: none; }
.governance-section .accordion-title.plain {
    display: flex; align-items: center; gap: 12px;
    margin: 0; border: none;
    background: #f9fafb;
    padding: 1.1rem 1.5rem;
    font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.05rem; color: #1f2937;
    transition: background .2s, color .2s;
}
.governance-section .accordion-title.plain:hover,
.governance-section .accordion-title.plain[aria-expanded="true"] {
    background: #f3f4f6; color: var(--cba-red);
}
.governance-section .accordion-title span { order: 1; }
.governance-section .accordion-title .toggle {
    order: 2; margin-left: auto; color: var(--cba-red);
    background: none; border: none; box-shadow: none;
}
.governance-section .accordion-inner { background: #fff; padding: 0 1.5rem; }
.governance-section .accordion-inner p { padding: 1.2rem 0; margin: 0; color: #555; line-height: 1.7; }

/* Partners: bolder, more spaced names */
.partners-section p { color: #9ca3af; font-weight: 800; font-size: 1.4rem; letter-spacing: .5px; }

/* ---------------------------------------------------------------
   11. MISC POLISH
   --------------------------------------------------------------- */
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 90px; }      /* offset for sticky header */

.cta-section input,
.cta-section textarea {
    border-radius: 12px;
    background: #f9fafb;
}
.cta-section .wpcf7-submit {
    background-image: linear-gradient(135deg, #C8102E 0%, #a30d25 100%);
    color: #fff;
    border-radius: 12px;
    border: none;
    width: 100%;
    padding: 14px;
    font-weight: 700;
}

.partners-section p { color: #9ca3af; }

/* ===============================================================
   12. MEMBERSHIP TIERS (custom HTML cards — matches preview)
   =============================================================== */
.cba-mtiers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: center;
    max-width: 1120px;
    margin: 0 auto;
}
.cba-mcard {
    position: relative;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 24px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
    text-align: center;
    transition: transform .35s cubic-bezier(.175,.885,.32,1.275), box-shadow .35s ease;
}
.cba-mcard:hover { transform: translateY(-10px); box-shadow: 0 25px 45px rgba(0, 0, 0, .12); }
.cba-mcard.featured {
    background: var(--cba-red);
    color: #fff;
    border: none;
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 30px 60px -12px rgba(200, 16, 46, .5);
}
.cba-mcard.featured:hover { transform: scale(1.05) translateY(-8px); }
.cba-badge {
    position: absolute; top: 0; right: 0;
    background: #facc15; color: #713f12;
    font-size: .68rem; font-weight: 800; letter-spacing: .5px;
    padding: 6px 14px; border-radius: 0 24px 0 12px;
}
.cba-mtitle {
    font-family: 'Outfit', sans-serif; font-weight: 700;
    font-size: 1.55rem; margin: 0 0 .25rem; color: inherit;
}
.cba-mcard.featured .cba-mtitle { font-size: 1.9rem; }
.cba-msub { font-size: .9rem; color: #888; margin-bottom: 1.6rem; }
.cba-msub.light { color: rgba(255, 255, 255, .85); }
.cba-mprice {
    font-family: 'Outfit', sans-serif; font-weight: 800;
    font-size: 2.6rem; margin-bottom: 1.6rem; color: #111;
}
.cba-mvalue {
    font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.25rem;
    background: #f7f7f7; border: 1px solid #eee; border-radius: 10px;
    padding: .7rem; margin-bottom: 1.6rem;
}
.cba-mcard.featured .cba-mvalue {
    background: rgba(0, 0, 0, .22); border-color: rgba(255, 255, 255, .15);
    color: #fff; letter-spacing: 1px;
}
.cba-mlist { list-style: none; padding: 0; margin: 0 0 1.8rem; text-align: left; }
.cba-mlist li {
    display: flex; align-items: center; gap: .6rem;
    padding: .55rem 0; font-weight: 500; color: #444;
    border-bottom: 1px solid #f3f3f3;
}
.cba-mlist.light li { color: #fff; border-bottom-color: rgba(255, 255, 255, .18); }
.cba-mlist li.off { color: #bbb; text-decoration: line-through; }
.cba-mlist .ck {
    display: inline-flex; align-items: center; justify-content: center;
    width: 20px; height: 20px; flex: 0 0 20px; font-size: .8rem; font-weight: 700;
}
.ck.ok { color: #16a34a; }
.ck.red { color: var(--cba-red); }
.ck.w  { color: #fff; }
.ck.no { color: #ccc; }
.cba-mbtn {
    display: block; width: 100%; padding: .9rem; border-radius: 12px;
    font-weight: 700; text-decoration: none; transition: all .25s ease;
}
.cba-mbtn.outline-red  { border: 2px solid var(--cba-red); color: var(--cba-red); }
.cba-mbtn.outline-red:hover  { background: var(--cba-red); color: #fff; }
.cba-mbtn.solid-white  { background: #fff; color: var(--cba-red); box-shadow: 0 6px 15px rgba(0,0,0,.15); }
.cba-mbtn.solid-white:hover  { background: #f3f3f3; }
.cba-mbtn.outline-dark { border: 2px solid #1f2937; color: #1f2937; }
.cba-mbtn.outline-dark:hover { background: #1f2937; color: #fff; }

/* ===============================================================
   13. EVENT CARDS + GALLERY (custom HTML inside tabs)
   =============================================================== */
.cba-events {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 1rem;
}
.cba-ecard {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid #f0f0f0; border-radius: 18px; overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .07);
    transition: transform .35s cubic-bezier(.175,.885,.32,1.275), box-shadow .35s ease;
}
.cba-ecard:hover { transform: translateY(-10px); box-shadow: 0 25px 45px rgba(0, 0, 0, .12); }
.cba-eimg { height: 210px; background-size: cover; background-position: center; }
.cba-ebody { position: relative; padding: 2rem 1.8rem 1.8rem; flex: 1; display: flex; flex-direction: column; }
.cba-edate {
    position: absolute; top: -18px; left: 24px;
    background: var(--cba-red); color: #fff; font-weight: 700; font-size: .8rem;
    padding: 8px 16px; border-radius: 10px; letter-spacing: 1px;
    box-shadow: 0 6px 15px rgba(200, 16, 46, .4);
}
.cba-etitle { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.3rem; margin: .5rem 0 .8rem; }
.cba-edesc { color: #666; flex: 1; margin-bottom: 1rem; line-height: 1.6; }
.cba-emore { color: var(--cba-red); font-weight: 700; text-decoration: none; display: inline-block; }
.cba-emore:hover { letter-spacing: .3px; }

.cba-ongoing {
    text-align: center; background: #f9fafb; border: 1px solid #f0f0f0;
    border-radius: 18px; padding: 3.5rem 2rem; max-width: 760px; margin: 1rem auto 0;
}
.cba-ongoing h3 { font-family: 'Outfit', sans-serif; font-weight: 700; margin-bottom: 1rem; }
.cba-ongoing p { color: #666; }

.cba-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1rem; }
.cba-gallery img {
    width: 100%; height: 200px; object-fit: cover; border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08); transition: transform .35s ease;
}
.cba-gallery img:hover { transform: scale(1.04); }

/* ===============================================================
   14. INNER PAGES (About Us / Membership)
   =============================================================== */
.inner-hero .col { text-align: center; }
.inner-hero h1 { font-weight: 800; }

/* Hero pill badge */
.cba-pill {
    display: inline-block; padding: 7px 22px;
    border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .12);
    border-radius: 99px; font-weight: 700; font-size: .8rem; letter-spacing: 2px;
    text-transform: uppercase; color: #fff;
}

/* Membership hero: red -> dark diagonal gradient over image */
.membership-hero .section-bg:after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(200, 16, 46, .92) 0%, rgba(15, 15, 35, .96) 100%);
}

/* Our Story — objectives card */
.cba-objcard {
    position: relative; overflow: hidden;
    background: #f9fafb; border: 1px solid #f0f0f0; border-radius: 18px; padding: 2.5rem;
}
.cba-objcard:before {
    content: ""; position: absolute; top: 0; right: 0; width: 110px; height: 110px;
    background: #fdecef; border-bottom-left-radius: 100%;
}
.cba-objcard h3 { font-family: 'Outfit', sans-serif; font-weight: 700; margin-bottom: 1.2rem; position: relative; }
.cba-objlist { list-style: none; padding: 0; margin: 0; position: relative; }
.cba-objlist li { display: flex; align-items: flex-start; gap: .7rem; padding: .6rem 0; color: #555; }

/* CAC stat boxes */
.cba-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.6rem; }
.cba-stat {
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px; padding: 1.2rem; text-align: center;
}
.cba-stat h4 { font-family: 'Outfit', sans-serif; font-size: 1.6rem; font-weight: 800; color: #fff; margin: 0 0 .2rem; }
.cba-stat span { font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; color: rgba(255, 255, 255, .6); }

/* Eligibility */
.cba-elig {
    background: #fff; border: 1px solid #f0f0f0; border-radius: 24px;
    padding: 2.8rem; box-shadow: 0 12px 30px rgba(0, 0, 0, .05);
}
.cba-elig > p { color: #555; margin-bottom: 1.8rem; }
.cba-elig-item { display: flex; gap: 1.2rem; padding: 1rem 0; border-top: 1px solid #f5f5f5; }
.cba-elig-item:first-of-type { border-top: none; }
.cba-elig-item .num {
    flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px;
    background: #fdecef; color: var(--cba-red);
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.25rem;
}
.cba-elig-item h4 { font-family: 'Outfit', sans-serif; font-weight: 700; margin: 0 0 .35rem; }
.cba-elig-item p { color: #666; font-size: .95rem; margin: 0; }

/* ===============================================================
   15. MEMBERSHIP APPLICATION FORM (Contact Form 7)
   =============================================================== */
.cba-formcol { box-shadow: 0 20px 45px rgba(0, 0, 0, .08) !important; }
.cba-form .cba-flabel { display: block; font-weight: 700; color: #374151; margin-bottom: .8rem; }
.cba-form .cba-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 1.5rem; margin: 1.2rem 0; }
.cba-form label { display: block; font-weight: 600; color: #374151; font-size: .9rem; }
.cba-form p { margin: 0 0 1.1rem; }
.cba-form input[type=text],
.cba-form input[type=email],
.cba-form input[type=tel],
.cba-form textarea {
    width: 100%; margin-top: .4rem; padding: .8rem 1rem;
    border: 1px solid #e5e7eb; border-radius: 10px; background: #f9fafb;
    font-family: inherit; transition: border-color .2s, box-shadow .2s;
}
.cba-form input:focus, .cba-form textarea:focus {
    outline: none; border-color: var(--cba-red); box-shadow: 0 0 0 1px var(--cba-red); background: #fff;
}
/* membership-type radios as selectable cards */
.cba-form .wpcf7-radio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: .4rem; }
.cba-form .wpcf7-radio .wpcf7-list-item {
    margin: 0; border: 1px solid #e5e7eb; border-radius: 12px; padding: 0;
}
.cba-form .wpcf7-radio .wpcf7-list-item label {
    display: flex; align-items: center; gap: .6rem; padding: 1rem; cursor: pointer; margin: 0; font-weight: 700; color: #1f2937;
}
.cba-form .wpcf7-radio .wpcf7-list-item:hover { border-color: var(--cba-red); background: #fdecef; }
.cba-form .cba-accept { font-size: .9rem; color: #6b7280; font-weight: 400; }
.cba-form .cba-accept label { display: inline; font-weight: 400; }
.cba-form .wpcf7-submit {
    width: 100%; padding: 1rem; border: none; border-radius: 12px; margin-top: .5rem;
    background-image: linear-gradient(135deg, #C8102E 0%, #a30d25 100%);
    color: #fff; font-weight: 700; font-size: 1.05rem; cursor: pointer;
    box-shadow: 0 6px 18px rgba(200, 16, 46, .35); transition: all .3s ease;
}
.cba-form .wpcf7-submit:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(200, 16, 46, .45); }

@media only screen and (max-width: 48em) {
/*************** MOBILE ONLY ***************/
    .hero-section h1 { font-size: 2.2rem !important; }
    .section-title-main { font-size: 1.9rem !important; }
    .partners-section .section-title-main { font-size: 1rem !important; }
    .membership-section .col:nth-child(2) .membership-card { transform: none; }
    .cba-mtiers { grid-template-columns: 1fr; }
    .cba-mcard.featured { transform: none; }
    .cba-mcard.featured:hover { transform: translateY(-8px); }
    .cba-events { grid-template-columns: 1fr; }
    .cba-gallery { grid-template-columns: repeat(2, 1fr); }
    .cba-stats { grid-template-columns: 1fr 1fr; }
    .cba-form .cba-form-grid { grid-template-columns: 1fr; }
    .cba-form .wpcf7-radio { grid-template-columns: 1fr; }
}
