/*
Theme Name: Rijschool Babel
Description: WordPress-thema voor de website van Rijschool Babel.
Version: 1.0.1
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: rijschool-babel
*/

:root {
    color-scheme: dark;
    --babel-bg: #121212;
    --babel-text: #e3e3e3;
    --babel-blue: #49d2ff;
    --babel-yellow: #ffbf00;
    --babel-card: #384e59;
}

*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--babel-bg) url(assets/top-line.gif) repeat-x top center;
    color: var(--babel-text);
    font: 14px/1.5 Arial, Helvetica, sans-serif;
}
a { color: var(--babel-blue); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid var(--babel-blue);
    outline-offset: 3px;
}
img { display: block; max-width: 100%; }
h1, h2, h3 { color: #fff; line-height: 1.2; }
.babel-wrap { position: relative; width: min(1170px, calc(100% - 48px)); margin-inline: auto; }
.babel-hidden, .babel-honeypot {
    position: absolute;
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
}
.babel-skip:focus {
    clip-path: none;
    z-index: 20;
    width: auto;
    height: auto;
    padding: 8px;
    background: #121212;
}
.babel-road {
    position: absolute;
    inset: 143px 0 auto;
    height: 344px;
    background: url(assets/arrow.jpg) repeat-x top center;
    animation: babel-road-pan 4.733s linear infinite;
}
@keyframes babel-road-pan {
    to { background-position: calc(50% + 142px) top; }
}
@media (prefers-reduced-motion: reduce) {
    .babel-road { animation: none; }
}
.admin-bar .babel-road { margin-top: 32px; }
.babel-header {
    min-height: 107px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 29px 64px 14px 0;
}
.babel-logo { display: inline-block; padding-top: 6px; }
.babel-phone {
    background: url(assets/bull_telephone.gif) no-repeat center left;
    color: white;
    font: 30px/1.5 Georgia, serif;
    padding-left: 57px;
    white-space: nowrap;
    text-decoration: none;
}
.babel-nav {
    min-height: 70px;
    display: flex;
    align-items: center;
    padding: 0 36px;
    background: #181818 url(assets/top-menu.gif) repeat-x top;
    border-bottom: 1px solid #6b6b6b;
}
.babel-nav a {
    color: var(--babel-yellow);
    font-size: 18px;
    text-decoration: none;
    text-transform: uppercase;
}
.babel-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 20px;
    padding-right: 20px;
}
.babel-card {
    background: var(--babel-card);
    border-radius: 6px;
    padding: 24px 21px 14px;
}
.babel-card h2, .babel-content h2 {
    position: relative;
    margin: 0 0 25px;
    padding-bottom: 10px;
    font-size: 18px;
    text-transform: uppercase;
}
.babel-card h2 { border-bottom: 2px solid #82929a; }
.babel-card h2::after {
    content: "";
    position: absolute;
    inset: auto auto -2px 0;
    width: 30px;
    border-bottom: 2px solid var(--babel-blue);
}
.babel-card h2 span { color: var(--babel-blue); }
.babel-card p { margin: 0 0 10px; }
.babel-card address { font-style: normal; margin-bottom: 17px; }
.babel-card address a { color: inherit; text-decoration: none; }
.babel-snippet + .babel-snippet { margin-top: 18px; }
.babel-snippet p { margin: 3px 0; }
.babel-snippet-title { display: block; margin-top: 3px; }
.babel-snippet time, .babel-snippet a {
    display: block;
    text-align: right;
    font-style: italic;
}
.babel-snippet time { color: #b6c4ca; font-size: 13px; }
.babel-snippet a { color: #fff; }
.babel-all-reviews { display: inline-block; margin-top: 8px; }
.babel-button {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 15px;
    border: 0;
    border-radius: 6px;
    background: var(--babel-yellow);
    color: #111;
    font: 14px/1.4 Arial, Helvetica, sans-serif;
    text-decoration: none;
    cursor: pointer;
}
.babel-button:hover { background: var(--babel-blue); }
.babel-callback { display: grid; justify-items: start; gap: 16px; padding-bottom: 16px; }
.babel-callback input, .babel-form input, .babel-form textarea, .babel-form select {
    width: 100%;
    background: #f5f5f5;
    color: #202020;
    border: 1px solid #b7c1c6;
    border-radius: 3px;
    font: inherit;
}
.babel-callback input { max-width: 165px; min-height: 29px; padding: 3px 6px; }
.babel-form input, .babel-form textarea, .babel-form select { min-height: 40px; padding: 9px 10px; }
.babel-form textarea { resize: vertical; }
.babel-form { display: grid; gap: 10px; max-width: 560px; justify-items: start; }
.babel-form label:not(.babel-hidden) { margin-top: 4px; }
.babel-contact-dialog {
    width: min(560px, calc(100% - 36px));
    padding: 0;
    border: 0;
    background: transparent;
    color: white;
}
.babel-contact-dialog::backdrop { background: rgba(46, 49, 62, .92); }
.babel-contact-dialog:not([open]):target { display: block; position: relative; margin-bottom: 36px; }
.babel-dialog-head { display: flex; justify-content: space-between; align-items: center; }
.babel-dialog-head h2 { margin: 0 0 9px; font-size: 18px; }
.babel-close { background: transparent; border: 0; color: white; font: 32px/1 Arial, sans-serif; cursor: pointer; }
.babel-status { padding: 6px 8px; background: #202b31; border-radius: 4px; }
.babel-content { margin: 50px auto 42px; padding-top: 20px; border-top: 1px solid #343434; }
.babel-content h2 { border-bottom: 1px dashed #849196; margin-bottom: 25px; padding-bottom: 7px; }
.babel-content .babel-info { gap: 20px; margin-bottom: 0; }
.babel-info p { margin: 13px 0; }
.babel-info .babel-lesson-car {
    width: 270px;
    height: auto;
    border: 2px solid #9fa4a8;
    border-radius: 4px;
    margin-bottom: 16px;
}
.babel-content .babel-rates { margin: 0; }
.babel-rates table { max-width: 290px; color: white; line-height: 1.2; }
.babel-rates thead, .babel-rates td, .babel-rates th { border: 0; padding: 0; text-align: left; }
.babel-rates th { padding-bottom: 13px; font-weight: normal; }
.babel-rates tr:nth-child(3) td, .babel-rates tr:nth-child(7) td { padding-top: 12px; }
.babel-notes { font-size: 13px; }
.babel-review { margin-top: 14px; padding: 13px 15px; background: #263138; border-radius: 4px; }
.babel-review:target { outline: 2px solid var(--babel-yellow); }
.babel-review h3 { margin: 9px 0 0; }
.babel-review p { margin: 6px 0 3px; }
.babel-review time { margin-left: 6px; }
.babel-rating { margin-left: 6px; color: var(--babel-yellow); }
.babel-pagination { display: flex; gap: 6px; }
.babel-pagination a { min-width: 30px; padding: 3px 6px; text-align: center; border: 1px solid #82929a; }
.babel-pagination [aria-current] { color: #111; background: var(--babel-yellow); }
.babel-footer { background: #090a0a; padding: 25px 0; color: #b4b4b4; }
.babel-whatsapp {
    position: fixed;
    right: 22px;
    bottom: 32px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    background: #36ae4d;
    color: white;
    box-shadow: 0 2px 8px #0006;
    border-radius: 50%;
}
@media (max-width: 781px) {
    .babel-header { padding-right: 0; align-items: center; }
    .babel-cards { grid-template-columns: 1fr; gap: 14px; padding-right: 0; }
    .babel-content .babel-info { gap: 24px; }
    .babel-nav { min-height: 55px; padding-inline: 20px; margin-bottom: 12px; }
}
@media (max-width: 540px) {
    .babel-wrap { width: calc(100% - 28px); }
    .babel-header { flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 13px; }
    .babel-logo { width: min(100%, 285px); }
    .babel-phone { font-size: 23px; padding-left: 42px; background-size: 31px; }
    .babel-whatsapp { right: 14px; bottom: 16px; }
}
