/* --- Universal Styles & Variables --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600&family=Great+Vibes&family=Lora:ital@1&family=Manrope:wght@500&family=Montserrat:wght@400;700&family=Mountains+of+Christmas:wght@400;700&family=Open+Sans:wght@300;400;600&display=swap');

:root {
    --primary-color: #007BFF;
    --secondary-color: #6C757D;
    --text-dark: #343A40;
    --text-light: #F8F9FA;
    --bg-light: #5D6B65;
    --footer-bg: #E6E0D9;
    --link-color: #D9A689; 
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.7;
    color: var(--text-light);
    background-color: var(--bg-light);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px; 
}

/* --- Header & Navigation --- */
header {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 40px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Great Vibes', cursive; 
    font-weight: 400;
    font-size: 3.8em; 
    color: var(--text-light); 
    text-decoration: none;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7); 
    line-height: 0.9;
    text-align: left; 
}

nav.desktop-nav {
    margin-left: auto;
}

nav.desktop-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav.desktop-nav ul li {
    margin-left: 25px;
}

nav.desktop-nav ul li a {
    font-family: 'Manrope', sans-serif;
    text-decoration: none;
    color: var(--text-light); 
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7); 
}

nav.desktop-nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2); 
    color: var(--text-light);
}

.hamburger-menu {
    display: none;
    font-size: 2em;
    cursor: pointer;
    color: var(--text-light); 
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7); 
    border: none;
    background: none;
    padding: 5px 10px;
}

nav.mobile-nav {
    display: none;
    position: absolute;
    top: 100px;
    right: 40px;
    width: 250px;
    background: rgba(30, 30, 30, 0.95); 
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

nav.mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 10px 0;
    text-align: left;
}

nav.mobile-nav ul li a {
    font-family: 'Manrope', sans-serif;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    display: block;
    padding: 12px 25px;
    transition: background-color 0.3s ease;
}

nav.mobile-nav ul li a:hover {
    background-color: var(--primary-color);
}


/* --- Main Content & Page Specific Styles --- */
main {
    padding-top: 0; 
}

/* Hero Section (Home Page) */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background-image: url('images/speaker-photo.jpg');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 60% auto; 
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent 30%, var(--bg-light) 60%);
    z-index: 2; 
}

.hero-content {
    position: absolute;
    display: flex; 
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; 
    top: 0;
    right: 0; 
    height: 100%;
    z-index: 3; 
    width: 38%; /* CHANGED: Narrowed the container so it anchors securely in the right-hand solid zone */
    padding: 40px 5%; /* Simplified padding now that width is handling the positioning */
    text-align: left; 
    color: var(--text-light);
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.hero-content h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 7.5em; 
    line-height: 1.05; 
    margin: 0;
    font-weight: 600;
}

.hero-divider {
    width: 70px;
    height: 2px;
    background-color: var(--link-color);
    border: none;
    margin: 25px 0;
    box-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 2.2em;
    margin: 0;
    font-weight: 400;
}

/* CSS for the simplified scrolling effect */
.car-accident-section {
    position: relative;
    height: 150vh; 
    background-color: var(--bg-light);
}

.sticky-image-container {
    position: sticky;
    top: 0;
    height: 100vh; 
    z-index: 1;
}

.car-accident-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.scrolling-text-container {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2;
}

.overlay-text {
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--text-light);
    padding: 25px 40px;
    border-radius: 10px;
    text-align: center;
    font-size: 1.2em;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    width: 80%;
    max-width: 750px;
    margin: 20vh auto 0 auto; 
}

.landing-zone {
    height: 50vh; 
}


/* Generic Page Content Styles for non-hero pages */
.page-content {
    padding: 120px 0 60px 0; 
    min-height: 60vh;
    text-align: center;
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Underlined Page Title */
.page-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5em;
    margin-bottom: 40px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.page-title-no-line {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5em;
    margin-bottom: 40px;
    display: inline-block;
}


/* About Page */
.about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
}

