/* Pebble Finanse Scandinavian Clean Style - style.css */

/* ========== CSS RESET & BASE ========== */
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,
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;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    min-height: 100%;
    background: #F1F5F8;
}

body {
    min-height: 100vh;
    font-family: 'Lato', Arial, sans-serif;
    color: #1e2733;
    background: #F1F5F8;
    line-height: 1.6;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: #183D5E;
    text-decoration: none;
    transition: color 0.2s cubic-bezier(.4,0,.2,1);
    font-weight: 500;
}
a:hover, a:focus {
    color: #FFD166;
    outline: none;
}

ul, ol {
    margin-left: 2em;
    margin-bottom: 1.7em;
}

/* == Typography Scale == */
h1, .display {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.12;
    color: #183D5E;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}
h2 {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #183D5E;
    margin-bottom: 18px;
}
h3 {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #183D5E;
    margin-bottom: 12px;
}
h4, h5, h6 {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #183D5E;
}
p, li, address, blockquote {
    font-family: 'Lato', Arial, sans-serif;
    color: #253147;
    font-size: 1rem;
    margin-bottom: 1.1em;
}
strong {
    font-weight: 700;
    color: #183D5E;
}
blockquote {
    font-style: italic;
    color: #183D5E;
    border-left: 4px solid #FFD166;
    padding-left: 18px;
    margin-bottom: 0.9em;
    background: #F8FAFB;
}

/* ========== LAYOUT HELPERS & CONTAINERS ========== */
.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}
.content-wrapper {
    width: 100%;
}

.section {
    margin-bottom: 60px;
    padding: 40px 20px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px 0 rgba(24,61,94,0.06);
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 20px;
}
.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px 0 rgba(24,61,94,0.07);
    margin-bottom: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 24px;
    min-width: 260px;
    flex: 1 1 220px;
}
.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;
}
.testimonial-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #F8FAFB;
    border-radius: 14px;
    box-shadow: 0 2px 10px 0 rgba(24,61,94,0.03);
    padding: 20px;
    margin-bottom: 20px;
    color: #1e2733;
}
.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

/* ========== HEADER & NAV ========== */
header {
    background: #fff;
    box-shadow: 0 2px 16px 0 rgba(24,61,94,0.045);
    width: 100%;
    z-index: 20;
}
.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    max-width: 1160px;
    margin: 0 auto;
    gap: 24px;
}
.main-nav > a img {
    height: 36px;
}
.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}
.nav-links a {
    font-size: 1rem;
    font-family: 'Montserrat', Arial, sans-serif;
    color: #183D5E;
    font-weight: 500;
    padding: 8px 0;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}
.nav-links a:hover, .nav-links a:focus {
    background: #F1F5F8;
    color: #FFD166;
}
.cta-button {
    font-family: 'Montserrat', Arial, sans-serif;
    display: inline-block;
    background: #FFD166;
    color: #183D5E;
    font-weight: 600;
    padding: 11px 26px;
    border-radius: 25px;
    box-shadow: 0 2px 6px 0 rgba(24,61,94,0.05);
    font-size: 1.07rem;
    letter-spacing: .03em;
    transition: background 0.23s cubic-bezier(.4,0,.2,1), color 0.2s;
    border: none;
}
.cta-button:hover, .cta-button:focus {
    background: #183D5E;
    color: #FFD166;
    outline: none;
}

/* ========== MOBILE NAV (BURGER MENU) ========== */
.mobile-menu-toggle {
    display: none;
    background: #fff;
    color: #183D5E;
    border: none;
    font-size: 2rem;
    line-height: 1;
    border-radius: 8px;
    cursor: pointer;
    padding: 8px 14px;
    z-index: 105;
    transition: background 0.2s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
    background: #F1F5F8;
}

.mobile-menu {
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    width: 100vw;
    background: rgba(24,61,94, 0.94);
    transform: translateX(100vw);
    transition: transform 0.35s cubic-bezier(.61,-0.01,.3,1.04);
    z-index: 110;
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
    padding: 0;
}
.mobile-menu.active {
    transform: translateX(0);
}
.mobile-menu-close {
    align-self: flex-end;
    margin: 20px 24px 0 0;
    background: #FFD166;
    color: #183D5E;
    border: none;
    font-size: 2rem;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 111;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
    background: #fffbe5;
}
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 24px 36px;
    margin-top: 26px;
    width: 100%;
}
.mobile-nav a {
    color: #fff;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.17rem;
    font-weight: 600;
    padding: 14px 0;
    border-radius: 8px;
    transition: background .18s, color .18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
    background: #FFD166;
    color: #183D5E;
}

