/*
Theme Name: Sparetron
Description: Sparetron's appliance parts and coffee machine service theme.
Version: 1.0.9
Text Domain: sparetron
*/

:root {
  --sparetron-body-font: Inter, system-ui, sans-serif;
  --sparetron-heading-font: "Libre Baskerville", Georgia, serif;
  --paper: #f6f4ed;
  --ink: #202a22;
  --green: #203b32;
  --accent: #f5cf73;
  --line: #d9d9cd;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  display: flex; flex-direction: column; min-height: 100vh; margin: 0;
  color: var(--ink); background: var(--paper); font: 400 1rem/1.6 var(--sparetron-body-font);
}
body > main { flex: 1 0 auto; }
body.admin-bar { min-height: calc(100vh - var(--wp-admin--admin-bar--height, 32px)); }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4, h5, h6, .wordmark {
  font-family: var(--sparetron-heading-font); font-weight: 600;
}
b, strong { font-weight: 600; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid #a06215;
  outline-offset: 4px;
}
.wrap { width: min(100% - 2.5rem, 72rem); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap, .site-footer .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem 2rem; padding-block: 1.25rem;
}
.wordmark { font-size: 1.65rem; letter-spacing: -.035em; text-decoration: none; }
.site-header .custom-logo-link { display: block; max-width: min(12rem, 100%); }
.site-header .custom-logo { display: block; width: auto; height: auto; max-width: 100%; max-height: 3.5rem; }
.site-header nav ul { list-style: none; margin: 0; padding: 0; }
.site-header nav > ul { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.site-header nav .sub-menu { padding-inline-start: .75rem; }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover, .site-header nav .current-menu-item > a { color: #59614d; }
.hero { background: var(--green); color: var(--paper); padding-block: clamp(4rem, 13vw, 10rem); }
h1, h2 { line-height: 1.1; letter-spacing: -.035em; margin: 0 0 .4em; }
h1 { font-size: 3rem; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.hero p, .intro { max-width: 46ch; font-size: 1.16rem; }
.button {
  display: inline-block; background: var(--accent); color: var(--ink); border: 0;
  border-radius: .25rem; padding: .75rem 1.15rem; font: inherit;
  text-decoration: none; cursor: pointer;
}
.button:hover { background: #ffe193; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }
.button-outline { border: 1px solid currentColor; color: var(--paper); background: transparent; }
.button-outline:hover { background: var(--paper); color: var(--green); }
.section { padding-block: clamp(2.75rem, 7vw, 5rem); }
.section p { max-width: 55ch; }
.site-footer { border-top: 1px solid var(--line); }
.booking-layout { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.booking-process { padding-inline-start: 1.5rem; }
.booking-process li + li { margin-top: .65rem; }
.booking-process li::marker { font-weight: 600; color: var(--green); }
.booking-form { display: grid; gap: 1rem; padding: clamp(1rem, 4vw, 2rem); background: #fff; border: 1px solid var(--line); }
.booking-form [hidden] { display: none; }
.booking-step { display: grid; gap: 1rem; min-width: 0; }
.booking-step h2 { font-size: 1.55rem; margin-bottom: .15rem; }
.booking-form label { display: grid; gap: .3rem; }
.booking-form input:not([type="radio"]):not([type="checkbox"]), .booking-form textarea {
  width: 100%; min-width: 0; border: 1px solid #8f988a; border-radius: .2rem;
  padding: .65rem; font: inherit; color: var(--ink); background: white;
}
.booking-form textarea { resize: vertical; }
.booking-options { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; min-width: 0; padding: 0; margin: 0; border: 0; }
.booking-options legend { padding: 0; margin-bottom: .35rem; font-weight: 600; }
.booking-options label { display: inline-flex; align-items: baseline; gap: .55rem; font-weight: 400; }
.booking-options input { flex: none; margin: 0; accent-color: var(--green); }
.booking-options-stack { flex-direction: column; }
.booking-fields, .booking-review { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1rem; }
.booking-address { grid-template-columns: minmax(0, .6fr) minmax(0, 1.5fr) minmax(0, 1fr); }
.booking-fields input:disabled { background: var(--paper); }
.booking-rates { margin-bottom: 0; padding-inline-start: 1.4rem; }
.booking-step p { margin: 0; }
.booking-review ul { margin: 0; padding-inline-start: 1.25rem; }
.booking-review li { margin-bottom: .55rem; white-space: pre-line; overflow-wrap: anywhere; }
.booking-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.booking-form .booking-actions .button {
  grid-column: 2; grid-row: 1; place-self: stretch; min-width: 0;
  padding-inline: .6rem; border: 1px solid transparent; overflow-wrap: anywhere;
}
.booking-form .booking-actions .booking-back {
  grid-column: 1; border-color: currentColor; color: var(--green); background: transparent;
}
.booking-form .booking-actions .booking-back:hover { color: var(--ink); }
.booking-form .button:disabled { opacity: .55; cursor: not-allowed; }
.booking-form .button { justify-self: start; }
.notice { border-inline-start: .3rem solid var(--green); padding: .5rem 1rem; background: #fff; }
@media (max-width: 46rem) { .booking-layout { grid-template-columns: 1fr; } }
@media (max-width: 32rem) {
  .booking-fields, .booking-address, .booking-review { grid-template-columns: minmax(0, 1fr); }
}
