/*
Theme Name: AI First Team Strategy
Theme URI: https://aifirstteam.se
Author: Antigravity
Author URI: https://antigravity.google
Description: A professional AI consulting theme for AI First Team in McKinsey style.
Version: 2.2
Text Domain: aifirstteam
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --mck-blue: #051c2c;
    --mck-action: #0073bb;
    --mck-text: #333333;
    --mck-light: #f5f5f5;
    --white: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--mck-text);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--mck-blue);
    line-height: 1.2;
}

p {
    font-size: 1.1rem;
    font-weight: 300;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 80px 0;
}

/* Navigation */
nav {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 1000;
}

.logo {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    font-weight: 700;
    color: var(--mck-blue);
    text-decoration: none;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--mck-blue);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--mck-action);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--mck-blue);
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero {
    background-color: var(--mck-blue);
    color: var(--white);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
}

.hero h1 {
    color: var(--white);
    font-size: 4rem;
    margin-bottom: 2rem;
}

.hero p {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 3rem;
    opacity: 1;
}

.hero-image-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            var(--mck-blue) 0%,
            var(--mck-blue) 35%,
            rgba(5, 28, 44, 0.7) 50%,
            transparent 80%);
    z-index: 2;
    pointer-events: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1.4;
    text-align: center;
    word-break: break-word;
    /* Prevents long words from breaking layout */
}

.btn-primary {
    background-color: var(--mck-action);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #005a92;
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--white);
    color: var(--white);
    background: transparent;
}

/* Magazine Section */
.magazine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.magazine-card {
    background: var(--white);
    border: 1px solid #eee;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.magazine-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.mag-image-wrapper {
    width: 100%;
    height: 350px;
    background: var(--mck-blue);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mag-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.mag-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.mag-date {
    font-size: 0.8rem;
    color: var(--mck-action);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.mag-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.mag-excerpt {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    color: #666;
}

.mag-link {
    color: var(--mck-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 2px solid var(--mck-action);
    padding-bottom: 2px;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 4rem;
}

.service-card {
    padding: 3rem;
    background: var(--mck-light);
    transition: var(--transition);
}

.service-card h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

/* Team */
.team-member {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 80px;
}

.team-member:nth-child(even) {
    flex-direction: row-reverse;
}

.team-img-wrapper {
    flex: 0 0 400px;
    height: 500px;
    overflow: hidden;
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info {
    flex: 1;
}

.team-info h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.team-role {
    text-transform: uppercase;
    color: var(--mck-action);
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    display: block;
}

/* Contact */
.contact-section {
    background-color: var(--mck-blue);
    color: var(--white);
    text-align: center;
}

.contact-section h2 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-item a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    text-align: center;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .team-member {
        flex-direction: column !important;
        text-align: center;
        gap: 2rem;
    }

    .team-img-wrapper {
        flex: 0 0 auto;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .magazine-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        width: 70%;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        padding: 2rem;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.2rem;
        color: var(--mck-blue);
    }

    /* Prevent scrolling when menu is open */
    body.menu-open {
        overflow: hidden;
    }

    .hero {
        padding: 80px 0;
        text-align: center;
    }

    .hero-image-container,
    .hero::after {
        display: none;
    }

    .hero-content {
        max-width: 100%;
        margin: 0 auto;
    }

    .hero h1 {
        font-size: 2.2rem;
        /* Slighter smaller for mobile */
        margin-bottom: 1.5rem;
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        padding: 1rem 1.5rem;
    }

    .contact-details {
        flex-direction: column;
        gap: 2rem;
    }

    .contact-item a {
        font-size: 1.2rem;
    }

    section {
        padding: 60px 0;
    }

    h2 {
        font-size: 2.2rem !important;
    }
}