/* TEADAYE Philippines store landing page */

.ph-landing {
    --ph-main: #011e41;
    --ph-muted: #404040;
    --ph-line: #d8d8d8;
    --ph-tint: #f7f7f7;
    --ph-white: #fff;
}

.ph-section-inner {
    max-width: 920px;
    width: 100%;
}

.ph-section--tint {
    background: var(--ph-tint);
}

.ph-section--last {
    padding-bottom: calc(7rem + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 767px) {
    .ph-landing .footer,
    .ph-landing .content-width.footer {
        padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
    }
}

/* Split image + text (homepage style) */
.ph-split {
    display: flex;
    flex-direction: column;
}

.ph-split--reverse {
    flex-direction: column;
}

.ph-split-media {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--ph-tint);
}

.ph-split-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ph-split-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3.5rem 1.5rem;
}

.ph-split-content-inner {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
}

.ph-intro p {
    margin: 0 0 0.85em;
}

.ph-intro p:last-child {
    margin-bottom: 0;
}

/* Product showcase strip */
.ph-showcase {
    padding: 0;
}

.ph-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.ph-showcase-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: var(--ph-tint);
}

.ph-showcase-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ph-showcase-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 1.4rem 0.75rem 0.85rem;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    background: linear-gradient(180deg, rgba(1, 30, 65, 0) 0%, rgba(1, 30, 65, 0.72) 100%);
}

/* Menu */
.ph-menu-note {
    margin: 0;
    opacity: 0.85;
}

.ph-menu {
    border-top: 1px solid var(--ph-line);
    width: 100%;
}

.ph-menu-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--ph-line);
}

.ph-menu-thumb {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    overflow: hidden;
    background: #eee;
}

.ph-menu-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ph-menu-info {
    min-width: 0;
    flex: 1 1 auto;
}

.ph-menu-name {
    margin: 0;
    color: var(--ph-main);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
}

.ph-menu-desc {
    margin: 0.35rem 0 0;
    color: var(--ph-muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.ph-menu-price {
    margin: 0;
    flex-shrink: 0;
    color: var(--ph-main);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.ph-menu-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    width: 100%;
    margin-top: 0.5rem;
}

.ph-pager-btn {
    appearance: none;
    min-height: 44px;
    min-width: 96px;
    padding: 0.65rem 1rem;
    border: 1px solid var(--ph-main);
    background: var(--ph-white);
    color: var(--ph-main);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.ph-pager-btn:hover:not(:disabled),
.ph-pager-btn:focus:not(:disabled) {
    background: var(--ph-main);
    color: var(--ph-white);
}

.ph-pager-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.ph-pager-status {
    margin: 0;
    min-width: 72px;
    text-align: center;
    color: var(--ph-main);
    font-size: 0.95rem;
    font-weight: 600;
}

/* Visit info */
.ph-visit-info {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    width: 100%;
    align-items: center;
}

.ph-info-block {
    width: 100%;
}

.ph-info-label {
    margin: 0 0 0.35rem;
    color: var(--ph-main);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ph-info-value {
    margin: 0;
    color: var(--ph-muted);
    font-size: 1rem;
    line-height: 1.55;
}

.ph-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.85rem 1.4rem;
    border: 1px solid var(--ph-main);
    text-align: center;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.ph-btn--primary {
    background: var(--ph-main);
    color: var(--ph-white);
}

.ph-btn--primary:hover,
.ph-btn--primary:focus {
    background: #02305f;
    color: var(--ph-white);
}

.ph-map-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #e8e8e8;
    aspect-ratio: 4 / 3;
}

.ph-map-wrap--wide {
    aspect-ratio: 16 / 10;
    min-height: 220px;
}

.ph-map {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Delivery cards with image backgrounds */
.ph-link-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    width: 100%;
}

.ph-link-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 64px;
    padding: 1rem 1.25rem;
    border: 1px solid var(--ph-main);
    background: var(--ph-white);
    color: var(--ph-main);
    text-decoration: none;
    overflow: hidden;
    transition: color 0.2s ease;
}

.ph-link-card--media {
    min-height: 140px;
    border: 0;
    color: var(--ph-white);
    padding: 1.25rem 1.35rem;
    align-items: flex-end;
}

.ph-link-card__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.35s ease;
}

.ph-link-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(1, 30, 65, 0.15) 0%, rgba(1, 30, 65, 0.72) 100%);
}

.ph-link-card__body {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.ph-link-card__title {
    font-size: 1.25rem;
    font-weight: 700;
}

.ph-link-card__cta {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.95;
}

.ph-link-card--media:hover .ph-link-card__bg,
.ph-link-card--media:focus .ph-link-card__bg {
    transform: scale(1.06);
}

/* Social */
.ph-social-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
}

.ph-social-row--start {
    justify-content: center;
}

