/* ==========================================================================
   sections.css
   Page sections: home hero, split heading, why us, steps, inner page hero,
   service rows, FAQ layout, call-to-action band, contact layout, 404.
   ========================================================================== */

/* ---------- Home hero ---------- */
.qo-hero {
    position: relative;
    padding: 56px 0 var(--qo-section);
    overflow: hidden;
}
/* Soft aqua wash behind the hero, ending in a curve */
.qo-hero::before {
    content: "";
    position: absolute;
    inset: 0 var(--qo-edge) 64px;
    z-index: -1;
    border-radius: 0 0 var(--qo-radius-xl) var(--qo-radius-xl);
    background: linear-gradient(160deg, var(--qo-mist) 0%, var(--qo-aqua) 100%);
}
.qo-hero__grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    align-items: center;
    gap: 56px;
}
.qo-hero__lead { margin: 22px 0 32px; max-width: 520px; color: var(--qo-muted); font-size: var(--qo-lead); }
.qo-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.qo-hero__points { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 32px; font-weight: 500; }
.qo-hero__points li { display: inline-flex; align-items: center; gap: 8px; }
.qo-hero__points .qo-icon { color: var(--qo-teal); stroke-width: 3; }

.qo-hero__media { position: relative; }
.qo-hero__img {
    width: 100%;
    aspect-ratio: 4 / 4.2;
    object-fit: cover;
    object-position: 42% center;    /* keeps the cleaner in frame when the photo is cropped */
    border-radius: var(--qo-radius-xl);
    box-shadow: var(--qo-shadow);
}
.qo-hero__badge {
    position: absolute;
    left: -32px; bottom: 32px;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 320px;
    padding: 18px 20px;
    border-radius: var(--qo-radius-md);
    background: var(--qo-white);
    box-shadow: var(--qo-shadow);
    font-size: 15px;
    line-height: 1.45;
}

@media (max-width: 1024px) {
    .qo-hero__grid { grid-template-columns: 1fr; gap: 40px; }
    .qo-hero__img { aspect-ratio: 16 / 10; }
    .qo-hero__badge { left: 16px; bottom: 16px; }
}
@media (max-width: 767px) {
    .qo-hero { padding-top: 32px; }
    .qo-hero__actions .qo-btn { flex: 1 1 100%; }
    .qo-hero__img { aspect-ratio: 4 / 3.4; }
    .qo-hero__badge { position: static; max-width: none; margin: -40px 12px 0; position: relative; }
}

/* ---------- Heading with a button on the right ---------- */
.qo-split-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.qo-split-head .qo-section-head { margin-bottom: 0; }
@media (max-width: 767px) {
    .qo-split-head { flex-direction: column; align-items: flex-start; margin-bottom: 32px; }
}

/* ---------- Why us ---------- */
.qo-why { display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: 72px; }
.qo-why__media img { width: 100%; border-radius: var(--qo-radius-lg); aspect-ratio: 4 / 5; object-fit: cover; }
.qo-why .qo-section-head { margin-bottom: 36px; }
.qo-feature-list { display: grid; gap: 28px; }
.qo-feature { display: flex; gap: 20px; }
.qo-feature__title { margin-bottom: 6px; }
.qo-feature__text { color: var(--qo-muted); }
@media (max-width: 1024px) {
    .qo-why { grid-template-columns: 1fr; gap: 48px; }
    .qo-why__media img { aspect-ratio: 16 / 10; }
}
@media (max-width: 767px) {
    .qo-why__media img { aspect-ratio: 4 / 3; }
    .qo-feature { gap: 16px; }
}

/* ---------- How it works: numbered steps joined by a dashed line ---------- */
.qo-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    counter-reset: none;
}
.qo-steps::before {
    content: "";
    position: absolute;
    top: 36px; left: 16%; right: 16%;
    border-top: 2px dashed rgba(11, 95, 102, 0.35);
}
.qo-step { position: relative; text-align: center; }
.qo-step__num {
    display: grid;
    place-items: center;
    width: 72px; height: 72px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: var(--qo-sun);
    box-shadow: 0 0 0 10px var(--qo-white);
    font-size: 28px;
    font-weight: 700;
}
.qo-step__title { margin-bottom: 10px; }
.qo-step__text { max-width: 320px; margin-inline: auto; color: var(--qo-muted); }
@media (max-width: 767px) {
    .qo-steps { grid-template-columns: 1fr; gap: 40px; }
    .qo-steps::before { top: 36px; bottom: 36px; left: 50%; right: auto; border-top: 0; border-left: 2px dashed rgba(11, 95, 102, 0.35); }
    .qo-step__text { background: var(--qo-white); }
}

