/* Base Styles */
:root {
    /* Color System - Modern Industrial Palette */
    --color-charcoal: #0F0F0F;
    --color-slate: #1E293B;

    /* Primary - Electric Blue (Refined) */
    --color-primary: #2563EB;
    --color-primary-light: #60A5FA;
    --color-primary-dark: #1E40AF;

    /* Secondary - Warm Amber */
    --color-amber: #F59E0B;
    --color-amber-light: #FCD34D;

    /* Neutrals - Layered Grays */
    --color-gray-50: #F8FAFC;
    --color-gray-100: #F1F5F9;
    --color-gray-200: #E2E8F0;
    --color-gray-300: #CBD5E1;
    --color-gray-700: #334155;
    --color-gray-900: #0F172A;

    /* Backgrounds */
    --color-bg-primary: #FFFFFF;
    --color-bg-secondary: #F8FAFC;
    --color-bg-dark: #0A0A0A;
    /* Darker, richer black */
    --color-bg-accent: #EFF6FF;

    /* Legacy support */
    --color-background: #FFFFFF;
    --color-divider: #E2E8F0;
    --color-footer: #F8FAFC;

    /* Gradients (Softer) */
    --gradient-hero: linear-gradient(135deg, rgba(37, 99, 235, 0.9) 0%, rgba(30, 64, 175, 0.9) 100%);
    --gradient-card: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, rgba(245, 158, 11, 0.03) 100%);
    --gradient-text: linear-gradient(135deg, #2563EB 0%, #F59E0B 100%);
    --gradient-glow: radial-gradient(circle at center, rgba(37, 99, 235, 0.15) 0%, transparent 70%);

    /* Shadows (New) */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.15);

    /* Typography - Fluid Scale */
    --text-hero: clamp(2rem, 4vw, 3.5rem);
    /* Standard Corporate H1 */
    --text-display: clamp(1.5rem, 3vw, 2.5rem);
    --text-xl: clamp(1.25rem, 2vw, 2rem);
    --text-lg: clamp(1.1rem, 1.5vw, 1.5rem);
    --text-md: 1.125rem;
    --text-base: 1rem;
    --text-sm: 0.875rem;

    /* Font Families */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'DM Sans', 'Inter', sans-serif;
    --font-accent: 'Space Grotesk', 'Inter', sans-serif;

    /* Layout */
    --container-width: 1280px;
    /* Slightly wider */
    --spacing-section: clamp(40px, 5vw, 80px);
    /* Tighter vertical spacing */

    /* Spacing Scale */
    --gap-lg: 40px;
    --gap-md: 24px;
    --gap-sm: 16px;
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--color-primary-dark);
}

a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
    border-radius: 2px;
}

button:focus-visible,
.nav-toggle:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
    border-radius: 2px;
}

.section-title {
    font-size: var(--text-xl);
    margin-bottom: 2rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

section {
    padding: var(--spacing-section) 0;
    border-bottom: 1px solid var(--color-divider);
}

/* Header & Navigation */
/* Header & Navigation */
.header {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-sm);
    z-index: 100;
    transition: all 0.3s ease;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo a {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
}

.logo-img {
    height: 50px !important;
    max-height: 50px !important;
    width: auto !important;
    max-width: 200px !important;
    display: block !important;
    object-fit: contain !important;
}

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

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu a {
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.nav-menu a {
    font-weight: 500;
    position: relative;
    padding: 8px 0;
    font-size: 15px;
    letter-spacing: 0.01em;
    color: var(--color-charcoal);
    transition: color 0.2s ease;
}

/* Removed floating under bars - clean corporate hover instead */
.nav-menu a:hover {
    color: var(--color-primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

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

/* Hero Section */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 60px 0;
    overflow: hidden;
    background-color: var(--color-bg-dark);
}

.hero-background {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 15, 15, 0.6), rgba(30, 41, 59, 0.4)), url('Images/district-financial-north-architecture-buildings-f3ff05-1024.jpg') no-repeat center center/cover;
    clip-path: polygon(25% 0, 100% 0, 100% 100%, 0 100%);
    z-index: 1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    opacity: 0.2;
    mix-blend-mode: overlay;
}

.hero-logo-fixed {
    position: absolute;
    top: 100px;
    left: 40px;
    max-width: 120px;
    z-index: 10;
    opacity: 0.9;
}

.hero-content {
    position: relative;
    z-index: 5;
    max-width: 900px;
}

.hero-title {
    font-size: var(--text-hero);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.02em;
    /* More breathing room */
    margin-bottom: 24px;
    color: var(--color-bg-primary);
    text-transform: none;
    /* Removed force uppercase for more elegance */
    max-width: 800px;
}

.hero-subtitle {
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--color-primary-light);
    font-family: var(--font-accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: block;
}



/* About Section */
.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-lg);
    align-items: center;
}

