/* Reset and base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --blue-900: #1e3a5f;
    --blue-700: #2c5282;
    --blue-600: #3182ce;
    --blue-100: #ebf4ff;
    --gray-900: #1a202c;
    --gray-700: #4a5568;
    --gray-400: #a0aec0;
    --gray-100: #f7fafc;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: var(--gray-900);
    background: var(--white);
}

/* Typography */
h1, h2, h3 {
    line-height: 1.3;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
    color: var(--blue-900);
}

h2 {
    font-size: 1.75rem;
    color: var(--blue-900);
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.25rem;
    color: var(--blue-700);
    margin-bottom: 0.75rem;
}

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

a:hover {
    color: var(--blue-900);
}

/* Layout */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 5rem 0;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    z-index: 100;
}

.nav-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--blue-900);
    letter-spacing: 0.5px;
}

.nav-logo:hover {
    color: var(--blue-700);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--gray-700);
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--blue-600);
}

/* Hero */
.hero {
    padding-top: 7rem;
    padding-bottom: 4rem;
    background: linear-gradient(180deg, var(--blue-100) 0%, var(--white) 100%);
    text-align: center;
}

.hero-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hero-graphic {
    width: 200px;
    height: 60px;
}

.logo-graphic {
    width: 100%;
    height: 100%;
}

.hero h1 {
    margin-bottom: 0;
}

.tagline {
    font-size: 1.15rem;
    color: var(--blue-700);
    font-weight: 500;
    max-width: 700px;
    margin: 0 auto;
}

/* About */
.about {
    background: var(--white);
}

.about p {
    color: var(--gray-700);
    margin-bottom: 1rem;
}

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

.about strong {
    color: var(--blue-900);
}

/* Team */
.team {
    background: var(--gray-100);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.team-member {
    text-align: center;
}

.team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
    border: 4px solid var(--white);
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.12);
    margin-bottom: 1rem;
}

.team-photo.photo-sp {
    object-position: center 25%;
}

.team-member h3 {
    margin-bottom: 0.25rem;
    color: var(--blue-900);
}

.team-role {
    color: var(--blue-600);
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.team-affiliation {
    font-size: 0.9rem;
    color: var(--gray-700);
    margin-bottom: 0.25rem;
}

.team-email {
    font-size: 0.9rem;
}

/* Services */
.services {
    background: var(--white);
}

.service-grid {
    display: grid;
    gap: 2rem;
}

.service-card {
    padding: 2rem;
    background: var(--gray-100);
    border-radius: 8px;
    border-left: 4px solid var(--blue-600);
}

.service-card p {
    color: var(--gray-700);
}

.service-clients {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--gray-400);
    font-style: italic;
}

/* Work */
.work {
    background: var(--blue-100);
}

.work-category {
    margin-bottom: 2.5rem;
}

.work-category:last-child {
    margin-bottom: 0;
}

.work-list {
    list-style: none;
}

.work-list li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(44, 82, 130, 0.15);
}

.work-list li:last-child {
    border-bottom: none;
}

.work-list a {
    font-weight: 500;
    display: block;
    margin-bottom: 0.25rem;
}

.work-meta {
    font-size: 0.9rem;
    color: var(--gray-700);
}

/* Contact */
.contact {
    background: var(--white);
}

.contact > .container > p {
    color: var(--gray-700);
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--blue-600);
    color: var(--white);
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.contact-link:hover {
    background: var(--blue-900);
    color: var(--white);
}

.email {
    margin-bottom: 1.5rem;
    color: var(--gray-700);
    font-size: 1.1rem;
}

.email a {
    font-weight: 500;
}

/* Footer */
.footer {
    padding: 2rem 0;
    background: var(--blue-900);
    color: var(--gray-400);
    font-size: 0.9rem;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .nav-links {
        gap: 0.75rem;
    }

    .nav-links a {
        font-size: 0.8rem;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    section {
        padding: 3rem 0;
    }

    .hero {
        padding-top: 5.5rem;
    }

    .hero-graphic {
        width: 150px;
    }

    .tagline {
        font-size: 1rem;
    }

    .team-photo {
        width: 120px;
        height: 120px;
    }

    .contact-links {
        flex-direction: column;
    }

    .contact-link {
        text-align: center;
    }
}
