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

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1.5;
    background: #F2F4F8;
    color: #151E3D;
    font-family: 'Roboto', 'Arial', sans-serif;
    min-height: 100vh;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
a {
    color: #13646B;
    text-decoration: none;
    transition: color 0.2s;
}
a:hover, a:focus {
    color: #18888A;
}
ul, ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
    font-weight: 700;
    color: #151E3D;
    letter-spacing: 0.01em;
}
h1 {
    font-size: 2.4rem;
    margin-bottom: 24px;
}
h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}
h3 {
    font-size: 1.32rem;
    margin-bottom: 16px;
    font-weight: 600;
}
p, li, strong {
    font-size: 1rem;
    line-height: 1.6;
}
strong {
    font-weight: 600;
}

/* --- CONTAINER & GENERAL PAGE LAYOUT --- */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* --- HEADER + NAVIGATION --- */
header {
    background: #FFFFFF;
    border-bottom: 1px solid #E3E5E7;
    position: relative;
    z-index: 10;
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 18px 0;
}
.main-nav a {
    font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
    font-size: 1rem;
    color: #151E3D;
    padding: 8px 0;
    transition: color 0.2s;
    position: relative;
    background: none;
}
.main-nav a:after {
    content: '';
    display: block;
    height: 2px;
    width: 0;
    background: #13646B;
    border-radius: 1px;
    transition: width 0.25s;
    position: absolute;
    left: 0;
    bottom: 0;
}
.main-nav a:hover:after,
.main-nav a:focus:after {
    width: 100%;
}
.main-nav a.cta-btn {
    background: #18888A;
    color: #FFF;
    border-radius: 28px;
    padding: 8px 32px;
    margin-left: 12px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 2px 12px rgba(24,136,138, 0.10);
    transition: background 0.2s, box-shadow 0.2s;
}
.main-nav a.cta-btn:hover,
.main-nav a.cta-btn:focus {
    background: #13646B;
    box-shadow: 0 4px 20px rgba(21,30,61,0.11);
}
.main-nav img {
    height: 36px;
    width: auto;
    margin-right: 16px;
}

/* --- BURGER MENU (MOBILE NAV) --- */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: #13646B;
    position: absolute;
    top: 18px;
    right: 24px;
    z-index: 106;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 6px;
    transition: background 0.2s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
    background: #E0EBEB;
}
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #F2F4F8;
    transform: translateX(-100vw);
    transition: transform 0.35s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 999;
    display: flex;
    flex-direction: column;
}
.mobile-menu.open {
    transform: translateX(0);
}
.mobile-menu-close {
    align-self: flex-end;
    margin: 24px 24px 0 0;
    background: #18888A;
    border: none;
    color: #FFF;
    font-size: 1.5rem;
    padding: 4px 18px;
    border-radius: 32px;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 1001;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
    background: #13646B;
}
.mobile-nav {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.mobile-nav a {
    color: #151E3D;
    font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
    font-weight: 600;
    font-size: 1.22rem;
    padding: 12px 32px;
    border-radius: 32px;
    background: none;
    transition: background 0.2s, color 0.2s;
    width: 70vw;
    text-align: center;
}
.mobile-nav a:hover, .mobile-nav a:focus {
    background: #E0EBEB;
    color: #18888A;
}

/* --- SECTION SPACING --- */
section {
    margin-bottom: 60px;
    padding: 40px 20px;
}

/* --- HERO, CTA-BUTTON --- */
.cta-btn {
    display: inline-block;
    background: #18888A;
    color: #FFF;
    border-radius: 32px;
    padding: 12px 36px;
    font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.01em;
    border: none;
    margin-top: 18px;
    box-shadow: 0 6px 18px rgba(24,136,138,0.07);
    transition: background 0.18s, box-shadow 0.2s, transform 0.12s;
    cursor: pointer;
    text-align: center;
}
.cta-btn:hover,
.cta-btn:focus {
    background: #13646B;
    box-shadow: 0 10px 28px rgba(21,30,61,0.14);
    transform: translateY(-2px) scale(1.02);
}

/* --- LISTS & FEATURES --- */
ul:not(.footer-nav):not(.mobile-nav),
ol {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 0;
    padding-left: 0;
}
li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
li img {
    height: 32px;
    width: 32px;
    flex-shrink: 0;
}

/* --- FLEX UTILITY CONTAINERS --- */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.card {
    background: #FFFFFF;
    margin-bottom: 20px;
    position: relative;
    border-radius: 18px;
    box-shadow: 0 2px 24px rgba(21,30,61,0.09);
    padding: 28px 26px;
    min-width: 260px;
    transition: box-shadow 0.22s, transform 0.18s;
}
.card:hover,
.card:focus-within {
    box-shadow: 0 6px 34px rgba(24,136,138,0.13);
    transform: translateY(-2px) scale(1.018);
}
.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;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 20px;
    background: #FFFFFF;
    border-radius: 18px;
    box-shadow: 0 2px 18px rgba(21,30,61,0.10);
    margin-bottom: 20px;
    max-width: 500px;
    transition: box-shadow 0.23s, transform 0.16s;
}
.testimonial-card:hover {
    box-shadow: 0 6px 28px rgba(21,30,61,0.14);
}
.testimonial-card p {
    color: #151E3D;
    font-size: 1.08rem;
    font-style: italic;
}
.testimonial-card strong {
    color: #18888A;
    font-size: 1rem;
    font-weight: 600;
}
.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    background: #FFFFFF;
    border-radius: 16px;
    padding: 24px 22px;
    box-shadow: 0 2px 10px rgba(21,30,61,0.06);
}

