/* Clean Flow Plumbing Services — landing page overrides
   Built on top of CakePHP's default milligram + cake.css scaffold */

/* -------------------------------------------------------------------------
   Landing-page background

   Put the chosen photograph at:
       webroot/img/plumbing-background.jpg

   The image is rendered on a fixed pseudo-element instead of using
   background-attachment: fixed. This keeps the background stationary while
   every content card scrolls over it, and behaves more consistently on
   mobile browsers.
   ------------------------------------------------------------------------- */

html {
    scroll-behavior: smooth;
}

body.landing-page {
    position: relative;
    min-height: 100vh;
    background: #0d2d46;
    color: var(--dash-ink);
}

body.landing-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(rgba(7, 28, 43, 0.46), rgba(7, 28, 43, 0.58)),
        url('../img/plumbing-background.jpg') center center / cover no-repeat;
}

/* A very light tint makes text/cards readable while leaving the photograph
   visible across the full page. */
body.landing-page::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(8, 33, 51, 0.10),
        rgba(8, 33, 51, 0.20) 55%,
        rgba(8, 33, 51, 0.34)
    );
}


.landing-page .main {
    padding: 0 0 5rem;
    background: transparent;
}

.landing-page .main > .container {
    max-width: 118rem;
}

.landing-page .content {
    margin-bottom: 2.4rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 1.2rem;
    box-shadow: 0 18px 45px rgba(6, 28, 44, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.content:last-child {
    margin-bottom: 0;
}

.content > h1,
.content > h2 {
    display: inline-block;
    color: var(--dash-blue);
    padding-bottom: 0.6rem;
    border-bottom: 3px solid var(--dash-yellow);
}

.content.cta {
    text-align: center;
}
.content.cta h2 {
    display: table;
    margin: 0 auto 2rem;
}


.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--dash-blue);
    color: var(--color-white);
    padding: 0.8rem 1.4rem;
    z-index: 100;
}
.skip-link:focus {
    left: 0;
}

a:focus,
a.button:focus {
    outline: 3px solid var(--dash-blue);
    outline-offset: 2px;
}


/* Shared .top-nav / .top-nav-title / .top-nav-links and .button styling now live
   in cake.css so every page (not just the landing page) gets consistent styling. */

.hero {
    min-height: calc(100vh - 8rem);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 7rem 2rem 6rem;
}

.hero-text {
    width: min(68rem, 100%);
    padding: 3.2rem;
    color: #ffffff;
    background: rgba(7, 37, 57, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 1.4rem;
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.hero-text h1 {
    margin-bottom: 1.6rem;
    color: #ffffff;
    font-size: clamp(4rem, 7vw, 7rem);
    line-height: 1.02;
    font-weight: 700;
    letter-spacing: -0.04em;
}
.hero-text p {
    max-width: 58rem;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    line-height: 1.65;
}
.hero-eyebrow {
    margin: 0 0 1rem;
    color: #f7d66b;
    font-size: 1.3rem !important;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.hero-button {
    margin-bottom: 0;
    background: var(--dash-yellow);
    border-color: var(--dash-yellow);
    color: #102b3d;
}
.hero-button:hover,
.hero-button:focus {
    background: #ffd45a;
    border-color: #ffd45a;
    color: #102b3d;
}

.feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}
.feature-list li:last-child {
    margin-bottom: 0;
}
.feature-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* How it works */
.steps-list {
    margin: 0;
    padding-left: 1.6rem;
}
.steps-list li {
    margin-bottom: 0.6rem;
}
.steps-list li:last-child {
    margin-bottom: 0;
}

/* FAQ */
details {
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
}
details:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
summary {
    cursor: pointer;
    font-weight: bold;
}
details p {
    margin: 0.8rem 0 0;
}

footer.container {
    text-align: center;
    color: #ffffff;
    padding: 1rem 2rem 3rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

@media (max-width: 64rem) {
    .hero {
        min-height: 74vh;
        padding: 4rem 0 3rem;
    }
}

@media (max-width: 40rem) {
    .landing-page .main {
        padding-bottom: 3rem;
    }

    .hero {
        text-align: left;
    }

    .hero-text {
        padding: 2.4rem 2rem;
    }

    .hero-text h1 {
        font-size: 4rem;
    }

    .hero-text p {
        font-size: 1.6rem;
    }
}
