/* ===================================
   30x40 Garage Texas landing page (page-30x40-texas.php)
   Loads only on this page, in place of the site header, global and footer styles.
   =================================== */

html {
    scroll-behavior: smooth;
}

.lp-30x40-texas {
    --lp-red: #FF2400;
    --lp-ink: #111;
    --lp-muted: #5b5b5b;
    --lp-line: #e6e6e6;
    --lp-bg: #f6f5f2;

    color: var(--lp-ink);
    background: #fff;
    line-height: 1.5;
}

.lp-30x40-texas *,
.lp-30x40-texas *::before,
.lp-30x40-texas *::after {
    box-sizing: border-box;
}

.lp-30x40-texas img {
    display: block;
    max-width: 100%;
}

.lp-30x40-texas a {
    color: inherit;
}

.lp-wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* No single word left alone on a line: buttons and headings split evenly, paragraphs avoid
   a one-word last line. The &nbsp;s in the template cover browsers without text-wrap. */
.lp-30x40-texas h1,
.lp-30x40-texas h2,
.lp-30x40-texas h3,
.lp-kicker,
.lp-promo .lp-wrap,
.lp-btn,
.lp-options span,
.lp-mobile-cta a {
    text-wrap: balance;
}

.lp-30x40-texas p,
.lp-30x40-texas li,
.lp-review blockquote {
    text-wrap: pretty;
}

/* Black Friday banner (on only Nov 18 to 27, see metal_america_30x40_texas_promo_on) */
.lp-promo {
    padding: 9px 0;
    color: #fff;
    background: var(--lp-red);
    font-size: 15px;
    line-height: 1.35;
    text-align: center;
}

.lp-promo small {
    display: inline-block;
    font-size: 12px;
    opacity: .9;
}

/* Top bar: logo + phone only */
.lp-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 0;
    background: #fff;
    border-bottom: 1px solid var(--lp-line);
}

.lp-bar .lp-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 60px;
}

.lp-logo img {
    width: 220px;
    height: auto;
}

.lp-bar-call {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    text-align: right;
    text-decoration: none;
    white-space: nowrap;
}

.lp-bar-call small {
    display: block;
    font-weight: 500;
    font-size: 11px;
    color: var(--lp-muted);
}

/* Hero */
.lp-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: #222;
}

.lp-30x40-texas .lp-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lp-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .6) 45%, rgba(0, 0, 0, .25) 100%);
}

.lp-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 40px;
    align-items: start;
    padding-top: 56px;
    padding-bottom: 56px;
}

.lp-kicker {
    display: inline-block;
    margin-bottom: 16px;
    padding-bottom: 4px;
    border-bottom: 3px solid var(--lp-red);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.lp-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.05;
}

.lp-sub {
    max-width: 520px;
    margin: 0 0 24px;
    font-size: 19px;
    opacity: .95;
}

.lp-proof {
    display: grid;
    gap: 8px;
    max-width: 520px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 16px;
}

.lp-proof li {
    position: relative;
    padding-left: 22px;
}

.lp-proof li::before {
    content: "";
    position: absolute;
    top: .55em;
    left: 0;
    width: 12px;
    height: 3px;
    background: var(--lp-red);
}

.lp-photo-tag {
    margin: 22px 0 0;
    font-size: 12px;
    opacity: .75;
}

/* Form card */
.lp-card {
    padding: 24px;
    color: var(--lp-ink);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
    scroll-margin-top: 76px;
}

.lp-card h2 {
    margin: 0 0 16px;
    font-size: 24px;
    line-height: 1.2;
}

.lp-step-count {
    margin: 0 0 2px;
    color: var(--lp-muted);
    font-size: 13px;
    font-weight: 600;
}

.lp-card h2:focus {
    outline: none;
}

.lp-step[hidden] {
    display: none;
}

.lp-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.lp-field {
    margin-bottom: 12px;
}

.lp-field label {
    display: block;
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 600;
}

.lp-field input,
.lp-field select {
    width: 100%;
    padding: 11px 12px;
    font: inherit;
    font-size: 16px;
    background: #fff;
    border: 1px solid #cfcfcf;
    border-radius: 8px;
}

