/* ==================== 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, menu, 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, 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, nav, section {
    display: block;
}
body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    background: #F6F6F9;
    color: #2E3540;
}
ul, ol {
    list-style: none;
}
a {
    text-decoration: none;
    color: inherit;
}
img, svg {
    display: inline-block;
    max-width: 100%;
    height: auto;
}
button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* ==================== ROOT, FONTS & COLORS ==================== */
:root {
    --color-primary: #18477C;
    --color-secondary: #E0A136;
    --color-accent: #F6F6F9;
    --color-grey: #EDEDED;
    --color-muted: #BFC9D1;
    --color-dark: #2E3540;
    --color-white: #fff;
    --shadow-soft: 0 2px 12px 0 rgba(24,71,124,0.07);
    --radius: 12px;
    --transition: 0.2s cubic-bezier(.47,.15,.42,.86);
    --font-display: 'Montserrat', Arial, sans-serif;
    --font-body: 'Lato', Arial, sans-serif;
}

@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Lato:400,700,900&display=swap');

body {
    font-family: var(--font-body);
    background-color: var(--color-accent);
    color: var(--color-dark);
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--color-primary);
}
h1 { font-size: 2.25rem; margin-bottom: 16px; line-height: 1.1; }
h2 { font-size: 1.75rem; margin-bottom: 20px; line-height: 1.15; }
h3 { font-size: 1.25rem; margin-bottom: 12px; color: var(--color-primary); }
h4 { font-size: 1.125rem; margin-bottom: 12px; }

p, li {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-dark);
    margin-bottom: 10px;
}
strong {
    color: var(--color-primary);
    font-weight: 600;
}

/* ==================== CONTAINER & SECTION SPACING ==================== */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}
.section {
    margin-bottom: 60px;
    padding: 40px 20px;
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}
.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ==================== HEADER & NAVIGATION ==================== */
header {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-grey);
    box-shadow: var(--shadow-soft);
    position: relative;
    z-index: 10;
}
header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    min-height: 70px;
}
header img {
    height: 40px;
    width: auto;
    margin-right: 10px;
}
nav {
    display: flex;
    align-items: center;
    gap: 24px;
}
nav a {
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 6px 12px;
    color: var(--color-primary);
    border-radius: 8px;
    transition: background var(--transition), color var(--transition);
}
nav a:hover,
nav a:focus {
    background: var(--color-accent);
    color: var(--color-secondary);
}
.cta-primary {
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 24px;
    padding: 10px 28px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 2px 6px rgba(24,71,124,0.07);
    margin-left: 8px;
    transition: background var(--transition), transform var(--transition);
}
.cta-primary:hover, .cta-primary:focus {
    background: var(--color-secondary);
    color: var(--color-primary);
    transform: translateY(-2px) scale(1.03);
}
.cta-secondary {
    background: transparent;
    border: 2px solid var(--color-secondary);
    color: var(--color-secondary);
    border-radius: 24px;
    padding: 10px 26px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    margin-top: 12px;
    transition: border-color var(--transition), color var(--transition), background var(--transition), transform var(--transition);
}
.cta-secondary:hover, .cta-secondary:focus {
    background: var(--color-secondary);
    color: var(--color-white);
    border-color: var(--color-secondary);
    transform: translateY(-2px) scale(1.03);
}

/* Hamburger (mobile) menu Button */
.mobile-menu-toggle {
    display: none;
    font-size: 2rem;
    color: var(--color-primary);
    background: transparent;
    border: none;
    margin-left: 18px;
    transition: color var(--transition);
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
    color: var(--color-secondary);
}

/* ============= MOBILE NAV OVERLAY ============= */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(34, 48, 72, 0.95);
    z-index: 1200;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0;
    transform: translateX(-100vw);
    transition: transform 0.35s cubic-bezier(.82,-0.01,.37,1.04);
}
.mobile-menu.open {
    transform: translateX(0);
}
.mobile-menu-close {
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 2.25rem;
    padding: 18px 18px 0 18px;
    align-self: flex-end;
    transition: color var(--transition), transform var(--transition);
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
    color: var(--color-secondary);
    transform: scale(1.09) rotate(5deg);
}
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
    margin-top: 32px;
    padding-left: 32px;
}
.mobile-nav a {
    font-family: var(--font-display);
    color: var(--color-white);
    font-size: 1.45rem;
    font-weight: 600;
    margin-right: 0;
    padding: 8px 10px;
    border-radius: 8px;
    transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
    background: var(--color-secondary);
    color: var(--color-primary);
}