.text-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* --- FOOTER --- */
footer {
    background: #151E3D;
    color: #F2F4F8;
    padding: 36px 0 16px 0;
    margin-top: 50px;
}
footer .container {
    flex-direction: column;
    gap: 16px;
}
.footer-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-bottom: 18px;
}
.footer-nav a {
    color: #F2F4F8;
    font-size: 0.98rem;
    opacity: 0.9;
    letter-spacing: 0.01em;
    padding: 6px 0;
    border-radius: 4px;
    transition: color 0.16s, background 0.17s;
}
.footer-nav a:hover,
.footer-nav a:focus {
    color: #ffffff;
    background: #18888A;
}
.footer-info {
    font-size: 0.92rem;
    color: #F2F4F8;
    opacity: 0.80;
    letter-spacing: 0.01em;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-consent-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    width: 100vw;
    z-index: 2000;
    background: #FFFFFF;
    box-shadow: 0 -2px 24px rgba(21,30,61,0.13);
    padding: 24px 18px;
    display: flex;
    align-items: center;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 1rem;
    border-radius: 18px 18px 0 0;
    animation: fadeInBanner 0.47s cubic-bezier(0.77, 0, 0.175, 1);
}
@keyframes fadeInBanner {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}
.cookie-consent-banner p {
    margin-right: 24px;
    color: #151E3D;
    font-weight: 400;
}
.cookie-btn, .cookie-settings-btn {
    background: #18888A;
    color: #FFF;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    padding: 10px 20px;
    border-radius: 24px;
    margin: 0 5px;
    cursor: pointer;
    transition: background 0.19s, box-shadow 0.16s;
    box-shadow: 0 2px 8px rgba(21,30,61,0.07);
}
.cookie-btn:hover,
.cookie-btn:focus,
.cookie-settings-btn:hover,
.cookie-settings-btn:focus {
    background: #13646B;
}
.reject-btn {
    background: #F2F4F8;
    color: #18888A;
    border: 1.5px solid #18888A;
    font-weight: 600;
    margin: 0 5px;
    transition: background 0.16s, color 0.16s;
}
.reject-btn:hover,
.reject-btn:focus {
    background: #E0EBEB;
    color: #151E3D;
    border-color: #13646B;
}
.cookie-settings-modal {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(21,30,61,0.29);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.22s;
    animation: fadeInModal 0.43s;
}
@keyframes fadeInModal {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
.cookie-settings-modal .modal-content {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 36px 28px 28px 28px;
    min-width: 320px;
    max-width: 95vw;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 44px rgba(21,30,61,0.16);
    gap: 18px;
}
.cookie-settings-modal h3 {
    font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
    font-size: 1.32rem;
    margin-bottom: 10px;
}
.cookie-switch-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 6px;
}
.cookie-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
}
.switch-input[type="checkbox"] {
    width: 36px;
    height: 20px;
    appearance: none;
    background: #E0EBEB;
    border-radius: 12px;
    position: relative;
    transition: background 0.14s;
    outline: none;
    margin-right: 8px;
}
.switch-input[type="checkbox"]:checked {
    background: #13646B;
}
.switch-input[type="checkbox"]:before {
    content: '';
    position: absolute;
    left: 3px;
    top: 2px;
    width: 16px;
    height: 16px;
    background: #FFF;
    border-radius: 50%;
    transition: 0.16s;
    box-shadow: 0 1px 6px rgba(21,30,61,0.09);
}
.switch-input[type="checkbox"]:checked:before {
    left: 17px;
    background: #18888A;
}
.switch-label {
    color: #151E3D;
    font-weight: 500;
}
.cookie-settings-modal .modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 22px;
    justify-content: flex-end;
}
.close-modal-btn {
    background: #F2F4F8;
    color: #18888A;
    border: 1.5px solid #18888A;
    border-radius: 24px;
    padding: 10px 18px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: background 0.15s, color 0.15s;
}
.close-modal-btn:hover,
.close-modal-btn:focus {
    background: #E0EBEB;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
    .main-nav {
        gap: 16px;
    }
    .footer-nav {
        gap: 12px;
    }
}
@media (max-width: 900px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.32rem;
    }
    .card {
        padding: 22px 15px;
    }
}
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .container {
        padding: 0 10px;
    }
    .footer-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .testimonial-card {
        max-width: 100%;
    }
    section {
        padding: 26px 6px;
        margin-bottom: 38px;
    }
    .card-container,
    .content-grid {
        flex-direction: column;
        gap: 16px;
    }
    .text-image-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .feature-item {
        padding: 18px 10px;
        border-radius: 14px;
    }
}
@media (max-width: 500px) {
    h1 {
        font-size: 1.38rem;
    }
    h2 {
        font-size: 1.1rem;
    }
    .cta-btn {
        font-size: .98rem;
        padding: 10px 14px;
    }
    .cookie-consent-banner {
        flex-direction: column;
        align-items: stretch;
        padding: 18px 5px 18px 5px;
    }
}