@media (max-width: 1024px) {
    .main-nav {
        padding: 16px 15px;
    }
    .container {
        padding: 0 15px;
    }
}
@media (max-width: 900px) {
    .nav-links {
        gap: 12px;
    }
}
@media (max-width: 768px) {
    .main-nav {
        gap: 0;
    }
    .nav-links {
        display: none;
    }
    .cta-button {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        right: 18px;
        top: 18px;
    }
}

/* ========== HERO SECTION ========== */
.hero {
    background: #F1F5F8;
    padding: 56px 0 40px 0;
    margin-bottom: 20px;
}
.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}
.hero .content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
}
.hero h1 {
    font-size: 2.46rem;
    letter-spacing: -0.015em;
    color: #183D5E;
}
.hero p {
    font-size: 1.17rem;
    color: #5383ac;
    max-width: 530px;
}
.hero .cta-button {
    margin-top: 20px;
}

/* ========== SERVICE CARDS ========== */
.service-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 24px;
    justify-content: flex-start;
}
.service-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 10px 0 rgba(24,61,94,0.07);
    padding: 32px 24px 24px 24px;
    min-width: 270px;
    flex: 1 1 270px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
    position: relative;
    transition: box-shadow .2s cubic-bezier(.4,0,.2,1), transform .24s cubic-bezier(.4,0,.2,1);
}
.service-card:hover {
    box-shadow: 0 4px 26px 0 rgba(24,61,94,0.13);
    transform: translateY(-5px) scale(1.03);
}
.service-card h3, .service-card h2 {
    color: #183D5E;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.25rem;
    margin-bottom: 10px;
    font-weight: 700;
}
.service-card p {
    color: #48556d;
    margin-bottom: 13px;
    font-size: 1rem;
}
.service-card .price {
    font-family: 'Montserrat', Arial, sans-serif;
    color: #183D5E;
    font-size: 1.12rem;
    font-weight: 600;
    margin-bottom: 13px;
}
.service-card .service-cta {
    margin-top: auto;
    margin-bottom: 0;
    background: #183D5E;
    color: #FFD166;
    border-radius: 25px;
    padding: 9px 23px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 600;
    font-size: 1.01rem;
    transition: background 0.25s, color 0.25s;
    border: none;
    display: inline-block;
}
.service-card .service-cta:hover, .service-card .service-cta:focus {
    background: #FFD166;
    color: #183D5E;
}

/* ========== FEATURE LISTS ========== */
.feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 18px;
    list-style: none;
}
.feature-list li {
    background: #F8FAFB;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(24,61,94,0.04);
    padding: 15px 18px;
    font-size: 1rem;
    color: #293651;
    display: flex;
    align-items: center;
    gap: 13px;
    flex: 1 1 220px;
    min-width: 180px;
}
.feature-list img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* ========== TESTIMONIALS ========== */
.testimonial-card {
    background: #fff;
    color: #183D5E;
    font-family: 'Lato', Arial, sans-serif;
    border-radius: 15px;
    margin-bottom: 20px;
    padding: 24px 24px 18px 24px;
    box-shadow: 0 2px 14px 0 rgba(24,61,94,0.08);
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    max-width: 640px;
}
.testimonial-card blockquote {
    font-size: 1.13rem;
    color: #183D5E;
    background: transparent;
    border-left: 4px solid #FFD166;
    padding-left: 16px;
    margin: 0 0 4px 0;
}
.testimonial-card footer {
    margin-top: 2px;
    font-size: 0.98rem;
    color: #616d81;
    font-style: normal;
    font-weight: 500;
}
/* Always ensure dark text on light bg for testimonials */
.testimonial-card, .testimonial-card blockquote, .testimonial-card footer {
    color: #183D5E;
}

