/*
Theme Name: GasenLichtCheck
Theme URI: https://gasenlichtcheck.nl
Author: GasenLichtCheck
Description: Professioneel WordPress thema voor gas en licht calculators en energievergelijking. Inclusief JS calculators, Daisycon energievergelijker integratie, en SEO-geoptimaliseerde layouts.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: energieverbruik
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #16a34a;
    --primary-dark: #15803d;
    --primary-light: #dcfce7;
    --secondary: #0ea5e9;
    --secondary-dark: #0284c7;
    --accent: #f59e0b;
    --dark: #1e293b;
    --text: #334155;
    --text-light: #64748b;
    --bg: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --max-width: 1200px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

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

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

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

h1, h2, h3, h4 {
    color: var(--dark);
    line-height: 1.3;
}

/* ===== LAYOUT ===== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

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

/* ===== HEADER ===== */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
}

.site-logo svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.site-logo__text {
    display: inline;
}

.site-logo__accent {
    color: var(--primary);
}

/* Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 8px;
}

.main-nav a {
    display: block;
    padding: 8px 16px;
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.main-nav a:hover,
.main-nav .current-menu-item a {
    color: var(--primary);
    background: var(--primary-light);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    margin: 5px 0;
    transition: 0.3s;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #0f766e 50%, var(--secondary-dark) 100%);
    color: var(--white);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    min-height: 480px;
    position: relative;
    z-index: 1;
}

.hero-text {
    padding: 60px 0;
}

.hero h1 {
    font-size: 2.75rem;
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.15;
}

.hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.hero-visual svg {
    width: 100%;
    max-width: 420px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
}

/* ===== STATS BAR ===== */
.stats-bar {
    background: var(--dark);
    padding: 32px 0;
}

.stats-bar .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-item {
    color: var(--white);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 4px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn--primary {
    background: var(--accent);
    color: var(--dark);
}

.btn--primary:hover {
    background: #d97706;
    color: var(--dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn--outline {
    background: rgba(255,255,255,0.15);
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.4);
}

.btn--outline:hover {
    background: rgba(255,255,255,0.25);
    color: var(--white);
}

.btn--green {
    background: var(--primary);
    color: var(--white);
}

.btn--green:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

/* ===== TRUST BAR ===== */
.trust-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.trust-bar .container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.trust-item svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

/* ===== CALCULATOR CARDS GRID ===== */
.calc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.calc-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 24px;
    border: 1px solid var(--border);
    transition: all 0.3s;
    text-align: center;
}

.calc-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.calc-card__icon {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.calc-card__icon svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.calc-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.calc-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.calc-card .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 0.9rem;
}

/* ===== SECTION HEADERS ===== */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 20px;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.05rem;
}

/* ===== CALCULATOR PAGE ===== */
.calculator-wrap {
    max-width: 700px;
    margin: 0 auto;
}

.calculator {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.calculator h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.calculator > p {
    color: var(--text-light);
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--dark);
}

.form-group small {
    display: block;
    color: var(--text-light);
    font-size: 0.8rem;
    margin-top: 4px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

input[type="number"],
input[type="text"],
select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text);
    background: var(--bg);
    transition: border-color 0.2s;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.btn--calc {
    width: 100%;
    padding: 14px;
    font-size: 1.05rem;
    margin-top: 8px;
    justify-content: center;
}

/* Results */
.calc-results {
    margin-top: 28px;
    display: none;
}

.calc-results.active {
    display: block;
}

.calc-results h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-light);
}

.result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.result-item {
    background: var(--bg);
    padding: 16px;
    border-radius: 8px;
    text-align: center;
}

.result-item .label {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.result-item .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.result-item .value small {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-light);
}

.result-item--highlight {
    background: var(--primary);
    grid-column: 1 / -1;
}

.result-item--highlight .label {
    color: rgba(255,255,255,0.8);
}

.result-item--highlight .value {
    color: var(--white);
    font-size: 2rem;
}

.result-cta {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-light), #f0fdf4);
    border-radius: 8px;
    text-align: center;
    border: 1px solid #bbf7d0;
}

.result-cta p {
    font-size: 0.95rem;
    margin-bottom: 12px;
    color: var(--dark);
}

/* ===== ENERGIEVERGELIJKER PAGE ===== */
.vergelijker-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}

.vergelijker-intro h1 {
    font-size: 2.25rem;
    margin-bottom: 12px;
}

.vergelijker-intro p {
    color: var(--text-light);
    font-size: 1.05rem;
}

.vergelijker-widget {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    min-height: 400px;
}

.vergelijker-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.benefit-item {
    text-align: center;
    padding: 24px;
}

.benefit-item svg {
    width: 40px;
    height: 40px;
    color: var(--primary);
    margin-bottom: 12px;
}

.benefit-item h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.benefit-item p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ===== TIPS / INFO SECTION ===== */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.tip-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

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