/* --- FORM ELEMENTS --- */
input, textarea, select {
    font-family: 'Roboto', Arial, sans-serif;
    padding: 10px;
    border-radius: 8px;
    background: #F2F4F8;
    border: 1.5px solid #E3E5E7;
    font-size: 1rem;
    color: #151E3D;
    margin-bottom: 14px;
    transition: border 0.16s, background 0.16s;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #18888A;
    background: #FFFFFF;
}
label {
    font-size: 1rem;
    font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
    margin-bottom: 4px;
    color: #151E3D;
    display: block;
}
button {
    font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
}

/* --- MISC: Miscellaneous/Stylistic Dividers --- */
hr {
    border: none;
    border-top: 1.8px solid #E0EBEB;
    margin: 32px 0;
}

/* --- ACCESSIBLE FOCUS STATES --- */
a:focus, button:focus, input:focus, textarea:focus, select:focus {
    outline: 2px solid #13646B;
    outline-offset: 2px;
    z-index: 2000;
}

/* --- SCANDINAVIAN CLEAN SPECIALS --- */
section, .card, .feature-item, .testimonial-card {
    box-shadow: 0 1px 8px rgba(21,30,61,0.08);
    background: #FFF;
}

/* --- Z-INDEX/STACKING UTILITY --- */
header, .main-nav, .mobile-menu-toggle, .mobile-menu, .mobile-menu-close, .cookie-consent-banner, .cookie-settings-modal {
    z-index: 2000;
}

/* Hide elements visually (can be used for accessibility) */
.visually-hidden {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
