/*
 * Home page (/).
 *
 * Linked last in site.blade.php, after style.css and responsive.css, so it wins
 * the cascade without a single !important. Everything is scoped under
 * `.hm-page`; nothing here may leak to another page.
 *
 * The page deliberately does NOT reuse the theme's `.hero-area.style-two` /
 * `.feature-area.style-two` shells. Those carry a fixed `height: 800px` hero and
 * a `display: none` on the hero's right column below 767px -- the layout is
 * rebuilt here instead so it scales with the viewport rather than being hidden
 * at small widths.
 *
 * Bump the ?v= query string in site.blade.php after editing this file.
 */

/* ------------------------------------------------------------------ tokens */

.hm-page {
    --hm-green: #71b745;
    --hm-dark: #00181a;
    --hm-ink: #1c1c1c;
    --hm-muted: #5c6b66;
    --hm-cream: #f7f6ee;
    --hm-line: #e3e6df;
}

/* -------------------------------------------------------------------- hero */

.hm-page .hm-hero {
    position: relative;
    display: flex;
    align-items: center;
    /* Was a hard 800px. min-height lets the content decide on a phone and still
       fills a desktop viewport. */
    min-height: clamp(520px, 76vh, 760px);
    padding: 90px 0 80px;
    background: url(../images/top-banner.png) center center / cover no-repeat;
    overflow: hidden;
}

/* The banner is light in places and every word on it is white. */
.hm-page .hm-hero:before {
    position: absolute;
    content: '';
    inset: 0;
    background: linear-gradient(
        100deg,
        rgba(0, 24, 26, 0.92) 0%,
        rgba(0, 24, 26, 0.74) 52%,
        rgba(113, 183, 69, 0.42) 100%
    );
}

.hm-page .hm-hero .container {
    position: relative;
    z-index: 1;
}

.hm-page .hm-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(113, 183, 69, 0.9);
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.hm-page .hm-hero h1 {
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(34px, 6vw, 68px);
    line-height: 1.08;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
}

.hm-page .hm-hero h1 span {
    color: var(--hm-green);
}

.hm-page .hm-hero-lead {
    color: #e7f1e0;
    font-size: clamp(16px, 1.6vw, 19px);
    line-height: 1.65;
    max-width: 620px;
    margin: 20px 0 0;
}

.hm-page .hm-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

/* Trust row. Every claim here is true of the real /quote wizard: no account, the
   customer picks the store and the time, and the shops take walk-ins. */
.hm-page .hm-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
}

.hm-page .hm-hero-points li {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.hm-page .hm-hero-points i {
    color: var(--hm-green);
    font-size: 19px;
    line-height: 1;
}

.hm-page .hm-hero-art {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 220px;
}

.hm-page .hm-hero-ring {
    width: clamp(120px, 22vw, 200px);
    height: auto;
    animation: rotateme 20s linear infinite;
}

/* ----------------------------------------------------------------- buttons */

.hm-page .hm-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 13px 30px;
    border-radius: 5px;
    border: 2px solid transparent;
    transition: 0.4s;
}

.hm-page .hm-btn-primary {
    background: var(--hm-green);
    color: #fff;
    border-color: var(--hm-green);
}

.hm-page .hm-btn-primary:hover {
    background: #fff;
    color: var(--hm-dark);
    border-color: #fff;
}

.hm-page .hm-btn-ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
}

.hm-page .hm-btn-ghost:hover {
    background: #fff;
    color: var(--hm-dark);
    border-color: #fff;
}

.hm-page .hm-btn-dark {
    background: var(--hm-dark);
    color: #fff;
    border-color: var(--hm-dark);
}

.hm-page .hm-btn-dark:hover {
    background: transparent;
    color: var(--hm-dark);
}

/* ---------------------------------------------------------------- sections */

.hm-page .hm-section {
    padding: 92px 0;
}

.hm-page .hm-section-cream {
    background: var(--hm-cream);
}

.hm-page .hm-section-head {
    max-width: 720px;
    margin: 0 0 44px;
}

