/* =============================================================
   SparkForge Finanse - Professional Corporate CSS Theme
   Author: Senior CSS Developer & UI Designer
   ============================================================= */
/* ========== 1. CSS RESET & NORMALIZATION ========== */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
main, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    box-sizing: border-box;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
    display: block;
}
body { line-height: 1.5; background: #f7f9fb; }
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { border-style: none; max-width: 100%; height: auto; display: block; }
button { font: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; }

/* ========== 2. BRAND COLORS & TYPOGRAPHY ========== */
:root {
    --primary: #164087;
    --primary-hover: #11356e;
    --secondary: #FFFFFF;
    --accent: #F4A300;
    --gray-light: #eef2f6;
    --gray-medium: #d2d8df;
    --gray-dark: #6d7682;
    --text-title: #18355a;
    --text-body: #263244;
    --background: #f7f9fb;
    --shadow: 0 4px 16px rgba(38, 48, 68, 0.08);
    --radius: 10px;
    --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
    --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-body);
    background: var(--background);
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-title);
    margin-bottom: 16px;
}
h1 { font-size: 2.5rem; line-height: 1.2; }
h2 { font-size: 2rem; line-height: 1.22; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.18rem; }
h5, h6 { font-size: 1rem; }
@media (max-width: 768px) {
    h1 { font-size: 1.7rem; }
    h2 { font-size: 1.35rem; }
    h3 { font-size: 1.15rem; }
}
p, ul, ol, li {
    font-size: 1rem;
    color: var(--text-body);
    margin-bottom: 12px;
}
strong { color: var(--primary); font-weight: 700; }

/* ========== 3. CONTAINER & LAYOUT CLASSES ========== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.content-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
}
/* Section (per spec) */
.section {
    margin-bottom: 60px;
    padding: 40px 20px;
}
@media (max-width: 768px) {
    .section {
        margin-bottom: 40px;
        padding: 24px 10px;
    }
}

/* ========== 4. HEADER / NAVIGATION ========== */
header {
    background: var(--secondary);
    box-shadow: var(--shadow);
    padding: 0;
    margin-bottom: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
header .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    gap: 24px;
}
.logo-area a {
    display: flex;
    align-items: center;
    padding: 10px 0;
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}
.main-nav a {
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--primary);
    padding: 10px 0;
    font-size: 1rem;
    position: relative;
    transition: color .23s;
}
.main-nav a:after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width .23s;
    margin-top: 4px;
}
.main-nav a:hover, .main-nav a:focus {
    color: var(--accent);
}
.main-nav a:hover:after {
    width: 100%;
}
.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 32px;
    background: var(--primary);
    color: var(--secondary);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.08rem;
    letter-spacing: .04em;
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(22, 64, 135, 0.10);
    transition: background .23s, color .2s, box-shadow .18s;
    border: none;
    margin-left: 18px;
    margin-right: 0;
    text-align: center;
    cursor: pointer;
    outline: none;
}
.cta-btn:hover, .cta-btn:focus {
    background: var(--accent);
    color: var(--primary);
    box-shadow: 0 4px 20px rgba(244,163,0,.12);
}
/* Hide cta-btn on mobile nav if needed */
@media (max-width: 900px) {
    .main-nav {
        display: none;
    }
    .cta-btn {
        margin-left: 0;
    }
}
@media (max-width: 900px) {
    .logo-area {
        flex: 1 0 auto;
    }
}

/* ========== 5. MOBILE MENU STYLES ========== */
.mobile-menu-toggle {
    display: none;
    position: absolute;
    right: 24px;
    top: 24px;
    font-size: 2.3rem;
    color: var(--primary);
    background: transparent;
    border: none;
    z-index: 200;
    line-height: 1;
    width: 44px; height: 44px;
    align-items: center;
    justify-content: center;
    transition: color .2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
    color: var(--accent);
}
@media (max-width: 900px) {
    .mobile-menu-toggle {
        display: flex;
    }
}
.mobile-menu {
    position: fixed;
    top: 0; right: 0;
    width: 100vw;
    height: 100vh;
    background: var(--secondary);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.85,.02,.19,1);
    box-shadow: -6px 0 32px rgba(38, 48, 68, .10);
    padding: 0 18px;
}
.mobile-menu.open {
    transform: translateX(0);
}
.mobile-menu-close {
    font-size: 2rem;
    color: var(--primary);
    background: none;
    border: none;
    align-self: flex-end;
    margin: 24px 0 0 0;
    padding: 8px 8px;
    cursor: pointer;
    transition: color .2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
    color: var(--accent);
}
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 48px 0 0 12px;
}
.mobile-nav a {
    font-size: 1.21rem;
    color: var(--primary);
    font-family: var(--font-display);
    font-weight: 600;
    padding: 8px 0;
    transition: color .2s;
    border-radius: 4px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
    color: var(--accent);
    background: var(--gray-light);
}
@media (min-width: 901px) {
    .mobile-menu, .mobile-menu-toggle {
        display: none!important;
    }
}

