/* CSS Design System for Lægeklinikken Nordmarksvej */

/* Reset & Variables */
:root {
    --primary-color: #0C4A60;       /* Modern Dark Teal / Trustworthy Medical Blue */
    --secondary-color: #0582CA;     /* Ocean Blue / Accent Links */
    --accent-color: #3CD070;        /* Mint Green / Success status badge */
    --accent-danger: #D05C3C;       /* Soft Coral / Attention, vacation notice */
    --bg-light: #F4F7F6;            /* Light grey-teal tint for backgrounds */
    --bg-white: #FFFFFF;
    --text-dark: #1C2E36;           /* High contrast text */
    --text-muted: #536B73;          /* Muted descriptions */
    --border-color: #E2E8F0;
    
    --font-family: 'Outfit', 'Montserrat', 'Inter', system-ui, -apple-system, sans-serif;
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-soft: 0 10px 30px -10px rgba(12, 74, 96, 0.08);
    --shadow-hover: 0 20px 40px -15px rgba(12, 74, 96, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 1.05rem; /* Large enough, readable */
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.25;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.5rem; }

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem; /* Keeps text away from edges on mobile */
}

.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    font-size: 2.2rem;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

/* Header & Navigation */
header {
    background-color: var(--bg-white);
    box-shadow: 0 4px 20px rgba(12, 74, 96, 0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background-color: var(--primary-color);
    color: var(--bg-light);
    font-size: 0.9rem;
    padding: 0.5rem 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.top-bar a {
    color: #FFFFFF;
    font-weight: 600;
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-block {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    white-space: nowrap;
}

.logo-circle {
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: #FFFFFF;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.85rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    white-space: nowrap;
    font-size: 0.95rem;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
    background-color: rgba(12, 74, 96, 0.05);
}

/* Lang Switcher */
.lang-switcher {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
}

.lang-btn {
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    background: transparent;
    cursor: pointer;
    text-transform: uppercase;
    transition: var(--transition);
}

.lang-btn.active, .lang-btn:hover {
    background-color: var(--primary-color);
    color: #FFFFFF;
    border-color: var(--primary-color);
}

/* Mobile Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(12, 74, 96, 0.55), rgba(5, 130, 202, 0.6)), 
                url('../images/banner.png') center/cover no-repeat;
    color: #FFFFFF;
    padding: 8rem 0;
    text-align: center;
}

.hero h1 {
    color: #FFFFFF;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-subtitle {
    display: block;
    font-size: 1.8rem;
    font-weight: 500;
    margin-top: 0.75rem;
    opacity: 0.9;
}

.hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

/* Status Badge Component */
.status-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-top: -3rem; /* overlap effect */
    border: 1px solid rgba(12, 74, 96, 0.06);
    position: relative;
    z-index: 10;
}

.status-indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    position: relative;
}

.status-indicator.open {
    background-color: var(--accent-color);
}

.status-indicator.open::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--accent-color);
    animation: pulse 2s infinite ease-in-out;
}

.status-indicator.closed {
    background-color: var(--accent-danger);
}

.status-text {
    font-weight: 700;
    color: var(--primary-color);
}

