/*
 * TLA Homepage Blocks — Frontend + Editor Styles
 * Plugin:  tla-homepage-blocks
 * Version: 1.0.0
 *
 * Scoped to .tla-hp-* classes so there are zero collisions with theme styles.
 * All CSS custom properties are declared on the root so editor previews inherit them.
 */

/* ─────────────────────────────────────────────
   DESIGN TOKENS
   ───────────────────────────────────────────── */
:root {
    --tla-navy:        #0d1e35;
    --tla-navy-mid:    #152a4a;
    --tla-navy-light:  #1e3a5f;
    --tla-gold:        #c9a84c;
    --tla-gold-light:  #e2c47a;
    --tla-off:         #f5f3ee;
    --tla-white:       #ffffff;
    --tla-text:        #1a1a2e;
    --tla-muted:       #6b7280;
    --tla-border:      rgba(201, 168, 76, 0.22);
    --tla-serif:       Georgia, 'Times New Roman', Times, serif;
    --tla-sans:        -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --tla-radius:      6px;
    --tla-section-px:  80px;
    --tla-section-py:  80px;
    --tla-max-w:       1200px;
}

/* ─────────────────────────────────────────────
   GLOBAL RESETS (scoped)
   ───────────────────────────────────────────── */
.tla-hp-section *,
.tla-hp-section *::before,
.tla-hp-section *::after {
    box-sizing: border-box;
}

.tla-hp-section {
    font-family: var(--tla-sans);
    line-height: 1.6;
    color: var(--tla-text);
    -webkit-font-smoothing: antialiased;
}

/* Inner wrapper — constrains content width */
.tla-hp-inner {
    max-width: var(--tla-max-w);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--tla-section-px);
    padding-right: var(--tla-section-px);
}

/* ─────────────────────────────────────────────
   SHARED TYPOGRAPHY
   ───────────────────────────────────────────── */
.tla-eyebrow {
    font-family: var(--tla-sans);
    font-size: 0.6875rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--tla-gold);
    display: block;
    margin-bottom: 14px;
}

.tla-section-heading {
    font-family: var(--tla-serif);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.18;
    color: var(--tla-navy);
    font-style: italic;
    margin: 0 0 14px;
}

.tla-section-heading strong {
    font-style: normal;
}

.tla-section-heading--white {
    color: var(--tla-white);
}

.tla-section-sub {
    font-family: var(--tla-sans);
    font-size: 1rem;
    line-height: 1.75;
    color: var(--tla-muted);
    margin: 0 0 48px;
}

/* ─────────────────────────────────────────────
   BUTTONS
   ───────────────────────────────────────────── */
.tla-btn {
    display: inline-block;
    font-family: var(--tla-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    border-radius: 3px;
    padding: 13px 28px;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
    border: none;
}

.tla-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.tla-btn--primary {
    background: var(--tla-gold);
    color: var(--tla-navy);
}

.tla-btn--outline {
    background: transparent;
    color: var(--tla-gold);
    border: 1.5px solid var(--tla-gold);
    padding: 11px 26px;
}

.tla-btn-group {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

/* ─────────────────────────────────────────────
   SECTION: HERO
   ───────────────────────────────────────────── */
.tla-hp-hero {
    background: var(--tla-navy);
    padding: var(--tla-section-py) 0;
    position: relative;
    overflow: hidden;
}

.tla-hp-hero::before {
    content: '';
    position: absolute;
    right: -80px;
    top: -80px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.07) 0%, transparent 68%);
    pointer-events: none;
}

.tla-hp-hero .tla-hp-inner {
    display: flex;
    align-items: center;
    gap: 60px;
}

.tla-hero-content {
    flex: 1;
    max-width: 560px;
}

.tla-hero-heading {
    font-family: var(--tla-serif);
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    line-height: 1.12;
    color: var(--tla-white);
    font-style: italic;
    margin: 0 0 20px;
}

.tla-hero-heading strong {
    font-style: normal;
    color: var(--tla-gold-light);
}

.tla-hero-sub {
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 10px;
}

.tla-hero-body {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.58);
    margin: 0 0 36px;
}

.tla-hero-media {
    flex: 0 0 340px;
    max-width: 340px;
}

.tla-hero-media img {
    width: 100%;
    height: auto;
    border-radius: var(--tla-radius);
    display: block;
}

/* ─────────────────────────────────────────────
   SECTION: LOGOS / TRUSTED BY
   ───────────────────────────────────────────── */