/* =========== HERO, FEATURE & SECTIONS =========== */
main > section {
    margin-bottom: 60px;
    padding: 40px 0;
}
/* Give .section its own extra background except hero */
main section:not(:first-child) .container > .content-wrapper {
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 40px 24px;
}

/* ======= FLEXBOX PATTERNS FOR SCANDINAVIAN CLEAN ======= */
.feature-grid, .experience-grid, .destination-grid, .tips-grid, .blog-preview, .blog-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
    margin: 20px 0;
}
.feature-grid > div, .experience-grid > div, .destination-grid > div, .tips-grid > div, .blog-preview > div, .blog-list > div {
    background: var(--color-accent);
    border-radius: var(--radius);
    padding: 30px 20px;
    flex: 1 1 240px;
    min-width: 240px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    transition: box-shadow var(--transition), transform var(--transition);
}
.feature-grid > div:hover, .experience-grid > div:hover, .destination-grid > div:hover, .tips-grid > div:hover, .blog-preview > div:hover, .blog-list > div:hover {
    box-shadow: 0 6px 24px 0 rgba(24,71,124,.14);
    transform: translateY(-5px) scale(1.02);
}
.feature-grid img, .destination-grid img, .experience-grid img, .tips-grid img {
    width: 48px;
    height: 48px;
    margin-bottom: 4px;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.card {
    background: var(--color-accent);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 26px 20px 32px 20px;
    margin-bottom: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
    box-shadow: 0 6px 24px 0 rgba(24,71,124,.14);
    transform: translateY(-5px) scale(1.02);
}

.text-image-section {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}
@media (max-width: 768px) {
    .text-image-section {
        flex-direction: column;
        gap: 20px;
    }
}

.content-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}

/* ============= TESTIMONIALS ============= */
.testimonial-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-radius: var(--radius);
    background: var(--color-accent);
    box-shadow: 0 2px 14px 0 rgba(24,71,124,0.07);
    margin-bottom: 20px;
    min-width: 260px;
    transition: box-shadow var(--transition), transform var(--transition);
}
.testimonial-card:hover {
    box-shadow: 0 6px 24px 0 rgba(24,71,124,0.15);
    transform: scale(1.03) translateY(-2px);
}
.testimonial-card p {
    color: var(--color-dark);
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 0;
}
.testimonial-card strong {
    font-family: var(--font-display);
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1rem;
    margin-left: auto;
    white-space: nowrap;
}

/* ============= FAQ LIST ============= */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.faq-list > div {
    background: var(--color-accent);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 18px 20px;
    margin-bottom: 10px;
}
.faq-list h3 {
    color: var(--color-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 7px;
}

/* ============= BLOG PREVIEW & LISTS ============= */
.blog-preview, .blog-list {
    gap: 24px;
}
.blog-preview > div, .blog-list > div {
    min-width: 220px;
}

/* ============= FOOTER ============= */
footer {
    background: var(--color-grey);
    color: var(--color-dark);
    padding: 0;
    font-size: 1rem;
}
footer section {
    margin-bottom: 0;
    padding: 40px 0 0 0;
    background: none;
    box-shadow: none;
}
footer .container {
    padding-bottom: 32px;
}
footer .content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
}
footer .content-wrapper > div {
    min-width: 210px;
    flex: 1 1 220px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
footer nav {
    display: flex;
    flex-direction: row;
    gap: 10px;
}
footer h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: var(--color-primary);
    font-family: var(--font-display);
}
footer img {
    height: 18px;
    vertical-align: middle;
    margin-right: 5px;
}
footer .cta-secondary {
    margin-top: 4px;
    max-width: max-content;
}
footer a:hover, footer a:focus {
    color: var(--color-secondary);
}
footer .content-wrapper > div a img {
    transition: filter .18s;
}
footer .content-wrapper > div a:hover img {
    filter: brightness(0.8) saturate(1.35);
}

