/* 
 * 3act Landing Page Styles
 * A clean, modern design based on Bauhaus principles
 */

/* ===== Base Styles ===== */
:root {
    /* Color Palette */
    --primary: #000000;
    /* Black - Bauhaus foundation */
    --secondary: #0B3C8F;
    /* Bauhaus blue - Data depth */
    --accent: #DD1C1A;
    /* Bauhaus red - Impact */
    --highlight: #FFCB05;
    /* Bauhaus yellow - Curiosity */
    --background: #F5F5F5;
    /* Off-white - Modernist simplicity */
    --text: #1A1A1A;
    /* Near black - Clarity */
    --light-text: #FFFFFF;
    /* White for dark backgrounds */
    --gray: #CCCCCC;
    /* Light gray for borders */

    /* Spacing System (based on 8px) */
    --space-xs: 0.5rem;
    /* 8px */
    --space-sm: 1rem;
    /* 16px */
    --space-md: 1.5rem;
    /* 24px */
    --space-lg: 2rem;
    /* 32px */
    --space-xl: 3rem;
    /* 48px */

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background-color: var(--background);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    position: relative;
    margin-bottom: var(--space-md);
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: var(--space-md);
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

section {
    padding: var(--space-xl) 0;
}

/* ===== Header ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--background);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: var(--space-sm) 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tagline {
    font-size: 0.875rem;
    margin-top: -5px;
    margin-bottom: 0;
    color: var(--secondary);
}

nav {
    display: flex;
    align-items: center;
}

.desktop-nav {
    display: flex;
    list-style: none;
}

.desktop-nav li {
    margin-left: var(--space-md);
}

.desktop-nav a {
    font-family: var(--font-heading);
    font-weight: 500;
    position: relative;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.desktop-nav a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary);
    transition: all 0.3s ease;
}

/* Mobile menu toggle animation */
.mobile-menu-toggle span.active:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

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

.mobile-menu-toggle span.active:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--background);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    padding: var(--space-sm) 0;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav li {
    padding: var(--space-sm);
    text-align: center;
}

.mobile-nav a {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.2rem;
}

/* ===== Hero Section ===== */
.hero {
    padding-top: calc(80px + var(--space-xl));
    /* Header height + padding */
    padding-bottom: var(--space-xl);
    background-color: var(--background);
    position: relative;
}

.hero h1 {
    max-width: 800px;
    margin-bottom: var(--space-md);
}

.value-prop {
    max-width: 800px;
    font-size: 1.1rem;
    margin-bottom: var(--space-lg);
}

.data-animation {
    margin: var(--space-lg) 0;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent);
    color: var(--light-text);
    font-family: var(--font-heading);
    font-weight: 600;
    padding: var(--space-sm) var(--space-md);
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: #c01816;
    /* Darker red */
    color: var(--light-text);
    transform: translateY(-2px);
}

/* ===== About Section ===== */
.about {
    background-color: white;
}

.mission {
    font-size: 1.2rem;
    font-weight: 500;
    font-style: italic;
    color: var(--secondary);
    max-width: 800px;
    margin-bottom: var(--space-md);
}

.description {
    max-width: 800px;
    margin-bottom: var(--space-lg);
}

.rule-of-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.column {
    padding: var(--space-md);
    background-color: var(--background);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.column:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.column:nth-child(1) h3 {
    color: var(--highlight);
    /* Yellow for Story Creation */
}

.column:nth-child(2) h3 {
    color: var(--accent);
    /* Red for Services */
}

.column:nth-child(3) h3 {
    color: var(--secondary);
    /* Blue for Business Engine */
}

/* ===== Embedded Content Section ===== */
.embedded-content {
    background-color: var(--background);
    text-align: center;
}

.coming-soon {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: var(--space-lg);
}

.embed-placeholders {
    background-color: white;
    border-radius: 8px;
    padding: var(--space-lg);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--gray);
    font-style: italic;
}

/* ===== Newsletter Section ===== */
.newsletter {
    background-color: var(--secondary);
    color: var(--light-text);
    text-align: center;
}

.newsletter h2::after {
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--highlight);
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    margin-top: var(--space-md);
}

.newsletter-form input {
    flex: 1;
    padding: var(--space-sm);
    border: none;
    border-radius: 8px 0 0 8px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.newsletter-form button {
    background-color: var(--accent);
    color: var(--light-text);
    border: none;
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    border-radius: 0 8px 8px 0;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: #c01816;
    /* Darker red */
}

.form-message {
    margin-top: var(--space-sm);
    font-size: 0.9rem;
}

/* ===== Contact Section ===== */
.contact {
    text-align: center;
    background-color: white;
}

.contact-options {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.email-link {
    display: inline-block;
    padding: var(--space-sm) var(--space-md);
    border: 2px solid var(--secondary);
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 500;
    transition: all 0.3s ease;
}

.email-link:hover {
    background-color: var(--secondary);
    color: var(--light-text);
}

.calendly-button {
    display: inline-block;
    background-color: var(--highlight);
    color: var(--primary);
    padding: var(--space-sm) var(--space-md);
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 500;
    transition: all 0.3s ease;
}

.calendly-button:hover {
    background-color: #e6b800;
    /* Darker yellow */
    color: var(--primary);
}

/* ===== Footer ===== */
footer {
    background-color: var(--primary);
    color: var(--light-text);
    padding: var(--space-lg) 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-logo p {
    margin-bottom: 0;
    font-size: 0.875rem;
    color: var(--gray);
}

.social-links {
    display: flex;
    gap: var(--space-sm);
}

.social-links a {
    color: var(--light-text);
    font-size: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: var(--accent);
}

.social-links i {
    font-size: 1rem;
}

.footer-newsletter p {
    margin-bottom: var(--space-xs);
}

.footer-form {
    display: flex;
}

.footer-form input {
    padding: 0.5rem;
    border: none;
    border-radius: 4px 0 0 4px;
    font-family: var(--font-body);
    font-size: 0.875rem;
}

.footer-form button {
    background-color: var(--accent);
    color: var(--light-text);
    border: none;
    padding: 0.5rem 1rem;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    transition: background-color 0.3s ease;
}

.footer-form button:hover {
    background-color: #c01816;
    /* Darker red */
}

.copyright {
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
    color: var(--gray);
}

/* ===== Responsive Styles ===== */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .rule-of-three {
        gap: var(--space-sm);
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-nav.active {
        display: block;
    }

    .rule-of-three {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .column {
        margin-bottom: var(--space-sm);
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: var(--space-md);
    }

    .contact-options {
        flex-direction: column;
        align-items: center;
    }

    .form-group {
        flex-direction: column;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
        border-radius: 8px;
    }

    .newsletter-form button {
        margin-top: var(--space-xs);
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero {
        padding-top: calc(70px + var(--space-lg));
    }

    .data-animation {
        height: 150px;
    }
}