/*
 * Tankless Water Heaters page styles
 * @author Fudo
 * @date   2026-05-05
 */

/* ── INTRO ── */
.tw-intro {
    padding: 72px 0;
    background: #fff;
}

.tw-intro__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.tw-intro__eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 12px;
}

.tw-intro__copy h2 {
    font-size: var(--text-3xl);
    color: var(--navy-800);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.tw-intro__copy p {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 32px;
    font-size: var(--text-base);
}

.tw-intro__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.tw-intro__image {
    position: relative;
}

.tw-intro__image img {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
    display: block;
    height: 460px;
}

.tw-intro__badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: var(--orange);
    color: #fff;
    border-radius: 12px;
    padding: 16px 20px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.tw-intro__badge strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.tw-intro__badge span {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
    line-height: 1.3;
}

/* ── COMPARE ── */
.tw-compare {
    padding: 80px 0;
    background: #f8fafc;
}

.tw-compare__header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}

.tw-compare__header h2 {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--navy-800);
    margin-bottom: 12px;
    line-height: 1.3;
}

.tw-compare__header p {
    color: var(--gray-600);
    font-size: var(--text-base);
    line-height: 1.7;
}

.tw-compare__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.tw-compare__col {
    border-radius: 12px;
    padding: 40px;
}

.tw-compare__col--old {
    background: #fff;
    border: 2px solid #e5e7eb;
}

.tw-compare__col--new {
    background: var(--navy-800);
    border: 2px solid var(--navy-700);
}

.tw-compare__col-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.tw-compare__col--old .tw-compare__col-header svg {
    color: #ef4444;
    flex-shrink: 0;
}

.tw-compare__col--new .tw-compare__col-header svg {
    color: #22c55e;
    flex-shrink: 0;
}

.tw-compare__col--old h3 {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--gray-600);
}

.tw-compare__col--new h3 {
    font-size: var(--text-base);
    font-weight: 700;
    color: #fff;
}

.tw-compare__col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tw-compare__col--old ul li {
    padding-left: 20px;
    position: relative;
    color: var(--gray-600);
    font-size: var(--text-sm);
    line-height: 1.6;
}

.tw-compare__col--old ul li::before {
    content: '✕';
    position: absolute;
    left: 0;
    top: 0;
    color: #ef4444;
    font-size: 0.75rem;
    font-weight: 700;
}

.tw-compare__col--new ul li {
    padding-left: 20px;
    position: relative;
    color: rgba(255,255,255,0.85);
    font-size: var(--text-sm);
    line-height: 1.6;
}

.tw-compare__col--new ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #22c55e;
    font-size: 0.75rem;
    font-weight: 700;
}

/* ── BENEFITS HEADING ── */
.tw-benefits-heading {
    background: var(--navy-800);
    padding: 48px 0;
    text-align: center;
}

.tw-benefits-heading h2 {
    color: #fff;
    font-size: var(--text-2xl);
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.35;
}

/* ── BENEFITS LIST ── */
.tw-benefits-list {
    background: #fff;
    padding: 48px 0;
    border-bottom: 1px solid #e5e7eb;
}

.tw-benefits-list__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.tw-benefits-list__col {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tw-benefits-list__col li {
    padding-left: 24px;
    position: relative;
    color: #374151;
    font-size: var(--text-sm);
    line-height: 1.65;
}

.tw-benefits-list__col li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--navy-700);
}

/* ── PRODUCT CARDS ── */
.tw-products {
    padding: 72px 0 56px;
    background: #f8fafc;
}

.tw-products__header {
    text-align: center;
    margin-bottom: 48px;
}

.tw-products__header h2 {
    font-size: var(--text-2xl);
    color: var(--navy-800);
    font-weight: 700;
    margin-bottom: 8px;
}

.tw-products__header p {
    color: var(--gray-600);
    font-size: var(--text-base);
}

/* ── FEATURES ── */
.tw-features {
    background: var(--navy-900);
    padding: 80px 0;
}

.tw-features h2 {
    color: #fff;
    font-size: var(--text-2xl);
    text-align: center;
    margin-bottom: 48px;
    line-height: 1.2;
}

.tw-features__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    overflow: hidden;
}

.tw-features__card {
    padding: 36px 32px;
    border-right: 1px solid rgba(255,255,255,0.12);
    border-bottom: 1px solid rgba(255,255,255,0.12);
    transition: background 0.2s;
}

.tw-features__card:hover {
    background: rgba(255,255,255,0.04);
}

.tw-features__card:nth-child(3n) {
    border-right: none;
}

.tw-features__card:nth-last-child(-n+3) {
    border-bottom: none;
}

.tw-features__card-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    margin-bottom: 16px;
}

