/*
Theme Name: GeneratePress Child
Theme URI: https://willitfitthrough.com
Description: Child theme for Will It Fit Through.
Author: Will It Fit Through
Template: generatepress
Version: 1.0
Text Domain: generatepress-child
*/

/* Custom styles for Will It Fit Through */

.wift-footer-links a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.wift-footer-links span {
    color: #9ca3af;
}

/* Hero subtitle line refinement */
.wift-hero__subtitle {
    max-width: 780px;
    text-wrap: normal;
}

@media (min-width: 900px) {
    .wift-hero__subtitle {
        font-size: 1.02rem;
    }
}

/* =================================
   Hero with right-side image
   ================================= */

.wift-hero--split {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 28px;
    align-items: center;
    text-align: left;
    padding: 34px 34px;
}

.wift-hero--split .wift-hero__content {
    max-width: 640px;
    margin: 0;
    text-align: left;
}

.wift-hero--split .wift-hero__eyebrow {
    margin-bottom: 12px;
}

.wift-hero--split h1 {
    margin: 0 0 16px;
    font-size: clamp(2.2rem, 4vw, 3.15rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.wift-hero--split .wift-hero__subtitle {
    margin: 0;
    max-width: 560px;
    font-size: 1.02rem;
    line-height: 1.65;
    color: #4b5563;
}

.wift-hero__media {
    display: flex;
    justify-content: center;
    align-items: center;
}

.wift-hero__image-wrap {
    position: relative;
    width: 100%;
    max-width: 360px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
    background: #eef2f7;
}

.wift-hero__image-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.18) 0%,
        rgba(255,255,255,0.05) 40%,
        rgba(255,255,255,0.16) 100%
    );
    pointer-events: none;
}

.wift-hero__image {
    display: block;
    width: 100%;
    height: auto;
}

/* Desactiva el fondo decorativo viejo del hero */
.wift-hero::after {
    display: none;
}

@media (max-width: 900px) {
    .wift-hero--split {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 28px 22px;
    }

    .wift-hero--split .wift-hero__content {
        max-width: 100%;
        margin: 0 auto;
        text-align: center;
    }

    .wift-hero--split .wift-hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .wift-hero__media {
        justify-content: center;
    }

    .wift-hero__image-wrap {
        max-width: 320px;
    }
}

@media (max-width: 640px) {
    .wift-hero__media {
        display: none;
    }

    .wift-hero--split {
        grid-template-columns: 1fr;
    }

    .wift-hero--split h1 {
        font-size: 1.85rem;
        line-height: 1.12;
    }

    .wift-hero--split .wift-hero__subtitle {
        font-size: 0.98rem;
        line-height: 1.55;
    }
}

.wift-hero--split .wift-hero__subtitle {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
}

/* Final hero layout refinement */
.wift-hero--split {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: 48px;
    align-items: center;
    text-align: left;
    padding: 42px;
}

.wift-hero--split .wift-hero__content {
    max-width: 690px;
    margin: 0;
    text-align: left;
}

.wift-hero--split h1 {
    max-width: 680px;
    font-size: clamp(2.35rem, 4.1vw, 4rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
    text-align: left;
}

.wift-hero--split .wift-hero__subtitle {
    max-width: 620px;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
}

.wift-hero__media {
    justify-content: center;
}

.wift-hero__image-wrap {
    max-width: 390px;
}

@media (max-width: 900px) {
    .wift-hero--split {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 28px 22px;
        text-align: center;
    }

    .wift-hero--split .wift-hero__content,
    .wift-hero--split h1,
    .wift-hero--split .wift-hero__subtitle {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .wift-hero__image-wrap {
        max-width: 320px;
    }
}

@media (max-width: 640px) {
    .wift-hero__media {
        display: none;
    }

    .wift-hero--split h1 {
        font-size: 1.85rem;
        line-height: 1.12;
    }
}

/* Final hero text flow fix */
.wift-hero--split {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 40px;
}

.wift-hero--split .wift-hero__content {
    max-width: none;
    width: 100%;
}

.wift-hero--split h1 {
    max-width: none;
    width: 100%;
    text-wrap: normal !important;
    font-size: clamp(2.3rem, 3.7vw, 3.55rem);
    line-height: 1.08;
}

.wift-hero--split .wift-hero__subtitle {
    max-width: none;
    text-wrap: normal !important;
}

.wift-hero__image-wrap {
    max-width: 360px;
}

/* Simple layout for About / Privacy / Disclosure pages */
.wift-subpage-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    padding: 34px 34px;
    margin: 8px 0 24px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
    text-align: center;
}

.wift-subpage-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #111827;
    text-wrap: balance;
}

.wift-subpage-hero p:last-child {
    margin: 0 auto;
    max-width: 720px;
    color: #4b5563;
    line-height: 1.65;
}

.wift-subpage-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    padding: 30px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.wift-subpage-card p,
.wift-subpage-card li {
    color: #4b5563;
    line-height: 1.72;
}

.wift-subpage-card h2 {
    margin-top: 26px;
    margin-bottom: 10px;
    font-size: 1.35rem;
    line-height: 1.25;
    color: #111827;
}

@media (max-width: 768px) {
    .wift-subpage-hero,
    .wift-subpage-card {
        padding: 22px;
        border-radius: 18px;
    }

    .wift-subpage-hero h1 {
        font-size: 1.75rem;
    }
}

/* Hide default WordPress page title on custom subpages */
body.page:not(.home) .entry-header {
    display: none;
}

body.page:not(.home) .inside-article {
    padding-top: 0;
}

/* Force consistent site logo across all pages */
.site-branding .main-title,
.site-branding .main-title a {
    display: inline-flex;
    align-items: center;
}

.site-branding .main-title {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.site-branding .main-title a {
    gap: 10px;
    color: #111827;
    text-decoration: none;
}

.site-branding .main-title a::before {
    content: "";
    width: 14px;
    height: 14px;
    min-width: 14px;
    border-radius: 4px;
    background: linear-gradient(135deg, #111827 0%, #2563eb 100%);
    display: inline-block;
}