.ph-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 48px;
    min-width: 44%;
    flex: 1 1 140px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--ph-main);
    color: var(--ph-main);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    background: var(--ph-white);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.ph-social-btn svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.ph-social-btn:hover,
.ph-social-btn:focus {
    background: var(--ph-main);
    color: var(--ph-white);
}

/* Franchise band */
.ph-franchise {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--ph-main);
}

.ph-franchise-bg {
    position: absolute;
    inset: 0;
}

.ph-franchise-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ph-franchise-overlay {
    position: absolute;
    inset: 0;
    background: rgba(1, 30, 65, 0.62);
}

.ph-franchise-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 720px;
    padding: 4rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.ph-franchise-copy {
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
}

.ph-hotline {
    color: var(--ph-main);
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    line-height: 1.2;
}

.ph-hotline--light {
    color: #fff;
}

.ph-hotline:hover,
.ph-hotline:focus {
    text-decoration: underline;
}

.ph-privacy-link {
    color: var(--ph-muted);
    font-size: 0.95rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ph-privacy-link--light {
    color: rgba(255, 255, 255, 0.88);
}

.ph-privacy-link:hover,
.ph-privacy-link:focus {
    color: var(--ph-main);
}

.ph-privacy-link--light:hover,
.ph-privacy-link--light:focus {
    color: #fff;
}

/* Mobile sticky quick actions */
.ph-sticky-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--ph-line);
    border-top: 1px solid var(--ph-line);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -6px 18px rgba(1, 30, 65, 0.08);
}

.ph-sticky-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0.65rem 0.4rem;
    background: var(--ph-main);
    color: var(--ph-white);
    text-align: center;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.2;
}

.ph-sticky-bar a:active {
    background: #02305f;
}

/* Mobile: showcase becomes horizontal snap */
@media (max-width: 767px) {
    .ph-showcase-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 0;
    }

    .ph-showcase-item {
        flex: 0 0 72vw;
        max-width: 280px;
        scroll-snap-align: start;
        aspect-ratio: 3 / 4;
    }

    .ph-showcase-item:first-child {
        margin-left: 0;
    }
}

/* Tablet+ */
@media (min-width: 768px) {
    .ph-showcase-caption {
        font-size: 1rem;
        padding: 2rem 1rem 1.1rem;
    }

    .ph-pager-btn {
        min-width: 120px;
        font-size: 1rem;
    }

    .ph-pager-status {
        font-size: 1.05rem;
        min-width: 96px;
    }

    .ph-split {
        flex-direction: row;
        min-height: 560px;
    }

    .ph-split--reverse {
        flex-direction: row-reverse;
    }

    .ph-split-media {
        width: 50%;
        aspect-ratio: auto;
        min-height: 560px;
    }

    .ph-split-content {
        width: 50%;
        padding: 4rem 3rem;
    }

    .ph-split-content-inner {
        align-items: flex-start;
        text-align: left;
        max-width: 460px;
        gap: 1.5rem;
    }

    .ph-visit-info {
        align-items: flex-start;
    }

    .ph-menu-row {
        padding: 1.35rem 0;
        gap: 1.25rem;
    }

    .ph-menu-thumb {
        width: 88px;
        height: 88px;
    }

    .ph-menu-name,
    .ph-menu-price {
        font-size: 1.35rem;
    }

    .ph-menu-desc {
        font-size: 1rem;
        margin-top: 0.5rem;
    }

    .ph-info-label {
        font-size: 0.95rem;
    }

    .ph-info-value {
        font-size: 1.15rem;
    }

    .ph-map-wrap--wide {
        aspect-ratio: 21 / 9;
        min-height: 320px;
    }

    .ph-link-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .ph-link-card--media {
        min-height: 200px;
    }

    .ph-social-btn {
        min-width: 0;
        flex: 0 1 auto;
        padding: 0.85rem 1.4rem;
    }

    .ph-social-row--start {
        justify-content: flex-start;
    }

    .ph-hotline {
        font-size: 2.4rem;
    }

    .ph-franchise {
        min-height: 480px;
    }

    .ph-sticky-bar {
        display: none;
    }

    .ph-section--last {
        padding-bottom: 0;
    }
}

@media (min-width: 1024px) {
    .ph-split {
        min-height: 640px;
    }

    .ph-split-media {
        min-height: 640px;
    }

    .ph-split-content {
        padding: 5rem 4.5rem;
    }

    .ph-menu-name,
    .ph-menu-price {
        font-size: 1.6rem;
    }

    .ph-menu-desc {
        font-size: 1.15rem;
    }

    .ph-menu-thumb {
        width: 108px;
        height: 108px;
    }

    .ph-btn {
        align-self: flex-start;
        min-width: 260px;
        font-size: 1rem;
    }

    .ph-link-card--media {
        min-height: 240px;
        padding: 1.5rem 1.75rem;
    }

    .ph-link-card__title {
        font-size: 1.5rem;
    }

    .ph-franchise {
        min-height: 520px;
    }
}