.graphic-element {
    aspect-ratio: 4 / 3;
    min-height: 300px;
    background-color: rgba(197, 164, 109, 0.1);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7)), url('Images/building3.jpg');
    background-size: cover;
    background-position: center;
}

.graphic-element::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid var(--color-accent);
    opacity: 0.5;
}

/* About Section - Simplified */
.about-tagline {
    font-size: var(--text-md);
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    color: var(--color-charcoal);
}

.about-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-highlights li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-gray-700);
}

.about-highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 8px;
    height: 2px;
    background: var(--gradient-text);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--gap-md);
    margin-bottom: 50px;
}

.service-category-title {
    font-size: var(--text-lg);
    margin: 32px 0 24px;
    color: var(--color-charcoal);
    font-weight: 700;
    line-height: 1.1;
}

.service-intro {
    margin-bottom: 30px;
    font-size: 17px;
    line-height: 1.6;
    max-width: 900px;
}

/* Services Section - Simplified Categories */
.services-categories {
    display: flex;
    flex-direction: column;
    gap: var(--gap-lg);
    margin-top: 2rem;
    margin-bottom: var(--spacing-section);
}

.service-category {
    padding: 2.5rem;
    background-color: var(--color-bg-secondary);
    border-radius: 8px;
    border-left: 4px solid var(--color-primary);
    transition: all 0.3s ease;
}

.service-category:hover {
    background-color: var(--color-bg-accent);
    transform: translateX(8px);
}

.service-category-description {
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--color-gray-700);
    margin-bottom: 0;
}

.service-card {
    position: relative;
    padding: 2rem;
    background-color: var(--color-bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    will-change: transform;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-card);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.service-card>* {
    position: relative;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
    border-color: var(--color-primary-light);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card.featured {
    background: linear-gradient(135deg, var(--color-bg-accent) 0%, var(--color-bg-secondary) 100%);
    border-color: var(--color-primary-light);
}

.service-card.featured h3 {
    color: var(--color-primary);
}

@supports (grid-template-rows: masonry) {
    .services-grid {
        grid-template-rows: masonry;
    }
}

.service-card h3 {
    font-size: var(--text-md);
    margin-bottom: 15px;
    color: var(--color-charcoal);
    font-weight: 600;
}

.firm-ethos {
    margin-top: var(--spacing-section);
    padding: 40px;
    background-color: rgba(197, 164, 109, 0.05);
    border-radius: 4px;
    position: relative;
}

.firm-ethos .section-title {
    font-size: 26px;
}

.firm-ethos p {
    font-size: 17px;
    line-height: 1.7;
    max-width: 900px;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--gap-md);
}

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

.member-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background-color: #f0f0f0;
    margin: 0 auto 20px;
}

.member-name {
    font-size: 22px;
    margin-bottom: 5px;
}

.member-title {
    color: var(--color-accent);
    font-weight: 500;
    margin-bottom: 15px;
}

.member-bio {
    font-size: 15px;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 0;
    border: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 60vh;
}

.contact-panel-dark {
    position: relative;
    background-color: var(--color-bg-dark);
    color: var(--color-bg-primary);
    display: flex;
    align-items: center;
    padding: 80px 0;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
}

