/**
 * Dineroza — Lifestyle Imagery Styles
 * Adds authentic community photography to category pages & homepage
 */

/* ===== PAGE HEADER SPLIT LAYOUT (text left, photo right) ===== */

.phl-layout {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    /* override any padding from parent .page-header */
}

.phl-text {
    flex: 1;
    min-width: 0;
}

.phl-photo {
    flex: 0 0 380px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 56px rgba(6,78,59,0.14), 0 4px 16px rgba(0,0,0,0.08);
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
    /* gradient shows while image loads / as fallback */
}

.phl-photo img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    border-radius: 20px;
    transition: transform 0.5s ease;
}

.phl-photo:hover img {
    transform: scale(1.03);
}

.phl-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(6,78,59,0.12) 100%);
    border-radius: 20px;
    pointer-events: none;
}

.phl-caption {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(6px);
    border-radius: 8px;
    padding: 7px 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: #065F46;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 1;
}

.phl-caption::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #065F46;
    flex-shrink: 0;
}

@media (max-width: 860px) {
    .phl-layout {
        flex-direction: column;
        gap: 1.5rem;
    }
    .phl-photo {
        flex: none;
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
    }
    .phl-photo img {
        height: 230px;
    }
}

/* ===== CATEGORY PAGE HERO WITH LIFESTYLE IMAGE ===== */

.page-hero-split {
    display: flex;
    align-items: stretch;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 2.5rem;
    position: relative;
}

.page-hero-split .page-hero-text {
    flex: 1;
    min-width: 0;
    padding-right: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-hero-split .page-hero-photo {
    flex: 0 0 380px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    min-height: 260px;
    box-shadow: 0 16px 48px rgba(6,78,59,0.14), 0 4px 12px rgba(0,0,0,0.08);
}

.page-hero-split .page-hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px;
}

/* Subtle overlay on category photo */
.page-hero-split .page-hero-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(6,78,59,0.15) 100%);
    border-radius: 20px;
    pointer-events: none;
}

/* ===== STANDALONE PAGE HEADER + PHOTO (for pages using page-header class) ===== */

.page-header-with-photo {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 2rem;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.page-header-with-photo .pheader-text {
    flex: 1;
    min-width: 0;
}

.page-header-with-photo .pheader-img {
    flex: 0 0 360px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 56px rgba(6,78,59,0.13), 0 4px 12px rgba(0,0,0,0.07);
    position: relative;
}

.page-header-with-photo .pheader-img img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    border-radius: 18px;
    transition: transform 0.5s ease;
}

.page-header-with-photo .pheader-img:hover img {
    transform: scale(1.02);
}

.page-header-with-photo .pheader-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(6,78,59,0.1) 100%);
    border-radius: 18px;
    pointer-events: none;
}

/* Keep existing .page-header text styles intact when inside .page-header-with-photo */
.page-header-with-photo h1 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(1.85rem, 3.5vw, 2.8rem);
    color: #065F46;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

.page-header-with-photo h1 em {
    font-style: normal;
    color: #D97706;
}

.page-header-with-photo p {
    font-size: 1.05rem;
    color: #6B7280;
    line-height: 1.6;
    max-width: 580px;
    margin-bottom: 1.25rem;
}

/* ===== HOMEPAGE COMMUNITY TRUST SECTION ===== */

.community-trust-section {
    background: linear-gradient(160deg, #F0FDF4 0%, #ECFDF5 60%, #FFFBF0 100%);
    padding: 4.5rem 2rem;
    position: relative;
    overflow: hidden;
}

.community-trust-section::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(217,119,6,0.07), transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.community-trust-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.community-trust-photo {
    flex: 0 0 540px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 24px 64px rgba(6,78,59,0.15), 0 6px 20px rgba(0,0,0,0.08);
}

.community-trust-photo img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    border-radius: 24px;
}

.community-trust-photo .photo-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1C1917;
}

.community-trust-photo .photo-badge .badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #065F46;
    animation: pulse-badge 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse-badge {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

.community-trust-text {
    flex: 1;
    min-width: 0;
}

.community-trust-text .ct-eyebrow {
    display: inline-block;
    background: rgba(6,78,59,0.08);
    color: #065F46;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 1.25rem;
}

.community-trust-text h2 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    color: #1C1917;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.community-trust-text h2 em {
    font-style: normal;
    color: #065F46;
}

.community-trust-text p {
    font-size: 1.05rem;
    color: #6B7280;
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 1.75rem;
}

.ct-trust-items {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-bottom: 2rem;
}

.ct-trust-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.5;
}

.ct-trust-item .ct-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #065F46, #047857);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.ct-trust-item .ct-check svg {
    width: 12px;
    height: 12px;
    stroke: white;
    stroke-width: 3;
}

.ct-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #064E3B 0%, #065F46 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(6,78,59,0.25);
}

.ct-cta-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(6,78,59,0.3);
}

/* ===== GUIDE CARD THUMBNAIL ===== */

.guide-card-thumb {
    width: 100%;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.25rem;
    position: relative;
}

.guide-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    transition: transform 0.4s ease;
}

.guide-card:hover .guide-card-thumb img {
    transform: scale(1.04);
}

.guide-card-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(6,78,59,0.2) 100%);
    border-radius: 12px;
    pointer-events: none;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 900px) {
    .page-header-with-photo {
        flex-direction: column;
        padding: 2rem 1.25rem 1.5rem;
        gap: 1.75rem;
    }
    .page-header-with-photo .pheader-img {
        flex: none;
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
    }
    .community-trust-inner {
        flex-direction: column;
        gap: 2rem;
    }
    .community-trust-photo {
        flex: none;
        width: 100%;
        max-width: 540px;
        margin: 0 auto;
    }
    .community-trust-photo img {
        height: 280px;
    }
}

@media (max-width: 640px) {
    .community-trust-section {
        padding: 3rem 1.25rem;
    }
    .guide-card-thumb {
        height: 140px;
    }
    .page-header-with-photo .pheader-img img {
        height: 220px;
    }
}
