/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Premium, refined color palette */
    --navy: #1B4F8A;
    --dark-navy: #0A2544;
    --charcoal: #2C3E50;
    --warm-gray: #6B7280;
    --light-gray: #F7F7F7;
    --cream: #FDFBF7;
    --white: #FFFFFF;
    --accent-gold: #B8860B;
    --border: #E5E7EB;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--white);
    color: var(--charcoal);
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: -0.011em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--dark-navy);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header Styles */
header {
    padding: 2rem 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: block;
    height: 42px;
}

.logo-img {
    height: 42px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    color: var(--charcoal);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 400;
    transition: color 0.2s ease;
    letter-spacing: 0.01em;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--navy);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 22px;
    height: 1.5px;
    background-color: var(--charcoal);
    transition: all 0.3s ease;
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--white);
    z-index: 1000;
    transition: right 0.3s ease;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 20px;
    border-bottom: 1px solid var(--border);
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--charcoal);
    padding: 5px;
}

.mobile-nav-links {
    list-style: none;
    padding: 2rem 20px;
}

.mobile-nav-links li {
    margin-bottom: 1.5rem;
}

.mobile-nav-links a {
    color: var(--charcoal);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 400;
}

.mobile-nav-links a.active {
    color: var(--navy);
}

/* Hero Section */
.hero {
    padding: 8rem 0 10rem;
    text-align: center;
    background-color: var(--cream);
}

.hero h1 {
    font-size: 3.75rem;
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 2.5rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    color: var(--dark-navy);
}

.hero .subtitle {
    font-size: 1.375rem;
    color: var(--warm-gray);
    font-weight: 300;
    line-height: 1.6;
    max-width: 720px;
    margin: 0 auto 3.5rem;
}

/* CTA Button - Premium Style */
.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--dark-navy);
    color: white;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    transition: background-color 0.2s ease;
    text-transform: uppercase;
}

.cta-button:hover {
    background-color: var(--navy);
}

/* Page Header */
.page-header {
    padding: 6rem 0 5rem;
    text-align: center;
    background-color: var(--cream);
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-size: 3.25rem;
    font-weight: 300;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    color: var(--dark-navy);
}

.page-header p {
    font-size: 1.25rem;
    color: var(--warm-gray);
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Services Preview */
.services-preview {
    padding: 7rem 0;
    background-color: var(--white);
}

.services-preview h2,
.about-preview h2,
.contact-section h2 {
    font-size: 2.75rem;
    font-weight: 300;
    margin-bottom: 4rem;
    text-align: center;
    letter-spacing: -0.02em;
    color: var(--dark-navy);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background-color: var(--border);
    margin-top: 4rem;
}

.service-item {
    padding: 3rem;
    background: var(--white);
    transition: background-color 0.2s ease;
}

.service-item:hover {
    background-color: var(--cream);
}

.service-item h3 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--dark-navy);
}

.service-item p {
    color: var(--warm-gray);
    line-height: 1.7;
    font-size: 1rem;
}

/* About Preview */
.about-preview {
    padding: 7rem 0;
    background-color: var(--light-gray);
}

.about-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--warm-gray);
    margin-bottom: 2.5rem;
}

.learn-more {
    display: inline-block;
    color: var(--dark-navy);
    text-decoration: none;
    font-weight: 400;
    font-size: 1rem;
    border-bottom: 1px solid var(--dark-navy);
    transition: border-color 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
}

.learn-more:hover {
    border-bottom-color: transparent;
}

/* Contact Section */
.contact-section {
    padding: 7rem 0;
    text-align: center;
    background-color: var(--white);
    border-top: 1px solid var(--border);
}

.contact-section p {
    font-size: 1.25rem;
    color: var(--warm-gray);
    margin-bottom: 2.5rem;
}

/* About Page Styles */
.about-main {
    padding: 5rem 0;
}

.about-intro {
    max-width: 850px;
    margin: 0 auto 6rem;
    text-align: center;
}

.about-intro h2,
.values-section h2,
.story-section h2,
.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    letter-spacing: -0.02em;
    color: var(--dark-navy);
}

.about-intro p,
.story-section p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--warm-gray);
    margin-bottom: 1.5rem;
}

.values-section {
    padding: 6rem 0;
    background-color: var(--light-gray);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.value-item {
    text-align: left;
}

.value-item h3 {
    font-size: 1.375rem;
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    color: var(--dark-navy);
}

.value-item p {
    color: var(--warm-gray);
    line-height: 1.7;
    font-size: 1rem;
}

.story-section {
    max-width: 850px;
    margin: 6rem auto;
}

.cta-section {
    text-align: center;
    padding: 5rem 0;
    background-color: var(--cream);
}

/* Services Page Styles */
.services-content {
    padding: 5rem 0;
}

.services-intro {
    max-width: 850px;
    margin: 0 auto 6rem;
    text-align: center;
}

.services-intro h2 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    color: var(--dark-navy);
}

.services-intro p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--warm-gray);
}

.service-detail {
    margin-bottom: 4rem;
    padding: 4rem 0;
    border-bottom: 1px solid var(--border);
}