.tip-card__img {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tip-card__img svg {
    width: 100%;
    height: 100%;
}

.tip-card__img--standby { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.tip-card__img--thermo { background: linear-gradient(135deg, #fee2e2, #fecaca); }
.tip-card__img--solar { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }

.tip-card__body {
    padding: 24px;
}

.tip-card__body h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.tip-card__body p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 16px;
}

.tip-card__body a {
    font-weight: 600;
    font-size: 0.9rem;
}

/* ===== BLOG / ARTICLES ===== */
.article-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.article-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.article-card:hover {
    box-shadow: var(--shadow-lg);
}

.article-card__thumb {
    height: 180px;
    background: linear-gradient(135deg, #dcfce7, #e0f2fe);
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-card__body {
    padding: 24px;
}

.article-card__body .meta {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.article-card__body h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.article-card__body h3 a {
    color: var(--dark);
}

.article-card__body h3 a:hover {
    color: var(--primary);
}

.article-card__body p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ===== PAGE HERO VARIANT ===== */
.hero--page {
    background: linear-gradient(135deg, var(--primary) 0%, #0f766e 50%, var(--secondary-dark) 100%);
}

.hero--page .hero-inner {
    min-height: 380px;
}

.hero--page .hero-visual svg {
    max-width: 340px;
}

/* ===== INFO CARDS ===== */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.info-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

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

.info-card__icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.info-card h3 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.info-card__value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 4px 0;
}

.info-card__sub {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ===== BAR CHART ===== */
.bar-chart {
    max-width: 700px;
    margin: 0 auto;
}

.bar-item {
    display: grid;
    grid-template-columns: 140px 1fr 100px;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.bar-item__label {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: right;
    color: var(--dark);
}

.bar-item__track {
    height: 28px;
    background: var(--border);
    border-radius: 14px;
    overflow: hidden;
}

.bar-item__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #4ade80);
    border-radius: 14px;
    transition: width 1s ease;
}

.bar-item__fill--warn {
    background: linear-gradient(90deg, #f59e0b, #f97316);
}

.bar-item__value {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ===== NUMBERED TIPS ===== */
.tips-numbered {
    max-width: 700px;
    margin: 0 auto;
}

.tip-numbered {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.tip-numbered:last-child {
    border-bottom: none;
}

.tip-num {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--primary);
    color: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
}

.tip-numbered h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.tip-numbered p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* ===== FAQ ===== */
.faq-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.faq-item h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: var(--dark);
}

.faq-item p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.7;
}

/* ===== CTA BANNER ===== */
.cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary-dark) 100%);
    border-radius: var(--radius);
    padding: 48px;
    text-align: center;
    color: var(--white);
    margin: 40px 0;
}

.cta-banner h2 {
    color: var(--white);
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.cta-banner p {
    opacity: 0.9;
    margin-bottom: 24px;
    font-size: 1.05rem;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 48px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 16px;
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.7;
}

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

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

/* ===== SINGLE POST / PAGE ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary-dark) 100%);
    color: var(--white);
    padding: 48px 0;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    font-size: 2.25rem;
}

.page-header p {
    opacity: 0.9;
    margin-top: 8px;
}

.content-area {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 20px;
}

.content-area h2 {
    font-size: 1.5rem;
    margin: 32px 0 12px;
}

.content-area h3 {
    font-size: 1.25rem;
    margin: 24px 0 10px;
}

.content-area p {
    margin-bottom: 16px;
    line-height: 1.8;
}

.content-area ul, .content-area ol {
    margin: 0 0 16px 24px;
    line-height: 1.8;
}

.content-area table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.content-area th, .content-area td {
    padding: 12px 16px;
    border: 1px solid var(--border);
    text-align: left;
}

.content-area th {
    background: var(--primary-light);
    font-weight: 600;
}

/* ===== SIDEBAR ===== */
.with-sidebar {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px 20px;
}

.sidebar .widget {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    margin-bottom: 24px;
}

.sidebar .widget h4 {
    font-size: 1rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-light);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-inner {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-text {
        padding: 40px 0 20px;
        text-align: center;
    }

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

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-visual {
        padding: 0 0 40px;
    }

    .hero-visual svg {
        max-width: 280px;
    }

    .stats-bar .container {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        padding: 16px;
        box-shadow: var(--shadow-lg);
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
    }

    .menu-toggle {
        display: block;
    }

    .trust-bar .container {
        gap: 20px;
    }

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

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

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

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

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

    .calculator {
        padding: 24px;
    }

    .section {
        padding: 40px 0;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .hero--page .hero-inner {
        min-height: auto;
    }

    .hero--page .hero-visual svg {
        max-width: 240px;
    }

    .info-cards {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .info-card__value {
        font-size: 1.3rem;
    }

    .bar-item {
        grid-template-columns: 90px 1fr 80px;
        gap: 8px;
    }

    .bar-item__label {
        font-size: 0.75rem;
    }

    .bar-item__track {
        height: 22px;
    }

    .tip-numbered {
        gap: 14px;
    }

    .tip-num {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 0.95rem;
    }
}
