/* ==========================================================================
   Sangjo-Bugo Theme - Index Page Styles
   Funeral Notice Service Main Landing Page
   ========================================================================== */

/* ==========================================================================
   1. Hero Section Overrides & Slide Backgrounds
   ========================================================================== */

.hero-section {
    margin-top: calc(var(--header-height) * -1);
    padding-top: 0;
}

.hero-slide[data-slide="1"] {
    background-image: url('/templates/sangjo-bugo/img/hero-slide-1.jpg');
    background-color: var(--color-dark);
}

.hero-slide[data-slide="2"] {
    background-image: url('/templates/sangjo-bugo/img/hero-slide-2.jpg');
    background-color: var(--color-dark);
}

.hero-slide[data-slide="3"] {
    background-image: url('/templates/sangjo-bugo/img/hero-slide-3.jpg');
    background-color: var(--color-dark);
}

.hero-slide-overlay {
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-slide-content h2 {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 0.8s ease 0.2s forwards;
}

.hero-slide-content p {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.8s ease 0.4s forwards;
}

.hero-slide-content .hero-btn {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.8s ease 0.6s forwards;
}

.swiper-slide-active .hero-slide-content h2,
.swiper-slide-active .hero-slide-content p,
.swiper-slide-active .hero-slide-content .hero-btn {
    opacity: 0;
    animation: heroFadeUp 0.8s ease forwards;
}

.swiper-slide-active .hero-slide-content h2 {
    animation-delay: 0.2s;
}

.swiper-slide-active .hero-slide-content p {
    animation-delay: 0.4s;
}

.swiper-slide-active .hero-slide-content .hero-btn {
    animation-delay: 0.6s;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   2. Service Cards Section
   ========================================================================== */

.service-section .section-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.75rem;
    color: var(--color-gray-900);
    letter-spacing: 1px;
}

.service-section .section-divider {
    margin-bottom: 3rem;
}

.service-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.service-card:hover .service-card-icon {
    background-color: rgba(139, 115, 85, 0.15);
}

.service-card:hover .service-card-icon i {
    transform: scale(1.1);
}

.service-card-icon i {
    transition: transform 0.3s ease;
}

.service-card:hover .service-card-title {
    color: var(--color-accent);
}

.service-card-title {
    transition: color 0.2s ease;
}

/* ==========================================================================
   3. Q&A Section
   ========================================================================== */

.qna-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.qna-section .section-header h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gray-900);
    letter-spacing: 0.5px;
}