.service-detail:last-child {
    border-bottom: none;
}

.service-header {
    margin-bottom: 3rem;
}

.service-header h2 {
    font-size: 2.25rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    color: var(--dark-navy);
}

.service-tagline {
    font-size: 1.125rem;
    color: var(--warm-gray);
    font-style: italic;
    font-weight: 300;
}

.service-content p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--warm-gray);
    margin-bottom: 1.5rem;
    max-width: 850px;
}

.service-content h3 {
    font-size: 1.375rem;
    font-weight: 400;
    margin: 2.5rem 0 1.5rem;
    letter-spacing: -0.02em;
    color: var(--dark-navy);
}

.service-list {
    list-style: none;
    margin: 2rem 0;
    max-width: 850px;
}

.service-list li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 1rem;
    color: var(--warm-gray);
    line-height: 1.7;
}

.service-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--navy);
}

.services-cta {
    text-align: center;
    margin-top: 6rem;
    padding: 5rem 0;
    background-color: var(--cream);
}

.services-cta h2 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--dark-navy);
}

.services-cta p {
    font-size: 1.25rem;
    color: var(--warm-gray);
    margin-bottom: 2.5rem;
}

/* Team Page Styles */
.team-section {
    padding: 5rem 0;
}

.team-intro {
    max-width: 900px;
    margin: 0 auto 6rem;
    text-align: center;
}

.team-intro h2 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    letter-spacing: -0.02em;
    color: var(--dark-navy);
}

.team-intro p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--warm-gray);
    margin-bottom: 1.5rem;
}

.team-philosophy {
    font-size: 1.25rem;
    margin-top: 2.5rem;
    color: var(--dark-navy);
    font-weight: 400;
    font-style: italic;
}

.team-members {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.team-member {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    padding: 4rem 0;
    border-top: 1px solid var(--border);
}

.team-member:first-child {
    border-top: none;
    padding-top: 0;
}

.member-info {
    text-align: left;
}

.member-photo {
    width: 220px;
    height: 220px;
    background-color: var(--light-gray);
    margin-bottom: 2rem;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10px;
}

.member-photo img {
    width: 90%;
    height: auto;
    object-fit: contain;
    object-position: center top;
}

/* Specific adjustment for Graham's photo if needed */
.team-member:nth-child(3) .member-photo img {
    width: 100%;
    max-height: 100%;
}

.member-info h3 {
    font-size: 1.625rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    color: var(--dark-navy);
}

.member-title {
    font-size: 0.9375rem;
    color: var(--warm-gray);
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.member-company {
    font-size: 0.875rem;
    color: var(--warm-gray);
    font-style: italic;
}

.member-bio {
    padding-top: 0.5rem;
}

.member-bio p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--warm-gray);
    margin-bottom: 1.5rem;
}

.member-bio p:last-child {
    margin-bottom: 0;
}

/* Contact Page Styles */
.contact-content {
    padding: 5rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h2 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    color: var(--dark-navy);
}

.contact-info p {
    font-size: 1.0625rem;
    color: var(--warm-gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-details {
    margin-top: 3rem;
}

.contact-item {
    margin-bottom: 2.5rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item h3 {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
    color: var(--navy);
}

.contact-item p {
    font-size: 1.125rem;
    color: var(--charcoal);
}

.contact-item a {
    color: var(--charcoal);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-item a:hover {
    color: var(--navy);
}

/* Contact Form - Premium Style */
.contact-form {
    background: var(--white);
    padding: 3rem;
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
    color: var(--charcoal);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border);
    font-family: inherit;
    font-size: 1rem;
    color: var(--charcoal);
    background: var(--white);
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--navy);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.submit-button {
    width: 100%;
    padding: 1rem 2rem;
    background-color: var(--dark-navy);
    color: white;
    border: none;
    font-size: 0.9375rem;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.submit-button:hover {
    background-color: var(--navy);
}

/* Footer - Premium Style */
footer {
    padding: 3rem 0 2rem;
    background-color: var(--charcoal);
    color: white;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.footer-logo {
    display: block;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.footer-logo:hover {
    opacity: 1;
}

.footer-logo-img {
    height: 36px;
    width: auto;
}

.footer-nav {
    display: flex;
    gap: 6rem;
}

.footer-column h4 {
    font-size: 0.8125rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.8);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8125rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    .team-member {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .member-info {
        text-align: center;
    }

    .member-photo {
        margin: 0 auto 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    /* Navigation */
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .logo-img {
        height: 36px;
    }

    /* Hero */
    .hero {
        padding: 5rem 0 6rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .subtitle {
        font-size: 1.125rem;
    }

    /* Page Headers */
    .page-header {
        padding: 4rem 0 3rem;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-nav {
        flex-direction: column;
        gap: 2rem;
    }

    /* General */
    h2 {
        font-size: 2rem;
    }

    section {
        padding: 4rem 0;
    }

    .team-member {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .logo-img {
        height: 32px;
    }

    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 0.875rem;
    }

    .hero {
        padding: 4rem 0 5rem;
    }
}