/*
Theme Name: Clivento
Theme URI: https://cliventoairconditioning.nl/
Author: Clivento Airconditioning
Description: Licht maatwerkthema voor Clivento Airconditioning. Zet bij activeren automatisch de pagina's, het menu en de homepage klaar.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: clivento
License: GPL-2.0-or-later
*/

:root {
  --navy: #0b1b33;
  --navy-2: #132a4d;
  --ice: #2bb3ea;
  --ice-dark: #138fc4;
  --ice-soft: #e8f6fc;
  --ink: #1b2533;
  --muted: #5b6b80;
  --line: #e1e7ef;
  --bg-alt: #f4f7fb;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 27, 51, .08);
  --container: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.65; font-size: 17px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ice-dark); }
a:hover { color: var(--navy); }
h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-alt); }
.mt { margin-top: 1.2rem; }
.small { font-size: .9rem; color: var(--muted); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

/* Skip link */
.skip { position: absolute; left: -9999px; top: 0; background: var(--ice); color: var(--navy); padding: 10px 16px; z-index: 1000; font-weight: 600; }
.skip:focus { left: 10px; top: 10px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: 14px 26px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; transition: background .2s, color .2s, border-color .2s, transform .2s; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ice); color: var(--navy); }
.btn-primary:hover { background: var(--ice-dark); color: var(--white); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-2); color: var(--white); }
.btn-ghost { border-color: rgba(255,255,255,.5); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); color: var(--white); }
.btn-sm { padding: 9px 18px; font-size: .95rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(11, 27, 51, .97); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255,255,255,.08); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); font-weight: 800; font-size: 1.25rem; line-height: 1.1; }
.brand:hover { color: var(--white); }
.brand small { display: block; font-weight: 500; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ice); }
.brand img { width: auto; max-height: 48px; }
.logo-ph { width: 44px; height: 44px; border-radius: 10px; border: 2px dashed var(--ice); display: grid; place-items: center; font-size: .6rem; letter-spacing: .08em; color: var(--ice); }
.menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.menu a { color: rgba(255,255,255,.85); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: .98rem; }
.menu a:hover, .menu .current-menu-item > a, .menu a[aria-current="page"] { color: var(--white); background: rgba(255,255,255,.08); }
.menu .menu-cta a { color: var(--navy); background: var(--ice); padding: 9px 18px; border-radius: 999px; margin-left: 8px; font-weight: 600; }
.menu .menu-cta a:hover { background: var(--white); color: var(--navy); }
.burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .burger { display: block; }
  .menu { position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); flex-direction: column; align-items: stretch; padding: 12px 20px 24px; gap: 2px; display: none; border-bottom: 1px solid rgba(255,255,255,.08); }
  .menu.open { display: flex; }
  .menu a { display: block; padding: 12px 14px; }
  .menu .menu-cta a { margin: 10px 0 0; text-align: center; }
}

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(43,179,234,.25), transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: rgba(255,255,255,.88); padding: clamp(64px, 10vw, 120px) 0; }
.hero h1 { color: var(--white); }
.hero h1 em { font-style: normal; color: var(--ice); display: block; }
.page-hero { padding: clamp(56px, 8vw, 96px) 0; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.page-hero .hero-grid { grid-template-columns: minmax(0, 760px); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.hero .lead { color: rgba(255,255,255,.8); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: .95rem; }
.hero-points li::before { content: "✓"; color: var(--ice); font-weight: 700; margin-right: 8px; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ice-dark); margin-bottom: 14px; }
.eyebrow-light { color: var(--ice); }

/* Photo placeholders */
.ph { aspect-ratio: 4 / 3; border-radius: var(--radius); border: 2px dashed #b9c7d8; background: repeating-linear-gradient(45deg, #eef3f8, #eef3f8 12px, #f6f9fc 12px, #f6f9fc 24px); display: grid; place-items: center; text-align: center; color: var(--muted); font-weight: 700; letter-spacing: .06em; padding: 20px; }
.ph span { display: block; font-weight: 400; font-size: .85rem; letter-spacing: 0; margin-top: 6px; }
.hero .ph { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.05); color: rgba(255,255,255,.7); }
.photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Layout grids */
.section-head { max-width: 720px; margin-bottom: 44px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) {
  .hero-grid, .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
}

/* Cards */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); transition: transform .2s; }
.card:hover { transform: translateY(-3px); }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.icon { width: 54px; height: 54px; border-radius: 14px; background: var(--ice-soft); display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 18px; }
.more { font-weight: 600; text-decoration: none; }
.more::after { content: " →"; }

/* Check lists */
.checks { list-style: none; padding: 0; margin: 0 0 28px; }
.checks li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--ice-soft); color: var(--ice-dark); font-size: .8rem; font-weight: 700; display: grid; place-items: center; }
.panel-dark .checks li::before { background: rgba(43,179,234,.2); color: var(--ice); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--ice); font-weight: 800; margin-bottom: 16px; }
.steps p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Split panels */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); }
.panel-dark { background: var(--navy); color: rgba(255,255,255,.85); }
.panel-dark h3 { color: var(--white); }
.panel-light { background: var(--white); border: 1px solid var(--line); }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 600; color: var(--navy); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--ice-dark); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 24px 20px; margin: 0; color: var(--muted); }

/* CTA */
.cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: linear-gradient(120deg, var(--ice) 0%, #7fd3f3 100%); border-radius: 20px; padding: clamp(28px, 5vw, 52px); }
.cta h2 { margin-bottom: .3em; }
.cta p { margin: 0; color: var(--navy); }

/* Prose (gewone WordPress-pagina's) */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose img { border-radius: var(--radius); }

/* Contact */
.form-wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .form-wrap { grid-template-columns: 1fr; } }
.contact .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .contact .row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--navy); font-size: .95rem; }
.field input, .field select, .field textarea, .wpcf7 input:not([type=submit]):not([type=checkbox]), .wpcf7 textarea, .wpcf7 select { width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; color: var(--ink); background: var(--white); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ice); box-shadow: 0 0 0 4px rgba(43,179,234,.15); }
.field textarea { min-height: 150px; resize: vertical; }
.consent { font-size: .92rem; color: var(--muted); }
.consent input { margin-right: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { display: none; background: #fdecec; border: 1px solid #f5b5b5; color: #8a1c1c; padding: 14px 16px; border-radius: 10px; margin-bottom: 20px; }
.alert.show { display: block; }
.info-box { background: var(--bg-alt); border-radius: var(--radius); padding: 30px; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.7); padding: 64px 0 28px; font-size: .95rem; }
.site-footer h3 { color: var(--white); font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255,255,255,.8); text-decoration: none; }
.site-footer a:hover { color: var(--ice); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; font-size: .88rem; }

/* WordPress-standaarden */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.wp-block-button__link { border-radius: 999px; }
:focus-visible { outline: 3px solid var(--ice); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
