/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #6C757D;
    background-color: #FFFFFF;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    color: #2B5A9E;
}

h2 {
    font-size: 2rem;
    color: #1E3A5F;
}

h3 {
    font-size: 1.5rem;
    color: #1E3A5F;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    color: #6C757D;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #2B5A9E;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1E3A5F;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: #2B5A9E;
    color: white;
    border-color: #2B5A9E;
}

.btn-primary:hover {
    background-color: #1E3A5F;
    border-color: #1E3A5F;
    color: white;
}

.btn-secondary {
    background-color: transparent;
    color: #2B5A9E;
    border-color: #2B5A9E;
}

.btn-secondary:hover {
    background-color: #2B5A9E;
    color: white;
}

/* Header */
.site-header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand .logo {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2B5A9E;
    text-decoration: none;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #6C757D;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #2B5A9E;
}

.navbar-toggle {
    display: none;
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.menu-toggle span {
    width: 1.5rem;
    height: 0.125rem;
    background-color: #6C757D;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(0.25rem, 0.25rem);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(0.25rem, -0.25rem);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #E3F2FD 0%, #F8F9FA 100%);
    padding: 4rem 0;
    text-align: center;
}

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

.hero-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #6C757D;
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

/* Section Styles */
section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: #6C757D;
    max-width: 600px;
    margin: 0 auto;
}

/* Client Credibility Section */
.clients-credibility {
    background-color: #F8F9FA;
}

/* Client Scrolling Bar */
.client-scrolling-bar {
    background-color: #28A745;
    padding: 2rem 0;
    margin: 2rem 0;
    overflow: hidden;
    border-radius: 0.5rem;
}

.scrolling-container {
    width: 100%;
    overflow: hidden;
}

.scrolling-logos {
    display: flex;
    align-items: center;
    animation: scroll-logos 40s linear infinite;
    gap: 3rem;
    padding: 0 1rem;
}

.scrolling-logos:hover {
    animation-play-state: paused;
}

.client-logo-scroll {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 80px;
}

.client-logo-scroll img {
    max-width: 100px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.client-logo-scroll img[src$=".svg"] {
    width: auto;
    height: 50px;
    min-width: 80px;
}

@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
}

