/* ==========================================================================
   KRONE FLYT - MASTER STYLESHEET
   Scandinavian Premium Brand Palette
   ========================================================================== */

/* --- 1. CSS VARIABLES (THE BRAND PALETTE) --- */
:root {
    /* Base Colors Extracted from Logo */
    --brand-navy: #0C2B43; 
    --brand-gold: #C29B53;
    
    /* Light Mode */
    --bg-color: #F8F9FA; /* Soft scandinavian off-white */
    --surface-color: #FFFFFF;
    --nav-bg: #FFFFFF; 
    --text-color: #334155; /* Slate gray, softer than pure black */
    --primary-color: var(--brand-navy);
    --footer-bg: #081D2D; /* Deepest navy for footer */
    --hero-bg: var(--brand-navy); 
    --accent-color: var(--brand-gold); 
    --accent-hover: #A68241; /* Darker gold for button interactions */
    --border-color: #E2E8F0;
    --box-bg: #F1F5F9;
}

@media (prefers-color-scheme: dark) {
    :root {
        /* Dark Mode */
        --bg-color: #12181F; /* Very deep navy-tinted charcoal */
        --surface-color: #1A232D; /* Elevated surface */
        --nav-bg: #E2E8F0; /* Kept light so the dark navy logo text remains visible! */
        --text-color: #E2E8F0;
        --primary-color: var(--brand-gold); /* Headings become gold in dark mode for contrast */
        --footer-bg: #0A0F14;
        --hero-bg: #1A232D;
        --accent-color: var(--brand-gold);
        --accent-hover: #DFC28A; /* Lighter gold for dark mode hovers */
        --border-color: #2D3A4B;
        --box-bg: #222D3A;
    }
}

/* --- 2. BASE STYLES & TYPOGRAPHY --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}
a { color: var(--text-color); text-decoration: none; transition: color 0.3s ease; }
h1, h2, h3 { color: var(--primary-color); }

/* --- 3. LAYOUT UTILITIES --- */
.container { max-width: 1200px; margin: 0 auto; }
.container-small { max-width: 800px; margin: 0 auto; }
.text-center { text-align: center; }
.section-title { text-align: center; margin-bottom: 50px; font-size: 2em; }
.mt-auto { margin-top: auto; }
.highlight { color: var(--accent-color); } 