/* ========== 6. HERO SECTION ========== */
.hero {
    background: linear-gradient(98deg,#f7f9fb 85%,#e9f0fa 100%);
    padding: 56px 0 34px 0;
    position: relative;
}
.hero .container {
    align-items: flex-start;
}
.hero .content-wrapper {
    align-items: flex-start;
    max-width: 650px;
    gap: 22px;
}
.hero h1 {
    color: var(--primary);
    font-size: 2.3rem;
    line-height: 1.17;
    margin-bottom: 20px;
}
.hero-subheadline {
    font-family: var(--font-body);
    font-size: 1.17rem;
    color: var(--gray-dark);
    margin-top: 0;
    margin-bottom: 18px;
}
.hero .cta-btn {
    margin-top: 8px;
}
@media (max-width: 768px) {
    .hero {
        padding: 36px 0 18px 0;
    }
    .hero h1 {
        font-size: 1.35rem;
    }
    .hero-subheadline {
        font-size: 1rem;
    }
}

/* ========== 7. FEATURES SECTION ========== */
.features { background: var(--gray-light); }
.features .container { align-items: flex-start; }
.features h2 { margin-bottom: 4px; color: var(--primary); }

.feature-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin-top: 24px;
    margin-bottom: 16px;
}
/* For .feature-grid and .feature-list as both may exist per HTMLs */
.feature-list {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}
.benefit-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 32px;
    margin-bottom: 16px;
}
.feature-grid li, .feature-list li, .benefit-list li {
    background: var(--secondary);
    padding: 18px 20px 16px 72px;
    border-radius: var(--radius);
    position: relative;
    min-width: 240px;
    min-height: 64px;
    font-size: 1rem;
    color: var(--text-body);
    box-shadow: 0 1px 5px rgba(22,64,135,0.03);
    margin-bottom: 0;
}
.feature-grid li img, .feature-list li img { position: absolute; left: 24px; top: 22px; width: 32px; height: 32px; }
@media (max-width: 900px) {
    .feature-grid {
        flex-direction: column;
        gap: 14px;
    }
    .feature-grid li {
        min-width: 165px;
    }
}

/* ========== 8. SERVICE CARDS & GRIDS ========== */
.service-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 24px;
    margin-bottom: 6px;
    justify-content: flex-start;
}
.service-card {
    background: var(--secondary);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px 26px 22px 26px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 240px;
    flex: 1 1 220px;
    max-width: 265px;
    transition: box-shadow .2s, transform .18s;
    margin-bottom: 20px;
    margin-right: 0;
}
.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}
.service-card .price {
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
    margin: 8px 0 18px 0;
    display: block;
}
.service-card .cta-btn {
    margin-top: auto;
    width: 100%;
}
.service-card:hover, .service-card:focus-within {
    box-shadow: 0 10px 28px rgba(22,64,135,0.12);
    transform: translateY(-6px) scale(1.03);
    z-index: 5;
}
@media (max-width: 900px) {
    .service-cards {
        flex-direction: column;
        gap: 18px;
        align-items: stretch;
    }
    .service-card {
        min-width: 0;
        max-width: 100%;
    }
}

.card-comparison { background: var(--gray-light); border-radius: var(--radius); padding: 24px; margin-bottom: 18px; }
.card-comparison ul { gap: 8px; display: flex; flex-direction: column; }

.fees-info, .fees-limits {
    background: var(--gray-light);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 18px;
    color: var(--primary);
    font-weight: 500;
    font-size: 1rem;
}