.tla-hp-logos {
    background: var(--tla-navy-mid);
    border-top: 1px solid var(--tla-border);
    border-bottom: 1px solid var(--tla-border);
    padding: 36px 0;
}

.tla-logos-label {
    font-family: var(--tla-sans);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--tla-gold);
    text-align: center;
    margin-bottom: 24px;
}

.tla-logos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: center;
}

.tla-logo-item img {
    height: 32px;
    width: auto;
    opacity: 0.55;
    filter: brightness(0) invert(1);
    display: block;
    transition: opacity 0.2s;
}

.tla-logo-item img:hover {
    opacity: 0.9;
}

/* ─────────────────────────────────────────────
   SECTION: FEATURES (4-col)
   ───────────────────────────────────────────── */
.tla-hp-features {
    background: var(--tla-off);
    padding: var(--tla-section-py) 0;
}

.tla-hp-features .tla-section-heading,
.tla-hp-features .tla-section-sub,
.tla-hp-features .tla-eyebrow {
    text-align: center;
}

.tla-features-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.tla-feature-card {
    background: var(--tla-white);
    border: 1px solid #e5e0d6;
    border-radius: var(--tla-radius);
    padding: 28px 22px;
}

.tla-feature-icon {
    width: 44px;
    height: 44px;
    background: var(--tla-navy);
    border-radius: var(--tla-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.tla-feature-icon img,
.tla-feature-icon svg {
    width: 22px;
    height: 22px;
}

.tla-feature-title {
    font-family: var(--tla-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--tla-navy);
    margin: 0 0 8px;
}

.tla-feature-desc {
    font-size: 0.8125rem;
    line-height: 1.7;
    color: var(--tla-muted);
    margin: 0;
}

/* ─────────────────────────────────────────────
   SECTION: WHO IT'S FOR (audience)
   ───────────────────────────────────────────── */
.tla-hp-audience {
    background: var(--tla-white);
    padding: var(--tla-section-py) 0;
}

.tla-hp-audience .tla-section-heading,
.tla-hp-audience .tla-section-sub,
.tla-hp-audience .tla-eyebrow {
    text-align: center;
}

.tla-audience-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.tla-audience-item {
    border: 1px solid #e5e0d6;
    border-radius: var(--tla-radius);
    padding: 32px 28px;
    position: relative;
}

.tla-audience-num {
    font-family: var(--tla-serif);
    font-size: 3rem;
    color: var(--tla-gold);
    opacity: 0.45;
    line-height: 1;
    margin-bottom: 10px;
}

.tla-audience-role {
    font-family: var(--tla-sans);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--tla-gold);
    margin-bottom: 8px;
}

.tla-audience-title {
    font-family: var(--tla-serif);
    font-size: 1.25rem;
    color: var(--tla-navy);
    line-height: 1.3;
    margin: 0 0 12px;
}

.tla-audience-body {
    font-size: 0.875rem;
    line-height: 1.75;
    color: var(--tla-muted);
    margin: 0;
}

/* ─────────────────────────────────────────────
   SECTION: FACULTY
   ───────────────────────────────────────────── */
.tla-hp-faculty {
    background: var(--tla-navy);
    padding: var(--tla-section-py) 0;
    text-align: center;
}

.tla-hp-faculty .tla-eyebrow,
.tla-hp-faculty .tla-section-heading,
.tla-hp-faculty .tla-section-sub {
    text-align: center;
}

.tla-hp-faculty .tla-section-sub {
    color: rgba(255, 255, 255, 0.6);
}

.tla-faculty-tagline {
    font-family: var(--tla-serif);
    font-size: 1.0625rem;
    font-style: italic;
    color: var(--tla-gold);
    margin: -24px 0 40px;
}

.tla-faculty-photos {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 44px;
}

.tla-faculty-photo {
    width: 140px;
    border-radius: var(--tla-radius);
    overflow: hidden;
    border: 1px solid var(--tla-border);
}

.tla-faculty-photo img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
}

.tla-faculty-name {
    font-family: var(--tla-sans);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 8px 6px;
    background: var(--tla-navy-mid);
}

/* ─────────────────────────────────────────────
   SECTION: STATS + TESTIMONIALS
   ───────────────────────────────────────────── */
.tla-hp-results {
    background: var(--tla-off);
    padding: var(--tla-section-py) 0;
}

.tla-hp-results .tla-eyebrow,
.tla-hp-results .tla-section-heading,
.tla-hp-results .tla-section-sub {
    text-align: center;
}