.lp-field input:focus,
.lp-field select:focus {
    outline: 2px solid var(--lp-red);
    outline-offset: 1px;
    border-color: transparent;
}

.lp-err {
    display: none;
    margin-top: 3px;
    color: #b00020;
    font-size: 12px;
}

.lp-field--bad input,
.lp-field--bad select {
    border-color: #b00020;
}

.lp-field--bad .lp-err {
    display: block;
}

.lp-choice {
    min-width: 0;
    margin: 0 0 12px;
    padding: 0;
    border: 0;
}

.lp-choice legend {
    margin: 0 0 6px;
    padding: 0;
    font-size: 13px;
    font-weight: 600;
}

.lp-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Short answers size to their words and never break mid-answer; on a very narrow phone a
   whole button moves to the next row instead. */
.lp-options label {
    position: relative;
    flex: 1 1 auto;
}

.lp-options--stack {
    flex-direction: column;
}

.lp-options input {
    position: absolute;
    opacity: 0;
}

.lp-options span {
    display: block;
    height: 100%;
    padding: 10px 8px;
    border: 1px solid #cfcfcf;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.25;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
}

.lp-options--stack span {
    padding: 10px 12px;
    text-align: left;
    white-space: normal;
}

.lp-options input:checked + span {
    background: #fff1ee;
    border-color: var(--lp-red);
    box-shadow: inset 0 0 0 1px var(--lp-red);
    font-weight: 600;
}

.lp-options input:focus-visible + span {
    outline: 2px solid var(--lp-red);
    outline-offset: 1px;
}

.lp-field--bad .lp-options span {
    border-color: #b00020;
}

.lp-back {
    display: block;
    margin: 8px 0 0;
    padding: 6px 0;
    color: var(--lp-muted);
    background: none;
    border: 0;
    font: inherit;
    font-size: 14px;
    text-decoration: underline;
    cursor: pointer;
}

/* Free quote, call and trust lines: a full-width dark band along the bottom of the hero.
   Desktop puts them in one row; phones stack them. Sits above the photo's dark overlay. */
.lp-card-after {
    position: relative;
    z-index: 1;
    padding: 14px 0;
    color: rgba(255, 255, 255, .78);
    background: #141414;
    font-size: 14px;
    line-height: 1.45;
}

.lp-card-after .lp-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 24px;
}

.lp-card-after p {
    margin: 0;
}

.lp-free,
.lp-or b {
    color: #fff;
    font-weight: 600;
}

/* If a very narrow phone must wrap these, split evenly instead of leaving one word alone. */
.lp-card-after p {
    text-wrap: balance;
}

.lp-card-after .lp-trust {
    margin-left: auto;
    font-size: 13px;
}

.lp-trust b {
    color: #fff;
}

.lp-trust-star {
    color: var(--lp-red);
}

/* Each claim stays whole; a narrow card breaks the row at the dot. */
.lp-trust span {
    white-space: nowrap;
}

.lp-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 14px 0 0;
    color: var(--lp-muted);
    font-size: 11px;
    line-height: 1.4;
}

.lp-consent input {
    margin: 2px 0 0;
    flex: none;
}

.lp-btn {
    display: block;
    width: 100%;
    padding: 15px;
    color: #fff;
    background: var(--lp-red);
    border: 0;
    border-radius: 10px;
    font: inherit;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}

.lp-30x40-texas a.lp-btn {
    color: #fff;
}

.lp-btn:hover {
    filter: brightness(.95);
}

.lp-btn[disabled] {
    opacity: .6;
    cursor: wait;
}

.lp-card-after .lp-or {
    margin-top: 2px;
}

.lp-30x40-texas .lp-or a {
    color: #fff;
    font-weight: 700;
}

.lp-form-msg {
    display: none;
    margin-bottom: 12px;
    padding: 10px 12px;
    color: #8a1c12;
    background: #fdecea;
    border-radius: 8px;
    font-size: 14px;
}

.lp-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Sections */
.lp-section {
    padding: 64px 0;
}

.lp-section--alt {
    background: var(--lp-bg);
}

/* Short sections (how it works, questions): less room above and below. */
.lp-section--tight {
    padding: 40px 0;
}

.lp-section--tight .lp-lead {
    margin-bottom: 20px;
}