/* ========== 9. TESTIMONIALS & RATINGS ========== */
.testimonials {
    background: var(--secondary);
    padding: 54px 0 44px 0;
}
.testimonials .container { align-items: flex-start; }
.testimonials h2 { color: var(--primary); }
.testimonial-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 18px;
    margin-bottom: 18px;
}
.testimonial-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    background: var(--gray-light);
    color: var(--text-body);
    padding: 24px 30px 22px 30px;
    border-radius: var(--radius);
    box-shadow: 0 2px 12px rgba(38,48,68,.06);
    min-width: 260px;
    max-width: 340px;
    font-size: 1.04rem;
    margin-bottom: 0;
}
.testimonial-card p {
    color: var(--text-title);
    font-size: 1.03rem;
    margin-bottom: 10px;
}
.testimonial-meta {
    color: var(--gray-dark);
    font-size: .98rem;
    font-style: italic;
    margin-bottom: 0;
}
.client-ratings {
    margin-top: 18px;
    font-size: 1.04rem;
    color: var(--primary);
    font-weight: 600;
}
@media (max-width: 900px) {
    .testimonial-slider {
        flex-direction: column;
        gap: 14px;
    }
    .testimonial-card {
        min-width: 0;
        max-width: 100%;
    }
}

/* ========== 10. CONTENT GRIDS, FLEX PATTERNS, LISTS ========== */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.card {
    background: var(--secondary);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    position: relative;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.content-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}
.text-image-section {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
@media (max-width: 768px) {
    .text-image-section {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
}
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

.section ul, .section ol { margin-bottom: 16px; }
.section ul li, .section ol li {
    margin-bottom: 10px;
    padding-left: 14px;
    position: relative;
}
.section ul li:before {
    content: '\2022';
    color: var(--accent);
    position: absolute;
    left: 0;
    font-size: 1.23em;
    top: 2px;
}
.section ol li {
    list-style-type: decimal;
    padding-left: 0;
}

.text-section { margin-bottom: 18px; }
.text-section p { margin-bottom: 10px; }

/* ========== 11. CONTACT & ADDRESS BLOCKS ========== */
.contact .content-wrapper {
    gap: 38px;
    align-items: flex-start;
    background: var(--gray-light);
    border-radius: var(--radius);
    padding: 32px 28px 26px 28px;
    box-shadow: var(--shadow);
}
.address-map, .office-hours {
    background: var(--secondary);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: 0 1px 6px rgba(22,64,135,.03);
    margin-bottom: 16px;
    color: var(--text-body);
    font-size: .99rem;
}

/* ========== 12. FOOTER ========== */
footer {
    background: var(--primary);
    color: var(--secondary);
    padding: 32px 0 16px 0;
}
footer .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}
.footer-nav a {
    color: var(--secondary);
    font-family: var(--font-display);
    font-size: 1rem;
    transition: color .2s;
    opacity: 0.95;
    padding: 4px 0;
}
.footer-nav a:hover, .footer-nav a:focus {
    color: var(--accent);
    opacity: 1;
}
.footer-meta {
    color: #c7d5eb;
    font-size: .93rem;
    margin-top: 12px;
}
@media (max-width: 900px) {
    footer .container {
        flex-direction: column;
        gap: 18px;
        align-items: flex-start;
    }
    .footer-meta {
        margin-top: 0;
    }
}

/* ========== 13. THANK YOU / CONFIRMATION SECTION ========== */
.thankyou .content-wrapper {
    background: var(--gray-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 48px 36px;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.confirmation-message {
    font-size: 1.13rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 16px;
}
.next-steps {
    font-size: 1rem;
    color: var(--text-body);
    margin-bottom: 18px;
}

/* ========== 14. COOKIE CONSENT BANNER ========== */
.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: var(--secondary);
    box-shadow: 0 -2px 24px rgba(22,64,135, 0.13);
    border-top: 1px solid var(--gray-medium);
    padding: 24px 20px 20px 20px;
    z-index: 20001;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 26px;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.28s, transform 0.32s;
}
.cookie-banner.hide {
    opacity: 0;
    pointer-events: none;
    transform: translateY(80px);
}
.cookie-banner__text {
    color: var(--text-body);
    flex: 1 1 240px;
    font-size: 1.02rem;
}
.cookie-banner__actions {
    display: flex;
    gap: 13px;
}
.cookie-btn {
    padding: 8px 18px;
    border-radius: 5px;
    font-family: var(--font-display);
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: background .2s, color .2s, box-shadow .17s;
    margin-right: 0;
    margin-bottom: 0;
}
.cookie-btn.accept {
    background: var(--primary);
    color: var(--secondary);
    font-weight: 600;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
    background: var(--primary-hover);
}
.cookie-btn.reject {
    background: var(--gray-light);
    color: var(--primary);
    font-weight: 500;
    border: 1px solid var(--gray-medium);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
    background: #e6eaf1;
    color: var(--accent);
}
.cookie-btn.settings {
    background: transparent;
    color: var(--primary);
    font-weight: 500;
    text-decoration: underline;
    border: none;
    padding-left: 0;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
    color: var(--accent);
}
@media (max-width: 600px) {
    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        font-size: .97rem;
        gap: 10px;
    }
    .cookie-banner__actions { gap: 6px; }
}

/* ========== 15. COOKIE SETTINGS MODAL ========== */
.cookie-modal-overlay {
    position: fixed;
    z-index: 20002;
    inset: 0;
    background: rgba(22,64,135,0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1; pointer-events: auto;
    transition: opacity 0.28s;
}
.cookie-modal-overlay.hide {
    opacity: 0; pointer-events: none;
}
.cookie-modal {
    background: var(--secondary);
    border-radius: var(--radius);
    box-shadow: 0 6px 38px rgba(22,64,135,0.19);
    padding: 36px 32px 24px 32px;
    min-width: 292px;
    max-width: 400px;
    width: 90vw;
    color: var(--text-body);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.cookie-modal h3 {
    font-size: 1.31rem;
    margin-bottom: 8px;
    color: var(--primary);
}
.cookie-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--gray-light);
    border-radius: 5px;
    padding: 10px 13px;
    margin-bottom: 10px;
    font-size: 1rem;
    font-family: var(--font-body);
}
.cookie-category label {
    font-weight: 500;
}
.cookie-toggle {
    width: 36px; height: 22px;
    background: var(--gray-medium);
    border-radius: 13px;
    position: relative;
    transition: background .2s;
    margin-left: 11px;
    cursor: pointer;
}
.cookie-toggle input { display: none; }
.cookie-toggle span {
    position: absolute;
    left: 3px; top: 3px;
    width: 16px; height: 16px;
    background: var(--secondary);
    border-radius: 50%;
    transition: left .2s, background .2s;
}
.cookie-toggle input:checked + span {
    left: 17px; background: var(--primary);
}
.cookie-category.essential .cookie-toggle {
    background: var(--gray-dark);
    pointer-events: none;
}
.cookie-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.cookie-modal-close {
    position: absolute;
    top: 12px; right: 20px;
    background: none;
    color: var(--gray-dark);
    font-size: 1.4rem;
    border: none;
    cursor: pointer;
    z-index: 2;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
    color: var(--primary);
}

/* ========== 16. FORMS (Optional) ========== */
input, textarea, select {
    border: 1px solid var(--gray-medium);
    border-radius: 6px;
    padding: 10px;
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--primary);
    transition: border-color .16s, box-shadow .18s;
    background: var(--secondary);
}
input:focus, textarea:focus, select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px #e0ecfa;
}
label {
    font-family: var(--font-display);
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 7px;
    display: block;
}

