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

:root {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-muted: #f5f7fa;
    --surface-alt: #eef2f7;
    --text: #1a365d;
    --text-muted: #4a5568;
    --text-light: #718096;
    --border: #d2d6dc;
    --border-light: #e2e8f0;
    --primary: #003366;
    --primary-dark: #002244;
    --primary-light: #0052a4;
    --accent: #0066cc;
    --accent-hover: #0052a4;
    --accent-soft: rgba(0, 102, 204, 0.08);
    --shadow-sm: 0 2px 4px rgba(26, 54, 93, 0.06);
    --shadow-md: 0 4px 12px rgba(26, 54, 93, 0.08);
    --shadow-lg: 0 8px 24px rgba(26, 54, 93, 0.12);
    --container-blue: #e8f4fd;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
.header {
    background: linear-gradient(to right, #DBEAFE, #FFFFFF);
    border-bottom: 1px solid var(--border-light);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

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

.nav-logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a365d;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo-box {
    width: 38px;
    height: 38px;
    background-color: #001f3f;
    /* Deep Navy Blue */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-m {
    color: #ffffff;
    font-weight: 900;
    font-size: 22px;
    font-family: 'Inter', sans-serif;
}

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

.nav-menu a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--accent);
}

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

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text);
    margin: 3px 0;
    transition: all 0.3s ease;
}

.hero-content {
    max-width: 600px;
    text-align: left;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    min-height: 500px;
}

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

.hero-design .compliance-image {
    max-width: 100%;
    height: 450px !important;
    display: block;
    object-fit: contain;
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

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

    .hero-design {
        margin-top: 2rem;
    }

    .hero-design .compliance-image {
        max-width: 280px;
        height: 320px !important;
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-trust-container {
    margin-bottom: 2rem;
}

.hero-cta-container {
    margin-top: 1rem;
}

.hero-trust {
    background: #a8d5b5;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    display: inline-block;
    font-weight: 500;
    color: var(--text-muted);
    margin-right: 1rem;
    margin-bottom: 1rem;
    vertical-align: middle;
}

.cta-button {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    vertical-align: middle;
    margin-bottom: 1rem;
}

.cta-button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hero-micro-text {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    margin-bottom: 0;
    font-style: italic;
}

/* Section Styles */
section {
    padding: 80px 0;
}

section h2 {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text);
}

/* Who We Support Section */
.who-we-support {
    background: var(--surface-muted);
}

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

.support-item {
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.support-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.support-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
}

.support-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* What We Do Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.service-card ul {
    list-style: none;
    margin-bottom: 2rem;
}

.service-card li {
    padding: 0.5rem 0;
    color: var(--text-muted);
    position: relative;
    padding-left: 1.5rem;
}

.service-card li::before {
    content: "•";
    color: var(--accent);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.service-positioning {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* Philosophy Section */
.philosophy {
    background: var(--surface-muted);
}

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

.philosophy-item {
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.philosophy-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.philosophy-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
}

.philosophy-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Engagement Model Section */
.engagement-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.engagement-item {
    text-align: center;
    padding: 2rem;
}

.engagement-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
}

.engagement-item p {
    color: var(--text-muted);
}

.cta-section {
    background: white;
    text-align: center;
    padding-top: 2rem;
}

/* Contact Form Section */
.contact-form-section {
    background: var(--surface-muted);
    padding: 80px 0;
}

.contact-form-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text);
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--surface);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg);
    color: var(--text);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

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

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.submit-button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.success-message {
    text-align: center;
    padding: 2rem;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 12px;
    margin-top: 2rem;
}

.success-message h3 {
    color: #155724;
    margin-bottom: 0.5rem;
}

.success-message p {
    color: #155724;
    margin: 0;
}

@media (max-width: 768px) {
    .contact-form {
        padding: 2rem;
        margin: 0 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        /* Prevent zoom on iOS */
    }

    .checkbox-label {
        font-size: 0.85rem;
    }

    .submit-button {
        padding: 1.25rem 2rem;
        font-size: 1.1rem;
    }
}

.footer {
    background: linear-gradient(to bottom, #FFFFFF, #DBEAFE);
    color: var(--text);
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--border-light);
}

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

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--text-muted);
    line-height: 1.6;
}

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

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

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .nav-menu.active {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
        z-index: 1001;
    }

    .nav-menu.active li {
        margin: 0;
        padding: 0;
    }

    .nav-menu.active a {
        display: block;
        padding: 0.75rem 1.5rem;
        border-bottom: 1px solid var(--border-light);
    }

    .nav-menu.active a:hover {
        background: var(--surface-muted);
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

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

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    section h2 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .support-grid {
        grid-template-columns: 1fr;
    }

    .philosophy-grid {
        grid-template-columns: 1fr;
    }

    .engagement-features {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}


/* Accounting Cycle Podium Infographic - Mobile Optimized */
.accounting-cycle-section {
    padding: 30px 0;
    background-color: transparent;
    width: 100%;
}


.podium-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    height: 380px;
    gap: 15px;
}

