/* ==========================================================================
   components.css
   Reusable building blocks used on several pages: buttons, eyebrow labels,
   icon badges, pills, checklists, cards, FAQ accordion, form fields, hours list.
   Page sections are in sections.css; header and footer in layout.css.
   ========================================================================== */

/* ---------- Buttons ----------
   .qo-btn           sun yellow (main call to action)
   .qo-btn--dark     ink
   .qo-btn--outline  transparent with a border (takes the text colour) */
.qo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 14px 28px;
    border: 2px solid transparent;
    border-radius: 50px;
    background: var(--qo-sun);
    color: var(--qo-ink);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}
.qo-btn:hover { background: var(--qo-sun-dark); transform: translateY(-2px); }
.qo-btn .qo-icon { font-size: 18px; }
.qo-btn--dark { background: var(--qo-ink); color: var(--qo-white); }
.qo-btn--dark:hover { background: var(--qo-teal-dark); }
.qo-btn--outline { background: transparent; border-color: currentColor; color: inherit; }
.qo-btn--outline:hover { background: var(--qo-ink); border-color: var(--qo-ink); color: var(--qo-white); }

/* Text link with an arrow that slides on hover */
.qo-text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--qo-teal);
    font-weight: 600;
}
.qo-text-link .qo-icon { transition: transform 0.25s; }
.qo-text-link:hover .qo-icon { transform: translateX(4px); }

/* ---------- Eyebrow label above headings ---------- */
.qo-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--qo-teal);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
/* Small sparkle before the label */
.qo-eyebrow::before {
    content: "";
    width: 12px; height: 12px;
    background: var(--qo-sun);
    clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.qo-eyebrow--light { color: var(--qo-white); }

/* ---------- Section heading block ---------- */
.qo-section-head { max-width: 640px; margin-bottom: 48px; }
.qo-section-head--center { margin-inline: auto; text-align: center; }
.qo-section-head__intro { margin-top: 16px; color: var(--qo-muted); font-size: var(--qo-lead); }
.qo-section-head--light .qo-section-head__intro { color: var(--qo-on-dark-muted); }

/* ---------- Round icon badge ---------- */
.qo-icon-badge {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 56px; height: 56px;
    border-radius: 18px;
    background: var(--qo-aqua);
    color: var(--qo-teal);
    font-size: 26px;
}
.qo-icon-badge--sun { background: var(--qo-sun); color: var(--qo-ink); }

/* ---------- Pill link (service quick links) ---------- */
.qo-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid var(--qo-line);
    border-radius: 50px;
    background: var(--qo-white);
    font-size: 15px;
    font-weight: 500;
    transition: background-color 0.25s, border-color 0.25s;
}
.qo-pill .qo-icon { color: var(--qo-teal); font-size: 18px; }
.qo-pill:hover { background: var(--qo-aqua); border-color: var(--qo-aqua); }

/* ---------- Checklist ---------- */
.qo-checklist { display: grid; gap: 10px; margin-bottom: 32px; }
.qo-checklist li { display: flex; gap: 12px; align-items: flex-start; }
.qo-checklist .qo-icon {
    width: 24px; height: 24px;
    padding: 4px;
    border-radius: 50%;
    background: var(--qo-aqua);
    color: var(--qo-teal);
    stroke-width: 3;
    margin-top: 1px;
}

/* ---------- Service card (home page) ---------- */
.qo-service-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 32px;
    border: 1px solid var(--qo-line);
    border-radius: var(--qo-radius-lg);
    background: var(--qo-white);
    transition: box-shadow 0.3s, border-color 0.3s, transform 0.3s;
}
.qo-service-card:hover { border-color: transparent; box-shadow: var(--qo-shadow); transform: translateY(-4px); }
.qo-service-card__title { margin-top: 8px; }
.qo-service-card__text { color: var(--qo-muted); flex-grow: 1; }
@media (max-width: 767px) { .qo-service-card { padding: 24px; } }

/* ---------- Review card ---------- */
.qo-review-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 32px;
    border-radius: var(--qo-radius-lg);
    background: var(--qo-white);
    color: var(--qo-ink);
}
.qo-review-card__stars { display: flex; gap: 4px; color: #e0a100; font-size: 18px; }
.qo-review-card__stars .qo-icon { fill: currentColor; }
.qo-review-card__quote { flex-grow: 1; font-size: 18px; line-height: 1.55; }
.qo-review-card__who { display: flex; align-items: center; gap: 14px; line-height: 1.35; }
.qo-review-card__avatar {
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--qo-sun);
    font-weight: 700;
}
.qo-review-card__service { color: var(--qo-muted); font-size: 15px; }
@media (max-width: 767px) { .qo-review-card { padding: 24px; } }

/* ---------- FAQ accordion (native <details>) ---------- */
.qo-faq { display: grid; gap: 12px; }
.qo-faq__item {
    border-radius: var(--qo-radius-md);
    background: var(--qo-white);
    box-shadow: var(--qo-shadow-soft);
}
.qo-faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 44px;
    padding: 20px 24px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}
.qo-faq__q::-webkit-details-marker { display: none; }
.qo-faq__sign {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--qo-aqua);
    color: var(--qo-teal);
}
.qo-faq__minus, .qo-faq__item[open] .qo-faq__plus { display: none; }
.qo-faq__item[open] .qo-faq__minus { display: block; }
.qo-faq__item[open] .qo-faq__sign { background: var(--qo-sun); color: var(--qo-ink); }
.qo-faq__a { padding: 0 24px 22px; color: var(--qo-muted); }

/* ---------- Form fields ---------- */
.qo-field { display: flex; flex-direction: column; gap: 8px; }
.qo-field__label { font-weight: 600; font-size: 15px; }
.qo-field__optional { color: var(--qo-muted); font-weight: 400; }
.qo-input {
    width: 100%;
    min-height: 52px;
    padding: 12px 16px;
    border: 1px solid rgba(16, 39, 61, 0.25);
    border-radius: 14px;
    background: var(--qo-white);
    font-size: 16px;               /* 16px stops iOS zooming into the field */
    transition: border-color 0.2s, box-shadow 0.2s;
}
.qo-input:hover { border-color: var(--qo-teal); }
.qo-input:focus { outline: none; border-color: var(--qo-teal); box-shadow: 0 0 0 4px rgba(11, 95, 102, 0.18); }
.qo-textarea { min-height: 120px; resize: vertical; }
.qo-select {
    appearance: none;
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b5f66' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
}
.qo-field--check { flex-direction: row; align-items: flex-start; gap: 12px; font-size: 15px; }
.qo-check { flex-shrink: 0; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--qo-teal); }

/* Error state (set by forms.js) */
.qo-field.has-error .qo-input { border-color: #b42318; }
.qo-field__error { margin: 0; color: #b42318; font-size: 14px; font-weight: 500; }
.qo-field--check .qo-field__error { flex-basis: 100%; }
.qo-field--check.has-error { flex-wrap: wrap; }

/* Hidden spam trap */
.qo-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Opening hours list ---------- */
.qo-hours { display: grid; gap: 6px; }
.qo-hours__row { display: flex; justify-content: space-between; gap: 16px; }
.qo-hours dd { font-weight: 600; text-align: right; }