.contact-panel-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    opacity: 0.1;
    z-index: 0;
}

.contact-panel-dark .container {
    position: relative;
    z-index: 1;
}

.contact-panel-light {
    background-color: var(--color-bg-primary);
    display: flex;
    align-items: center;
    padding: 80px 24px;
}

.contact-title {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--color-bg-primary);
}

.contact-email-large {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-primary-light);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.contact-email-large::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-text);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.contact-email-large:hover {
    color: var(--color-amber-light);
    transform: translateX(8px);
}

.contact-email-large:hover::after {
    transform: scaleX(1);
}

.contact-tagline {
    font-size: var(--text-md);
    font-weight: 400;
    color: var(--color-gray-300);
    font-family: var(--font-accent);
    letter-spacing: 0.02em;
}

.contact-subtitle {
    font-size: var(--text-md);
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--color-charcoal);
}

.office-locations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.office h4 {
    font-size: var(--text-md);
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
    font-family: var(--font-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.office p {
    font-size: var(--text-sm);
    line-height: 1.6;
    color: var(--color-gray-700);
}

/* Animations & Micro-interactions */
@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scroll-progress {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

.fade-up {
    animation: fade-up linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

.scale-in {
    animation: scale-in linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 25%;
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-hero);
    transform-origin: left;
    animation: scroll-progress linear;
    animation-timeline: scroll();
    z-index: 1000;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

    .fade-up,
    .scale-in {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .scroll-progress {
        animation: none;
    }

    .service-card:hover,
    .contact-email-large:hover {
        transform: none;
    }
}

/* Footer */
.footer {
    background-color: var(--color-bg-dark);
    color: var(--color-bg-primary);
    padding: 80px 0 40px;
    border-top: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--gap-lg);
    align-items: start;
    text-align: left;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-name {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-bg-primary);
    margin-bottom: 0;
}

.footer-tagline {
    color: var(--color-gray-300);
    font-size: 15px;
    max-width: 300px;
    line-height: 1.6;
}

.footer-section h4 {
    color: var(--color-primary-light);
    font-family: var(--font-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 14px;
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
}

.footer-links a {
    color: var(--color-gray-300);
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: var(--color-primary-light);
    transform: translateX(4px);
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-gray-700);
    font-size: 13px;
}

.footer-copyright {
    color: var(--color-gray-500);
    margin: 0;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    :root {
        --spacing-section: 80px;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-section: 60px;
    }

    .nav-toggle {
        display: flex;
    }

    .logo-img {
        height: 55px !important;
        max-height: 55px !important;
        max-width: 180px !important;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: 0;
        flex-direction: column;
        background-color: white;
        overflow: hidden;
        transition: height 0.3s ease;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        height: auto;
        max-height: 300px;
    }

    .nav-menu li {
        margin: 0;
        text-align: center;
        padding: 15px 0;
    }

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

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

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

    .section-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero {
        min-height: 70vh;
        padding: 100px 0 60px;
    }

    .hero-background {
        width: 100%;
        clip-path: none;
        opacity: 0.3;
    }

    .hero-logo-fixed {
        top: 90px;
        left: 24px;
        max-width: 80px;
    }

    .hero-content {
        max-width: 100%;
    }

    .contact {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .contact-panel-dark {
        clip-path: none;
        padding: 60px 0;
    }

    .contact-panel-light {
        padding: 60px 0;
    }

    .service-category {
        padding: 1.5rem;
    }

    .service-category:hover {
        transform: none;
    }
}

@media (max-width: 375px) {
    :root {
        --spacing-section: 40px;
    }

    body {
        font-size: 15px;
    }

    .hero-tagline {
        font-size: 24px;
    }

    .section-title {
        font-size: 24px;
    }

    .service-card {
        padding: 20px;
    }

    .team-grid,
    .services-grid {
        gap: 20px;
    }

    .member-photo {
        width: 150px;
        height: 150px;
    }
}