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

:root {
    /* Color Palette */
    --primary: #367588;
    --primary-light: #4a8ba0;
    --primary-dark: #2a5a6b;
    --teal-light: #7fb3c4;
    --teal-lighter: #a8d1dd;
    --teal-dark: #1e4a5a;
    
    /* Neutral Palette */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --charcoal: #1a1a1a;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --container-max: 1200px;
    --section-padding: 80px 0;
    --border-radius: 8px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

h2 {
    color: var(--primary);
}

h1 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--gray-600);
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

/* Ensure SMB CTA appears as a button on all viewports even if an older link style persists */
.hero-cta a.service-link[href="smb.html"] {
    display: inline-block;
    padding: 16px 32px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.hero-cta a.service-link[href="smb.html"]:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 120px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.nav-logo a:hover {
    opacity: 0.8;
}

.logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

/* Header subtitle next to logo */
.nav-logo .highlighted-subtitle {
    font-size: 1rem;
    color: var(--primary);
    padding-bottom: 0;
    line-height: 1;
}

.nav-logo .highlighted-subtitle::after {
    display: none;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

.nav-cta {
    display: flex;
    align-items: center;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

    .nav-toggle span {
        width: 25px;
        height: 3px;
        background-color: var(--gray-600);
        transition: all 0.3s ease;
    }
    
    /* Toggle button animation */
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

/* Hero Section */
.hero {
    padding: 90px 0 80px;
    margin-top: 60px;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    margin-bottom: 1.5rem;
    color: var(--gray-900);
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.highlighted-text {
    background-color: var(--primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(54, 117, 136, 0.3);
    transform: translateX(-0.5rem);
}

.title-continuation {
    color: var(--gray-900);
    font-weight: 600;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.highlighted-subtitle {
    color: var(--primary);
    font-weight: 600;
    position: relative;
    padding-bottom: 2px;
}

.highlighted-subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    border-radius: 1px;
}

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

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-placeholder {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--gray-200);
}

.enhanced-visual {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Central Hub - represents your firm as the core */
.central-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.hub-core {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(54, 117, 136, 0.3);
    animation: pulse 3s ease-in-out infinite;
}

.hub-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border: 2px solid var(--teal-light);
    border-radius: 50%;
    opacity: 0.3;
    animation: rotate 20s linear infinite;
}

.hub-rings::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border: 1px solid var(--teal-lighter);
    border-radius: 50%;
    opacity: 0.2;
}

/* Flow Lines - representing execution and delivery */
.flow-lines {
    position: absolute;
    width: 100%;
    height: 100%;
}

.flow-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    height: 2px;
    opacity: 0.4;
    animation: flow 4s ease-in-out infinite;
}

.flow-1 {
    width: 120px;
    top: 30%;
    left: 20%;
    transform: rotate(45deg);
    animation-delay: 0s;
}

.flow-2 {
    width: 100px;
    top: 70%;
    right: 25%;
    transform: rotate(-30deg);
    animation-delay: 1s;
}

.flow-3 {
    width: 80px;
    bottom: 25%;
    left: 30%;
    transform: rotate(60deg);
    animation-delay: 2s;
}

.flow-4 {
    width: 90px;
    top: 20%;
    right: 20%;
    transform: rotate(-45deg);
    animation-delay: 3s;
}

/* Connection Nodes - representing teams and services */
.connection-nodes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.node {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--white);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(54, 117, 136, 0.2);
    animation: nodeFloat 6s ease-in-out infinite;
}

.node-icon {
    font-size: 1.2rem;
    opacity: 0.8;
}

.node-1 {
    top: 15%;
    left: 25%;
    animation-delay: 0s;
}

.node-2 {
    top: 20%;
    right: 20%;
    animation-delay: 1s;
}

.node-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 2s;
}

.node-4 {
    bottom: 25%;
    right: 25%;
    animation-delay: 3s;
}

/* Data Flow Particles */
.data-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.6;
    animation: particleFlow 8s linear infinite;
}

.p1 { top: 10%; left: 10%; animation-delay: 0s; }
.p2 { top: 15%; right: 15%; animation-delay: 1s; }
.p3 { bottom: 15%; left: 15%; animation-delay: 2s; }
.p4 { bottom: 10%; right: 10%; animation-delay: 3s; }
.p5 { top: 50%; left: 5%; animation-delay: 4s; }
.p6 { top: 50%; right: 5%; animation-delay: 5s; }

/* Animations */
@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