.tla-results-cols {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 32px;
    align-items: start;
}

.tla-stat-card {
    background: var(--tla-white);
    border: 1px solid #e5e0d6;
    border-radius: var(--tla-radius);
    padding: 24px 26px;
    margin-bottom: 16px;
}

.tla-stat-card:last-child {
    margin-bottom: 0;
}

.tla-stat-num {
    font-family: var(--tla-serif);
    font-size: 2.4rem;
    color: var(--tla-navy);
    margin: 0 0 6px;
    line-height: 1;
}

.tla-stat-num span {
    color: var(--tla-gold);
}

.tla-stat-desc {
    font-size: 0.8125rem;
    line-height: 1.65;
    color: var(--tla-muted);
    margin: 0;
}

.tla-testimonial-card {
    background: var(--tla-white);
    border: 1px solid #e5e0d6;
    border-radius: var(--tla-radius);
    padding: 24px 26px;
    margin-bottom: 16px;
}

.tla-testimonial-card:last-child {
    margin-bottom: 0;
}

.tla-testimonial-stars {
    color: var(--tla-gold);
    font-size: 0.8125rem;
    margin-bottom: 8px;
}

.tla-testimonial-quote {
    font-family: var(--tla-serif);
    font-size: 0.9375rem;
    font-style: italic;
    color: var(--tla-navy);
    line-height: 1.65;
    margin: 0 0 12px;
}

.tla-testimonial-author {
    font-size: 0.75rem;
    color: var(--tla-muted);
    margin: 0;
}

.tla-testimonial-author strong {
    color: var(--tla-navy);
}

/* ─────────────────────────────────────────────
   SECTION: CASE STUDIES
   ───────────────────────────────────────────── */
.tla-hp-casestudies {
    background: var(--tla-white);
    padding: var(--tla-section-py) 0;
}

.tla-hp-casestudies .tla-eyebrow,
.tla-hp-casestudies .tla-section-heading,
.tla-hp-casestudies .tla-section-sub {
    text-align: center;
}

.tla-cs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 44px;
}

.tla-cs-card {
    border: 1px solid #e5e0d6;
    border-radius: var(--tla-radius);
    overflow: hidden;
}

.tla-cs-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.tla-cs-body {
    padding: 18px 22px;
}

.tla-cs-tag {
    font-family: var(--tla-sans);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--tla-gold);
    margin-bottom: 6px;
}

.tla-cs-title {
    font-family: var(--tla-serif);
    font-size: 1rem;
    line-height: 1.35;
    color: var(--tla-navy);
    margin: 0;
}

/* ─────────────────────────────────────────────
   SECTION: CONSULTATION CTA
   ───────────────────────────────────────────── */
.tla-hp-consult {
    background: var(--tla-navy);
    padding: var(--tla-section-py) 0;
}

.tla-hp-consult .tla-hp-inner {
    display: flex;
    gap: 64px;
    align-items: flex-start;
}

.tla-consult-content {
    flex: 1;
}

.tla-consult-heading {
    font-family: var(--tla-serif);
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    line-height: 1.2;
    color: var(--tla-white);
    font-style: italic;
    margin: 0 0 18px;
}

.tla-consult-heading strong {
    font-style: normal;
    color: var(--tla-gold-light);
}

.tla-consult-desc {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 32px;
}

.tla-consult-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tla-consult-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
}

.tla-check-icon {
    width: 24px;
    height: 24px;
    background: rgba(201, 168, 76, 0.15);
    border: 1px solid var(--tla-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--tla-gold);
    font-size: 12px;
    margin-top: 1px;
}

.tla-consult-form-wrap {
    width: 300px;
    flex-shrink: 0;
    background: var(--tla-navy-mid);
    border: 1px solid var(--tla-border);
    border-radius: 8px;
    padding: 32px 28px;
}

.tla-consult-form-title {
    font-family: var(--tla-serif);
    font-size: 1.125rem;
    color: var(--tla-white);
    margin: 0 0 22px;
    text-align: center;
}

/* ─────────────────────────────────────────────
   SECTION: PODCAST
   ───────────────────────────────────────────── */
.tla-hp-podcast {
    background: var(--tla-off);
    padding: var(--tla-section-py) 0;
}

.tla-hp-podcast .tla-hp-inner {
    display: flex;
    gap: 60px;
    align-items: center;
}

.tla-podcast-img {
    flex: 0 0 280px;
    max-width: 280px;
}