.lp-section--tight .lp-faq details {
    padding: 12px 0;
}

.lp-title {
    margin: 0 0 10px;
    font-size: clamp(26px, 3.4vw, 36px);
    line-height: 1.15;
}

.lp-lead {
    max-width: 640px;
    margin: 0 0 32px;
    color: var(--lp-muted);
    font-size: 17px;
}

.lp-get {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.lp-get > div {
    padding: 20px;
    background: #fff;
    border: 1px solid var(--lp-line);
    border-radius: 12px;
}

.lp-get > div::before {
    content: "";
    display: block;
    width: 32px;
    height: 4px;
    margin-bottom: 14px;
    background: var(--lp-red);
}

.lp-get b {
    display: block;
    margin-bottom: 6px;
    font-size: 18px;
}

.lp-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.lp-gallery figure {
    margin: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--lp-line);
    border-radius: 12px;
}

.lp-gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.lp-gallery figcaption {
    padding: 10px 14px;
    font-size: 14px;
}

.lp-gallery figcaption b {
    display: block;
}

.lp-reviews-title {
    margin: 40px 0 14px;
    font-size: 20px;
}

.lp-reviews {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.lp-review {
    margin: 0;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--lp-line);
    border-radius: 12px;
}

.lp-review-stars {
    color: var(--lp-red);
    font-size: 16px;
    letter-spacing: 2px;
}

.lp-review blockquote {
    margin: 8px 0 12px;
    font-size: 16px;
}

.lp-review figcaption {
    font-weight: 700;
}

.lp-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    counter-reset: lp-step;
}

.lp-steps > div {
    padding: 16px 18px;
    color: #fff;
    background: #111;
    border-radius: 12px;
}