@keyframes rotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes flow {
    0%, 100% { opacity: 0.2; transform: scaleX(0.8); }
    50% { opacity: 0.6; transform: scaleX(1.2); }
}

@keyframes nodeFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes particleFlow {
    0% { 
        transform: translate(0, 0) scale(0.5);
        opacity: 0;
    }
    25% { 
        transform: translate(20px, 20px) scale(1);
        opacity: 0.8;
    }
    50% { 
        transform: translate(40px, 0px) scale(1.2);
        opacity: 1;
    }
    75% { 
        transform: translate(20px, -20px) scale(1);
        opacity: 0.8;
    }
    100% { 
        transform: translate(0, 0) scale(0.5);
        opacity: 0;
    }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

/* Services Preview */
.services-preview {
    padding: var(--section-padding);
    background-color: var(--white);
}

.services-preview .section-header h2 {
    color: var(--primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.service-icon {
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.service-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.service-link:hover {
    color: var(--primary-dark);
}

.services-cta {
    text-align: center;
}

/* Value Proposition */
.value-prop {
    padding: 60px 0;
    background-color: var(--white);
}

.value-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.value-box {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    background-color: var(--teal-lighter);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(54, 117, 136, 0.1);
    text-align: left;
    min-height: 120px;
}

.value-text {
    font-size: 1.1rem;
    color: var(--gray-700);
    line-height: 1.6;
    margin: 0;
    flex: 1;
    word-wrap: break-word;
}

.value-icon {
    margin: 0;
    flex-shrink: 0;
}

.value-icon i {
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.8;
}

/* Featured Impact */
.featured-impact {
    padding: var(--section-padding);
    background-color: var(--gray-50);
}

.featured-impact .section-header h2 {
    color: var(--primary);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.impact-item {
    text-align: center;
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.impact-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.impact-icon {
    margin-bottom: 1.5rem;
}

.impact-icon i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.impact-item h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.impact-item p {
    color: var(--gray-600);
}

.impact-cta {
    text-align: center;
}

/* Our Philosophy */
.philosophy {
    padding: var(--section-padding);
    background-color: var(--white);
}

.philosophy .section-header h2 {
    color: var(--primary);
}

.philosophy-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.philosophy-icon {
    margin-bottom: 2rem;
}

.philosophy-icon i {
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.8;
}

.philosophy-content h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.philosophy-content p {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-content p {
    color: var(--gray-100);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.cta-section .btn-primary {
    background-color: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.cta-section .btn-primary:hover {
    background-color: var(--gray-100);
    border-color: var(--gray-100);
}

/* Footer */
.footer {
    background-color: var(--gray-900);
    color: var(--gray-300);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
    align-items: start;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.footer-logo .logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.footer-logo .logo-text {
    color: var(--white);
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

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

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

.footer-section ul li a {
    color: var(--gray-300);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary);
}

/* Footer brand section */
.footer-brand {
    max-width: 400px;
}

.footer-brand p {
    margin-top: 1rem;
    line-height: 1.6;
}

/* Footer links section */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-link-group h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-link-group ul {
    list-style: none;
    padding: 0;
}

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

.footer-link-group ul li a {
    color: var(--gray-300);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link-group ul li a:hover {
    color: var(--primary);
}


.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 2rem;
    text-align: center;
    color: var(--gray-400);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    /* Hide CTA button on mobile */
    .nav-cta {
        display: none;
    }
    
    
    /* Fix hero section padding for mobile */
    .hero {
        padding: 60px 0 60px;
        margin-top: 80px;
    }
    
    /* Reduce header height on mobile */
    .nav-container {
        height: 80px;
        position: relative;
        z-index: 1000;
    }
    
    .logo {
        width: 80px;
        height: 80px;
    }
    
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    /* Fix mobile hero layout - visual above content */
    .hero-container {
        display: flex;
        flex-direction: column;
    }
    
    .hero-visual {
        order: -1; /* Move visual to top on mobile */
    }
    
    .hero-content {
        order: 1; /* Move content below visual on mobile */
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-image-placeholder {
        width: 300px;
        height: 300px;
    }
    
    .hero-title {
        text-align: center;
    }
    
    .highlighted-text {
        transform: none;
        margin: 0 auto;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-brand {
        max-width: none;
    }
    
    .footer-links {
        gap: 1.5rem;
    }
    
    .footer-link-group {
        text-align: center;
    }
    
    .value-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .value-box {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 0 60px;
        margin-top: 80px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        width: 100%;
        max-width: 300px;
    }
    
    .hero-image-placeholder {
        width: 250px;
        height: 250px;
    }
}
