/* ============================================
   LEADERSHIP PERMIT WEBSITE STYLES
   Navy Blue + White Theme
   ============================================ */

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1f2937;
    background: #ffffff;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: #111827;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; font-weight: 700; color: #1e3a8a; }
h2 { font-size: 2.5rem; font-weight: 700; color: #1e3a8a; }
h3 { font-size: 1.5rem; font-weight: 600; color: #1e3a8a; }
h4 { font-size: 1.25rem; font-weight: 600; color: #1e3a8a; }

p {
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.7;
    color: #374151;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
}

.section-gray {
    background: #f9fafb;
}

.section-navy {
    background: #1e3a8a;
    color: #ffffff;
}

.section-navy h2,
.section-navy p {
    color: #ffffff;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e3a8a;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.25rem;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-menu > li > a:not(.btn-primary-small) {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.nav-hamburger {
    display: none;
}

.nav-menu a {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: #1e3a8a;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary,
.btn-secondary,
.btn-primary-small {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: #1e3a8a;
    color: #ffffff !important;
}

.btn-primary:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #1e3a8a;
    border: 2px solid #1e3a8a;
}

.btn-secondary:hover {
    background: #1e3a8a;
    color: #ffffff;
}

.btn-primary-small {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    background: #1e3a8a;
    color: #ffffff !important;
}

.btn-link {
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
}

.btn-link:hover {
    text-decoration: underline;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: #ffffff;
    padding: 6rem 0 8rem;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    color: #e0e7ff;
}

/* ============================================
   FORMULA
   ============================================ */
.formula {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    margin: 3rem auto;
    max-width: 900px;
    backdrop-filter: blur(10px);
}

.formula-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.formula-part {
    background: #ffffff;
    color: #1e3a8a;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1.25rem;
}

.formula-operator,
.formula-equals {
    font-size: 2rem;
    color: #ffffff;
}

.formula-result {
    background: #ea580c;
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1.25rem;
}

/* ============================================
   HERO CTA
   ============================================ */
.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2.5rem;
}

.hero-cta .btn-secondary {
    border-color: #ffffff;
    color: #ffffff;
}

.hero-cta .btn-secondary:hover {
    background: #ffffff;
    color: #1e3a8a;
}

/* ============================================
   SECTION TITLE
   ============================================ */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1e3a8a;
}

.section-title-center {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1e3a8a;
}

/* ============================================
   CARDS & COLUMNS
   ============================================ */
.three-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.card h3 {
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.card p {
    color: #374151;
    line-height: 1.6;
}

/* Cards on navy backgrounds (like problems section) */
.section-navy .card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.section-navy .card:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.section-navy .card h3 {
    color: #ffffff;
}

.section-navy .card p {
    color: #e0e7ff;
}

/* ============================================
   FRAMEWORK INTRO
   ============================================ */
.framework-intro {
    max-width: 900px;
    margin: 0 auto 4rem;
    text-align: center;
}

/* ============================================
   THREE PILLARS
   ============================================ */
.three-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin: 4rem 0;
}

.pillar {
    text-align: center;
    padding: 2rem;
}

.pillar-icon {
    width: 80px;
    height: 80px;
    background: #1e3a8a;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.pillar h3 {
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

/* ============================================
   CTA CENTERED
   ============================================ */
.cta-centered {
    text-align: center;
    margin-top: 3rem;
}

/* ============================================
   FREE OFFER
   ============================================ */
.free-offer {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.free-offer h2 {
    color: #ffffff;
    margin-bottom: 1rem;
}

/* ============================================
   FORMS
   ============================================ */
.email-form {
    margin-top: 2rem;
}

.form-group-inline {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.form-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
}

.section-navy .form-input {
    border-color: #ffffff;
    background: #ffffff;
    color: #1f2937;
}

.section-navy .form-input::placeholder {
    color: #9ca3af;
}

.form-note {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    opacity: 0.8;
}

/* ============================================
   BOOKS GRID
   ============================================ */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin: 3rem 0;
}

.book-card {
    text-align: center;
    padding: 2rem;
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.book-cover {
    margin-bottom: 1.5rem;
}

.book-cover-placeholder {
    width: 200px;
    height: 300px;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    margin: 0 auto;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.book-cover-placeholder.coming-soon {
    background: linear-gradient(135deg, #6b7280, #9ca3af);
}

.book-meta {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.book-card h3 {
    color: #1e3a8a;
    margin: 1rem 0;
}

/* ============================================
   EMAIL SIGNUP BOX
   ============================================ */
.email-signup-box {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem;
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.email-signup-box h2 {
    color: #1e3a8a;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #111827;
    color: #9ca3af;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .formula-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        padding: 0.5rem 0 1rem;
        z-index: 999;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 0.75rem 1.5rem;
        border-bottom: 1px solid #f3f4f6;
    }

    .nav-menu li:last-child a {
        margin: 0.75rem 1.5rem 0;
        width: auto;
        display: inline-block;
        border-bottom: none;
    }

    .nav-hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 20px;
        cursor: pointer;
        background: none;
        border: none;
        padding: 0;
    }

    .nav-hamburger span {
        display: block;
        height: 2px;
        width: 100%;
        background: #1e3a8a;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .nav-hamburger.open span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .nav-hamburger.open span:nth-child(2) {
        opacity: 0;
    }

    .nav-hamburger.open span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .nav {
        position: relative;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .form-group-inline {
        flex-direction: column;
    }
    
    .section {
        padding: 3rem 0;
    }
}

/* ============================================
   TESTIMONIAL CAROUSEL
   ============================================ */
.testimonial-carousel {
    max-width: 900px;
    margin: 3rem auto 0;
    position: relative;
}

.testimonial-wrapper {
    position: relative;
    min-height: 300px;
    overflow: hidden;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.testimonial-slide.active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
}

.testimonial-quote {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #ffffff;
    font-style: italic;
    margin: 0 0 1.5rem 0;
    text-align: left;
}

.testimonial-author {
    font-weight: 700;
    color: #ffffff;
    font-size: 1rem;
    margin: 0 0 0.25rem 0;
    text-align: left;
}

.testimonial-title {
    color: #e0e7ff;
    font-size: 0.9rem;
    margin: 0;
    text-align: left;
}

.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.carousel-arrow {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.carousel-arrow:hover {
    background: #ffffff;
    color: #1e3a8a;
    transform: scale(1.1);
}

.carousel-arrow:active {
    transform: scale(0.95);
}

.carousel-dots {
    display: flex;
    gap: 0.75rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.dot.active {
    background: #ea580c;
    transform: scale(1.3);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .testimonial-slide {
        padding: 1.5rem;
        min-height: 350px;
    }
    
    .testimonial-quote {
        font-size: 1rem;
    }
    
    .carousel-arrow {
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
    }
}

/* ============================================
   TYPOGRAPHY UTILITIES
   ============================================ */
.text-lg {
    font-size: 1.25rem;
    line-height: 1.6;
}

.text-base {
    font-size: 1rem;
    line-height: 1.5;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.4;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1.3;
}

.lead {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #6b7280;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.section-subsection {
    margin-top: 3rem;
    color: #1e3a8a;
}

.text-center {
    text-align: center;
}

/* ============================================
   PAGE HERO (for internal pages)
   ============================================ */
.page-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: #ffffff;
    padding: 4rem 0;
}

.page-hero h1 {
    color: #ffffff;
}

.page-hero p {
    color: #e0e7ff;
}

/* ============================================
   ICON & DECORATION UTILITIES
   ============================================ */
.icon-checkmark {
    color: #ea580c;
    font-size: 1.5rem;
    font-weight: bold;
}

.icon-success {
    font-size: 3rem;
    color: #10b981;
    margin-bottom: 1.5rem;
}

/* ============================================
   COLOR UTILITIES (Documented)
   ============================================ */
.color-navy {
    color: #1e3a8a;
}

.color-gray {
    color: #6b7280;
}

.color-gray-dark {
    color: #374151;
}

.color-gray-light {
    color: #9ca3af;
}

.color-white {
    color: #ffffff;
}

.color-light-blue {
    color: #e0e7ff;
}

.color-orange {
    color: #ea580c;
}

.color-green {
    color: #10b981;
}
/* ============================================
   COMPLETE UNIFORMITY SYSTEM
   ============================================ */

/* PAGE HERO SECTIONS (Books, Framework, Resources, etc) */
.page-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: #ffffff;
    padding: 4rem 0;
    text-align: center;
}

.page-hero h1 {
    color: #ffffff;
}

.page-hero .lead {
    color: #e0e7ff;
}

/* STANDARDIZED COLORS - Use these classes instead of inline */
.text-navy { color: #1e3a8a; }
.text-gray { color: #6b7280; }
.text-gray-dark { color: #374151; }
.text-gray-light { color: #9ca3af; }
.text-white { color: #ffffff; }
.text-light-blue { color: #e0e7ff; }
.text-orange { color: #ea580c; }
.text-green { color: #10b981; }

/* ICON UTILITIES */
.icon-check {
    color: #ea580c;
    font-size: 1.5rem;
    font-weight: 700;
}

.icon-success {
    font-size: 3rem;
    color: #10b981;
    margin-bottom: 1.5rem;
}

/* ENSURE CONSISTENCY */
h1, h2, h3, h4 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

p, li, span, a {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ============================================
   FORMULA ON WHITE BACKGROUNDS
   ============================================ */
.formula-white {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    margin: 3rem auto;
    max-width: 900px;
}

.formula-white .formula-operator,
.formula-white .formula-equals {
    color: #1e3a8a;
}