.about-container img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 30px;
}

.about-container p {
    max-width: 700px;
    font-size: 1.1em;
    margin-top: 0;
    margin-bottom: 1.25em;
    width: 100%;
}

.about-container p:last-child {
    margin-bottom: 0;
}


/* Speaking Page */
.speaking-container img {
    max-width: 800px; 
    margin-bottom: 30px;
}

.speaking-container p {
    font-size: 1.2em;
    max-width: 600px;
    margin: 0 auto 20px auto;
}

.email-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 25px;
    transition: background-color 0.3s ease;
    margin-bottom: 15px;
}

.email-button:hover {
    background-color: #0056b3;
}

.email-address {
    font-size: 0.9em;
    color: var(--text-light);
}

/* Contact Page */
.contact-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    text-align: left;
    flex-direction: row-reverse;
}

.contact-layout .contact-image {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 10px; 
}

.contact-item {
    margin-bottom: 30px;
}
.contact-item:last-child {
    margin-bottom: 0;
}

.contact-info {
    /* No styles needed on the main container now */
}

.contact-info h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6em;
    font-weight: 600;
    margin: 0 0 0.2em 0; 
}

.contact-info p {
    font-size: 1.2em;
    margin: 0;
}

.contact-info a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
.contact-info a:hover {
    color: var(--text-light);
}

/* Downloads Page */
.coming-soon {
    font-size: 1.5em; 
    color: var(--text-light);
}

/* --- Footer --- */
footer {
    background-color: var(--footer-bg);
    color: var(--text-dark);
    padding: 40px 0 20px 0;
    text-align: center;
    position: relative; 
    z-index: 10;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

footer .footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 30px;
}

footer .footer-nav ul li a {
    font-family: 'Manrope', sans-serif; 
    font-weight: 500;
    text-decoration: none;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

footer .footer-nav ul li a:hover {
    color: var(--primary-color);
}

.social-icons a {
    color: var(--text-dark);
    font-size: 1.8em;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color);
}

.copyright {
    margin-top: 20px;
    font-size: 0.9em;
    opacity: 0.7;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .hero-content {
        width: 45%; /* Slightly wider container for medium screens */
    }
    .hero-content h1 { font-size: 5.5em; } 
    .hero-content p { font-size: 2em; }
}

@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }
    .container {
        padding: 0 20px;
    }
    .desktop-nav { display: none; }
    .hamburger-menu { display: block; }
    
    .logo {
        font-size: 2.8em;
    }

    .page-content {
        padding-top: 140px; 
        padding-bottom: 60px;
    }

    .about-container {
        flex-direction: column;
    }
    
    nav.mobile-nav {
        right: 20px;
    }

    .page-title, .page-title-no-line {
        font-size: 2em;
    }

    /* Mobile Hero Section */
    .hero {
        background-image: url('images/speaker-photo-small-screen.jpg');
        background-size: cover;
        background-position: center 35vh; 
        margin-bottom: -12px;
    }

    .hero::before {
        background: linear-gradient(to bottom, var(--bg-light) 35%, transparent 65%); 
    }

    .hero-content {
        position: relative; 
        z-index: 3;
        width: 100%; /* Spans full width on mobile */
        height: auto; 
        padding: 100px 20px 20px 20px; 
        box-sizing: border-box; 
        display: flex;
        flex-direction: column;
        justify-content: center; 
        align-items: center; /* Centered on mobile */
        text-align: center; /* Centered on mobile */
    }

    .hero-content h1 { 
        font-size: 4.5em; 
        position: relative;
        top: 6px;
    }

    .hero-divider {
        margin: 15px 0;
    }
    
    .hero-content p { 
        font-size: 1.8em; 
        position: relative;
        bottom: 6px;
    }
    
    .overlay-text {
        width: 90%;
        font-size: 1em;
        padding: 20px;
        margin-top: 15vh;
    }

    .contact-layout {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

}