.hm-page .hm-section-head.is-centered {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.hm-page .hm-eyebrow {
    display: block;
    color: var(--hm-green);
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.hm-page .hm-section-head h2 {
    color: var(--hm-ink);
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(28px, 3.6vw, 42px);
    line-height: 1.15;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
}

.hm-page .hm-section-head p {
    color: var(--hm-muted);
    font-size: 17px;
    line-height: 1.7;
    margin: 14px 0 0;
}

/* ------------------------------------------------------------ service grid */

/* auto-fit, because the list comes from the admin: it renders eleven cards
   today and must not break at four or at twenty. */
/* The "What we fix" cards used to live here as `.hm-service-*`. They are
   Components/Site/ServicesSection now, styled in services-section.css, because
   /store/{slug} renders the same section -- see the ⚠️ at the top of that file
   before moving any of it back under `.hm-page`. */

/* ------------------------------------------------------------ pillar cards */

.hm-page .hm-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.hm-page .hm-pillar {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--hm-line);
    border-radius: 10px;
    padding: 34px 32px 30px;
    height: 100%;
    transition: 0.35s;
}

.hm-page .hm-pillar:hover {
    border-color: var(--hm-green);
    box-shadow: 0 18px 40px rgba(0, 24, 26, 0.08);
    transform: translateY(-4px);
}

.hm-page .hm-pillar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(140deg, #f7f6ee 0%, #eef6e7 100%);
    margin-bottom: 20px;
}

.hm-page .hm-pillar-icon img {
    width: 38px;
    height: auto;
}

.hm-page .hm-pillar h3 {
    color: var(--hm-ink);
    font-family: 'Rajdhani', sans-serif;
    font-size: 26px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 16px;
}

.hm-page .hm-pillar ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hm-page .hm-pillar li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--hm-muted);
    font-size: 16px;
    line-height: 1.6;
    padding: 7px 0;
}

.hm-page .hm-pillar li i {
    flex: 0 0 auto;
    color: var(--hm-green);
    font-size: 15px;
    line-height: 26px;
}

/* ------------------------------------------------------------ how it works */

.hm-page .hm-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}

.hm-page .hm-step {
    position: relative;
    background: #fff;
    border-radius: 10px;
    padding: 34px 28px 30px;
    height: 100%;
}

.hm-page .hm-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--hm-dark);
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 18px;
}

.hm-page .hm-step h3 {
    color: var(--hm-ink);
    font-family: 'Rajdhani', sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 10px;
}

.hm-page .hm-step p {
    color: var(--hm-muted);
    font-size: 16px;
    line-height: 1.65;
    margin: 0;
}

.hm-page .hm-steps-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 38px;
}

/* ---------------------------------------------------------- why choose us */

.hm-page .hm-choose-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hm-page .hm-choose-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--hm-line);
    color: var(--hm-ink);
    font-size: 17px;
    line-height: 1.6;
}

.hm-page .hm-choose-list li:last-child {
    border-bottom: 0;
}

.hm-page .hm-choose-list i {
    flex: 0 0 auto;
    color: var(--hm-green);
    font-size: 20px;
    line-height: 27px;
}

.hm-page .hm-choose-actions {
    margin-top: 28px;
}

.hm-page .hm-choose-thumb img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* --------------------------------------------------------------------- cta */

.hm-page .hm-cta {
    padding: 0 0 100px;
}

.hm-page .hm-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    background: var(--hm-dark);
    border-radius: 10px;
    padding: 48px 52px;
}

.hm-page .hm-cta-text h3 {
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(24px, 3vw, 32px);
    text-transform: uppercase;
    margin: 0 0 10px;
}

.hm-page .hm-cta-text p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 17px;
    line-height: 1.65;
    max-width: 560px;
    margin: 0;
}

.hm-page .hm-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hm-page .hm-cta .hm-btn-dark {
    background: #fff;
    color: var(--hm-dark);
    border-color: #fff;
}

.hm-page .hm-cta .hm-btn-dark:hover {
    background: transparent;
    color: #fff;
}

/* -------------------------------------------------------------- responsive */

@media only screen and (max-width: 991px) {
    .hm-page .hm-hero {
        padding: 70px 0 64px;
        min-height: 0;
    }

    .hm-page .hm-hero-art {
        justify-content: flex-start;
        min-height: 0;
        margin-top: 34px;
    }

    .hm-page .hm-section {
        padding: 64px 0;
    }

    .hm-page .hm-section-head {
        margin-bottom: 34px;
    }

    .hm-page .hm-choose-thumb {
        margin-top: 34px;
    }

    .hm-page .hm-cta {
        padding-bottom: 70px;
    }

    .hm-page .hm-cta-inner {
        padding: 38px 34px;
    }
}

@media only screen and (max-width: 767px) {
    .hm-page .hm-hero-points {
        flex-direction: column;
        gap: 8px 0;
    }

    .hm-page .hm-btn {
        padding: 12px 24px;
        font-size: 16px;
    }

    /* Full-width buttons stack more cleanly than two half-rows at 390px. */
    .hm-page .hm-hero-buttons .hm-btn,
    .hm-page .hm-steps-actions .hm-btn,
    .hm-page .hm-cta-actions .hm-btn {
        flex: 1 1 100%;
        justify-content: center;
    }

    .hm-page .hm-section {
        padding: 54px 0;
    }

    .hm-page .hm-pillar {
        padding: 28px 24px 24px;
    }

    .hm-page .hm-step {
        padding: 28px 24px 24px;
    }

    .hm-page .hm-cta-inner {
        padding: 32px 24px;
    }
}
