/* Bedrijfsaansprakelijkheidzzp.nl - Global Stylesheet */
/* Designsystem: Dark Blue #003366, Bright Blue #00AEEF, Dark Gray #1F2937, Light Background #F7FAFC */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Open+Sans:wght@400;600&display=swap');

/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-teal: #003366;
    --secondary-yellow: #00AEEF;
    --text-dark: #1F2937;
    --bg-light: #F7FAFC;
    --white: #FFFFFF;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-600: #4B5563;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.12);
    --border-radius: 10px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    color: var(--primary-teal);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-teal);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #002244;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container & Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.section-light {
    background-color: var(--white);
}

.section-gray {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
}

/* Header & Navigation */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-teal);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary-yellow);
}

/* Desktop Navigation - Hybrid Menu */
.nav-links-desktop {
    display: flex;
    gap: 2rem;
}

.nav-links-hamburger {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: max-height 0.3s ease;
    min-width: 200px;
}

.nav-links-hamburger li {
    border-bottom: 1px solid var(--bg-light);
}

.nav-links-hamburger li:last-child {
    border-bottom: none;
}

.nav-links-hamburger a {
    display: block;
    padding: 1rem 20px;
    transition: background-color 0.3s ease;
}

.nav-links-hamburger a:hover {
    background-color: var(--bg-light);
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
}

.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    padding: 8px;
    transition: transform 0.3s ease;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-teal);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle:checked ~ .nav-links-hamburger {
    max-height: 400px;
}

.menu-toggle:checked ~ .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle:checked ~ .hamburger span:nth-child(2) {
    opacity: 0;
}

.menu-toggle:checked ~ .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-links-desktop {
        display: none;
    }
    
    .nav-links-hamburger {
        left: 0;
        right: 0;
        min-width: auto;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-teal) 0%, #002244 100%);
    color: var(--white);
    text-align: center;
    padding: 100px 20px;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 3rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background-color: var(--secondary-yellow);
    color: var(--text-dark);
}

.btn-primary:hover {
    background-color: #0099D6;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

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

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

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

.btn-outline:hover {
    background-color: var(--primary-teal);
    color: var(--white);
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Cards */
.card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    transition: all 0.3s ease;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

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

.card-content {
    flex: 1;
}

.card h3 {
    color: var(--primary-teal);
    margin-bottom: 1rem;
}

.card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-shrink: 0;
    align-self: center;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
}

/* Compact grid for branches */
#branches .grid {
    gap: 1.5rem;
}

#branches .card {
    padding: 20px;
}

#branches .card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

#branches .card p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.grid-1 {
    grid-template-columns: 1fr;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.badge-popular {
    background-color: var(--secondary-yellow);
    color: var(--text-dark);
}

.badge-top {
    background-color: var(--primary-teal);
    color: var(--white);
}

/* Grid-3 Vertical Card Layout for Insurers */
.grid-3 .card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.grid-3 .card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.grid-3 .card-actions {
    width: 100%;
    margin-top: 1.5rem;
}

.grid-3 .card-actions .btn {
    width: 100%;
}

/* Insurer Logos */
.insurer-logo {
    width: 180px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 6px;
    transition: transform 0.3s ease;
    object-fit: contain;
    background-color: var(--white);
    padding: 10px;
}

.grid-3 .insurer-logo {
    width: 200px;
    height: 90px;
    margin-bottom: 1.25rem;
    padding: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.insurer-logo:hover {
    transform: scale(1.05);
}

.insurer-logo-large {
    width: 250px;
    height: 110px;
    margin: 0 auto 2rem;
    border-radius: 8px;
    object-fit: contain;
    background-color: var(--white);
    padding: 15px;
    box-shadow: var(--shadow);
}

/* Accordion Section (FAQ) */
.accordion {
    max-width: 100%;
}

.accordion-item {
    background-color: var(--white);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.accordion-item:hover {
    box-shadow: var(--shadow-hover);
}

.accordion-item input[type="radio"] {
    display: none;
}

.accordion-question {
    display: block;
    font-weight: 600;
    color: var(--primary-teal);
    padding: 20px;
    padding-right: 60px;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
    user-select: none;
}

.accordion-question:hover {
    background-color: var(--gray-100);
}

.accordion-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-teal);
    transition: transform 0.3s ease;
}

.accordion-item input[type="radio"]:checked + .accordion-question::after {
    content: '−';
}

.accordion-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    color: var(--gray-600);
    line-height: 1.8;
}

