/*
Theme Name: Blue Dream Yaletown
Template: bluedream
Author: Nerdpilots
Author URI: https://www.convertlabs.io
Description: Child theme for yaletownclean.com. Adds five homepage sections (same-cleaner, service types, service areas, satisfaction guarantee, FAQ) on top of Blue Dream 1.0.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: ytc
*/

/* No @import here on purpose. The parent's style.css is enqueued from functions.php so it
   downloads in parallel instead of blocking on a serial request from inside this file. */

:root {
    --yt-text: #331f0b;
    --yt-navy: #0b273b;
    --yt-cta: #0e9edf;
    --yt-band: #eaf5f7;
    --yt-border: #cfe6ec;
    --yt-border-soft: #e4eef1;
}

.yt-section .container {
    position: relative;
}

.yt-section p {
    font-family: Inter, sans-serif;
    color: var(--yt-text);
    font-size: 16px;
    line-height: 1.7;
}

.yt-section .section-title h2 {
    color: var(--yt-navy);
}

/* Band alternation across the whole page. The parent's sections (three, six, five) carry dark
   background images, so the new sections alternate light/white around them and every boundary
   lands on a contrast change:
       three(img) - cleaner(light) - services(white) - six(img) - guarantee(light)
       - five(img) - social(white) - areas(light) - faq(white) - cta(light) - footer(navy) */
.yt-band {
    background-color: var(--yt-band);
}

.yt-services,
.yt-faq {
    background-color: #fff;
}

.yt-cta {
    display: inline-block;
    background: var(--yt-cta);
    color: #fff;
    border-radius: 3px;
    padding: 15px 25px;
    font-weight: 700;
    text-decoration: none;
}

.yt-cta:hover,
.yt-cta:focus {
    background: #0b8ac5;
    color: #fff;
    text-decoration: none;
}

/* ---------------------------------------------------------------
   1. Your Cleaner, Every Visit
   --------------------------------------------------------------- */

.yt-cleaner .yt-prose {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.yt-cleaner .yt-prose p + p {
    margin-top: 20px;
}

/* ---------------------------------------------------------------
   2. Our Cleaning Services
   --------------------------------------------------------------- */

.yt-services .yt-intro {
    max-width: 760px;
    margin: 0 auto 50px;
    text-align: center;
}

/* Flex, not grid: with 5 cards, grid's auto-fit packs 4 + 1 orphan. Flex at exactly 3 per row
   gives 3 + 2, and justify-content centers the short last row. */
.yt-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.yt-card {
    display: flex;
    flex-direction: column;
    flex: 0 1 calc((100% - 60px) / 3);
    background: var(--yt-band);
    border: 1px solid var(--yt-border-soft);
    border-radius: 3px;
    padding: 30px 25px;
    text-align: center;
}

.yt-card__icon {
    margin-bottom: 20px;
}

.yt-card__icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin: 0 auto;
}