/* --- 4. HEADER & NAVIGATION --- */
header {
    background-color: var(--nav-bg);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.logo a { display: inline-block; }
.logo img { max-height: 60px; transition: transform 0.3s ease; }
.logo img:hover { transform: scale(1.25); }
.nav-container { display: flex; align-items: center; gap: 40px; }
.nav-phone { font-weight: bold; color: var(--primary-color); font-size: 1.2em; transition: color 0.3s ease;}
.nav-phone:hover { color: var(--accent-color); }
header nav ul { list-style: none; display: flex; gap: 20px; }
header nav a { 
    font-weight: bold; 
    color: var(--brand-navy); /* Forces links to stay dark against the light background */
}
header nav a:hover { color: var(--accent-color); }

/* --- 5. BUTTONS --- */
.btn-primary, .btn-submit {
    display: inline-block;
    background-color: var(--accent-color);
    color: #ffffff !important;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}
.btn-primary:hover, .btn-submit:hover { 
    background-color: var(--accent-hover); 
    transform: translateY(-2px); 
}
.btn-secondary {
    display: inline-block; 
    background-color: transparent; 
    border: 2px solid var(--accent-color);
    color: var(--accent-color); 
    padding: 15px 30px; 
    border-radius: 5px; 
    font-size: 1.1em; 
    font-weight: bold;
    text-align: center; 
    transition: all 0.3s ease;
}
.btn-secondary:hover { 
    background-color: var(--accent-color); 
    color: #ffffff; 
}
.btn-outline {
    display: inline-block; padding: 13px 28px; border: 2px solid var(--text-color);
    color: var(--text-color); font-weight: bold; border-radius: 5px; font-size: 1.1em; transition: opacity 0.3s ease;
}
.btn-outline:hover { opacity: 0.6; }
.btn-large { padding: 15px 35px; }
.btn-block { width: 100%; display: inline-block; }
.btn-submit { width: 100%; margin-top: 10px; }

/* --- 6. HERO SECTION --- */
.hero { background-color: var(--hero-bg); padding: 100px 5%; text-align: center; border-bottom: 5px solid var(--accent-color); }
.hero-content { max-width: 800px; margin: 0 auto; }
.hero-title { color: #ffffff; font-size: 3em; margin-bottom: 20px; font-weight: 800; letter-spacing: -1px; }
.hero-subtitle { font-size: 1.3em; margin-bottom: 35px; color: #E2E8F0; line-height: 1.6; }
.hero-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

/* --- 7. TRUST SIGNALS & SERVICES --- */
.trust-signals-container { padding: 60px 5%; }
.trust-signals { display: flex; justify-content: center; gap: 40px; max-width: 1000px; margin: 0 auto; flex-wrap: wrap; }
.feature { flex: 1; min-width: 300px; max-width: 450px; text-align: center; padding: 30px; background-color: var(--surface-color); border-radius: 8px; border-top: 4px solid var(--accent-color); box-shadow: 0 4px 15px rgba(0,0,0,0.08); }
.feature h3 { display: flex; align-items: center; justify-content: center; margin-bottom: 15px; font-size: 1.3em; }
.inline-tryg-logo { height: 1.2em; width: auto; margin-right: 10px; vertical-align: middle; }

.core-services-section { padding: 60px 5%; background-color: var(--surface-color); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.service-box { text-align: center; }
.service-icon-large, .service-icon { font-size: 3em; margin-bottom: 15px; color: var(--accent-color); }
.service-title { margin-bottom: 10px; }

/* --- 8. PRICING SECTION --- */
.pricing-section { padding: 60px 5%; background-color: var(--bg-color); }
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; justify-content: center; }
.pricing-card {
    background-color: var(--surface-color); border: 2px solid var(--border-color);
    border-radius: 10px; padding: 30px 20px; text-align: center; position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); display: flex; flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.pricing-card:hover { transform: translateY(-10px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); border-color: var(--primary-color); }
.pricing-card.popular { border: 3px solid var(--primary-color); }
.custom-package { border: 2px solid var(--accent-color); background-color: rgba(194, 155, 83, 0.05); }
.custom-package-subtitle { font-size: 0.9em; color: #666; margin-top: -10px; margin-bottom: 20px; }
.popular-badge {
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
    background-color: var(--primary-color); color: #fff; padding: 5px 15px;
    border-radius: 20px; font-size: 0.9em; font-weight: bold;
}
.pricing-card h3 { font-size: 1.5em; margin-bottom: 15px; }
.pricing-card .price { font-size: 2.5em; font-weight: bold; margin-bottom: 5px; color: var(--primary-color); }
.pricing-card .price span { font-size: 0.4em; color: #888; font-weight: normal; }
.tax-info { font-size: 0.85em; color: #888; margin-bottom: 25px; }

.check-icon { width: 18px; height: 18px; color: var(--accent-color); margin-right: 10px; flex-shrink: 0; }
.pricing-features { list-style: none; margin-bottom: 25px; text-align: left; flex-grow: 1; }
.pricing-features.compact { font-size: 0.95em; }
.pricing-features li { display: flex; align-items: center; margin-bottom: 12px; font-size: 0.95em; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }
.pricing-features li:last-child { border-bottom: none; }
.services-link-wrapper { text-align: center; margin-top: 25px; }
.services-link { color: var(--accent-color); font-weight: bold; text-decoration: underline; font-size: 1.1em; }

/* --- 9. PAYMENT METHODS --- */
.payment-methods-section { padding: 40px 5%; background-color: var(--surface-color); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.payment-title { font-size: 1.4em; margin-bottom: 25px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--primary-color); }
.payment-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; align-items: center; }
.payment-item { display: flex; align-items: center; gap: 10px; font-size: 1.1em; font-weight: 500; }
.payment-icon { font-size: 1.4em; }

/* --- 10. FAQ ACCORDION --- */
.faq-section { padding: 80px 5%; background-color: var(--bg-color); }
.faq-accordion { display: flex; flex-direction: column; gap: 15px; }
.faq-item { border: 1px solid var(--border-color); border-radius: 6px; background-color: var(--surface-color); }
.faq-question {
    width: 100%; text-align: left; padding: 20px; background: none; border: none;
    font-size: 1.1em; font-weight: bold; color: var(--primary-color); cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    transition: background-color 0.3s ease, color 0.3s ease; font-family: inherit;
}
.faq-question:hover { background-color: rgba(194, 155, 83, 0.05); }
.faq-question.active { color: var(--accent-color); }
.faq-icon { font-size: 1.5em; font-weight: normal; color: var(--accent-color); transition: transform 0.3s ease; }

/* Pure CSS Grid Height Animation */
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease-out; background-color: var(--surface-color); }
.faq-answer.is-open { grid-template-rows: 1fr; }
.faq-answer-inner { overflow: hidden; }
.faq-answer-inner p { padding: 0 20px 20px 20px; margin: 0; color: var(--text-color); }

.terms-link-wrapper { text-align: center; margin-top: 40px; }
.terms-link { color: var(--accent-color); font-weight: bold; text-decoration: underline; }

/* --- 11. LEGAL PAGES --- */
.legal-section { padding: 60px 5%; background-color: var(--bg-color); }
.legal-container {
    max-width: 800px; margin: 0 auto; background-color: var(--surface-color); padding: 60px;
    border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); border-top: 5px solid var(--primary-color);
}
.legal-header { text-align: center; margin-bottom: 40px; padding-bottom: 30px; border-bottom: 1px solid var(--border-color); }
.legal-logos { display: flex; justify-content: center; align-items: center; gap: 30px; margin-bottom: 30px; }
.legal-logos img { max-height: 50px; width: auto; }
.legal-container h1 { color: var(--primary-color); font-size: 2.2em; margin-bottom: 10px; }
.last-updated { color: #888; font-style: italic; font-size: 0.9em; }
.legal-container h2 { color: var(--primary-color); font-size: 1.4em; margin-top: 40px; margin-bottom: 15px; }
.legal-container p { margin-bottom: 15px; line-height: 1.7; color: var(--text-color); }
.legal-container ul { margin-bottom: 25px; padding-left: 20px; }
.legal-container li { margin-bottom: 10px; line-height: 1.6; color: var(--text-color); }

/* --- 12. CONTACT TEASER & REVIEWS --- */
.contact-teaser { background-color: var(--surface-color); padding: 80px 5%; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.teaser-title { font-size: 2.2em; margin-bottom: 20px; color: var(--primary-color); }
.teaser-text { font-size: 1.1em; margin-bottom: 35px; line-height: 1.8; }

.reviews-section { padding: 60px 5%; background-color: var(--bg-color); }
.trustpilot-wrapper { text-align: center; margin-bottom: 40px; }
.reviews-grid { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; }
.review-card {
    background-color: var(--surface-color); border: 1px solid var(--border-color);
    padding: 30px; border-radius: 8px; flex: 1; min-width: 300px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); display: flex; flex-direction: column;
}
.review-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); border-color: var(--accent-color); }
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.stars { font-size: 1.2em; letter-spacing: 2px; }
.review-platform { font-size: 0.8em; font-weight: bold; padding: 4px 10px; border-radius: 4px; color: #ffffff !important; }
.review-platform.google { background-color: #4285F4; } /* Kept specific for the Google badge */
.review-text { font-style: italic; margin-bottom: 20px; flex-grow: 1; line-height: 1.6;}
.review-author { font-weight: bold; color: var(--primary-color); text-align: right; }

/* --- 13. FOOTER & FLOATING BUTTON --- */
footer { background-color: var(--footer-bg); color: #f1f1f1; padding: 60px 5% 20px 5%; margin-top: 40px; }
.footer-container { display: flex; justify-content: space-between; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; gap: 40px; }
.footer-info, .footer-hours, .footer-links { flex: 1; min-width: 250px; }
.footer-brand-link { display: inline-flex; align-items: center; gap: 15px; margin-bottom: 20px; transition: transform 0.3s ease; }
.footer-brand-link:hover { transform: scale(1.05); }
.footer-logo { max-height: 45px; width: auto; }
.footer-brand-link h3 { color: #ffffff; font-size: 1.5em; transition: color 0.3s ease; }
.footer-brand-link:hover h3 { color: var(--accent-color); }
.clean-link { color: #cccccc; transition: color 0.3s ease;}
.clean-link:hover { color: var(--accent-color); }
.footer-insurance { margin-top: 20px; color: #ffffff !important; font-size: 1.1em; }
.footer-tryg-icon { height: 1.2em; width: auto; vertical-align: middle; margin-right: 8px; margin-bottom: 3px; }

.footer-links h3 { color: #ffffff; margin-bottom: 20px; font-size: 1.4em; }
.footer-links nav ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: #cccccc; display: block; width: fit-content; transition: color 0.3s ease, transform 0.3s ease; font-weight: 500;}
.footer-links a:hover { color: var(--accent-color); transform: translateX(5px); }
.footer-bottom { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid #1A232D; font-size: 0.9em; color: #888888; }

.floating-booking-btn {
    position: fixed; bottom: 30px; right: 30px; background-color: var(--accent-color); color: #ffffff;
    padding: 15px 25px; border-radius: 50px; display: flex; align-items: center; gap: 10px;
    box-shadow: 0 4px 15px rgba(194, 155, 83, 0.4); font-weight: bold; font-size: 1.1em;
    z-index: 1000; text-decoration: none; transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}
.floating-booking-btn:hover { background-color: var(--accent-hover); transform: translateY(-5px) scale(1.05); box-shadow: 0 8px 20px rgba(194, 155, 83, 0.6); color: #ffffff; }

/* --- 14. MOBILE RESPONSIVENESS --- */
@media (max-width: 900px) {
    .pricing-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .pricing-card { padding: 20px 15px; }
    .pricing-card h3 { font-size: 1.2em; }
    .pricing-card .price { font-size: 1.8em; }
    .popular-badge { font-size: 0.75em; top: -12px; }
}

@media (max-width: 768px) {
    header { flex-direction: column; text-align: center; gap: 15px; }
    .nav-container { flex-direction: column; gap: 15px; }
    header nav ul { flex-wrap: wrap; justify-content: center; }
    .trust-signals { flex-direction: column; }
    .feature { max-width: 100%; }
    .footer-container { flex-direction: column; gap: 30px; }
    .legal-container { padding: 30px 20px; }
    .legal-logos { flex-direction: column; gap: 15px; }
}

@media (max-width: 480px) {
    .floating-booking-btn { bottom: 20px; right: 20px; padding: 15px; border-radius: 50%; }
    .float-text { display: none; }
    .floating-booking-btn svg { margin-right: 0 !important; }
}

/* --- TWEMOJI FIX --- */
img.emoji { height: 1.2em !important; width: 1.2em !important; margin: 0 0.1em !important; vertical-align: -0.1em !important; display: inline-block !important; box-shadow: none !important; }

/* ─────────────────────────────────────────────────────────────
   15. LANGUAGE TOGGLE & I18N BLOCK SWITCHING
   ─────────────────────────────────────────────────────────────

   Block-level language switching:
     Add class "lang-da" or "lang-en" to any block element.
     The rule below shows/hides based on the html class set by i18n.js.
     Used on legal pages (terms/privacy) and status messages in contact.php.
*/

html.lang-da .lang-en { display: none; }
html.lang-en .lang-da { display: none; }

/* Language toggle button – sits in .nav-container beside the phone link */
.lang-toggle-btn {
    background: none;
    border: 2px solid var(--brand-navy, var(--primary-color));
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9em;
    font-family: inherit;
    cursor: pointer;
    line-height: 1;
    white-space: nowrap;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.lang-toggle-btn:hover,
.lang-toggle-btn:focus-visible {
    background-color: var(--primary-color);
    color: #ffffff;
    outline: none;
}

/* Prevent layout shift when Twemoji replaces flag characters */
.lang-toggle-btn img.emoji {
    height: 1em !important;
    width: 1em !important;
    vertical-align: -0.05em !important;
    margin: 0 0.15em 0 0 !important;
}
