/**
 * Plan Your Visit Section Styles
 * Synergy Health Theme
 * Image cards with gradient overlays and quick link icons
 */

/* ========================================
   SECTION BASE
   ======================================== */

.plan-your-visit-section {
    position: relative;
    width: 100%;
    padding: 80px 20px;
    background: linear-gradient(180deg, #E8D5C4 0%, #B8D4CE 75%, #FFFFFF 75%);
    overflow: hidden;
}

/* Container */
.pyv-container {
    position: relative;
    max-width: 1440px;
    margin: 0 auto;
    z-index: 2;
}

/* ========================================
   HEADER
   ======================================== */

.pyv-header {
    text-align: center;
    margin-bottom: 50px;
}

.pyv-heading {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--primary-blue);
    margin: 0 0 15px 0;
}

.pyv-subheading {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--black);
    margin: 0;
}

/* ========================================
   IMAGE CARDS GRID
   ======================================== */

.pyv-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
    height: 325px;
}

/* Individual Image Card */
.pyv-image-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    max-height: 325px;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pyv-image-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.pyv-image-card:focus {
    outline: 3px solid var(--primary-blue);
    outline-offset: 3px;
}

/* Background Image */
.pyv-card-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    z-index: 1;
}

/* Overlay Colors */
.pyv-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    transition: opacity 0.3s ease;
}

/* Red/Pink Overlay (Find a Doctor) */
.pyv-image-card.overlay-red .pyv-card-overlay {
    background: linear-gradient(135deg, rgba(206, 74, 87, 0.8) 0%, rgba(180, 50, 65, 0.8) 100%);
}

/* Teal Overlay (Insurance Info) */
.pyv-image-card.overlay-teal .pyv-card-overlay {
    background: linear-gradient(135deg, rgba(98, 164, 152, 0.8) 0%, rgba(75, 140, 128, 0.8) 100%);
}

/* Blue Overlay (Payment Info) */
.pyv-image-card.overlay-blue .pyv-card-overlay {
    background: linear-gradient(135deg, rgba(68, 100, 173, 0.8) 0%, rgba(55, 85, 150, 0.8) 100%);
}

.pyv-image-card:hover .pyv-card-overlay {
    opacity: 0.95;
}

/* Card Content */
.pyv-card-content {
    position: relative;
    z-index: 3;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Card Eyebrow */
.pyv-card-eyebrow {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--white);
    margin: 0;
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 3;
}

/* Card Title */
.pyv-card-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--white);
    margin: 0 0 12px 0;
}

/* Link Wrapper */
.pyv-card-link-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 10px;
}

/* Arrow Icon */
.pyv-card-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-base);
}

.pyv-card-arrow img {
    width: 44px;
    height: 44px;
}

.pyv-image-card:hover .pyv-card-arrow {
    transform: translateX(var(--spacing-xs));
}

/* ========================================
   QUICK LINKS SECTION
   ======================================== */

.pyv-quick-links {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    background-color: var(--off-white);
    border-radius: var(--radius-lg);
}

/* Individual Quick Link */
.pyv-quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    padding: 20px;
    border-right: 1px solid #C8C8C8;
    transition: all 0.3s ease;
}

.pyv-quick-link:last-child {
    border-right: none;
}

.pyv-quick-link:hover {
    transform: translateY(-4px);
}

.pyv-quick-link:focus {
    outline: 3px solid var(--primary-blue);
    outline-offset: 3px;
}

/* Link Icon */
.pyv-link-icon {
    margin: 60px 0;
}

.pyv-link-icon img {
    width: 60px;
    height: 60px;
    transition: transform 0.3s ease;
}

.pyv-quick-link:hover .pyv-link-icon img {
    transform: scale(1.1);
}

/* Link Title */
.pyv-link-title {
    font-family: 'Proxima Nova', sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--black);
    margin-top: 20px;
}

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

/* Desktop Large (1200px) */
@media (max-width: 1200px) {
    .pyv-cards-grid {
        gap: 25px;
    }
    
    .pyv-card-title {
        font-size: 24px;
    }
    
    .pyv-quick-links {
        padding: 40px 30px;
    }
    
    .pyv-link-title {
        font-size: 17px;
    }
}

/* Tablet Landscape (1024px) */
@media (max-width: 1024px) {
    .plan-your-visit-section {
        padding: 70px 20px;
    }
    
    .pyv-heading {
        font-size: 42px;
    }
    
    .pyv-subheading {
        font-size: 17px;
    }
    
    .pyv-cards-grid {
        gap: 20px;
    }
    
    .pyv-card-content {
        padding: 25px;
    }
    
    .pyv-card-eyebrow {
        top: 25px;
        left: 25px;
    }
    
    .pyv-card-title {
        font-size: 22px;
    }
    
    .pyv-quick-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 0;
        padding: 35px 0;
    }
    
    .pyv-link-icon img {
        width: 56px;
        height: 56px;
    }
    
    .pyv-link-title {
        font-size: 16px;
    }
}

/* Tablet Portrait (768px) */
@media (max-width: 768px) {
    .plan-your-visit-section {
        padding: 60px 20px;
    }
    
    .pyv-header {
        margin-bottom: 40px;
    }
    
    .pyv-heading {
        font-size: 36px;
    }
    
    .pyv-subheading {
        font-size: 16px;
    }
    
    .pyv-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 50px;
    }
    
    .pyv-card-title {
        font-size: 24px;
    }
    
    .pyv-quick-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
        padding: 30px 0;
    }
}

/* Mobile (480px) */
@media (max-width: 480px) {
    .plan-your-visit-section {
        padding: 50px 16px;
    }
    
    .pyv-header {
        margin-bottom: 35px;
    }
    
    .pyv-heading {
        font-size: 32px;
    }
    
    .pyv-subheading {
        font-size: 15px;
    }
    
    .pyv-cards-grid {
        margin-bottom: 40px;
    }
    
    
    .pyv-card-content {
        padding: 20px;
    }
    
    .pyv-card-eyebrow {
        font-size: 12px;
        top: 20px;
        left: 20px;
    }
    
    .pyv-card-title {
        font-size: 20px;
    }
    
    .pyv-card-arrow img {
        width: 38px;
        height: 38px;
    }
    
    .pyv-quick-links {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 25px 0;
    }
    
    .pyv-quick-link {
        padding: 15px;
    }
    
    .pyv-link-icon {
        margin-bottom: 15px;
    }
    
    .pyv-link-icon img {
        width: 52px;
        height: 52px;
    }
    
    .pyv-link-title {
        font-size: 16px;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .pyv-image-card,
    .pyv-card-overlay,
    .pyv-card-arrow,
    .pyv-quick-link,
    .pyv-link-icon img {
        transition: none;
    }
    
    .pyv-image-card:hover,
    .pyv-quick-link:hover {
        transform: none;
    }
    
    .pyv-image-card:hover .pyv-card-arrow {
        transform: none;
    }
    
    .pyv-quick-link:hover .pyv-link-icon img {
        transform: none;
    }
}
