/* ===================================
   THE LEANER CIRCLE - LANDING PAGE STYLES
   Executive Health Platform
   =================================== */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Brand Colors - Matching Diego Carrete Site */
    --primary-dark: #4a5568;
    --primary-blue: #4a5568;
    --primary-blue-hover: #2d3748;
    --accent-blue: #5a6c7d;
    --newsletter-blue: #4a5568;
    
    /* Neutral Colors - Matching Existing Site */
    --white: #ffffff;
    --light-gray: #f7fafc;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e0;
    --gray-400: #a0aec0;
    --gray-500: #718096;
    --gray-600: #4a5568;
    --gray-700: #2d3748;
    --gray-800: #1a202c;
    --gray-900: #171923;
    
    /* Typography - Matching Diego Carrete Site */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Open Sans', sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    
    /* Spacing */
    --section-padding: 5rem 0;
    --container-max-width: 1200px;
    --container-padding: 0 2rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

/* Base Typography */
body {
    font-family: var(--font-family);
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    overflow-x: hidden;
}

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

/* Header Styles - Matching Diego Carrete Site */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

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

.nav-brand h1 {
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
    color: var(--gray-800);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Hero Section - Elegant & Centered */
.hero {
    background: var(--white);
    padding: 8rem 0 6rem;
    text-align: center;
    position: relative;
    margin-top: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-size: 2.75rem;
    font-weight: var(--font-weight-normal);
    color: var(--gray-800);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-align: center;
    letter-spacing: -0.025em;
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: var(--font-weight-normal);
    color: var(--gray-500);
    margin-bottom: 2.5rem;
    text-transform: none;
    letter-spacing: 0.025em;
    text-align: center;
    max-width: 500px;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 3rem;
    line-height: 1.7;
    max-width: 550px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.trust-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--gray-500);
    margin-top: 2.5rem;
    font-weight: var(--font-weight-normal);
    text-align: center;
}

.trust-indicator i {
    color: var(--gray-400);
    font-size: 1rem;
}

/* CTA Buttons - Elegant & Centered */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 2.5rem;
    border-radius: 0.5rem;
    font-weight: var(--font-weight-medium);
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    min-width: 220px;
    text-align: center;
    letter-spacing: 0.025em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cta-button.primary {
    background: var(--primary-blue);
    color: var(--white);
    box-shadow: none;
    border-radius: 0.5rem;
}

.cta-button.primary:hover {
    background: var(--primary-blue-hover);
    transform: none;
}

.cta-button.secondary {
    background: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    box-shadow: var(--shadow-md);
}

.cta-button.secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

/* Sections - Elegant Spacing & Centering */
.services,
.newsletter {
    padding: 6rem 0;
}

.services {
    background: var(--white);
    text-align: center;
}

