/* ============================================
   NIGERIAN LAWCOMPASS — HOMEPAGE
   Navy/Gold, matching the site's established
   branding throughout.
   ============================================ */

/* ============================================
   HARD RESET — force the homepage to full width,
   overriding GeneratePress's left-sidebar + 80/20
   content/sidebar grid that the theme adds via
   body classes (left-sidebar, nav-left-sidebar).
   ============================================ */
body.nlc-homepage .site-content .content-area,
body.nlc-homepage .site-content #main,
body.nlc-homepage .site-content .site-main,
body.nlc-homepage #primary,
body.nlc-homepage #content .content-area {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 1 1 100% !important;
}

body.nlc-homepage #secondary,
body.nlc-homepage .widget-area,
body.nlc-homepage .sidebar {
    display: none !important;
    width: 0 !important;
}

body.nlc-homepage .site-content,
body.nlc-homepage #content {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
}

body.nlc-homepage .inside-article,
body.nlc-homepage .entry-content {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

body.nlc-homepage .grid-container {
    max-width: 100% !important;
}

/* Defensive fix: if this page renders inside a
   GeneratePress content+sidebar flex/grid container,
   each <section> would otherwise be treated as one
   side-by-side flex/grid item instead of stacking
   normally. Force this wrapper and every section
   inside it back to full-width block behavior,
   regardless of the parent's own layout assumptions. */
.nlc-homepage-wrapper {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
}

.nlc-homepage-wrapper section {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    box-sizing: border-box;
}

/* On the homepage, keep the LawCompass sidebar and top bar
   visible — they carry the site's navigation and search.
   Only hide the WordPress admin bar for logged-out visitors. */
body.nlc-homepage #wpadminbar {
    display: none !important;
}

/* Brand tokens scoped to every homepage section */
.nlc-hero, .nlc-pillars, .nlc-recent, .nlc-how-it-works,
.nlc-membership-teaser, .nlc-why-us, .nlc-final-cta {
    --color-primary: #1F3763;
    --color-primary-dark: #16294B;
    --color-secondary: #FFAE00;
    --color-secondary-dark: #E59E00;
    --color-terracotta: #B5651D;
    --color-white: #FFFFFF;
    --color-gray-50: #F9FAFB;
    --color-gray-200: #E5E7EB;
    --color-gray-600: #4B5563;
    --color-gray-900: #111827;
}

.nlc-section-inner {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.nlc-section-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1F3763;
    text-align: center;
    margin: 0 0 0.5rem 0;
}

.nlc-section-subtitle {
    font-size: 1rem;
    color: #4B5563;
    text-align: center;
    max-width: 560px;
    margin: 0 auto 2.5rem;
}

/* ============================================
   1. HERO
   ============================================ */
.nlc-hero {
    background: linear-gradient(90deg, #1F3763 0%, #1F3763 42%, #FFFFFF 78%, #FFFFFF 100%);
    padding: 4rem 1.5rem;
}

.nlc-hero-columns {
    max-width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 3rem;
    align-items: center;
}

.nlc-hero-inner {
    text-align: left;
}

.nlc-hero-welcome {
    font-size: 1.125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.5px;
    margin: 0 0 1.5rem 0;
}

/* ============================================
   HERO VALUES DIAL - same click-to-rotate compass
   mechanism as About Us, adapted for the dark
   Navy hero background (lighter dial tones).
   ============================================ */
.nlc-hero-panel {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nlc-hero-dial-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.nlc-hero-dial {
    position: relative;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, #F9FAFB 0%, #FFFFFF 70%);
    border: 2px dashed #E5E7EB;
    transform: rotate(var(--dial-rotation, 0deg));
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
    flex-shrink: 0;
}

.nlc-hero-dial-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border-radius: 50%;
    background: #1F3763;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
    font-weight: 800;
    font-size: 0.9375rem;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
    transform: rotate(var(--angle)) translate(112px) rotate(calc(-1 * var(--angle) - var(--dial-rotation, 0deg)));
}

.nlc-hero-dial-badge:hover {
    background: #E59E00;
    border-color: #FFAE00;
}

.nlc-hero-dial-badge.is-active {
    background: #FFAE00;
    color: #16294B;
    border-color: #FFAE00;
    transform: rotate(var(--angle)) translate(112px) rotate(calc(-1 * var(--angle) - var(--dial-rotation, 0deg))) scale(1.15);
}

.nlc-hero-dial-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    border-radius: 50%;
    background: #1F3763;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    transform: rotate(var(--dial-rotation, 0deg));
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.nlc-hero-dial-detail {
    position: relative;
    width: 100%;
    max-width: 340px;
    min-height: 100px;
    text-align: center;
}

.nlc-hero-dial-detail-item {
    display: none;
    animation: nlc-hero-dial-fade-in 0.35s ease;
}

.nlc-hero-dial-detail-item.is-active {
    display: block;
}

@keyframes nlc-hero-dial-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.nlc-hero-dial-detail-item h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #E59E00;
    margin: 0 0 0.5rem 0;
}

