/*
 * Tarieven Page styles
 * Page: resources/views/tarieven.blade.php
 * NEVER hardcode colors - use var(--site-*) variables
 */

/* ========== HERO ========== */
.tar-hero {
    background-color: var(--site-hero-bg);
    padding: 80px 5% 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tar-hero::before,
.tar-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.tar-hero::before {
    top: -45%;
    right: -10%;
    width: 460px; height: 460px;
    background: var(--site-secondary);
    opacity: 0.08;
}

.tar-hero::after {
    bottom: -45%;
    left: -10%;
    width: 380px; height: 380px;
    background: var(--site-primary);
    opacity: 0.06;
}

.tar-hero-content {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.tar-hero-content h1 {
    font-size: 2.8rem;
    color: var(--site-primary);
    margin-bottom: 12px;
}

.tar-hero-content p {
    font-size: 1.15rem;
    opacity: 0.85;
}

/* ========== SECTIONS ========== */
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.tar-rates,
.tar-included,
.tar-toeslag,
.tar-example { padding: 70px 0; }

.tar-included { background-color: var(--site-hero-bg); }

/* ========== RATE CARDS ========== */
/*
 * Flexbox instead of CSS grid so the row stays visually balanced for ANY
 * package count. With `grid-template-columns: repeat(auto-fit, minmax(...,1fr))`
 * a single remaining package stretched to fill the entire row width — looked
 * unprofessional. With flex + justify-content:center + a per-card max-width
 * the cards keep a consistent ~320px width and group themselves in the middle.
 *
 *   6 cards → 3 per row centred
 *   3 cards → 3 in one row centred
 *   2 cards → 2 in one row centred (each ~320px)
 *   1 card  → single centred card at ~320px (NOT stretched)
 */
.rates-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
    margin-top: 40px;
    align-items: stretch;
}

.rate-card {
    position: relative;
    flex: 0 1 320px;
    max-width: 360px;
    min-width: 260px;
    background: var(--site-card-bg);
    border: 1px solid var(--site-card-border);
    border-radius: var(--site-radius-md, 16px);
    padding: 36px 28px 28px;
    text-align: start;
    box-shadow: var(--site-shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@media (max-width: 600px) {
    .rate-card { flex: 1 1 100%; max-width: 480px; }
}

/* Subtle accent line at the top of every card */
.rate-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--site-card-border);
    transition: background 0.3s ease;
}

.rate-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--site-shadow-lg);
    border-color: var(--site-secondary);
}

.rate-card:hover::before { background: var(--site-secondary); }

/* Featured variant — accent ring + bolder shadow, but keep light bg for readability */
.rate-card--featured {
    border: 2px solid var(--site-secondary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
    transform: scale(1.03);
}

.rate-card--featured::before {
    background: var(--site-secondary);
    height: 6px;
}

.rate-card--featured:hover {
    transform: scale(1.03) translateY(-4px);
}

/* "Most popular" badge */
.rate-badge {
    position: absolute;
    top: 14px;
    inset-inline-end: 14px;
    background: var(--site-secondary);
    color: var(--site-btn-text, #fff);
    font-family: "Poppins", system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 5px 12px;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.rate-label {
    font-family: "Poppins", system-ui, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--site-primary);
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 16px;
    line-height: 1.3;
}

/* Price block — large number, smaller period below */
.rate-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px dashed var(--site-card-border);
}

.rate-price-value {
    font-family: "Poppins", system-ui, sans-serif;
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--site-secondary);
    line-height: 1;
    letter-spacing: -0.02em;
}

.rate-price-period {
    font-size: 0.9rem;
    opacity: 0.7;
    font-weight: 500;
}

.rate-description {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.88;
    margin: 0 0 18px;
}

/* ---- Per-package bullet list (linked features + custom bullets) ---- */
.rate-features {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    text-align: start;
    display: grid;
    gap: 10px;
    flex: 1;
}

.rate-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    line-height: 1.45;
}