.qna-section .section-header .more-link {
    font-size: 0.8125rem;
    color: var(--color-gray-500);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.qna-section .section-header .more-link:hover {
    color: var(--color-gray-900);
}

.qna-section .section-header .more-link i {
    font-size: 0.625rem;
}

.qna-list {
    background-color: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.qna-item:last-child {
    border-bottom: none;
}

.qna-item:first-child {
    border-radius: 8px 8px 0 0;
}

.qna-item:last-child {
    border-radius: 0 0 8px 8px;
}

/* ==========================================================================
   4. Info Banner Section
   ========================================================================== */

.info-banner-section {
    padding: 60px 0;
    background-color: var(--color-white);
}

.info-banner {
    background-color: var(--color-black);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.info-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(139, 115, 85, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(139, 115, 85, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.info-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 3rem 2.5rem;
    position: relative;
    z-index: 1;
}

.info-banner-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(139, 115, 85, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-banner-icon i {
    font-size: 1.75rem;
    color: var(--color-accent);
}

.info-banner-text {
    text-align: left;
}

.info-banner-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 0.25rem;
    letter-spacing: 0.5px;
}

.info-banner-desc {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

.info-banner-phone {
    flex-shrink: 0;
}

.info-banner-phone a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-white);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.info-banner-phone a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.info-banner-phone a i {
    font-size: 1rem;
    animation: phonePulse 2s ease-in-out infinite;
}

@keyframes phonePulse {
    0%, 100% {
        transform: rotate(0deg);
    }
    10% {
        transform: rotate(-10deg);
    }
    20% {
        transform: rotate(10deg);
    }
    30% {
        transform: rotate(-10deg);
    }
    40% {
        transform: rotate(0deg);
    }
}

/* ==========================================================================
   5. Responsive - 1500px+ (Large Desktop)
   ========================================================================== */

@media (min-width: 1500px) {
    .info-banner-content {
        gap: 3rem;
        padding: 3.5rem 3rem;
    }

    .info-banner-title {
        font-size: 1.75rem;
    }

    .info-banner-phone a {
        font-size: 1.5rem;
        padding: 16px 40px;
    }
}

/* ==========================================================================
   6. Responsive - 1440px (Laptop / Small Desktop)
   ========================================================================== */

@media (max-width: 1440px) {
    .info-banner-content {
        gap: 1.5rem;
        padding: 2.5rem 2rem;
    }

    .info-banner-title {
        font-size: 1.375rem;
    }
}

/* ==========================================================================
   7. Responsive - 1024px (Tablet Landscape)
   ========================================================================== */

@media (max-width: 1024px) {
    .info-banner-content {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .info-banner-icon {
        width: 56px;
        height: 56px;
    }

    .info-banner-icon i {
        font-size: 1.5rem;
    }

    .info-banner-text {
        flex: 1;
        min-width: 200px;
    }

    .info-banner-title {
        font-size: 1.25rem;
    }

    .info-banner-desc {
        font-size: 0.875rem;
    }

    .info-banner-phone a {
        font-size: 1.125rem;
        padding: 12px 28px;
    }
}

/* ==========================================================================
   8. Responsive - 768px (Tablet Portrait)
   ========================================================================== */

@media (max-width: 768px) {
    /* Service Section */
    .service-section .section-title {
        font-size: 1.5rem;
    }

    .service-section .section-divider {
        margin-bottom: 2rem;
    }

    /* Q&A Section */
    .qna-section .section-header h2 {
        font-size: 1.25rem;
    }

    /* Info Banner */
    .info-banner-section {
        padding: 40px 0;
    }

    .info-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 1.25rem;
        padding: 2rem 1.5rem;
    }

    .info-banner-text {
        text-align: center;
    }

    .info-banner-title {
        font-size: 1.25rem;
    }

    .info-banner-desc {
        font-size: 0.8125rem;
    }

    .info-banner-phone a {
        font-size: 1.125rem;
        padding: 12px 28px;
    }
}

/* ==========================================================================
   9. Responsive - 480px (Mobile)
   ========================================================================== */

@media (max-width: 480px) {
    /* Service Section */
    .service-section .section-title {
        font-size: 1.25rem;
    }

    .service-section .section-divider {
        margin-bottom: 1.5rem;
    }

    /* Q&A Section */
    .qna-section .section-header h2 {
        font-size: 1.125rem;
    }

    /* Info Banner */
    .info-banner-section {
        padding: 30px 0;
    }

    .info-banner {
        border-radius: 8px;
    }

    .info-banner-content {
        padding: 1.5rem 1.25rem;
        gap: 1rem;
    }

    .info-banner-icon {
        width: 48px;
        height: 48px;
    }

    .info-banner-icon i {
        font-size: 1.25rem;
    }

    .info-banner-title {
        font-size: 1.125rem;
    }

    .info-banner-desc {
        font-size: 0.75rem;
    }

    .info-banner-phone a {
        font-size: 1rem;
        padding: 10px 24px;
        letter-spacing: 0.5px;
    }
}

/* ==========================================================================
   10. Responsive - 360px (Small Mobile / Fold)
   ========================================================================== */

@media (max-width: 359px) {
    .info-banner-content {
        padding: 1.25rem 1rem;
    }

    .info-banner-title {
        font-size: 1rem;
    }

    .info-banner-phone a {
        font-size: 0.9375rem;
        padding: 10px 20px;
    }
}

/* ==========================================================================
   11. High-Resolution Screens
   ========================================================================== */

/* FHD (1920px ~ 2559px) */
@media (min-width: 1920px) and (max-width: 2559px) {
    .info-banner-content {
        padding: 3.5rem 3rem;
    }
}

/* QHD (2560px ~ 3839px) */
@media (min-width: 2560px) and (max-width: 3839px) {
    .info-banner-content {
        gap: 3rem;
        padding: 4rem 3.5rem;
    }

    .info-banner-icon {
        width: 80px;
        height: 80px;
    }

    .info-banner-icon i {
        font-size: 2.25rem;
    }

    .info-banner-title {
        font-size: 2rem;
    }

    .info-banner-desc {
        font-size: 1.125rem;
    }

    .info-banner-phone a {
        font-size: 1.75rem;
        padding: 20px 48px;
    }
}

/* UHD (3840px+) */
@media (min-width: 3840px) {
    .info-banner-content {
        gap: 4rem;
        padding: 5rem 4rem;
    }

    .info-banner-icon {
        width: 96px;
        height: 96px;
    }

    .info-banner-icon i {
        font-size: 2.75rem;
    }

    .info-banner-title {
        font-size: 2.5rem;
    }

    .info-banner-desc {
        font-size: 1.25rem;
    }

    .info-banner-phone a {
        font-size: 2rem;
        padding: 24px 56px;
    }
}

/* ==========================================================================
   12. Print Styles
   ========================================================================== */

@media print {
    .hero-section,
    .info-banner-section {
        display: none !important;
    }

    .service-section {
        padding: 20px 0;
    }

    .service-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .qna-section {
        background-color: #fff;
    }
}