.nlc-hero-dial-detail-item p {
    font-size: 1rem;
    color: #4B5563;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 600px) {
    .nlc-hero-dial {
        width: 220px;
        height: 220px;
    }

    .nlc-hero-dial-badge {
        transform: rotate(var(--angle)) translate(94px) rotate(calc(-1 * var(--angle) - var(--dial-rotation, 0deg)));
    }

    .nlc-hero-dial-badge.is-active {
        transform: rotate(var(--angle)) translate(94px) rotate(calc(-1 * var(--angle) - var(--dial-rotation, 0deg))) scale(1.15);
    }
}

.nlc-hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.3;
    margin: 0 0 1.25rem 0;
}

.nlc-hero-subtitle {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 0 0 2.5rem 0;
}

.nlc-hero-search {
    display: flex;
    gap: 0.5rem;
    max-width: 560px;
    margin: 0 auto 3rem;
}

.nlc-hero-search input {
    flex: 1;
    padding: 1rem 1.25rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
}

.nlc-hero-search input:focus {
    outline: 3px solid #FFAE00;
}

.nlc-hero-search button {
    padding: 1rem 1.75rem;
    background: #FFAE00;
    color: #16294B;
    border: none;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.nlc-hero-search button:hover {
    background: #E59E00;
}

.nlc-hero-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.nlc-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.nlc-hero-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #FFAE00;
}

.nlc-hero-stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   2. FOUR PILLARS
   ============================================ */
.nlc-pillars {
    padding: 4.5rem 1.5rem;
    background: #FFFFFF;
}

.nlc-pillars .nlc-section-inner {
    max-width: 100%;
}

.nlc-pillars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 100%;
    margin: 0 auto;
}

.nlc-pillar-card {
    display: block;
    padding: 2rem 1.75rem;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 1rem;
    text-decoration: none;
    color: inherit;
    text-align: center;
    transition: all 0.2s ease;
}

.nlc-pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: #FFAE00;
}

.nlc-pillar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 0.75rem;
    margin: 0 auto 1.25rem;
    color: #FFFFFF;
}