/* ========== LISTS, TEXT SECTIONS ========== */
.text-section {
    margin-bottom: 18px;
}
.text-section ul, .text-section ol {
    margin-bottom: 1.2em;
}
.text-section li {
    margin-bottom: 7px;
}

/* ========== FOOTER ========== */
footer {
    background: #F1F5F8;
    border-top: 1px solid #dde3e8;
    padding-top: 38px;
    padding-bottom: 20px;
    margin-top: 70px;
    width: 100%;
}
.footer-container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 32px;
    justify-content: space-between;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}
.footer-container > a img {
    height: 44px;
}
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 150px;
}
.footer-nav a {
    color: #436C8F;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0;
    padding: 3px 0;
}
.footer-nav a:hover, .footer-nav a:focus {
    color: #FFD166;
}
.footer-contact address {
    font-style: normal;
    color: #41546D;
    line-height: 1.5;
}
.footer-contact a {
    color: #183D5E;
    text-decoration: underline;
    word-break: break-all;
}
.footer-contact a:hover, .footer-contact a:focus {
    color: #FFD166;
}

/* ========== COOKIE CONSENT BANNER & MODAL ========== */
.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    width: 100vw;
    background: #fff;
    color: #183D5E;
    box-shadow: 0px -2px 24px 0 rgba(24,61,94,0.08);
    padding: 24px 10px 24px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    z-index: 140;
    transition: transform .28s cubic-bezier(.3,.95,.44,1);
    transform: translateY(0);
}
.cookie-banner.hide {
    transform: translateY(140%);
}
.cookie-banner p {
    color: #183D5E;
    font-size: 1.05rem;
    text-align: center;
    max-width: 580px;
}
.cookie-banner .button-group{
    display: flex;
    flex-direction: row;
    gap: 18px;
    margin-top: 8px;
}
.cookie-banner button {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.01rem;
    border-radius: 20px;
    padding: 8px 22px;
    border: none;
    margin: 0;
    cursor: pointer;
    transition: background .18s, color .18s;
}
.cookie-banner .accept {
    background: #FFD166;
    color: #183D5E;
    font-weight: 600;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
    background: #183D5E;
    color: #FFD166;
}
.cookie-banner .reject {
    background: #ecebeb;
    color: #183D5E;
    font-weight: 500;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
    background: #F8FAFB;
}
.cookie-banner .settings {
    background: none;
    color: #183D5E;
    border: 2px solid #FFD166;
    font-weight: 500;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
    background: #FFF5CC;
    color: #183D5E;
}

.cookie-modal {
    position: fixed;
    left: 0;top: 0;width: 100vw;height: 100vh;
    background: rgba(24,61,94,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 199;
    opacity: 1;
    transition: opacity .23s;
}
.cookie-modal.hide {
    opacity: 0;
    pointer-events: none;
}
.cookie-modal-dialog {
    background: #fff;
    border-radius: 18px;
    max-width: 410px;
    width: 90vw;
    box-shadow: 0 2px 24px 0 rgba(24,61,94,0.10);
    padding: 32px 28px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
}
.cookie-modal-dialog h3 {
    font-size: 1.15rem;
    color: #183D5E;
    font-family: 'Montserrat', Arial, sans-serif;
    margin-bottom: 12px;
}
.cookie-categories {
    display: flex;
    flex-direction: column;
    gap: 13px;
}
.cookie-category {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: #293651;
}
.cookie-category input[type="checkbox"] {
    accent-color: #FFD166;
    width: 19px;
    height: 19px;
    margin-right: 4px;
}
.cookie-category.essential {
    opacity: 0.8;
    font-weight: 500;
}
.cookie-category.essential input {
    display: none;
}
.cookie-modal .button-group{
    margin-top: 12px;
    display: flex;
    gap: 15px;
}
.cookie-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #FFD166;
    color: #183D5E;
    border: none;
    border-radius: 50%;
    font-size: 1.3rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .18s;
}
.cookie-close:hover,.cookie-close:focus {
    background: #fffbe5;
}

/* ========== GENERAL SPACING ========== */
section {
    margin-bottom: 60px;
    padding: 40px 0 0 0;
}
section:last-child {
    margin-bottom: 0;
}