.status-time {
    font-size: 0.9rem;
    color: var(--text-muted);
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* News Section & Cards */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-img-block {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: var(--bg-light);
    padding: 1.5rem;
    transition: var(--transition);
}

.card:hover .card-img {
    transform: scale(1.05);
}

.card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-title {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.card-text {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    flex-grow: 1;
}

/* Button Component */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
    font-size: 0.95rem;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: #FFFFFF;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #FFFFFF;
}

/* About Section & Lists */
.about-layout {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 3rem;
}

@media (max-width: 992px) {
    .about-layout {
        grid-template-columns: 1fr;
    }
}

.about-left img {
    width: 100%;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.hours-table {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.hours-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.hours-row:last-child {
    border-bottom: none;
}

.hours-day {
    font-weight: 700;
}

.hours-time {
    color: var(--primary-color);
    font-weight: 600;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.team-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
    padding-bottom: 1.5rem;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.team-avatar-block {
    height: 250px;
    overflow: hidden;
    background-color: #E2E8F0;
    position: relative;
}

.team-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info {
    padding: 1.5rem 1.5rem 0.5rem;
}

.team-name {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.team-role {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-bio {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Online Services */
.online-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .online-grid {
        grid-template-columns: 1fr;
    }
}

.online-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.online-card h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.online-card h3 svg {
    color: var(--secondary-color);
}

.app-badge-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.app-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary-color);
    color: #FFFFFF;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
}

.app-badge:hover {
    background-color: var(--secondary-color);
    color: #FFFFFF;
}

/* Pricing Page Styles */
.pricing-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

@media (max-width: 992px) {
    .pricing-layout {
        grid-template-columns: 1fr;
    }
}

.pricing-block {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    overflow-x: auto;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.pricing-table th, .pricing-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.pricing-table th {
    font-weight: 700;
    color: var(--primary-color);
    background-color: rgba(12, 74, 96, 0.03);
    vertical-align: bottom;
    white-space: nowrap;
}

.pricing-table tr:last-child td {
    border-bottom: none;
}

.pricing-table td:last-child {
    font-weight: 700;
    color: var(--primary-color);
}

/* Information Tabs */
.tabs-container {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.tab-nav {
    display: flex;
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
}

.tab-btn {
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-muted);
    transition: var(--transition);
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}

.tab-btn.active, .tab-btn:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background-color: rgba(12, 74, 96, 0.03);
}

.tab-content-panel {
    padding: 2.5rem;
    display: none;
}

.tab-content-panel.active {
    display: block;
}

.specialists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.specialist-card {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.specialist-card h4 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.25rem;
}

.specialist-card ul {
    list-style: none;
}

.specialist-card li {
    list-style: none;
}

.specialist-card li:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.specialist-card li a:hover {
    color: var(--primary-color) !important;
}

/* Contact Details & Map */
.contact-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.map-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    height: 400px;
}

.map-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer styling */
footer {
    background-color: var(--primary-color);
    color: #FFFFFF;
    padding: 3rem 0;
    text-align: center;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

footer a {
    color: var(--accent-color);
    font-weight: 700;
}

footer a:hover {
    color: #FFFFFF;
}

@media (max-width: 768px) {
    footer .container {
        flex-direction: column;
        text-align: center;
    }
}

/* Cookie Message Bar */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-color);
    color: #FFFFFF;
    padding: 1rem 0;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.15);
    z-index: 9999;
    transition: var(--transition);
}

.cookie-banner .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-btn {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
    padding: 0.5rem 1rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
}

.cookie-btn:hover {
    background-color: #FFFFFF;
    color: var(--primary-color);
}

/* Navigation Drawer for Mobile */
@media (max-width: 992px) {
    .mobile-nav-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 1.5rem;
        gap: 1rem;
        border-top: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        display: flex;
    }

    .lang-switcher {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
}

/* Responsive fixes for Information Tabs and Pricing Tables */
@media (max-width: 768px) {
    .tab-nav {
        flex-direction: column;
        overflow-x: visible;
    }
    
    .tab-btn {
        width: 100%;
        text-align: left;
        border-bottom: none;
        border-left: 3px solid transparent;
        padding: 0.85rem 1.25rem;
    }
    
    .tab-btn.active, .tab-btn:hover {
        border-bottom-color: transparent;
        border-left-color: var(--primary-color);
    }
    
    .tab-content-panel {
        padding: 1.5rem;
    }
}

@media (max-width: 600px) {
    .pricing-block {
        padding: 1rem 0.75rem;
    }
    
    .pricing-table th, .pricing-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .pricing-table th {
        white-space: normal;
    }
}

/* Useful Links Tab Styles */
.info-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0;
}

.info-link-item {
    background: var(--bg-light);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.info-link-label {
    font-weight: 700;
    color: var(--primary-color);
}

.info-link-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    white-space: nowrap;
    text-align: center;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .info-link-item {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1.25rem 1rem;
        text-align: left;
    }
    
    .info-link-btn {
        width: 100%;
        display: block;
    }
}