.newsletter {
    background: var(--newsletter-blue);
    color: var(--white);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.section-title {
    font-size: 2.25rem;
    font-weight: var(--font-weight-normal);
    color: var(--gray-800);
    text-align: center;
    margin-bottom: 4rem;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.newsletter .section-title {
    color: var(--white);
    margin-bottom: 2rem;
}

/* Services Grid - Centered & Elegant */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 4rem;
    margin: 0 auto;
    max-width: 1100px;
    align-items: start;
    justify-items: center;
}

.service-card {
    background: var(--white);
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
    width: 100%;
    max-width: 520px;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-badge {
    display: inline-block;
    background: var(--primary-blue);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    text-align: center;
}

.card-title {
    font-size: 1.75rem;
    font-weight: var(--font-weight-semibold);
    color: var(--gray-800);
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: -0.025em;
}

.card-description {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.7;
    text-align: center;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.card-value {
    font-size: 0.95rem;
    color: var(--gray-500);
    font-style: italic;
    margin-bottom: 2.5rem;
    text-align: center;
    line-height: 1.5;
}

.card-note {
    font-size: 0.9rem;
    color: var(--gray-500);
    text-align: center;
    margin-top: 2rem;
    font-weight: var(--font-weight-normal);
    font-style: italic;
}

/* Calendly Widget Styling - Elegant Integration */
.calendly-inline-widget {
    margin: 2rem auto;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 100%;
}

/* Newsletter Section - Centered & Elegant */
.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
}

.newsletter-description {
    font-size: 1.125rem;
    color: var(--white);
    margin-bottom: 3rem;
    line-height: 1.7;
    opacity: 0.95;
    text-align: center;
    max-width: 500px;
}

.substack-embed {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    width: 100%;
}

.substack-embed iframe {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    background: var(--white);
    margin: 0 auto;
    padding: 1rem;
}

/* Additional spacing for newsletter section */
.newsletter-content {
    padding: 2rem 1rem;
}

/* Footer - Matching Diego Carrete Site */
.footer {
    background: var(--newsletter-blue);
    color: var(--white);
    padding: 3rem 0 2rem;
}

.footer-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.social-icons a {
    color: var(--white);
    font-size: 1.5rem;
    opacity: 0.8;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icons a:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.disclaimer {
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
    text-align: center;
}

.copyright {
    font-size: 0.8rem;
    color: var(--white);
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.8;
    text-align: center;
    width: 100%;
}

/* Responsive Design - Maintaining Elegance */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        max-width: 600px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .hero {
        min-height: 70vh;
    }

    .newsletter {
        min-height: 50vh;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 0 1.5rem;
    }
    
    .hero {
        padding: 5rem 0 4rem;
        min-height: 60vh;
    }
    
    .hero-title {
        font-size: 2.25rem;
        margin-bottom: 1.25rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 2.5rem;
        max-width: 90%;
    }
    
    .section-title {
        font-size: 1.875rem;
        margin-bottom: 3rem;
    }
    
    .service-card {
        padding: 2.5rem 2rem;
        margin: 0 auto;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        max-width: 500px;
    }
    
    .services,
    .newsletter {
        padding: 4rem 0;
    }
    
    .newsletter {
        min-height: 40vh;
    }
    
    .calendly-inline-widget {
        height: 500px;
        margin: 1.5rem auto;
    }
    
    .substack-embed iframe {
        width: 100%;
        max-width: 380px;
        height: 280px;
    }

    .social-icons {
        gap: 1.5rem;
    }

    .social-icons a {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 0 1rem;
    }

    .nav-brand h1 {
        font-size: 1.125rem;
    }
    
    .hero {
        padding: 4rem 0 3rem;
        min-height: 50vh;
    }
    
    .hero-title {
        font-size: 1.875rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 2rem;
        max-width: 95%;
    }
    
    .cta-button {
        padding: 1rem 2rem;
        font-size: 0.95rem;
        min-width: 200px;
        margin: 0 auto;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
        max-width: 90%;
        margin: 0 auto;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2.5rem;
    }

    .services,
    .newsletter {
        padding: 3rem 0;
    }

    .newsletter-description {
        font-size: 1rem;
        max-width: 95%;
    }

    .newsletter-content {
        padding: 2rem 1.5rem;
    }

    .substack-embed iframe {
        width: 100%;
        max-width: 320px;
        height: 260px;
        padding: 0.75rem;
    }

    .social-icons {
        gap: 1.25rem;
        margin-bottom: 2.5rem;
    }

    .social-icons a {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .trust-indicator {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 2rem;
    }
}

/* Loading and Animation States - Elegant Transitions */
.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth scrolling for elegant navigation */
html {
    scroll-behavior: smooth;
}

/* Enhanced focus states for accessibility */
.cta-button:focus,
.service-card:focus-within {
    outline: 3px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Elegant loading state */
.service-card,
.hero-content,
.newsletter-content {
    animation: fadeInUp 0.6s ease forwards;
}

.service-card:nth-child(2) {
    animation-delay: 0.2s;
}

/* Hover states for enhanced interactivity */
.nav-brand h1:hover {
    color: var(--primary-blue);
    transition: color 0.3s ease;
}

/* Focus and Accessibility */
.cta-button:focus,
.service-card:focus-within {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .header,
    .calendly-inline-widget,
    .substack-embed {
        display: none;
    }
    
    .hero {
        margin-top: 0;
        padding-top: 2rem;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --gray-600: var(--gray-800);
        --gray-500: var(--gray-700);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}