:root {
    --primary-bg: #FFFFFF;
    --primary-text: #1F2937;
    --secondary-bg: #1E3A8A;
    --secondary-text: #F9FAFB;
    --accent-color: #06B6D4;
    --light-bg: #F0F9FF;
    --light-text: #4B5563;
    --graphite: #374151;
    --border-radius: 8px;
    --font-family: 'Inter', sans-serif;
    --transition-speed: 0.3s;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--primary-bg);
    color: var(--primary-text);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none !important;
    transition: color var(--transition-speed) ease;
}

a:hover,
a:focus {
    color: var(--accent-color);
    text-decoration: none !important;
}

button {
    cursor: pointer;
    border: none;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) ease;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (max-width: 768px) {
    h1 {
        font-size: clamp(2rem, 8vw, 2.5rem) !important;
    }

    h2 {
        font-size: clamp(1.5rem, 6vw, 2rem) !important;
    }

    body {
        font-size: 0.95rem;
    }

    .mobile-long-text {
        word-break: break-all;
        font-size: 0.85rem !important;
    }
}

@media (min-width: 1024px) {
    .container-wide {
        max-width: 1200px;
        margin: 0 auto;
    }
}

/* ===== header_global ===== */
.js-nav-link:hover {
    color: var(--accent-color) !important;
}

#header {
    font-family: var(--font-family);
}

@media (max-width: 767px) {
    .js-mobile-menu a {
        font-size: 0.875rem;
        hyphens: auto;
        line-height: 1.2;
    }
}

/* ===== hero_section ===== */
#home {
    background-image: url("visuals/pics/corporate-finance-background.webp");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
}

.hero-overlay {
    background: rgba(31, 41, 51, 0.7);
}

.hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
    hyphens: auto;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.4;
    color: var(--secondary-text);
}

.hero-seo-content p {
    font-size: 1rem;
    line-height: 1.6;
}

.btn-accent {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #ffffff;
    padding: 0.8rem 2rem;
    border-radius: var(--border-radius);
    transition: transform 0.2s ease, background-color 0.2s ease;
    font-weight: 600;
    text-decoration: none;
}

.btn-accent:hover {
    background-color: #0891b2;
    border-color: #0891b2;
    transform: translateY(-2px);
    color: #ffffff;
}

@media (max-width: 767.98px) {
    #home {
        background-attachment: scroll;
    }

    .hero-title {
        font-size: 1.125rem !important;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 1rem !important;
        line-height: 1.2;
    }

    .hero-seo-content p {
        font-size: 0.875rem !important;
        line-height: 1.3;
    }

    .btn-accent {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ===== stats_metrics ===== */
#stats {
    font-family: var(--font-family);
}

.section-title {
    line-height: 1.2;
}

@media (max-width: 767px) {
    #stats {
        padding: 40px 0;
    }

    .js-stats-title {
        font-size: 1rem !important;
        line-height: 1.2;
    }

    .js-stat-card h3 {
        font-size: 1.125rem !important;
        margin-bottom: 4px;
    }

    .js-stat-card p {
        font-size: 0.875rem !important;
    }

    .js-stat-card svg {
        width: 32px;
        height: 32px;
    }
}

/* ===== about_timeline ===== */
#about {
    overflow-x: hidden;
}

.js-scroll-item {
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;
}

@media (max-width: 767.98px) {
    #about h2 {
        font-size: 1.125rem !important;
        line-height: 1.3 !important;
    }

    #about h3 {
        font-size: 1rem !important;
        line-height: 1.3 !important;
    }

    #about p {
        font-size: 0.875rem !important;
    }
}

/* ===== services_grid ===== */
.js-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid var(--accent-color) !important
}

#services .card {
    border: 1px solid transparent !important
}

#services h2 {
    font-size: 2.5rem
}

#services h3 {
    font-weight: 600
}

@media(max-width:767px) {
    #services {
        padding: 40px 0
    }

    #services h2 {
        font-size: 1rem !important
    }

    #services h3 {
        font-size: 0.875rem !important
    }

    #services .card-body {
        padding: 1.5rem !important
    }
}

/* ===== process_steps ===== */
#process .process-number-wrap {
    position: relative;
    display: inline-block
}

#process .process-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto;
    position: relative;
    z-index: 2
}

#process .process-line {
    position: absolute;
    top: 30px;
    left: calc(50% + 30px);
    width: calc(100% - 60px);
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-bg));
    z-index: 1
}

#process .seo-content-box {
    border-left: 4px solid var(--accent-color)
}

#process p {
    line-height: 1.6;
    hyphens: auto
}