.accordion-answer p {
    margin: 0;
}

.accordion-item input[type="radio"]:checked ~ .accordion-answer {
    max-height: 500px;
    padding: 0 20px 20px 20px;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 1rem 0;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--gray-600);
}

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

.breadcrumbs span {
    color: var(--gray-300);
    margin: 0 0.5rem;
}

/* Info Block */
.info-block {
    background-color: var(--white);
    border-left: 4px solid var(--primary-teal);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.info-block h2 {
    margin-bottom: 1.5rem;
}

.info-block ul {
    list-style: none;
    padding-left: 0;
}

.info-block li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.info-block li:before {
    content: "✓";
    color: var(--primary-teal);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Top 3 Recommendations */
.top-3-container {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.top-card {
    flex: 1;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

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

.top-card .insurer-logo-small {
    width: 140px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 1rem;
    padding: 8px;
    background-color: var(--white);
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.top-card h3 {
    margin-bottom: 1rem;
}

.top-card p {
    text-align: left;
    margin-bottom: 0.75rem;
}

.top-card .btn {
    margin-top: auto;
    width: 100%;
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--secondary-yellow);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
}

.footer-section a:hover {
    color: var(--secondary-yellow);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-600);
    color: var(--gray-300);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .top-3-container {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .card {
        flex-direction: column;
    }
    
    .card-actions {
        flex-direction: row;
        align-self: stretch;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.disclaimer {
    background-color: var(--gray-100);
    border-left: 3px solid var(--secondary-yellow);
    padding: 15px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    color: var(--gray-600);
    margin: 2rem 0;
}

/* News Article Styling */
.news-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.news-date {
    color: var(--gray-600);
    font-size: 0.9rem;
    font-weight: 500;
}

.news-content {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.news-content h3 {
    font-size: 1.25rem;
    margin-top: 1rem;
    margin-bottom: 0.75rem;
}

.news-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.news-content li {
    margin: 0.5rem 0;
}

article.card {
    flex-direction: column;
    gap: 0;
}

article.card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Overview Pages Styling */
.card-highlight {
    border: 2px solid var(--secondary-yellow);
    position: relative;
}

.card-badge {
    background-color: var(--secondary-yellow);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-teal);
    margin: 1rem 0;
}

.feature-list {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.feature-list li {
    padding: 0.5rem 0;
    padding-left: 1.75rem;
    position: relative;
}

.feature-list li:before {
    content: "✓";
    color: var(--secondary-yellow);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* Compact Branch Cards */
.grid-1 .card {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.grid-1 .card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.35rem;
}

.grid-1 .card p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.grid-1 .card p:not(.price) {
    flex: 1;
}

.grid-1 .card .price {
    font-size: 1.1rem;
    margin: 0.5rem 0;
    flex-shrink: 0;
}

.grid-1 .feature-list {
    margin: 0.65rem 0;
    display: none;
}

.grid-1 .feature-list li {
    padding: 0.25rem 0;
    padding-left: 1.5rem;
    font-size: 0.85rem;
}

.grid-1 .feature-list li:before {
    font-size: 0.9rem;
}

.grid-1 .card .btn {
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Small Insurer Logo for compact cards */
.insurer-logo-small {
    max-width: 80px;
    max-height: 40px;
    object-fit: contain;
    margin-bottom: 0.5rem;
    display: block;
}

/* Grid-2 cards need normal padding, not compact */
.grid-2 .card {
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: 100%;
}

.grid-2 .card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.grid-2 .card p:not(.price) {
    flex: 1;
}

.grid-2 .card .price {
    margin-top: auto;
    flex-shrink: 0;
}

.grid-2 .card ul {
    margin: 0;
    padding-left: 1.25rem;
}

.grid-2 .card li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Top 3 Cards with right-aligned price and button */
.grid-1.mb-3 .card {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    padding: 1.5rem 2rem;
}

.grid-1.mb-3 .card .card-left {
    flex: 1;
}

.grid-1.mb-3 .card .card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 1rem;
    flex-shrink: 0;
}

.grid-1.mb-3 .card .price {
    text-align: right;
    white-space: nowrap;
    margin: 0;
}

.grid-1.mb-3 .card .btn {
    white-space: nowrap;
}

.grid-1.mb-3 .card .feature-list {
    display: block;
    margin: 1rem 0;
}

.grid-1.mb-3 .card h3 {
    margin-bottom: 1rem;
}
