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

body {
    font-family: 'Noto Serif', Georgia, serif;
    background: #0a0a0a;
    color: #e8e8e8;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.light-mode {
    background: #fafafa;
    color: #1a1a1a;
}

.container {
    max-width: 640px;
    margin: 0 auto;
    padding: 80px 32px 120px;
    min-height: 100vh;
}

/* =========================================
   2. HEADER & LOGO
   ========================================= */
header {
    margin-bottom: 80px; /* Standardized to the smaller margin */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Optional: Add this class to the <header> of the first page if you want the 120px gap */
header.header-large {
    margin-bottom: 120px;
}

.logo {
    width: 120px;
    height: auto;
}

.logo-svg {
    width: 100%;
    height: auto;
    display: block;
}

.logo-svg:hover {
    opacity: 0.6;
}

/* =========================================
   3. THEME TOGGLE & ICONS
   ========================================= */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.theme-toggle:hover {
    opacity: 1;
}

.theme-icon {
    width: 20px;
    height: 20px;
    /* merged fill and stroke to support both icon types */
    fill: #e8e8e8;
    stroke: #e8e8e8; 
    transition: fill 0.3s ease, stroke 0.3s ease;
}

body.light-mode .theme-icon {
    fill: #1a1a1a;
    stroke: #1a1a1a;
}

/* =========================================
   4. TYPOGRAPHY
   ========================================= */
h1 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 24px;
    color: #e8e8e8;
}

h2 {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 40px;
    color: #d0d0d0;
}

.lead {
    font-size: 24px;
    line-height: 1.6;
    margin-bottom: 2em;
    color: #e8e8e8;
}

.content p {
    font-size: 21px;
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 1.4em;
    color: #d0d0d0;
    transition: color 0.3s ease;
}

.content p:last-of-type {
    margin-bottom: 0;
}

p.description {
    font-size: 19px;
    line-height: 1.7;
    color: #b0b0b0;
    margin-bottom: 60px;
}

.emphasis {
    font-style: italic;
    color: #f0f0f0;
}

/* Typography Light Mode Overrides */
body.light-mode h1,
body.light-mode .lead,
body.light-mode .emphasis {
    color: #1a1a1a;
}

body.light-mode h2,
body.light-mode .content p {
    color: #2a2a2a;
}

body.light-mode .description {
    color: #4a4a4a;
}

/* =========================================
   5. COMPONENTS & UTILITIES
   ========================================= */
.spacer {
    height: 60px;
}

.divider {
    width: 40px;
    height: 1px;
    background: #333;
    margin: 80px 0;
    transition: background-color 0.3s ease;
}

body.light-mode .divider {
    background: #d0d0d0;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 2px;
    background: #1a1a1a;
    margin-bottom: 60px;
    transition: background-color 0.3s ease;
}

body.light-mode .progress-bar {
    background: #e5e5e5;
}

.progress-fill {
    height: 100%;
    background: #F50537;
    width: 0%;
    transition: width 0.4s ease;
}

/* Buttons & CTAs */
.cta {
    display: inline-block;
    margin-top: 48px;
    padding: 0;
    background: none;
    color: #e8e8e8;
    text-decoration: none;
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 2px solid #e8e8e8;
    padding-bottom: 2px;
    transition: all 0.25s ease;
}

body.light-mode .cta {
    color: #1a1a1a;
    border-bottom-color: #1a1a1a;
}

.cta:hover {
    opacity: 0.6;
}

.btn-primary {
    display: inline-block;
    margin-top: 60px;
    padding: 16px 48px;
    background: #F50537;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Noto Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #d00430;
}

/* Calendly Widget */
.calendly-container {
    background: #151515;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 24px;
    transition: all 0.3s ease;
}

body.light-mode .calendly-container {
    background: #ffffff;
    border-color: #e5e5e5;
}

.calendly-inline-widget {
    border-radius: 4px;
    overflow: hidden;
}

/* =========================================
   6. FOOTER
   ========================================= */
footer {
    margin-top: 100px;
    padding-top: 60px;
    border-top: 1px solid #2a2a2a;
    transition: border-color 0.3s ease;
}

body.light-mode footer {
    border-top-color: #e5e5e5;
}

footer p {
    font-size: 19px;
    margin-bottom: 0.8em;
}

/* =========================================
   7. ANIMATIONS
   ========================================= */
.content {
    margin-bottom: 60px;
    animation: fadeIn 0.4s ease;
}

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

/* =========================================
   8. RESPONSIVE (Unified Breakpoint)
   ========================================= */
@media (max-width: 768px) {
    .container {
        padding: 60px 24px 100px;
    }

    header, 
    header.header-large {
        margin-bottom: 60px;
    }

    .logo {
        width: 100px;
    }

    h1 {
        font-size: 26px;
    }

    .content p {
        font-size: 19px;
    }

    .lead {
        font-size: 21px;
    }

    .description {
        font-size: 17px;
        margin-bottom: 40px;
    }

    .divider {
        margin: 60px 0;
    }

    .spacer {
        height: 40px;
    }

    footer {
        margin-top: 80px;
    }

    footer p {
        font-size: 17px;
    }

    .calendly-container {
        padding: 16px;
    }

    .calendly-inline-widget {
        height: 750px !important;
    }
}