.nlc-pillar-cases .nlc-pillar-icon { background: #1F3763; }
.nlc-pillar-ratios .nlc-pillar-icon { background: #B5651D; }
.nlc-pillar-statutes .nlc-pillar-icon { background: #4A6FA5; }
.nlc-pillar-rules .nlc-pillar-icon { background: #E59E00; }

.nlc-pillar-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1F3763;
    margin: 0 0 0.5rem 0;
}

.nlc-pillar-card p {
    font-size: 0.9375rem;
    color: #4B5563;
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.nlc-pillar-count {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #E59E00;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   3. RECENTLY ADDED
   ============================================ */
.nlc-recent {
    padding: 4.5rem 1.5rem;
    background: #F9FAFB;
}

.nlc-recent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.nlc-recent-card {
    display: block;
    padding: 1.5rem;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.nlc-recent-card:hover {
    border-color: #FFAE00;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.nlc-recent-type {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    margin-bottom: 0.75rem;
    color: #FFFFFF;
}

.nlc-recent-type-judgment { background: #1F3763; }
.nlc-recent-type-principle { background: #B5651D; }
.nlc-recent-type-statute { background: #4A6FA5; }
.nlc-recent-type-rules_of_court { background: #E59E00; }

.nlc-recent-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1F3763;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.nlc-recent-date {
    font-size: 0.8125rem;
    color: #4B5563;
}

/* ============================================
   4. HOW IT WORKS
   ============================================ */
.nlc-how-it-works {
    padding: 4.5rem 1.5rem;
    background: #FFFFFF;
}

.nlc-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 100%;
    margin: 0 auto;
}

.nlc-step {
    text-align: center;
}

.nlc-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    background: #FFAE00;
    color: #16294B;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 800;
}

.nlc-step h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1F3763;
    margin: 0 0 0.5rem 0;
}

.nlc-step p {
    font-size: 0.9375rem;
    color: #4B5563;
    line-height: 1.6;
}

/* ============================================
   5. MEMBERSHIP TEASER
   ============================================ */
.nlc-membership-teaser {
    padding: 4.5rem 1.5rem;
    background: #F9FAFB;
}

.nlc-tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    max-width: 100%;
    margin: 0 auto 2.5rem;
}

.nlc-tier-card {
    position: relative;
    text-align: center;
    padding: 2rem 1.5rem;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 1rem;
}

.nlc-tier-featured {
    border-color: #FFAE00;
    border-width: 2px;
    transform: scale(1.05);
}

.nlc-tier-featured-label {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #FFAE00;
    color: #16294B;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

.nlc-tier-badge {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.nlc-tier-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1F3763;
    margin: 0 0 0.5rem 0;
}

.nlc-membership-cta {
    text-align: center;
}

.nlc-btn-primary {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: #1F3763;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.9375rem;
    transition: background 0.2s ease;
}

.nlc-btn-primary:hover {
    background: #16294B;
    color: #FFFFFF;
}

/* Sanctum levels embedded in the plans section */
.nlc-membership-teaser .nlc-sl {
    padding-top: 0;
}

.nlc-membership-teaser .nlc-sl-includes {
    background: #FFFFFF;
}

/* ============================================
   6. WHY LAWCOMPASS + TESTIMONIALS
   ============================================ */
.nlc-why-us {
    padding: 4.5rem 1.5rem;
    background: #FFFFFF;
}

.nlc-why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    max-width: 100%;
    margin: 0 auto 3rem;
}

.nlc-why-item { text-align: center; }

.nlc-why-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.nlc-why-item h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1F3763;
    margin: 0 0 0.5rem 0;
}

.nlc-why-item p {
    font-size: 0.9375rem;
    color: #4B5563;
    line-height: 1.6;
}

.nlc-testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 100%;
    margin: 3.5rem auto 0;
}

.nlc-testimonial-card {
    display: flex;
    flex-direction: column;
    padding: 2rem 1.75rem;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-top: 4px solid #FFAE00;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.nlc-testimonial-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1F3763;
    margin: 0 0 0.75rem 0;
}

.nlc-testimonial-quote {
    font-size: 0.9375rem;
    font-style: italic;
    color: #111827;
    line-height: 1.7;
    margin: 0 0 1.5rem 0;
    flex: 1;
}

.nlc-testimonial-author {
    font-size: 0.8125rem;
    font-weight: 800;
    color: #E59E00;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.5;
    display: block;
}

.nlc-testimonial-role {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #4B5563;
    text-transform: none;
    letter-spacing: 0;
    margin-top: 0.25rem;
}

/* ============================================
   7. FINAL CTA
   ============================================ */
.nlc-final-cta {
    padding: 4.5rem 1.5rem;
    background: linear-gradient(135deg, #1F3763 0%, #16294B 100%);
    text-align: center;
}

.nlc-final-cta h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 0.75rem 0;
}

.nlc-final-cta p {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 2rem 0;
}

.nlc-btn-gold-large {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #FFAE00;
    color: #16294B;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 800;
    font-size: 1.0625rem;
    transition: background 0.2s ease;
}

.nlc-btn-gold-large:hover {
    background: #E59E00;
    color: #16294B;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .nlc-hero {
        background: linear-gradient(180deg, #1F3763 0%, #1F3763 55%, #FFFFFF 85%, #FFFFFF 100%);
    }

    .nlc-hero-columns {
        grid-template-columns: 1fr;
    }

    .nlc-hero-inner {
        text-align: center;
    }

    .nlc-hero-search {
        margin-left: auto;
        margin-right: auto;
    }

    .nlc-hero-stats {
        justify-content: center;
    }

    .nlc-testimonials {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .nlc-hero-title {
        font-size: 2rem;
    }

    .nlc-hero-search {
        flex-direction: column;
    }

    .nlc-hero-stats {
        gap: 1.5rem;
    }

    .nlc-tier-featured {
        transform: none;
    }

    .nlc-section-title {
        font-size: 1.5rem;
    }

    .nlc-book-slider {
        height: 280px;
    }
}