.lp-steps > div::before {
    counter-increment: lp-step;
    content: counter(lp-step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-bottom: 8px;
    background: var(--lp-red);
    font-size: 15px;
    border-radius: 50%;
    font-weight: 700;
}

.lp-steps b {
    display: block;
    margin-bottom: 4px;
    font-size: 18px;
}

/* Left-aligned with the rest of the page; only the questions keep a readable width. */
.lp-faq details {
    max-width: 860px;
}

.lp-faq details {
    padding: 16px 0;
    border-bottom: 1px solid var(--lp-line);
}

.lp-faq summary {
    font-size: 18px;
    font-weight: 700;
    list-style: none;
    cursor: pointer;
}

.lp-faq summary::-webkit-details-marker {
    display: none;
}

.lp-faq summary::after {
    content: "+";
    float: right;
    color: var(--lp-red);
    font-size: 22px;
    line-height: 1;
}

.lp-faq details[open] summary::after {
    content: "\2212";
}

.lp-faq p {
    margin: 10px 0 0;
    color: var(--lp-muted);
}

/* Closing section: the banner photo (11:2, dark on its left) behind left-aligned copy.
   The section is at least as tall as the photo's own shape, so a wide screen shows all of
   it; when the copy makes it taller (phones), the photo fills the box and keeps its right
   side, where the building is. The gradient keeps the copy readable over any crop. */
.lp-final {
    display: flex;
    align-items: center;
    min-height: min(18.18vw, 440px);
    color: #fff;
    background-color: #111;
    background-image:
        linear-gradient(90deg, rgba(10, 10, 10, .92) 0%, rgba(10, 10, 10, .72) 38%, rgba(10, 10, 10, 0) 70%),
        url("../images/metal-garage-banner-image-11-2.jpg");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: cover;
    text-align: left;
}

.lp-final .lp-wrap {
    width: 100%;
}

.lp-final h2 {
    margin: 0 0 10px;
    font-size: clamp(28px, 4vw, 40px);
}

.lp-final p {
    margin: 0 0 24px;
    opacity: .85;
}

.lp-final .lp-btn {
    display: inline-block;
    width: auto;
    padding: 15px 34px;
    text-decoration: none;
}

.lp-final-call {
    display: block;
    margin-top: 16px;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
}

.lp-footer {
    min-height: 0;
    padding: 20px 0;
    color: #999;
    background: #000;
    font-size: 12px;
    text-align: center;
}

.lp-30x40-texas .lp-footer a {
    color: #bbb;
}

/* Mobile */
.lp-mobile-cta {
    display: none;
}

@media (max-width: 900px) {
    .lp-hero-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .lp-card-after {
        padding: 16px 0 18px;
    }

    .lp-card-after .lp-wrap {
        display: block;
    }

    .lp-card-after .lp-or {
        margin-top: 2px;
    }

    /* 12.5px keeps the whole row on one line from a 380px-wide phone up (iPhone 390 included);
       narrower phones break it at the dot. */
    .lp-card-after .lp-trust {
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, .16);
        font-size: 12.5px;
    }

    /* Phones: the photo sits above the copy instead of behind it, so nothing covers it. */
    .lp-30x40-texas .lp-hero-img {
        position: static;
        height: auto;
        aspect-ratio: 3 / 2;
    }

    .lp-hero::after {
        display: none;
    }

    /* The caption moves onto the photo's bottom corner (the grid starts right under it). */
    .lp-photo-tag {
        position: absolute;
        top: -36px;
        left: 20px;
        margin: 0;
        padding: 3px 8px;
        background: rgba(0, 0, 0, .6);
        border-radius: 4px;
        opacity: 1;
    }

    .lp-sub {
        margin-bottom: 16px;
        font-size: 17px;
    }

    .lp-get,
    .lp-gallery {
        grid-template-columns: 1fr 1fr;
    }

    .lp-reviews {
        grid-template-columns: 1fr;
    }

    .lp-steps {
        grid-template-columns: 1fr;
    }

    .lp-section {
        padding: 44px 0;
    }

    .lp-section--tight {
        padding: 30px 0;
    }

    .lp-30x40-texas .lp-final {
        padding: 28px 0 32px;
    }

    .lp-final h2 {
        margin-bottom: 14px;
        font-size: 26px;
    }

    /* Phones: the copy sits over the building, so the whole photo is darkened. */
    .lp-final {
        background-image:
            linear-gradient(rgba(10, 10, 10, .74), rgba(10, 10, 10, .74)),
            url("../images/metal-garage-banner-image-11-2.jpg");
        background-position: 82% center;
    }

    .lp-final-call {
        margin-top: 10px;
        font-size: 17px;
    }

    .lp-mobile-cta {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 30;
        display: flex;
        gap: 8px;
        padding: 10px;
        background: #fff;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, .15);
    }

    .lp-mobile-cta a {
        flex: 1;
        padding: 13px;
        border-radius: 10px;
        color: #fff;
        font-weight: 700;
        text-align: center;
        text-decoration: none;
    }

    /* Call sizes to its word so "Get my free quote" keeps one line on small phones. */
    .lp-mobile-cta a {
        white-space: nowrap;
    }

    .lp-mobile-call {
        flex: 0 0 auto;
        padding-right: 28px;
        padding-left: 28px;
        background: #111;
    }

    .lp-mobile-quote {
        background: var(--lp-red);
    }

    .lp-30x40-texas {
        padding-bottom: 70px;
    }
}

@media (max-width: 520px) {
    .lp-get,
    .lp-row {
        grid-template-columns: 1fr;
    }

    .lp-gallery {
        gap: 10px;
    }

    .lp-gallery figcaption {
        padding: 8px 10px;
        font-size: 13px;
    }

    .lp-logo img {
        width: 180px;
    }

    .lp-bar-call small {
        display: none;
    }

    /* Banner: the offer on its own lines, the fine print on one line under it. */
    .lp-promo small {
        display: block;
    }
}

/* Small phones: a little tighter so each question's answers stay on one row. */
@media (max-width: 360px) {
    .lp-card {
        padding: 20px 16px;
    }

    .lp-options:not(.lp-options--stack) span {
        padding-right: 6px;
        padding-left: 6px;
        font-size: 14px;
    }

    .lp-btn {
        padding-right: 8px;
        padding-left: 8px;
        font-size: 17px;
    }
}

/* Black Friday banner on phones 416px and under: less room at the sides and smaller
   type, so the offer is one line and the small print the second. */
@media (max-width: 416px) {
    .lp-promo {
        padding: 7px 0;
        font-size: 13px;
    }

    .lp-promo .lp-wrap {
        padding: 0 8px;
    }

    .lp-promo small {
        font-size: 11.5px;
    }
}
