/* CSS Variables for Color Palette */
:root {
    --primary-color: #F5F0E8;
    --secondary-color: #AAB8A3;
    --accent-color: #8A7662;
    --text-color: #3E3E3E;
    --white: #FFFFFF;
    
    --font-heading: 'Lora', serif;
    --font-body: 'Montserrat', sans-serif;
}

/* Reset & Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--accent-color);
    font-weight: 400;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; }
p { margin-bottom: 1.2rem; }

.lead { font-size: 1.2rem; font-weight: 500; color: var(--accent-color); }
.lead-white { font-size: 1.2rem; font-weight: 500; color: var(--primary-color); }

.text-center { text-align: center; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 80px; }
.pt-5 { padding-top: 3rem; }
.pb-5 { padding-bottom: 3rem; }
.max-width-800 { max-width: 800px; margin: 0 auto; }

/* Background Utilities */
.bg-light { background-color: var(--primary-color); }
.bg-white { background-color: var(--white); }
.bg-secondary { background-color: var(--secondary-color); }
.text-white, .text-white h2, .text-white p { color: var(--white); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary { background-color: var(--secondary-color); color: var(--white); }
.btn-primary:hover { background-color: var(--accent-color); color: var(--white); }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.flex-container { display: flex; align-items: center; gap: 50px; }

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(245, 240, 232, 0.95);
    backdrop-filter: blur(5px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; max-width: 1200px; margin: 0 auto; }
.logo img { height: 60px; width: auto; border-radius: 5px; }

.nav-links { list-style: none; display: flex; align-items: center; gap: 30px; }
.nav-links a { text-decoration: none; color: var(--text-color); font-weight: 500; font-size: 0.95rem; transition: color 0.3s; }
.nav-links a:hover { color: var(--accent-color); }

.nav-btn { background-color: var(--accent-color); color: var(--white) !important; padding: 8px 20px; border-radius: 20px; }
.nav-btn:hover { background-color: var(--secondary-color); }

.menu-toggle { display: none; flex-direction: column; cursor: pointer; }
.menu-toggle .bar { height: 3px; width: 25px; background-color: var(--text-color); margin: 3px 0; transition: 0.3s; }

/* Dropdown styling */
.dropdown { position: relative; }
.dropdown-menu { 
    display: none; 
    position: absolute; 
    top: 100%; 
    left: 0; 
    background: var(--white); 
    min-width: 250px; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); 
    border-radius: 8px; 
    list-style: none; 
    padding: 10px 0; 
    z-index: 100; 
}
/* Klassens .open styres nu af JavaScript klikket */
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu li a { display: block; padding: 10px 20px; font-size: 0.9rem; }
.dropdown-menu li a:hover { background-color: var(--primary-color); }

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background-image: url('../images/Hero.jpeg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(245, 240, 232, 0.4); }
.hero-content { position: relative; z-index: 1; max-width: 800px; padding: 40px; background: rgba(255, 255, 255, 0.85); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }

/* Subpage Hero */
.subpage-hero { padding: 120px 0 60px; }

/* Video & Text Box */
.video-box { flex: 1; display: flex; justify-content: center; }
.custom-video { width: 100%; max-width: 500px; border-radius: 20px; box-shadow: 0 15px 30px rgba(0,0,0,0.1); object-fit: cover; }
.text-box { flex: 1; }

/* Accordion (Myter) */
.accordion { width: 100%; margin-top: 30px; }
.accordion-item { background-color: var(--white); margin-bottom: 10px; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.accordion-header { width: 100%; padding: 18px 20px; background-color: var(--white); border: none; text-align: left; font-family: var(--font-body); font-weight: 500; font-size: 1.05rem; color: var(--accent-color); cursor: pointer; transition: background-color 0.3s; outline: none; display: flex; justify-content: space-between; align-items: center; }
.accordion-header::after { content: '+'; font-size: 1.5rem; color: var(--secondary-color); }
.accordion-header.active::after { content: '-'; }
.accordion-content { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out, padding 0.3s ease; background-color: #faf8f5; }

/* Grid Behandling */
.grid-container { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 30px; 
    margin-top: 40px; 
}

/* Sørger for at selve linket tager al den plads, grid'et giver det */
.grid-container > a {
    display: flex;
}

.card { 
    background: var(--primary-color); 
    padding: 30px 20px; 
    border-radius: 10px; 
    text-align: center; 
    transition: transform 0.3s, box-shadow 0.3s; 
    position: relative; 
    
    /* Disse tre linjer tvinger alle fliser til altid at have samme højde */
    flex: 1; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Holder ikonet i toppen, selvom teksten er lang */
    align-items: center;
}

.card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.card .icon { font-size: 2.5rem; margin-bottom: 15px; }
.card h3 { font-size: 1.1rem; margin-bottom: 0; }

/* Clickable kort overlay */
.clickable-card .card-link { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; text-decoration: none; }

/* Footer */
.footer { background-color: var(--text-color); color: #e0e0e0; padding: 60px 0 20px; }
.footer h3, .footer h4 { color: var(--primary-color); }
.footer-flex { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; margin-bottom: 40px; }
.footer-col { flex: 1; min-width: 250px; }
.footer-logo { max-width: 150px; border-radius: 5px; margin-bottom: 15px; filter: grayscale(100%) brightness(200%); opacity: 0.8; }
.social-link { color: var(--secondary-color); text-decoration: none; transition: color 0.3s; }
.social-link:hover { color: var(--primary-color); }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 0.85rem; }

/* Animations */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .flex-container { flex-direction: column; }
    .menu-toggle { display: flex; }
    
    .nav-links { 
        position: absolute; 
        right: -100%; 
        top: 80px; 
        flex-direction: column; 
        background-color: var(--primary-color); 
        width: 100%; 
        text-align: center; 
        transition: 0.3s; 
        box-shadow: 0 10px 10px rgba(0,0,0,0.1); 
        padding: 20px 0; 
    }
    .nav-links.active { right: 0; }
    
    .dropdown-menu { 
        display: none; 
        position: relative; 
        box-shadow: none; 
        background: transparent; 
    }
    .hero h1 { font-size: 2.2rem; }
}

/* Styling til de nye behandlingsbilleder */
.treatment-img {
    width: 100%;
    height: auto;
    max-width: 180px; /* Sikrer at billederne ikke bliver for voldsomme */
    margin: 0 auto;
    display: block;
    mix-blend-mode: multiply; /* Får illustrationens kanter til at blende ekstra blødt ind med kortet */
}