/*
Theme Name: EL trading
Template: twentytwentyfive
Description: Website van EL Trading B.V.: Mijn Energie, service en advies, groothandel, Curaçao en Ibiza. Child-thema van Twenty Twenty-Five.
Author: EL Trading B.V.
Version: 1.0.0
Requires at least: 6.6
Text Domain: eltrading
*/

/* ---------- Basis ---------- */
.elt-main { padding-top: 0; }
.elt-main > .alignfull:first-child { margin-top: 0; }
:where(.elt-main) > * + .alignfull { margin-block-start: 0; }
.elt-section { padding-block: var(--wp--preset--spacing--60); }
.elt-eyebrow {
  font-size: 0.8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--wp--preset--color--blauw); margin: 0;
}
.elt-lead { font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--tekst-zacht); max-width: 38em; }
.elt-muted { color: var(--wp--preset--color--tekst-zacht); }
.elt-small { font-size: .875rem; }
h1, h2, h3 { text-wrap: balance; }

/* ---------- Kleurvlakken ---------- */
.elt-white { background: #fff; }
.elt-light { background: var(--wp--preset--color--licht); }
.elt-yellow { background: var(--wp--preset--color--geel); }
.elt-dark { background: var(--wp--preset--color--navy); color: #e8eef5; }
.elt-dark :where(h1, h2, h3, h4) { color: #fff; }
.elt-dark .elt-lead, .elt-dark .elt-muted { color: #b8c4d2; }
.elt-dark .elt-eyebrow { color: var(--wp--preset--color--geel); }
.elt-dark a:where(:not(.wp-element-button)) { color: #7ab8ff; }

/* ---------- Kop ---------- */
.elt-header { background: var(--wp--preset--color--navy); padding-block: 14px; }
.elt-header__bar { gap: 12px 28px; }
.elt-logo { display: inline-flex; align-items: center; min-height: 44px; }
.elt-logo img { height: clamp(36px, 4vw, 44px); width: auto; display: block; }
.elt-nav { font-weight: 600; font-size: .9375rem; gap: 4px 22px; }
.elt-nav a { color: #e8eef5 !important; text-decoration: none; padding-block: 10px; }
.elt-nav a:hover, .elt-nav .current-menu-item a { color: var(--wp--preset--color--geel) !important; }
.elt-nav .wp-block-navigation__responsive-container-open { color: #fff; min-width: 44px; min-height: 44px; }
.elt-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 24px max(16px, 4vw); }
.elt-nav .wp-block-navigation__responsive-container.is-menu-open a { font-size: 1.25rem; }
.elt-header__cta { gap: 10px; }
.elt-header__cta .wp-element-button { padding: .6rem 1.1rem; font-size: .9375rem; }
@media (max-width: 1180px) {
  .elt-header .elt-header__cta.wp-block-buttons { display: none; }
}
@media (min-width: 1181px) {
  .elt-header__bar { flex-wrap: nowrap !important; }
  .elt-nav { flex: 1 1 auto; justify-content: center; }
  .elt-nav .wp-block-navigation__container { flex-wrap: nowrap; gap: 4px 20px; }
  .elt-header__cta { flex-wrap: nowrap; flex: none; }
  .elt-nav a { white-space: nowrap; }
}

/* ---------- Knoppen ---------- */
.wp-block-button.is-style-outline > .wp-element-button { background: transparent; border: 2px solid currentColor; color: var(--wp--preset--color--navy); }
.elt-dark .wp-block-button.is-style-outline > .wp-element-button,
.elt-header .wp-block-button.is-style-outline > .wp-element-button { color: #e8eef5; }
.wp-block-button.elt-btn-geel > .wp-element-button { background: var(--wp--preset--color--geel); color: var(--wp--preset--color--navy); }
.wp-block-button.is-style-outline.elt-btn-geel > .wp-element-button { background: transparent; color: var(--wp--preset--color--geel); }
.wp-block-button.elt-btn-donker > .wp-element-button { background: var(--wp--preset--color--navy); color: #fff; font-size: 1.125rem; }
.wp-element-button { min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- Kaarten en lijsten ---------- */
.elt-card {
  background: #fff; border: 1px solid var(--wp--preset--color--lijn); border-radius: var(--wp--custom--radius);
  padding: clamp(18px, 2.5vw, 26px);
}
.elt-card > * { margin-block: 0; }
.elt-card > * + * { margin-block-start: .5rem; }
.elt-card h3 { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); }
.elt-card a { text-decoration: none; color: inherit; }
.elt-card--soft { background: var(--wp--preset--color--licht); }
.elt-card--green { background: var(--wp--preset--color--blauw-zacht); border-color: #cfe2fb; }
.elt-card--dark { background: var(--wp--preset--color--navy-2); border-color: #23394f; color: #e8eef5; }
.elt-icon { width: 30px; height: 30px; color: var(--wp--preset--color--blauw); }
.elt-step { font-size: .8125rem; font-weight: 700; color: var(--wp--preset--color--blauw); }
.elt-dark .elt-step { color: var(--wp--preset--color--geel); }

ul.elt-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
ul.elt-checks li { position: relative; padding-left: 2.1rem; }
ul.elt-checks li::before {
  content: "✓"; position: absolute; left: 0; top: .1em; width: 1.5rem; height: 1.5rem; border-radius: 50%;
  display: grid; place-items: center; font-size: .8rem; font-weight: 700;
  background: #e8f5ee; color: #17703d;
}
.elt-dark ul.elt-checks li::before { background: #1f9d55; color: #fff; }
ul.elt-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
ul.elt-chips li { padding: 6px 14px; border-radius: 999px; background: #ffe08a; font-weight: 600; font-size: .9rem; }
ul.elt-chips.elt-chips--merk li { background: #fff; border: 1.5px solid #c9d2dc; border-radius: 10px; font-weight: 700; }

/* ---------- Tarief ---------- */
.elt-price { background: var(--wp--preset--color--navy); color: #e8eef5; border-radius: 20px; padding: clamp(22px, 3vw, 32px); }
.elt-price .elt-price__amount { font-family: var(--wp--preset--font-family--kop); font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 700; line-height: 1; color: #fff; margin: 0; }

/* ---------- Foto's en video ---------- */
.elt-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--wp--custom--radius); }
.elt-photo--wide img { aspect-ratio: 16 / 9; }
.elt-photo--top img { object-position: 50% 30%; }
.elt-photo figcaption { text-align: left; margin-top: .5rem; }
.elt-video video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; background: var(--wp--preset--color--navy); }
.elt-video--portrait video { aspect-ratio: 9 / 16; max-height: 640px; }

/* ---------- Schermvoorbeelden Mijn Energie ---------- */
.elt-shot { background: #fff; color: #14171c; border-radius: var(--wp--custom--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; line-height: 1.4; }
.elt-shot b, .elt-shot strong { font-family: var(--wp--preset--font-family--kop); }
.elt-shot__bars { display: flex; align-items: flex-end; gap: 2px; height: 120px; }
.elt-shot__bars > span { flex: 1; border-radius: 2px 2px 0 0; }
.elt-shot__pairs { display: flex; align-items: flex-end; gap: 6px; height: 120px; }
.elt-shot__pairs > span { flex: 1; display: flex; gap: 2px; align-items: flex-end; height: 100%; }
.elt-shot__pairs > span > span { flex: 1; }
.elt-shot__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; }
.elt-shot__track { grid-column: 1 / -1; height: 10px; border-radius: 5px; background: #eef1f5; display: flex; }
.elt-shot__track > span { border-radius: 5px; }
.elt-shot__legend { display: flex; flex-wrap: wrap; gap: 6px 14px; color: #5a6270; font-size: 12px; }
.elt-shot__legend i { display: inline-block; width: 9px; height: 9px; margin-right: 4px; }
.elt-shot__label { font-size: 11px; color: #5a6270; font-weight: 600; }
.elt-shot__item { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; border: 1px solid #dfe5ec; border-radius: 6px; }
.elt-shot__tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.elt-shot__tiles > span { padding: 8px; border-radius: 8px; background: #eef1f5; display: flex; flex-direction: column; }
.elt-shot__tiles b { font-size: 16px; }
.elt-shot__code { display: flex; gap: 6px; }
.elt-shot__code span { flex: 1; height: 34px; border: 1.5px solid #c9d2dc; border-radius: 8px; display: grid; place-items: center; font-family: var(--wp--preset--font-family--kop); font-weight: 700; }
.elt-shot--step { min-height: 170px; }
.elt-device { background: #171b21; border-radius: 18px; padding: 14px; box-shadow: 0 24px 60px rgba(13, 27, 42, .22); }
.elt-device__dots { display: flex; gap: 6px; padding: 2px 4px 12px; align-items: center; color: #9aa3b2; font-size: 11px; }
.elt-device__dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a4250; }
.elt-device__screen { background: #1b1f25; border: 1px solid #2a313b; border-radius: 12px; padding: 16px; color: #e8ebf0; }
.elt-device svg { width: 100%; height: auto; display: block; }
.elt-flow { fill: none; stroke-width: 3; stroke-dasharray: 2 8; stroke-linecap: round; animation: elt-dash 1s linear infinite; }
.elt-flow--rev { animation-direction: reverse; }
@keyframes elt-dash { to { stroke-dashoffset: -10; } }
@media (prefers-reduced-motion: reduce) { .elt-flow { animation: none; } }

/* ---------- Partnerbalk en contact ---------- */
.elt-partner { background: var(--wp--preset--color--navy); color: #e8eef5; border-radius: 18px; padding: clamp(22px, 3vw, 32px); }
.elt-partner h3 { color: #fff; }
.elt-contact-card { background: var(--wp--preset--color--licht); border-radius: var(--wp--custom--radius); padding: 20px; }
.elt-contact-card p { margin: 0; }

/* ---------- Voettekst ---------- */
.elt-footer { background: var(--wp--preset--color--navy); color: #b8c4d2; font-size: .875rem; padding-block: 32px; }
.elt-footer a { color: #e8eef5; }
.elt-footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* ---------- Telefoon ---------- */
@media (max-width: 781px) {
  .elt-section { padding-block: 3rem; }
  .wp-block-buttons > .wp-block-button { flex: 1 1 auto; }
  .wp-block-buttons > .wp-block-button > .wp-element-button { width: 100%; justify-content: center; }
}

/* ---------- Correcties na controle ---------- */
/* Kaarten met kolommen erin: inhoud over de volle breedte, niet versmald tot de tekstbreedte */
.elt-card.is-layout-constrained > *, .elt-partner.is-layout-constrained > *, .elt-price.is-layout-constrained > * { max-width: none; margin-left: 0 !important; margin-right: 0 !important; }
/* Schermvoorbeelden en foto's vullen hun kolom */
.is-layout-flex.is-vertical > .elt-shot, .is-layout-flex.is-vertical > .elt-device, .is-layout-flex.is-vertical > .wp-block-image { align-self: stretch; }
.elt-shot, .elt-device { box-sizing: border-box; width: 100%; }
.elt-photo { margin: 0; }
.elt-video--portrait video { max-height: 560px; }
.wp-block-image.elt-photo img { height: auto; }

/* Rasters: altijd de volle breedte vullen (auto-fit), minimale kolombreedte per raster */
.elt-grid { --elt-min: 16rem; }
.elt-grid-10 { --elt-min: 10rem; } .elt-grid-13 { --elt-min: 13rem; } .elt-grid-14 { --elt-min: 14rem; }
.elt-grid-15 { --elt-min: 15rem; } .elt-grid-17 { --elt-min: 17rem; } .elt-grid-18 { --elt-min: 18rem; }
.elt-grid.is-layout-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--elt-min)), 1fr)) !important; }
.is-layout-flex.is-vertical > .elt-grid, .is-layout-flex.is-vertical > .wp-block-columns { align-self: stretch; width: 100%; }
@media (max-width: 781px) { .wp-block-video.elt-video--portrait { max-width: 340px; margin-inline: auto; } }
@media (min-width: 1181px) { .elt-nav .elt-nav-contact { display: none; } }

/* Feiten onder de opening: sinds 2008, 9 jaar advies */
.elt-facts { margin-top: clamp(2rem, 5vw, 3.5rem) !important; padding-top: clamp(1.5rem, 3vw, 2rem); border-top: 1px solid var(--wp--preset--color--lijn); }
.elt-fact { gap: .15rem !important; }
.elt-fact p { margin: 0; }
.elt-fact .elt-fact__big { font-family: var(--wp--preset--font-family--kop); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.1; color: var(--wp--preset--color--blauw); }
/* Placeholderfoto's: rustig kader */
.elt-photo img[src*="foto-placeholder"] { background: #fff; border: 1px solid var(--wp--preset--color--lijn); }
/* Privacypagina */
.elt-privacy h2 { font-size: var(--wp--preset--font-size--x-large); margin-top: 2.25rem; }
.elt-privacy table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.elt-privacy th, .elt-privacy td { text-align: left; vertical-align: top; padding: .6rem .75rem; border-bottom: 1px solid var(--wp--preset--color--lijn); }
.elt-privacy th { background: var(--wp--preset--color--licht); font-family: var(--wp--preset--font-family--kop); font-weight: 600; }

/* Huisstijl EL trading / Blij met Zonnepanelen */
body { font-size: 15px; }
@media (max-width: 781px) { body { font-size: 14px; } }
.wp-element-button { min-height: 48px; }
.elt-header .wp-element-button { min-height: 44px; }
.elt-shot__code span:last-child { border-color: var(--wp--preset--color--blauw) !important; }
em, i:not([class]) { font-style: normal; }

/* ================= Telefoon (≤ 781px): compact, swipen in plaats van eindeloos scrollen ================= */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (max-width: 781px) {
  .elt-section { padding-block: 2.25rem; }
  .elt-main h1 { font-size: clamp(1.9rem, 8.4vw, 2.25rem); }
  .elt-main h2 { font-size: clamp(1.5rem, 6.6vw, 1.75rem); }
  .elt-lead { font-size: 1rem; }
  .elt-hide-mobile { display: none !important; }
  .elt-main .wp-block-columns { gap: 1.25rem; }

  /* Rij om te swipen, tot aan de schermrand */
  .elt-grid.elt-swipe.is-layout-grid {
    display: flex !important; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    gap: 12px; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    margin-inline: calc(var(--wp--style--root--padding-left, 16px) * -1) !important;
    padding-inline: var(--wp--style--root--padding-left, 16px);
    scroll-padding-inline: var(--wp--style--root--padding-left, 16px);
    padding-bottom: 4px;
  }
  .elt-grid.elt-swipe::-webkit-scrollbar { display: none; }
  .elt-grid.elt-swipe > * { flex: 0 0 82%; max-width: 340px; scroll-snap-align: start; margin: 0 !important; }
  .elt-grid.elt-swipe > .wp-block-image { flex-basis: 86%; }

  /* Diensten als compacte tegels, twee per rij */
  .elt-grid.elt-tiles.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; }
  .elt-tiles .elt-card { padding: 14px; gap: 6px !important; }
  .elt-tiles .elt-card p.elt-muted { display: none; }
  .elt-tiles .elt-card h3 { font-size: 1rem; }
  .elt-tiles .elt-icon { width: 24px; height: 24px; }
  .elt-tiles > :last-child:nth-child(odd) { grid-column: 1 / -1; }

  /* Feiten naast elkaar */
  .elt-grid.elt-facts.is-layout-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px; margin-top: 1.75rem !important; padding-top: 1.25rem; }
  .elt-fact .elt-fact__big { font-size: 1.125rem; }
  .elt-fact .elt-small { font-size: .75rem; line-height: 1.35; }

  /* Hero: knoppen onder elkaar, kleiner */
  .elt-main .wp-block-buttons { gap: 10px; }
  .wp-element-button { font-size: .9375rem; padding: .75rem 1.1rem; }

  /* Kaarten en schermvoorbeelden iets compacter */
  .elt-card { padding: 16px; }
  .elt-shot { padding: 12px; }
  .elt-shot__bars, .elt-shot__pairs { height: 90px; }
  .elt-card--dark .wp-block-columns { gap: 1rem; }
  .elt-partner { padding: 18px; }
  .elt-video--portrait { display: none; }
  .elt-photo--wide img { aspect-ratio: 16 / 10; }
}
@media (max-width: 781px) {
  .elt-card--dark ul.elt-checks { display: none; }
  .elt-card--dark h3 { font-size: 1.25rem; }
}
@media (max-width: 400px) { .elt-fact .elt-fact__big { font-size: 1rem; } .elt-grid.elt-facts.is-layout-grid { gap: 6px; } }

/* Gelijke hoogte schermvoorbeelden in een rij, zodat stappen, koppen en tekst op één lijn staan */
.elt-grid > .is-layout-flex.is-vertical { justify-content: flex-start; }
.elt-grid .elt-shot--step { height: 200px; min-height: 0; }
.elt-grid .elt-shot:not(.elt-shot--step) { height: 220px; }
.elt-grid .elt-shot > * { flex: none; }
.elt-grid .elt-shot .elt-shot__tiles { flex: 1; align-content: stretch; }
/* Placeholder 'Foto volgt' */
.elt-photo img[src*="foto-volgt"] { background: #f4f5f7; border: 0; }