.tw-features__card h3 {
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

.tw-features__card p {
    color: rgba(255,255,255,0.62);
    font-size: 0.875rem;
    line-height: 1.65;
    margin: 0;
}

/* ── SERVICE AREAS ── */
.tw-areas {
    background: #fff;
    padding: 64px 0;
    border-top: 1px solid #e5e7eb;
}

.tw-areas__inner {
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

.tw-areas__inner h2 {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--navy-800);
    margin-bottom: 12px;
}

.tw-areas__inner > p {
    color: var(--gray-600);
    font-size: var(--text-base);
    line-height: 1.7;
    margin-bottom: 32px;
}

.tw-areas__cities {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.tw-areas__cities span {
    display: inline-block;
    background: #f0f5fa;
    color: var(--navy-700);
    font-size: var(--text-sm);
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 9999px;
    border: 1px solid #d1d9e6;
}

/* ── ABOUT STRIP ── */
.tw-about {
    background: var(--navy-900);
    padding: 64px 0;
}

.tw-about__grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 56px;
    align-items: center;
}

.tw-about__left {
    border-right: 1px solid rgba(255,255,255,0.12);
    padding-right: 56px;
}

.tw-about__grid h2 {
    color: #fff;
    font-size: var(--text-2xl);
    line-height: 1.2;
    margin: 0;
}

.tw-about__grid > p {
    color: rgba(255,255,255,0.78);
    line-height: 1.85;
    font-size: var(--text-base);
    margin: 0;
}

/* ── SALE BANNER ── */
.tw-sale-banner {
    padding: 40px 24px;
    background: #fff;
}

.tw-sale-banner__inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    border-radius: 16px;
    padding: 80px 40px;
    background-image: url('https://aquasourceboise.com/wp-content/uploads/elementor/thumbs/pexels-binyaminmellish-186077-scaled-e1728941208738-qvkcdaadyl47z1wubdsbwpha78f8u54rorho541mga.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.tw-sale-banner__inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(6,33,79,0.72);
    border-radius: 16px;
}

.tw-sale-banner__inner > * {
    position: relative;
    z-index: 1;
}

.tw-sale-banner__line {
    height: 3px;
    width: 128px;
    margin: 0 auto 20px;
    background: linear-gradient(to left, transparent, rgba(255,255,255,0.7));
}

.tw-sale-banner__inner h2 {
    font-size: var(--text-2xl);
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.25;
    font-weight: 600;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.tw-sale-banner__inner p {
    color: rgba(255,255,255,0.82);
    font-size: var(--text-base);
    margin-bottom: 28px;
}

.tw-sale-banner__btn {
    display: inline-block;
    background: #fff;
    color: var(--navy-800);
    font-size: var(--text-sm);
    font-weight: 600;
    padding: 12px 40px;
    border-radius: 9999px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tw-sale-banner__btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* ── RESPONSIVE 768px ── */
@media (max-width: 768px) {
    .tw-intro__grid,
    .tw-compare__grid,
    .tw-benefits-list__grid,
    .tw-about__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .tw-intro__image img {
        height: 280px;
    }
    .tw-intro__copy h2 {
        font-size: var(--text-2xl);
    }
    .tw-about__left {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.12);
        padding-right: 0;
        padding-bottom: 20px;
    }
    .tw-features__cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .tw-features__card:nth-child(3n) {
        border-right: 1px solid rgba(255,255,255,0.12);
    }
    .tw-features__card:nth-child(2n) {
        border-right: none;
    }
    .tw-features__card:nth-last-child(-n+3) {
        border-bottom: 1px solid rgba(255,255,255,0.12);
    }
    .tw-features__card:nth-last-child(-n+2) {
        border-bottom: none;
    }
    .tw-compare__col {
        padding: 28px;
    }
    .tw-sale-banner__inner {
        padding: 56px 24px;
    }
}

/* ── RESPONSIVE 480px ── */
@media (max-width: 480px) {
    .tw-intro {
        padding: 40px 0;
    }
    .tw-intro__copy h2 {
        font-size: var(--text-xl);
    }
    .tw-intro__image img {
        height: 220px;
    }
    .tw-intro__badge {
        bottom: 16px;
        left: 16px;
        padding: 12px 16px;
    }
    .tw-intro__badge strong {
        font-size: 1.5rem;
    }
    .tw-intro__actions {
        flex-direction: column;
    }
    .tw-compare {
        padding: 48px 0;
    }
    .tw-compare__header h2 {
        font-size: var(--text-xl);
    }
    .tw-compare__col {
        padding: 24px 20px;
    }
    .tw-benefits-heading {
        padding: 32px 0;
    }
    .tw-benefits-heading h2 {
        font-size: var(--text-lg);
        padding: 0 8px;
    }
    .tw-products {
        padding: 48px 0 32px;
    }
    .tw-products__header h2 {
        font-size: var(--text-xl);
    }
    .tw-features {
        padding: 48px 0;
    }
    .tw-features h2 {
        font-size: var(--text-xl);
        padding: 0 8px;
    }
    .tw-features__cards {
        grid-template-columns: 1fr;
    }
    .tw-features__card {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.12);
    }
    .tw-features__card:last-child {
        border-bottom: none;
    }
    .tw-features__card:nth-last-child(-n+2) {
        border-bottom: 1px solid rgba(255,255,255,0.12);
    }
    .tw-areas__inner h2 {
        font-size: var(--text-xl);
    }
    .tw-about {
        padding: 40px 0;
    }
    .tw-about__grid h2 {
        font-size: var(--text-xl);
    }
    .tw-sale-banner {
        padding: 24px 16px;
    }
    .tw-sale-banner__inner {
        padding: 48px 20px;
        border-radius: 12px;
    }
    .tw-sale-banner__inner h2 {
        font-size: var(--text-xl);
    }
}