.client-logo {
    padding: 1rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.client-logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.client-logo img {
    max-width: 100%;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(0.3) brightness(1.1);
    transition: filter 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

/* Smooth fade-in effect for lazy loaded images */
.client-logo img[loading="lazy"] {
    opacity: 0;
    animation: fadeInLazy 0.3s ease-in-out forwards;
}

@keyframes fadeInLazy {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Fix for SVG images with no intrinsic dimensions */
.client-logo img[src$=".svg"] {
    width: auto;
    height: 60px;
    min-width: 80px;
}

.client-logo:hover img {
    filter: grayscale(0) brightness(1);
}

/* Fix for SVG logos with white fills */
.client-logo svg,
.client-logo svg * {
    fill: currentColor !important;
}

.client-logo {
    color: #333;
}

/* Alternative monochrome style for different sections */
.monochrome .client-logo img {
    filter: grayscale(1) brightness(1.2);
}

.monochrome .client-logo:hover img {
    filter: grayscale(0.7) brightness(1.1);
}

.monochrome .client-logo {
    color: #666;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: #1E3A5F;
}

.service-card p {
    color: #6C757D;
    margin-bottom: 0;
}

/* Team Section */
.team {
    background-color: #F8F9FA;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.team-member {
    display: flex;
    gap: 1.5rem;
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.member-photo {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
}

.member-photo img {
    width: 132px;
    height: 132px;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
 
.member-photo img[src*="nolan-myers"] {
    object-position: center 20%;
    width: 125px;
    height: 125px;
}



.placeholder-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #E3F2FD;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2B5A9E;
    font-weight: 600;
}

.placeholder-image::before {
    content: "Photo";
}

.member-info h3 {
    margin-bottom: 0.5rem;
    color: #1E3A5F;
}

.member-title {
    color: #28A745;
    font-weight: 600;
    margin-bottom: 1rem;
}

.member-bio {
    color: #6C757D;
    margin-bottom: 0;
}

/* Contact Section */
.contact {
    background-color: #1E3A5F;
    color: white;
}

.contact h2 {
    color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    margin-bottom: 1rem;
}

.contact-info p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    opacity: 0.9;
}

.contact-item a {
    color: #28A745;
}

.contact-item a:hover {
    color: #20C997;
}

/* Form Styles */
.contact-form {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1E3A5F;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #E3F2FD;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2B5A9E;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Content Area Styling */
.content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content h1:first-child,
.content h2:first-child,
.content h3:first-child {
    margin-top: 0;
}

.content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.content ul,
.content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.content ul li,
.content ol li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    padding-left: 0.5rem;
}

.content ul ul,
.content ol ol,
.content ul ol,
.content ol ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.content blockquote {
    margin: 2rem 0;
    padding: 1rem 2rem;
    border-left: 4px solid #2B5A9E;
    background-color: #F8F9FA;
    font-style: italic;
}

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

.content strong {
    font-weight: 600;
    color: #1E3A5F;
}

.content em {
    font-style: italic;
}

.content code {
    background-color: #F8F9FA;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, monospace;
    font-size: 0.875rem;
    color: #1E3A5F;
}

.content pre {
    background-color: #F8F9FA;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.content pre code {
    background: none;
    padding: 0;
    font-size: 0.875rem;
}

/* Header Deep Link Styling */
.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
    position: relative;
    cursor: pointer;
}

.content h1:hover::before,
.content h2:hover::before,
.content h3:hover::before,
.content h4:hover::before,
.content h5:hover::before,
.content h6:hover::before {
    content: "#";
    position: absolute;
    left: -1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    font-size: 1rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.content h1:hover::before,
.content h2:hover::before,
.content h3:hover::before,
.content h4:hover::before,
.content h5:hover::before,
.content h6:hover::before {
    opacity: 1;
}

/* Ensure headers have IDs for linking */
.content h1[id],
.content h2[id],
.content h3[id],
.content h4[id],
.content h5[id],
.content h6[id] {
    scroll-margin-top: 120px;
}

/* Add scroll margins to main page sections */
section[id] {
    scroll-margin-top: 120px;
}

/* Specific scroll margins for main page anchors */
#contact,
#team,
#services,
#clients {
    scroll-margin-top: 120px;
}

/* Page Header Styling */
.page-header {
    background-color: #F8F9FA;
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    margin-bottom: 1rem;
}

.page-description {
    font-size: 1.125rem;
    color: #6C757D;
    max-width: 600px;
    margin: 0 auto;
}

/* Page Content Section */
.page-content {
    padding: 3rem 0;
}

/* Blog Posts Styling */
.blog-posts {
    margin-top: 3rem;
}

.blog-post {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #E3F2FD;
}

.blog-post:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.blog-post h2 {
    color: #2B5A9E;
    margin-bottom: 0.5rem;
}

.blog-post h2 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.blog-post h2 a:hover {
    color: #1E3A5F;
}

.post-meta {
    color: #6C757D;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.blog-post p {
    color: #6C757D;
    margin-bottom: 1rem;
}

.blog-post .read-more {
    color: #28A745;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.blog-post .read-more:hover {
    color: #20C997;
}

/* Footer */
.site-footer {
    background-color: #1E3A5F;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand .logo {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.footer-description {
    opacity: 0.8;
    margin-bottom: 0;
}

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

.footer-column h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #28A745;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    text-align: center;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        padding: 1rem;
    }
    
    .navbar-menu.active {
        display: block;
    }
    
    .navbar-nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .navbar-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Client scrolling bar responsive */
    .client-scrolling-bar {
        padding: 1.5rem 0;
        margin: 1.5rem 0;
    }
    
    .scrolling-logos {
        gap: 2rem;
        animation-duration: 30s;
    }
    
    .client-logo-scroll {
        min-width: 100px;
        height: 60px;
    }
    
    .client-logo-scroll img {
        max-width: 80px;
        max-height: 45px;
    }
    
    .client-logo-scroll img[src$=".svg"] {
        height: 40px;
        min-width: 60px;
    }
    
    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .team-member {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .logo-grid {
        grid-template-columns: 1fr;
    }
    
    .team-member {
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Mobile adjustments for header deep links */
    .content {
        padding: 0 1rem;
    }
    
    .content h1:hover::before,
    .content h2:hover::before,
    .content h3:hover::before,
    .content h4:hover::before,
    .content h5:hover::before,
    .content h6:hover::before {
        left: -1.25rem;
        font-size: 0.75rem;
        top: 50%;
        transform: translateY(-50%);
    }
}
