/* Variables */
:root {
    --color-dark-lilac: #3e4385;
    --color-sage: #3e7168;
    --color-black: #1a1a1a; /* Softer black for better readability */
    --color-paper-white: #f4f4f2; /* Slightly grey/warm paper white */
    
    --font-h1: 'DM Serif Display', serif;
    --font-headings: 'DM Sans', sans-serif;
    --font-body: 'EB Garamond', serif;
}

html {
    scroll-behavior: smooth;
}

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

body {
    background-color: var(--color-black);
    color: var(--color-black);
    font-family: var(--font-body);
    line-height: 1.6;
    font-size: 1.2rem;
}

/* Typography */
h1 {
    font-family: var(--font-h1);
    font-weight: 400;
    color: var(--color-dark-lilac);
    line-height: 1;
}

h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    color: var(--color-sage);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1em;
}
h2 {
    letter-spacing: -1px;
}

p {
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Navigation */
nav {
    background-color: var(--color-paper-white);
    padding: 1.5rem 5%;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(62, 67, 133, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-h1);
    font-size: 1.5rem;
    color: var(--color-dark-lilac);
}

.nav-links {
    display: flex;
    gap: 2rem;
    font-family: var(--font-headings);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    align-items: center;
}

.nav-links a:hover {
    color: var(--color-dark-lilac);
}

/* Mobile Menu Styles */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-dark-lilac);
    padding: 0.5rem;
    z-index: 102;
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 5%;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-paper-white);
    padding: 0.5rem;
}

.mobile-menu-close svg {
    width: 32px;
    height: 32px;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    font-family: var(--font-headings);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mobile-nav-links a {
    color: var(--color-paper-white);
    transition: color 0.3s ease;
}

.mobile-nav-links a:hover {
    color: var(--color-sage);
}

.mobile-nav-links .cta-button {
    margin-top: 1rem;
    background-color: var(--color-sage); /* Make it pop on black */
    border: 1px solid var(--color-sage);
}

/* CTA Button */
.cta-button {
    background-color: var(--color-dark-lilac);
    color: var(--color-paper-white);
    padding: 0.8rem 2rem;
    border-radius: 2px;
    font-family: var(--font-headings);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: var(--color-sage);
    color: var(--color-paper-white);
}

/* Generic Container */
.content-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    background-color: transparent; /* Container itself is transparent, section handles bg */
}

/* Page Content for Words Page */
.page-content {
    background-color: var(--color-paper-white);
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    justify-content: center; /* Center the max-width container */
    align-items: center;
    background-color: var(--color-black);
    color: var(--color-paper-white);
    position: relative;
    overflow: hidden;
    padding: 4rem 5%; /* Keep padding on the hero section itself */
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px; /* Match other sections */
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Remove previous flex/gap from .hero since it's now on .hero-container, 
   but keep the styles that apply to the background/layout of the section */

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    filter: brightness(80%);
    pointer-events: none;
}

.hero-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.hero-content p {
    margin-bottom: 4rem;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 2rem;
    color: var(--color-dark-lilac);
}

.hero .subtitle {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    color: var(--color-sage);
    margin-bottom: 2rem;
    display: inline-block;
    background-color: var(--color-black);
    padding: 0.2rem 0.5rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.promo-link {
    background: none;
    border: none;
    color: var(--color-paper-white);
    font-family: var(--font-headings);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: color 0.3s ease;
    padding: 0;
    margin-left: 1.5rem;
}

.promo-link:hover {
    color: var(--color-sage);
}

.promo-link svg {
    width: 20px;
    height: 20px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 1);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--color-paper-white);
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
    padding: 0.5rem;
}

.modal-close:hover {
    color: var(--color-sage);
}

.modal-content {
    width: 90%;
    max-width: 960px;
    aspect-ratio: 16 / 9;
    background: #000;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    width: 100%;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Content Sections */
section {
    padding: 6rem 5%;
    width: 100%;
    scroll-margin-top: 5rem; /* Offset for sticky nav */
}

.concept-section {
    background-color: white; /* Slight contrast to paper white */
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--color-sage);
    color: var(--color-paper-white);
}

.testimonials-section h2 {
    color: var(--color-paper-white);
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    font-family: var(--font-headings); /* Explicitly use headings font */
    font-weight: 700;
    line-height: 1em;
    opacity: 0.7;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonial-quote {
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--color-paper-white);
    min-height: 4em; /* Ensure consistent height for alignment (approx 3 lines) */
}

.testimonial-text {
    flex: 1;
    font-style: italic;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.testimonial-author {
    font-family: var(--font-headings);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-black);
}

/* CTA Section */
.cta-section {
    background-color: var(--color-black);
    color: var(--color-paper-white);
    text-align: center;
}

.cta-section h2 {
    color: var(--color-paper-white);
    font-family: var(--font-h1);
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

blockquote {
    font-family: var(--font-body);
    font-size: 1.8rem;
    font-style: italic;
    color: var(--color-dark-lilac);
    border-left: 4px solid var(--color-sage);
    padding-left: 2rem;
    margin: 2rem 0;
}

.highlight {
    background-color: #ccff00;
    color: var(--color-black);
    padding: 0.1em 0.2em;
    border-radius: 2px;
}

.author-bio .grid-2 {
    grid-template-columns: 2fr 1fr;
    gap: 2rem; /* Revert to gap */
    max-width: 1200px; /* Match other sections */
    margin: 0 auto; /* Center it */
}

.author-bio {
    background-color: var(--color-dark-lilac);
    color: var(--color-paper-white);
    padding: 6rem 5%; /* Revert padding */
}

.author-bio-content {
    padding: 0; /* Remove extra padding */
}

.author-bio p {
    font-size: 1.1rem;
    max-width: 630px; /* Limit width for better readability on large screens */
}

.author-bio-image {
    width: 100%;
    height: auto; /* Let it be natural height */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent; 
}

.author-bio-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 2px; /* Restore subtle radius if desired, or 0 */
    max-width: 100%;
}

.author-bio h2 {
    color: var(--color-sage); /* Or maybe paper white? Let's try sage for contrast or white */
    color: #b8c2be; /* Light sage/grey for readability on dark background */
}

.author-works {
    margin-top: 2rem;
    font-family: var(--font-headings);
    font-size: 0.9rem;
}

.author-works h3 {
    color: var(--color-paper-white);
    text-transform: uppercase;
}

.author-works ul {
    list-style: none;
    margin-top: 1rem;
}

.author-works li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.author-works li::before {
    content: "•";
    color: var(--color-paper-white);
    position: absolute;
    left: 0;
}
.author-works a {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: var(--color-black);
    color: var(--color-paper-white);
    padding: 4rem 5%;
    font-family: var(--font-headings);
    font-size: 0.8rem; /* Much smaller text */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

footer a {
    color: var(--color-sage);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column; /* Hero container handles direction now, but keeping this for safety/fallback */
        text-align: center;
        padding-top: 2rem;
    }

    .hero-container {
        flex-direction: column-reverse;
        gap: 2rem;
    }

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

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-button, .promo-link {
        width: 100%;
        justify-content: center;
    }

    .grid-2, .grid-3, .author-bio .grid-2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .author-bio-content {
        padding: 4rem 5%;
    }

    .author-bio-image {
        height: 400px; /* Set a fixed height for mobile image */
    }

    .nav-links {
        display: none; /* Hide desktop nav links */
    }
    
    .mobile-menu-btn {
        display: block; /* Show hamburger button */
    }
    
    .hero-image img {
        max-width: 80%;
    }
}