/* ========== RESPONSIVE DESIGN (MOBILE-FIRST) ========== */
@media (max-width: 900px) {
    h1 { font-size: 1.65rem; }
    h2 { font-size: 1.23rem; }
    .section, .hero {
        padding: 28px 0 24px 0;
    }
    .footer-container {
        gap: 14px;
        flex-direction: column;
        align-items: flex-start;
    }
}
@media (max-width: 700px) {
    .container {
        padding: 0 6px;
    }
    .service-cards {
        gap: 13px;
    }
    .service-card {
        min-width: unset;
        padding: 22px 10px 14px 10px;
    }
    .feature-list {
        gap: 11px;
    }
    .feature-list li {
        min-width: 120px;
        padding: 11px 7px;
        font-size: 0.98rem;
    }
    .testimonial-card {
        padding: 15px 10px 10px 12px;
        max-width: 98vw;
    }
    .footer-container > a img {
        height: 34px;
    }
}
@media (max-width: 768px) {
    .section, .hero {
        padding: 24px 0 8px 0;
    }
    .content-grid,
    .card-container, .service-cards,
    .feature-list {
        flex-direction: column;
    }
    .text-image-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }
}
@media (max-width: 480px) {
    h1 { font-size: 1.19rem; }
    .hero { padding-top: 18px; }
    .footer-container { font-size: 0.96rem; }
    .cookie-modal-dialog { padding: 20px 7px 12px 7px; }
}

/* ========== FORMS (IF ANY) ========== */
input,
textarea,
select {
    border: 1px solid #d0d4db;
    border-radius: 7px;
    padding: 11px 10px;
    font-size: 1rem;
    font-family: 'Lato', Arial, sans-serif;
    margin-bottom: 18px;
    outline: none;
    transition: border .17s, box-shadow .17s;
    background: #fff;
    color: #183D5E;
    width: 100%;
}
input:focus, textarea:focus {
    border-color: #FFD166;
    box-shadow: 0 2px 12px 0 rgba(255,209,102,0.10);
}
button, input[type="submit"] {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1rem;
    background: #FFD166;
    color: #183D5E;
    cursor: pointer;
    border: none;
    border-radius: 20px;
    padding: 9px 24px;
    font-weight: 600;
    transition: background .2s, color .2s;
}
button:hover, button:focus, input[type="submit"]:hover, input[type="submit"]:focus {
    background: #183D5E;
    color: #FFD166;
}

/* ========== MICRO-INTERACTIONS & ANIMATION ========== */
.cta-button,
.service-card .service-cta,
button, .footer-nav a, .nav-links a, .mobile-nav a {
    transition: background 0.22s cubic-bezier(.3,.9,.44,1), color 0.15s cubic-bezier(.2,.6,.34,1);
}
.service-card,
.card,
.feature-list li,
.testimonial-card,
.section {
    transition: box-shadow 0.18s cubic-bezier(.4,0,.2,1), transform 0.17s cubic-bezier(.4,0,.2,1);
}
.service-card:hover,
.card:hover,
.feature-list li:hover,
.testimonial-card:hover {
    box-shadow: 0 4px 30px 0 rgba(24,61,94,0.14);
    transform: translateY(-3px) scale(1.015);
}

/* Subtle fadeIn effect for modal and cookie banner */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(60px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-banner, .cookie-modal-dialog {
    animation: fadeInUp .42s cubic-bezier(.43,.27,.25,.97);
}

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 10px;
    background: #F1F5F8;
    border-radius: 12px;
}
::-webkit-scrollbar-thumb {
    background: #dde3e8;
    border-radius: 12px;
}
::-webkit-scrollbar-thumb:hover {
    background: #FFD166;
}

/* ========== ACCESSIBILITY ENHANCEMENTS ========== */
:focus-visible {
    outline: 2px dashed #FFD166;
    outline-offset: 3px;
}

/* ========== Z-INDEXES ========== */
header, .main-nav { z-index: 100; }
.mobile-menu { z-index: 110; }
.cookie-banner { z-index: 140; }
.cookie-modal { z-index: 199; }

/* ========== UTILITY CLASSES ========== */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-24 { margin-top: 24px !important; }
.mb-24 { margin-bottom: 24px !important; }
.text-center { text-align: center !important; }
.d-flex { display: flex !important; }

/* ========== END OF CSS ========== */