.podium-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: transform 0.3s ease;
}

.podium-bar:hover {
    transform: translateY(-5px);
}

.bar-caption {
    position: absolute;
    bottom: calc(100% + 15px);
    width: 130px;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #1a365d;
    line-height: 1.3;
    text-transform: uppercase;
}

.podium-icon {
    width: 32px;
    height: 32px;
    stroke: var(--accent-color);
}

/* Increasing Heights & Soothing Colors with Shades */
.bar-step-1 {
    --accent-color: #5DACE2;
    --accent-dark: #4A90E2;
}

.bar-step-1 .bar-stem {
    height: 60px;
}

.bar-step-2 {
    --accent-color: #82C91E;
    --accent-dark: #74B816;
}

.bar-step-2 .bar-stem {
    height: 110px;
}

.bar-step-3 {
    --accent-color: #5DACE2;
    --accent-dark: #4A90E2;
}

.bar-step-3 .bar-stem {
    height: 160px;
}

.bar-step-4 {
    --accent-color: #82C91E;
    --accent-dark: #74B816;
}

.bar-step-4 .bar-stem {
    height: 210px;
}

.bar-step-5 {
    --accent-color: #5DACE2;
    --accent-dark: #4A90E2;
}

.bar-step-5 .bar-stem {
    height: 260px;
}

.bar-icon-box {
    width: 60px;
    height: 60px;
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    /* Space between icons and podium */
    z-index: 2;
    border: 2px solid var(--accent-color);
}

.bar-stem {
    width: 100%;
    max-width: 90px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
    border-radius: 15px 15px 0 0;
    /* More rounded top edges */
    position: relative;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.bar-stem::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.2) 0%, transparent 20%, rgba(0, 0, 0, 0.05) 100%);
    pointer-events: none;
}

.bar-number {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.2rem;
    font-weight: 900;
    color: #ffffff;
    opacity: 0.95;
    /* More whitish and visible */
    pointer-events: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .accounting-cycle-section {
        padding: 20px 0;
    }
    
    .podium-container {
        display: flex;
        flex-direction: column; /* Stack bars vertically */
        height: auto;
        gap: 20px;
        padding: 0 15px;
        justify-content: flex-start;
        align-items: stretch;
    }

    .podium-bar {
        display: flex;
        flex-direction: row; /* Horizontal layout for each bar */
        align-items: center;
        justify-content: space-between;
        width: 100%;
        flex: none; /* Remove flex: 1 */
        min-width: auto;
        gap: 15px;
        background: transparent;
        padding: 10px;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .bar-icon-box {
        width: 50px;
        height: 50px;
        margin-bottom: 0;
        flex-shrink: 0;
        order: 1;
    }

    .bar-stem {
        display: block !important;
        height: 60px !important; /* Uniform height for all bars */
        width: 60%; /* Bar takes 60% of width */
        max-width: none;
        min-height: 60px;
        order: 2;
        border-radius: 8px;
    }

    .bar-caption {
        position: static; /* Remove absolute positioning */
        width: 30%; /* Caption takes 30% of width */
        font-size: 0.8rem;
        line-height: 1.3;
        text-align: left;
        white-space: normal;
        word-wrap: break-word;
        order: 3;
        flex-shrink: 0;
        background: transparent;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .bar-number {
        font-size: 1.5rem;
        bottom: auto;
        left: auto;
        transform: none;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    /* Ensure all bars have same height in mobile */
    .bar-step-1 .bar-stem,
    .bar-step-2 .bar-stem,
    .bar-step-3 .bar-stem,
    .bar-step-4 .bar-stem,
    .bar-step-5 .bar-stem {
        height: 60px !important;
        min-height: 60px;
    }
}

/* Small phones - optimize for very small screens */
@media (max-width: 480px) {
    .podium-container {
        gap: 15px;
        padding: 0 10px;
    }

    .podium-bar {
        padding: 8px;
        gap: 10px;
    }

    .bar-icon-box {
        width: 40px;
        height: 40px;
    }

    .bar-stem {
        height: 50px !important;
        min-height: 50px;
    }

    .bar-caption {
        font-size: 0.7rem;
        width: 35%;
    }

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

    .hero-design {
        margin-top: 2rem;
    }

    .hero-design .compliance-image {
        max-width: 280px;
        height: 320px !important;
    }
}