@media (max-width:767px) {
    #process h2 {
        font-size: 1rem !important
    }

    #process h3 {
        font-size: 0.875rem !important
    }

    #process .process-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem
    }
}

/* ===== benefits_list ===== */
#benefits {
    background-color: var(--primary-bg);
    color: var(--graphite);
    padding: 80px 0;
}

.benefit-icon {
    width: 48px;
    height: 48px;
    fill: none;
    stroke: var(--accent-color);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-bottom: 24px;
}

.benefit-card {
    transition: transform .3s ease;
    border-radius: var(--border-radius);
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-title {
    color: var(--graphite);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    hyphens: auto;
}

.benefit-text {
    color: var(--light-text);
    line-height: 1.6;
    font-size: .95rem;
}

@media(max-width:767px) {
    #benefits {
        padding: 40px 0;
    }

    .benefit-section-title {
        font-size: 1rem !important;
        line-height: 1.2 !important;
    }

    .benefit-title {
        font-size: .875rem !important;
        line-height: 1.2 !important;
    }

    .benefit-text {
        font-size: .85rem;
    }

    .benefit-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 16px;
    }
}

/* ===== target_audience ===== */
#clients h2 {
    font-size: 2.5rem;
    font-weight: 700;
    hyphens: auto;
}

#clients h3 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.2;
}

#clients p {
    line-height: 1.6;
}

.js-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

@media (max-width: 767px) {
    #clients h2 {
        font-size: 1.125rem;
        line-height: 1.2;
    }

    #clients h3 {
        font-size: 0.875rem;
        line-height: 1.2;
    }
}

/* ===== faq_accordion ===== */
#faq {
    font-family: var(--font-family);
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-button:not(.collapsed) .js-accordion-icon {
    transform: rotate(180deg);
}

@media (max-width: 767px) {
    #faq h2 {
        font-size: 1rem !important;
    }

    #faq .accordion-button {
        font-size: 0.875rem !important;
    }

    #faq .accordion-body {
        font-size: 0.8125rem !important;
    }
}

/* ===== final_cta ===== */
.cta-block {
    background-image: url('visuals/pics/abstract_finance_background.webp');
    background-size: cover;
    background-position: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    hyphens: auto;
    font-family: var(--font-family);
}

.cta-overlay {
    background: rgba(0, 0, 0, 0.75);
}

.cta-title {
    color: var(--secondary-text);
    line-height: 1.2;
}

.cta-description {
    color: var(--secondary-text);
    font-size: 1.1rem;
}

.cta-benefits .badge {
    background-color: rgba(6, 182, 212, 0.1);
    border: 1px solid var(--accent-color);
    color: var(--secondary-text);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

.btn-cta {
    background-color: var(--accent-color);
    color: #FFFFFF;
    border: none;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.btn-cta:hover {
    background-color: #0891b2;
    color: #FFFFFF;
    transform: translateY(-2px);
}

.info-item .icon {
    color: var(--accent-color);
}

.info-item span {
    color: var(--secondary-text);
    font-size: 1rem;
}

@media (max-width: 767px) {
    .cta-title {
        font-size: 1rem !important;
    }

    .cta-description {
        font-size: 0.875rem;
    }

    .btn-cta {
        width: 100%;
        font-size: 0.9rem;
    }

    .cta-info {
        gap: 1.5rem !important;
    }
}

/* ===== footer_global ===== */
#footer {
    background-image: url('visuals/pics/consulting_finance_background.webp');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    position: relative;
    overflow: hidden;
    color: var(--secondary-text);
    font-family: var(--font-family);
}

.footer-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 58, 138, 0.9);
    z-index: 1;
}

.footer-section .container {
    z-index: 2;
}

.footer-logo {
    max-width: 70px;
    height: auto;
    filter: brightness(0) invert(1);
}

.footer-slogan {
    font-size: 1rem;
    color: var(--secondary-text);
    line-height: 1.4;
    hyphens: auto;
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.footer-link,
.footer-legal-link {
    color: var(--secondary-text);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.footer-link:hover,
.footer-legal-link:hover {
    color: var(--accent-color);
}

.footer-legal-link {
    margin-bottom: 0;
    font-size: 0.8rem;
}

.footer-address {
    color: var(--secondary-text);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.footer-copyright {
    font-size: 0.8rem;
    color: rgba(249, 250, 251, 0.7);
}

@media (max-width: 767px) {
    .footer-title {
        font-size: 0.875rem;
        line-height: 1.2;
    }

    .footer-slogan {
        font-size: 0.875rem;
    }

    .footer-link,
    .footer-address,
    .footer-legal-link {
        font-size: 0.8rem;
    }

    .footer-logo {
        max-width: 50px;
    }
}