/* Healthcare Payer Transformation Book Series - Microsite Styles */

:root {
    /* Colors */
    --primary: #0066CC;
    --primary-dark: #004C99;
    --secondary: #00A36C;
    --accent: #FF6B35;
    --dark: #1a1a2e;
    --darker: #0f0f1a;
    --light: #f8f9fa;
    --gray: #6c757d;
    --gray-light: #e9ecef;

    /* Spacing */
    --section-padding: 6rem 0;
    --container-width: 1200px;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Transitions */
    --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
    overflow-x: hidden;
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 0;
    z-index: 1001;
    transition: width 0.1s ease;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--dark);
    transition: var(--transition);
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--dark);
    border: 2px solid var(--gray-light);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-amazon {
    background: #FF9900;
    color: #111;
}

.btn-amazon:hover {
    background: #E88B00;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 153, 0, 0.3);
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 4rem;
    background: linear-gradient(135deg, var(--light) 0%, #e8f4fc 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230066CC' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.hero-authors {
    margin-bottom: 2rem;
    color: var(--dark);
    font-size: 1.1rem;
}

.hero-authors strong {
    color: var(--primary);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.book-stack {
    position: relative;
    width: 350px;
    height: 450px;
}

.stack-book {
    position: absolute;
    width: 200px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.book-1 { left: 0; top: 50px; transform: rotate(-8deg); z-index: 5; }
.book-2 { left: 40px; top: 30px; transform: rotate(-4deg); z-index: 4; }
.book-3 { left: 80px; top: 20px; transform: rotate(0deg); z-index: 3; }
.book-4 { left: 120px; top: 30px; transform: rotate(4deg); z-index: 2; }
.book-5 { left: 160px; top: 50px; transform: rotate(8deg); z-index: 1; }

.stack-book:hover {
    transform: translateY(-20px) rotate(0deg) scale(1.05);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

/* Problem Section */
.problem {
    padding: var(--section-padding);
    background: var(--dark);
    color: white;
}

.problem .section-title {
    color: white;
}

.problem .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.problem-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.problem-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.problem-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.problem-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.problem-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* Books Section */
.books {
    padding: var(--section-padding);
    background: white;
}

.book-feature {
    display: flex;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
    padding: 3rem;
    background: var(--light);
    border-radius: 24px;
}

.book-feature.reverse {
    flex-direction: row-reverse;
}

.book-feature:last-child {
    margin-bottom: 0;
}

.book-cover {
    flex-shrink: 0;
}

.book-cover img {
    width: 250px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.book-cover img:hover {
    transform: scale(1.03) rotate(1deg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

.book-details {
    flex: 1;
}

.book-number {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.book-details h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.book-tagline {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.book-description {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.book-highlights {
    list-style: none;
    margin-bottom: 2rem;
}

.book-highlights li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.book-highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

/* Metrics Section */
.metrics {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.metrics .section-title {
    color: white;
}

.metrics .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.metric-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.metric-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.metric-compare {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Authors Section */
.authors {
    padding: var(--section-padding);
    background: var(--light);
}

.authors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.author-card {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.author-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.author-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.author-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: var(--dark);
}

.author-title {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.author-bio {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.author-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--primary-dark);
}

/* Contact Section */
.contact {
    padding: var(--section-padding);
    background: white;
    text-align: center;
}

.contact-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: var(--darker);
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 6rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 3rem;
    }

    .book-stack {
        width: 280px;
        height: 350px;
    }

    .stack-book {
        width: 140px;
    }

    .book-1 { left: 0; top: 40px; }
    .book-2 { left: 30px; top: 25px; }
    .book-3 { left: 60px; top: 15px; }
    .book-4 { left: 90px; top: 25px; }
    .book-5 { left: 120px; top: 40px; }

    .problem-grid,
    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .book-feature,
    .book-feature.reverse {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 2rem;
    }

    .book-highlights {
        text-align: left;
        max-width: 400px;
        margin: 0 auto 2rem;
    }

    .authors-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem 2rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .book-cover img {
        width: 180px;
    }

    .metric-value {
        font-size: 2rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-cta,
    .contact-cta {
        flex-direction: column;
    }
}