/* ============= RESPONSIVE ==================== */
@media (max-width: 1100px) {
    .container {
        max-width: 900px;
    }
}
@media (max-width: 950px) {
    .container {
        max-width: 95vw;
    }
    .feature-grid > div, .experience-grid > div, .destination-grid > div, .tips-grid > div, .blog-preview > div, .blog-list > div {
        flex: 1 1 180px;
        min-width: 160px;
    }
}
@media (max-width: 768px) {
    header .container {
        flex-direction: row;
        align-items: center;
        padding: 12px 10px;
    }
    nav {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .container {
        max-width: 98vw;
        padding: 0 10px;
    }
    .section, main > section {
        margin-bottom: 38px;
        padding: 24px 0;
        border-radius: 0;
        box-shadow: none;
    }
    main section:not(:first-child) .container > .content-wrapper {
        border-radius: 0;
        padding: 16px 8px;
        box-shadow: none;
    }
    .feature-grid, .experience-grid, .destination-grid, .tips-grid, .blog-preview, .blog-list, .content-grid, .card-container {
        flex-direction: column;
        gap: 16px;
    }
    .feature-grid > div, .experience-grid > div, .destination-grid > div, .tips-grid > div, .blog-preview > div, .blog-list > div {
        min-width: 100%;
        padding: 20px 12px;
    }
    .testimonial-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
        min-width: unset;
    }
    footer .content-wrapper {
        flex-direction: column;
        gap: 22px;
    }
    footer .content-wrapper > div {
        min-width: unset;
        flex: 1 0 auto;
    }
}

@media (max-width: 500px) {
    h1 { font-size: 1.4rem; }
    h2 { font-size: 1.13rem; }
    h3 { font-size: 1.05rem; }
    .container, section, .content-wrapper, .section {
        padding: 8px;
    }
    .cta-primary, .cta-secondary {
        padding: 9px 16px;
        font-size: 0.95rem;
    }
    .testimonial-card {
        padding: 10px;
    }
}

/* ============= UTILITY CLASSES ============= */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 18px !important; }
.mt-4 { margin-top: 26px !important; }
.mb-2 { margin-bottom: 10px !important; }
.mb-3 { margin-bottom: 18px !important; }
.mb-4 { margin-bottom: 26px !important; }

/* ===================== FORMS ===================== */
input, textarea, select {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-dark);
    background: var(--color-accent);
    border: 1.5px solid var(--color-grey);
    border-radius: var(--radius);
    padding: 12px 16px;
    outline: none;
    width: 100%;
    margin-bottom: 14px;
    transition: border-color var(--transition);
}
input:focus, textarea:focus, select:focus {
    border-color: var(--color-primary);
}
label {
    font-size: 1rem;
    color: var(--color-primary);
    font-weight: 500;
}

/* =================== COOKIE CONSENT BANNER =================== */
.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    width: 100vw;
    background: var(--color-white);
    box-shadow: 0 -4px 28px 0 rgba(24,71,124,0.08), 0 2px 4px rgba(24,71,124,.08);
    padding: 20px 28px 24px 24px;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    transition: transform .4s var(--transition), opacity .4s var(--transition);
    border-radius: 20px 20px 0 0;
}
.cookie-banner.hide {
    opacity: 0;
    pointer-events: none;
    transform: translateY(100%);
}
.cookie-banner p {
    font-size: 0.98rem;
    color: var(--color-dark);
    margin: 0 0 10px 0;
    flex: 1 1 260px;
    min-width: 200px;
}
.cookie-banner-buttons {
    display: flex;
    flex-direction: row;
    gap: 14px;
}
.cookie-banner .cookie-btn {
    border-radius: 16px;
    font-size: .97rem;
    padding: 8px 20px;
    font-family: var(--font-display);
    font-weight: 600;
    border: none;
    background: var(--color-accent);
    color: var(--color-primary);
    transition: background var(--transition), color var(--transition), transform var(--transition);
}
.cookie-banner .cookie-btn.primary {
    background: var(--color-secondary);
    color: var(--color-white);
}
.cookie-banner .cookie-btn.primary:hover, .cookie-btn.primary:focus {
    background: var(--color-primary);
    color: var(--color-white);
    transform: scale(1.03);
}
.cookie-banner .cookie-btn.secondary {
    border: 1.5px solid var(--color-secondary);
    background: var(--color-accent);
    color: var(--color-secondary);
}
.cookie-banner .cookie-btn.secondary:hover, .cookie-btn.secondary:focus {
    background: var(--color-secondary);
    color: var(--color-white);
    transform: scale(1.03);
}
@media (max-width: 580px) {
    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 18px 10px 18px 12px;
        border-radius: 8px 8px 0 0;
    }
    .cookie-banner-buttons {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 7px;
    }
}