.rate-features-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--site-secondary) 15%, transparent);
    color: var(--site-secondary);
    margin-top: 1px;
}

.rate-features-icon .icon-svg { width: 12px; height: 12px; }

/* ---- Per-card CTA ---- */
.rate-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding: 12px 20px;
    background: transparent;
    color: var(--site-primary);
    border: 2px solid var(--site-primary);
    border-radius: var(--site-radius-sm, 10px);
    font-family: "Poppins", system-ui, sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.rate-cta:hover {
    background: var(--site-primary);
    color: var(--site-btn-text, #fff);
    transform: translateY(-2px);
}

.rate-card--featured .rate-cta {
    background: var(--site-secondary);
    color: var(--site-btn-text, #fff);
    border-color: var(--site-secondary);
}

.rate-card--featured .rate-cta:hover {
    background: var(--site-primary);
    border-color: var(--site-primary);
}

.rate-disclaimer {
    text-align: center;
    margin-top: 36px;
    font-size: 0.92rem;
    opacity: 0.75;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== INCLUDED CARDS ========== */
.included-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    margin-top: 30px;
}

.included-card {
    background: var(--site-card-bg);
    border: 1px solid var(--site-card-border);
    border-radius: var(--site-radius-md, 16px);
    padding: 28px 22px;
    text-align: center;
    box-shadow: var(--site-shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.included-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--site-shadow-md);
}

.included-icon {
    color: var(--site-secondary);
    display: inline-flex;
    margin-bottom: 14px;
}

.included-icon .icon-svg { width: 36px; height: 36px; }

.included-card h3 {
    font-size: 1.1rem;
    color: var(--site-primary);
    margin-bottom: 8px;
}

.included-card p {
    font-size: 0.95rem;
    opacity: 0.85;
}

/* ========== TOESLAG STEPS ========== */
.toeslag-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    margin-top: 30px;
}

.toeslag-step {
    background: var(--site-card-bg);
    border-left: 4px solid var(--site-secondary);
    border-radius: var(--site-radius-sm, 10px);
    padding: 24px;
    box-shadow: var(--site-shadow-sm);
}

[dir="rtl"] .toeslag-step {
    border-left: none;
    border-right: 4px solid var(--site-secondary);
}

.toeslag-step h3 {
    color: var(--site-primary);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.toeslag-step p {
    font-size: 0.95rem;
    opacity: 0.88;
}

.toeslag-link-wrap {
    text-align: center;
    margin-top: 36px;
}

/* ========== EXAMPLE TABLE ========== */
.example-block {
    max-width: 720px;
    margin: 0 auto;
    background: var(--site-card-bg);
    border: 1px solid var(--site-card-border);
    border-radius: var(--site-radius-md, 16px);
    padding: 36px 28px;
    box-shadow: var(--site-shadow-md);
}

.example-block h2 {
    color: var(--site-primary);
    margin-bottom: 8px;
}

.example-block > p {
    margin-bottom: 20px;
    opacity: 0.85;
}

.example-table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
}

.example-table th,
.example-table td {
    padding: 14px 12px;
    text-align: start;
    border-bottom: 1px solid var(--site-card-border);
    font-family: "Poppins", system-ui, sans-serif;
}

.example-table td {
    text-align: end;
    font-weight: 600;
    color: var(--site-primary);
}

.example-table__discount {
    color: var(--site-secondary) !important;
}

.example-table__total th,
.example-table__total td {
    border-bottom: none;
    padding-top: 18px;
    font-size: 1.15rem;
}

.example-table__total td {
    color: var(--site-secondary);
    font-weight: 800;
    font-size: 1.4rem;
}

.example-disclaimer {
    margin-top: 14px;
    font-size: 0.88rem;
    opacity: 0.7;
    font-style: italic;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 720px) {
    .tar-hero-content h1 { font-size: 2.1rem; }
    .rate-card--featured { transform: none; }
    .rate-card--featured:hover { transform: translateY(-4px); }
    .rate-price-value { font-size: 2.1rem; }
    .example-block { padding: 24px 18px; }
}