.yt-card h3 {
    font-family: Inter, sans-serif;
    color: var(--yt-navy);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.yt-card p {
    margin: 0;
    flex-grow: 1;
}

.yt-card__link {
    display: inline-block;
    margin-top: 18px;
    color: var(--yt-cta);
    font-weight: 700;
    text-decoration: none;
}

.yt-card__link:hover {
    color: var(--yt-cta);
    text-decoration: underline;
}

/* ---------------------------------------------------------------
   3. Serving Vancouver and Surrounding Neighborhoods
   --------------------------------------------------------------- */

.yt-areas .yt-prose {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.yt-hoods {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
    padding: 0;
    list-style: none;
}

.yt-hoods li {
    background: #fff;
    border: 1px solid var(--yt-border);
    border-radius: 3px;
    padding: 8px 16px;
    font-family: Inter, sans-serif;
    font-size: 15px;
    color: var(--yt-navy);
}

/* Same Google Maps embed the footer uses. aspect-ratio reserves the box before the iframe
   loads, so it doesn't shift layout (the CLS fixes elsewhere in these themes exist for this). */
.yt-map {
    max-width: 900px;
    margin: 0 auto 30px;
    aspect-ratio: 16 / 7;
    border: 1px solid var(--yt-border);
    border-radius: 3px;
    overflow: hidden;
    background: #fff;
}

.yt-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.yt-areas__call {
    text-align: center;
    margin: 0;
}

.yt-areas__call a {
    color: var(--yt-cta);
    font-weight: 700;
    white-space: nowrap;
}

/* ---------------------------------------------------------------
   4. We'll Make It Right
   --------------------------------------------------------------- */

.yt-guarantee {
    background: var(--yt-band);
    text-align: center;
}

.yt-guarantee h3 {
    font-family: Inter, sans-serif;
    color: var(--yt-navy);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.yt-guarantee p {
    color: var(--yt-text);
    max-width: 640px;
    margin: 0 auto;
}

/* ---------------------------------------------------------------
   5. Common Questions
   --------------------------------------------------------------- */

.yt-faq .yt-accordion {
    max-width: 820px;
    margin: 0 auto;
}

/* The parent's .faq-card/.faq-btn are tuned for the help page's layout and leave the questions
   looking like a bare list here. Restate them scoped to .yt-faq so each question is a card. */
.yt-faq .faq-card {
    background: #fff;
    border: 1px solid var(--yt-border);
    border-radius: 3px;
    margin-bottom: 12px;
    overflow: hidden;
}

.yt-faq .card-header {
    background: #fff;
    border: 0;
    padding: 0;
}

.yt-faq .faq-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 18px 22px;
    font-family: Inter, sans-serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--yt-navy);
    text-align: left;
    text-decoration: none;
    white-space: normal;
}

.yt-faq .faq-btn:hover,
.yt-faq .faq-btn:focus {
    color: var(--yt-cta);
    text-decoration: none;
}

/* Bootstrap 4 flips aria-expanded on the button, so the indicator needs no JS. */
.yt-faq .faq-btn::after {
    content: "+";
    flex: 0 0 auto;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    color: var(--yt-cta);
}

.yt-faq .faq-btn[aria-expanded="true"] {
    color: var(--yt-cta);
}

.yt-faq .faq-btn[aria-expanded="true"]::after {
    content: "\2212";
}

.yt-faq .card-body {
    margin: 0 22px;
    padding: 18px 0 20px;
    border-top: 1px solid var(--yt-border-soft);
}

.yt-faq .card-body p:last-child {
    margin-bottom: 0;
}

.yt-faq__more {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 0;
}

.yt-faq__more a {
    color: var(--yt-cta);
    font-weight: 700;
}

/* ---------------------------------------------------------------
   6. Reviews + Instagram (Trustindex embeds)
   --------------------------------------------------------------- */

.yt-social {
    background-color: #fff;
}

/* The widgets inject their own markup and set their own widths; just give them room. */
.yt-social__embeds {
    max-width: 1100px;
    margin: 0 auto;
}

/* ---------------------------------------------------------------
   7. Closing CTA
   --------------------------------------------------------------- */

.yt-cta-band {
    background: var(--yt-band);
    text-align: center;
}

.yt-cta-band h2 {
    color: var(--yt-navy);
    margin-bottom: 15px;
}

.yt-cta-band p {
    color: var(--yt-text);
    max-width: 620px;
    margin: 0 auto 30px;
}

.yt-cta-band__phone {
    margin: 25px auto 0;
    font-size: 15px;
}

.yt-cta-band__phone a {
    color: var(--yt-cta);
    font-weight: 700;
    white-space: nowrap;
}

/* ---------------------------------------------------------------
   Responsive
   --------------------------------------------------------------- */

@media (max-width: 991px) {
    /* 2 per row; the 5th centers on the last row. */
    .yt-card {
        flex: 0 1 calc((100% - 30px) / 2);
    }
}

@media (max-width: 767px) {
    .yt-card {
        flex: 0 1 100%;
    }

    .yt-map {
        aspect-ratio: 4 / 3;
    }

    .yt-faq .faq-btn {
        font-size: 16px;
        padding: 16px 18px;
    }

    .yt-faq .card-body {
        margin: 0 18px;
    }

    .yt-guarantee h3 {
        font-size: 24px;
    }
}