/* =========== COOKIE MODAL OVERLAY =========== */
.cookie-modal-overlay {
    position: fixed;
    top:0; left:0; right:0; bottom:0;
    width: 100vw; height: 100vh;
    background: rgba(25,32,48,0.32);
    z-index: 12500;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    opacity: 1;
    transition: opacity 0.32s var(--transition);
}
.cookie-modal.hide {
    opacity: 0;
    pointer-events: none;
}
.cookie-modal {
    background: var(--color-white);
    border-radius: 16px;
    box-shadow: 0 4px 36px 0 rgba(24,71,124,0.20);
    min-width: 320px;
    max-width: 95vw;
    padding: 34px 32px 26px 32px;
    z-index: 14000;
    animation: cookieModalIn .7s cubic-bezier(.25,1.10,.25,1) both;
    display: flex;
    flex-direction: column;
    gap: 23px;
}
@keyframes cookieModalIn {
    0% { opacity: 0; transform: translateY(60px) scale(.97); }
    80% { opacity: 1; transform: translateY(-20px) scale(1.02); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
.cookie-modal h3 {
    color: var(--color-primary);
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.cookie-categories {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.cookie-category {
    display: flex;
    align-items: center;
    gap: 16px;
}
.cookie-category label {
    font-size: 1rem;
}
.cookie-toggle {
    width: 40px; height: 24px;
    border-radius: 12px;
    background: var(--color-grey);
    position: relative;
    display: inline-block;
    margin: 0 8px;
}
.cookie-toggle input[type="checkbox"] {
    opacity: 0;
    width: 0; height: 0;
}
.cookie-toggle .slider {
    position: absolute; left: 0; top: 0;
    width: 40px; height: 24px;
    border-radius: 12px;
    background: var(--color-grey);
    transition: background 0.2s;
}
.cookie-toggle input:checked + .slider {
    background: var(--color-secondary);
}
.cookie-toggle .slider:before {
    content: "";
    position: absolute;
    left: 3px; top: 3px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--color-white);
    box-shadow: 0 1px 2px rgba(24,71,124,0.13);
    transition: .2s;
}
.cookie-toggle input:checked + .slider:before {
    transform: translateX(16px);
}
.cookie-category.essential label {
    color: var(--color-muted);
    font-style: italic;
}
.cookie-category.essential .cookie-toggle {
    opacity: 0.45;
    pointer-events: none;
}
.cookie-modal-buttons {
    display: flex;
    flex-direction: row;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 6px;
}
@media (max-width:465px) {
    .cookie-modal {
        min-width: 80vw;
        padding: 22px 6px 18px 12px;
    }
    .cookie-modal h3 { font-size: 1.04rem; }
}

/* ==================== SCROLLBAR ===================== */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--color-secondary) var(--color-accent);
}
::-webkit-scrollbar {
    width: 10px;
    background: var(--color-accent);
}
::-webkit-scrollbar-thumb {
    background: var(--color-secondary);
    border-radius: 5px;
}

/* =================== TRANSITIONS, HOVER, MICRO-INTERACTIONS =================== */
a, button, .card, .testimonial-card, .cta-primary, .cta-secondary, .cookie-btn, .cookie-toggle .slider {
    transition: background var(--transition), color var(--transition), border var(--transition), box-shadow var(--transition), transform var(--transition);
}
a:focus, button:focus {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

/* =================== HIDE COOKIE BANNER LOGIC: JS will toggle .hide class =================== */

/* ==================== END ==================== */