/* ---------- Inner page hero ---------- */
.qo-page-hero {
    margin: 0 var(--qo-edge) 56px;
    padding: 72px 0 80px;
    border-radius: var(--qo-radius-xl);
    background: var(--qo-teal);
    color: var(--qo-white);
    overflow: hidden;
    position: relative;
}
/* Large faint sparkle on the right */
.qo-page-hero::after {
    content: "";
    position: absolute;
    right: -60px; top: 50%;
    width: 340px; height: 340px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.07);
    clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
    pointer-events: none;
}
.qo-page-hero__inner { position: relative; z-index: 1; }
.qo-page-hero__title { max-width: 760px; font-size: calc(var(--qo-h1) * 0.85); }
.qo-page-hero__intro { max-width: 620px; margin-top: 18px; color: var(--qo-on-dark-muted); font-size: var(--qo-lead); }
@media (max-width: 767px) {
    .qo-page-hero { padding: 48px 0 52px; margin-bottom: 40px; }
    .qo-page-hero::after { width: 200px; height: 200px; right: -70px; }
}

/* ---------- Services page: quick links ---------- */
.qo-jump { margin-bottom: 64px; }
.qo-jump__list { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 767px) { .qo-jump { margin-bottom: 40px; } }

/* ---------- Services page: one row per service ---------- */
.qo-service-list { display: grid; gap: 96px; }
.qo-service-row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
.qo-service-row--flip .qo-service-row__media { order: 2; }
.qo-service-row__media { position: relative; }
.qo-service-row__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--qo-radius-lg); }
.qo-service-row__badge { position: absolute; top: 20px; left: 20px; }
.qo-service-row__title { margin-bottom: 14px; }
.qo-service-row__summary { color: var(--qo-teal); font-size: var(--qo-lead); font-weight: 500; }
.qo-service-row__text > p:not(.qo-service-row__summary) { color: var(--qo-muted); }
.qo-service-row__subhead { margin: 28px 0 16px; font-size: 18px; }
@media (max-width: 1024px) {
    .qo-service-row { gap: 40px; }
}
@media (max-width: 767px) {
    .qo-service-list { gap: 64px; }
    .qo-service-row { grid-template-columns: 1fr; gap: 24px; }
    .qo-service-row--flip .qo-service-row__media { order: 0; }
    .qo-service-row .qo-btn { width: 100%; }
}

/* ---------- FAQ layout: heading left, questions right ---------- */
.qo-faq-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.qo-faq-layout .qo-section-head { margin-bottom: 28px; }
@media (max-width: 1024px) { .qo-faq-layout { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Call-to-action band ---------- */
.qo-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 56px 64px;
    border-radius: var(--qo-radius-xl);
    background: var(--qo-sun);
    position: relative;
    overflow: hidden;
}
.qo-cta::after {
    content: "";
    position: absolute;
    right: 32%; top: -40px;
    width: 140px; height: 140px;
    background: rgba(255, 255, 255, 0.35);
    clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
    pointer-events: none;
}
.qo-cta__text { max-width: 520px; position: relative; z-index: 1; }
.qo-cta__title { margin-bottom: 10px; }
.qo-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }
.qo-cta .qo-btn--outline:hover { background: var(--qo-ink); }
@media (max-width: 1024px) {
    .qo-cta { flex-direction: column; align-items: flex-start; padding: 48px 40px; }
}
@media (max-width: 767px) {
    .qo-cta { padding: 36px 24px; }
    .qo-cta__actions, .qo-cta__actions .qo-btn { width: 100%; }
}

/* ---------- Contact page ---------- */
.qo-contact { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 40px; align-items: start; }
.qo-contact__info {
    padding: 40px;
    border-radius: var(--qo-radius-lg);
    background: var(--qo-mist);
}
.qo-contact__head { margin-bottom: 28px; font-size: 26px; }
.qo-contact__list { display: grid; gap: 24px; }
.qo-contact__item { display: flex; gap: 16px; }
.qo-contact__item > div { flex-grow: 1; min-width: 0; }
.qo-contact__label { margin-bottom: 2px; color: var(--qo-muted); font-size: 15px; font-weight: 500; }
.qo-contact__value { font-size: 18px; font-weight: 600; word-break: break-word; }
a.qo-contact__value:hover { color: var(--qo-teal); }
.qo-contact .qo-hours { margin-top: 6px; font-size: 16px; }

.qo-contact__form {
    padding: 48px;
    border: 1px solid var(--qo-line);
    border-radius: var(--qo-radius-lg);
    box-shadow: var(--qo-shadow-soft);
}
.qo-contact__form .qo-contact__head { margin-bottom: 6px; }
.qo-contact__intro { margin-bottom: 28px; color: var(--qo-muted); }
.qo-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.qo-field--full { grid-column: 1 / -1; }
.qo-form__submit { margin-top: 28px; }
.qo-form__status:not(:empty) {
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 14px;
    background: var(--qo-aqua);
    color: var(--qo-teal-dark);
    font-weight: 500;
}
@media (max-width: 1024px) {
    .qo-contact { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .qo-contact__info, .qo-contact__form { padding: 28px 20px; }
    .qo-form__grid { grid-template-columns: 1fr; }
    .qo-form__submit { width: 100%; }
}

/* ---------- 404 ---------- */
.qo-not-found { text-align: center; }
.qo-not-found__code { margin: 0; color: var(--qo-aqua); font-size: clamp(96px, 20vw, 180px); font-weight: 800; line-height: 1; }
.qo-not-found__title { margin: 8px 0 16px; font-size: var(--qo-h2); }
.qo-not-found__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