/* ========== 17. UTILS, MICRO-INTERACTIONS & ANIMATIONS ========== */
@media (hover: hover) and (pointer: fine) {
    .cta-btn, .cookie-btn, .main-nav a, .footer-nav a, .mobile-nav a {
        transition: box-shadow .17s, color .21s, background .23s;
    }
    .cta-btn:hover, .cta-btn:focus {
        background: var(--accent);
        color: var(--primary);
        box-shadow: 0 6px 24px rgba(244,163,0,.12);
    }
    .service-card:hover, .service-card:focus-within {
        box-shadow: 0 10px 28px rgba(22,64,135,0.17);
    }
}

.fade-in {
    animation: fadeIn .63s cubic-bezier(.86,.01,.19,1);
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ========== 18. MEDIA QUERIES for RESPONSIVENESS ========== */
@media (max-width: 1200px) {
    .container { max-width: 98vw; }
}
@media (max-width: 900px) {
    .main-nav, .cta-btn { display: none!important; }
    header .container {
        flex-direction: row;
        gap: 10px;
    }
}
@media (max-width: 768px) {
    .container { padding: 0 10px; }
    .service-card, .card, .testimonial-card { padding: 16px 10px 18px 10px; }
    .contact .content-wrapper { padding: 18px 8px; }
    .footer-nav { gap: 13px; }
    .testimonials { padding: 32px 0 26px 0; }
    .hero .content-wrapper { gap: 12px; }
}

/* ========== 19. A11Y: FOCUS STATES ========== */
a, button, .cta-btn, .cookie-btn, .mobile-menu-toggle, .mobile-menu-close {
    outline-offset: 2px;
}
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ========== 20. SCROLLBAR (for modern browser) ========== */
body::-webkit-scrollbar {
    width: 12px;
    background: var(--background);
}
body::-webkit-scrollbar-thumb {
    background: var(--gray-medium);
    border-radius: 6px;
}


/* -------------------------------------------------------------
   End of Professional Corporate CSS for SparkForge Finanse
------------------------------------------------------------- */