.tla-podcast-img img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.tla-podcast-content {
    flex: 1;
}

.tla-podcast-content .tla-section-heading {
    font-size: clamp(1.5rem, 2.5vw, 1.875rem);
    margin-bottom: 12px;
}

/* ─────────────────────────────────────────────
   SECTION: LEAD MAGNET
   ───────────────────────────────────────────── */
.tla-hp-leadmag {
    background: var(--tla-navy);
    padding: 70px 0;
}

.tla-hp-leadmag .tla-hp-inner {
    display: flex;
    gap: 60px;
    align-items: center;
}

.tla-leadmag-img {
    flex: 0 0 200px;
    max-width: 200px;
}

.tla-leadmag-img img {
    width: 100%;
    height: auto;
    border-radius: var(--tla-radius);
    display: block;
}

.tla-leadmag-content {
    flex: 1;
}

.tla-leadmag-heading {
    font-family: var(--tla-serif);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--tla-white);
    font-style: italic;
    line-height: 1.25;
    margin: 0 0 12px;
}

.tla-leadmag-heading strong {
    font-style: normal;
    color: var(--tla-gold-light);
}

.tla-leadmag-sub {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 28px;
}

/* ─────────────────────────────────────────────
   SECTION: FAQ
   ───────────────────────────────────────────── */
.tla-hp-faq {
    background: var(--tla-white);
    padding: var(--tla-section-py) 0;
}

.tla-hp-faq .tla-eyebrow,
.tla-hp-faq .tla-section-heading {
    text-align: center;
}

.tla-faq-list {
    max-width: 760px;
    margin: 44px auto 0;
}

.tla-faq-item {
    border-bottom: 1px solid #e5e0d6;
}

.tla-faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-family: var(--tla-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--tla-navy);
    text-align: left;
}

.tla-faq-toggle {
    width: 24px;
    height: 24px;
    background: var(--tla-navy);
    color: var(--tla-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 300;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
    line-height: 1;
}

.tla-faq-item.is-open .tla-faq-toggle {
    background: var(--tla-gold);
    color: var(--tla-navy);
}

.tla-faq-answer {
    font-size: 0.875rem;
    line-height: 1.8;
    color: var(--tla-muted);
    padding: 0 40px 20px 0;
    display: none;
}

.tla-faq-item.is-open .tla-faq-answer {
    display: block;
}

/* ─────────────────────────────────────────────
   GRAVITY FORMS OVERRIDES (scoped)
   ───────────────────────────────────────────── */
.tla-hp-section .gform_wrapper input[type="text"],
.tla-hp-section .gform_wrapper input[type="email"],
.tla-hp-section .gform_wrapper input[type="tel"] {
    border-radius: 4px;
    border: 1px solid var(--tla-border);
    padding: 10px 14px;
    font-size: 0.875rem;
    color: var(--tla-white);
    background: rgba(255, 255, 255, 0.06);
}

.tla-hp-section .gform_wrapper input[type="submit"],
.tla-hp-section .gform_wrapper button[type="submit"] {
    background: var(--tla-gold) !important;
    color: var(--tla-navy) !important;
    font-weight: 700;
    border-radius: 3px;
    letter-spacing: 0.04em;
}

/* ─────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────── */
@media (max-width: 1024px) {
    :root {
        --tla-section-px: 40px;
    }

    .tla-features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tla-results-cols {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --tla-section-px: 24px;
        --tla-section-py: 56px;
    }

    .tla-hp-hero .tla-hp-inner {
        flex-direction: column;
        gap: 36px;
    }

    .tla-hero-media {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
    }

    .tla-features-grid {
        grid-template-columns: 1fr;
    }

    .tla-audience-items {
        grid-template-columns: 1fr;
    }

    .tla-cs-grid {
        grid-template-columns: 1fr;
    }

    .tla-hp-consult .tla-hp-inner {
        flex-direction: column;
    }

    .tla-consult-form-wrap {
        width: 100%;
    }

    .tla-hp-podcast .tla-hp-inner {
        flex-direction: column;
    }

    .tla-podcast-img {
        flex: 0 0 auto;
        max-width: 220px;
    }

    .tla-hp-leadmag .tla-hp-inner {
        flex-direction: column;
    }

    .tla-leadmag-img {
        flex: 0 0 auto;
        max-width: 160px;
    }
}

/* ─────────────────────────────────────────────
   FAQ INTERACTIVITY (vanilla JS fallback)
   ───────────────────────────────────────────── */
