/*
 * Maple AI Consultants - Main Stylesheet
 * Professional AI consulting case studies site
 */

/* === Base Resets and Typography === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #0f172a;
    --cyan: #0ea5e9;
    --light-bg: #f9fafb;
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --border-gray: #e2e8f0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--navy);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-gray);
}

a {
    color: var(--cyan);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #0284c7;
    text-decoration: underline;
}

/* === Layout === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Header and Navigation === */
header {
    background: var(--navy);
    color: white;
    padding: 1.5rem 0;
    border-bottom: 3px solid var(--cyan);
}

header .header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

header .site-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

header .site-subtitle {
    font-size: 0.875rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

nav a {
    color: white;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

nav a:hover {
    text-decoration: none;
    border-bottom-color: var(--cyan);
}

/* === Hero Sections === */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, #1e40af 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero .cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--cyan);
    color: white;
}

.btn-primary:hover {
    background: #0284c7;
    text-decoration: none;
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* === Sections === */
.section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--navy);
}

.section-gray {
    background: var(--light-bg);
}

.section-content {
    max-width: 800px;
    margin: 0 auto;
}

/* === Cards === */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: white;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    padding: 2rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-meta {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.card-description {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.card-link {
    color: var(--cyan);
    font-weight: 600;
}

/* === Featured Section === */
.featured-case-study {
    background: white;
    border: 2px solid var(--cyan);
    border-radius: 12px;
    padding: 3rem;
    margin: 2rem 0;
}

.featured-case-study h3 {
    color: var(--cyan);
}

/* === Video Wrapper (Responsive YouTube) === */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    margin: 2rem 0;
}

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

/* === Case Study Page === */
.case-study-header {
    background: var(--light-bg);
    padding: 3rem 0;
    border-bottom: 3px solid var(--cyan);
}

.case-study-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.case-study-meta {
    font-size: 1.125rem;
    color: var(--text-gray);
}

.case-study-section {
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-gray);
}

.case-study-section:last-child {
    border-bottom: none;
}

.case-study-section h2 {
    color: var(--cyan);
    margin-bottom: 1.5rem;
}

.case-study-section h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.case-study-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.case-study-section li {
    margin-bottom: 0.5rem;
    color: var(--text-gray);
}

/* === Tech Stack === */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
}

.tech-item {
    background: var(--light-bg);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-gray);
    font-size: 0.875rem;
    color: var(--text-dark);
}

/* === Metrics/Timeline === */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.metric-card {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border-left: 4px solid var(--cyan);
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.875rem;
    color: var(--text-gray);
}

/* === CTA Section === */
.cta-section {
    background: linear-gradient(135deg, var(--navy) 0%, #1e40af 100%);
    color: white;
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    margin: 3rem 0;
}

.cta-section h3 {
    color: white;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

/* === Footer === */
footer {
    background: var(--navy);
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 3px solid var(--cyan);
}

footer .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

footer p {
    color: #cbd5e1;
    margin: 0;
}

footer .footer-links {
    display: flex;
    gap: 2rem;
}

footer a {
    color: white;
    font-size: 0.875rem;
}

footer a:hover {
    color: var(--cyan);
}

/* === Responsive Design === */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    footer .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .case-study-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .container, .container-narrow {
        padding: 0 15px;
    }

    .hero {
        padding: 2rem 0;
    }

    .section {
        padding: 2rem 0;
    }

    .btn {
        display: block;
        width: 100%;
        text-align: center;
    }

    .hero .cta-buttons {
        flex-direction: column;
    }
}
