/* 
   ==========================================================================
   INDEX.CSS - Homepage Specific Styles
   ========================================================================== 
*/

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: image-set(url('../images/hero.webp') type('image/webp'), url('../images/hero.png') type('image/png'));
    background-position: center;
    background-size: cover;
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.7) 100%);
}

.hero-inner {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 2rem;
}

@media (max-width: 480px) {
    .hero-inner {
        padding: 1.5rem 1rem;
    }
}

.kicker {
    display: inline-block;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInDown 0.8s ease-out;
}

@media (max-width: 360px) {
    .kicker {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

.hero h1 {
    font-family: 'Zen Old Mincho', serif;
    font-weight: 900;
    font-size: clamp(1.7rem, 8vw, 4rem);
    line-height: 1.3;
    margin: 0.5rem 0 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: clamp(1.5rem, 10vw, 2.2rem);
    }
}

.hero .lead {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero .cta {
    padding: 1.2rem 3.5rem;
    font-size: 1.2rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- News Section --- */
.news-section {
    background: var(--bg);
    padding: 6rem 0;
}

.news-list {
    margin-top: 3rem;
}

.news-item {
    border-bottom: 1px solid var(--border);
    padding: 1.8rem 0.5rem;
    transition: var(--transition);
}

.news-item:first-child {
    border-top: 1px solid var(--border);
}

.news-item a {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    color: var(--ink);
}

.news-item:hover {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    background: #fff;
    box-shadow: var(--shadow-md);
    border-radius: 16px;
    border-bottom-color: transparent;
    transform: translateX(10px);
}

.news-item:hover+.news-item {
    border-top-color: transparent;
}

.news-item:hover .news-title {
    color: var(--accent);
}

.news-date {
    font-size: 1rem;
    color: var(--muted);
    font-weight: 600;
    min-width: 110px;
    flex-shrink: 0;
    font-family: 'Zen Old Mincho', serif;
}

.news-category {
    background: var(--gold);
    color: #fff;
    font-size: 0.75rem;
    padding: 4px 14px;
    border-radius: 6px;
    font-weight: 800;
    min-width: 100px;
    text-align: center;
    letter-spacing: 0.05em;
}

.news-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.6;
    flex-grow: 1;
}

.news-arrow {
    font-size: 1.2rem;
    color: var(--gold);
    transition: var(--transition);
    opacity: 0;
    transform: translateX(-10px);
}

.news-item:hover .news-arrow {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .news-item a {
        flex-direction: column;
        gap: 0.6rem;
    }
}

/* --- Benefits --- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 2.5rem;
    margin-top: 3.5rem;
}

.benefit-card {
    background: var(--paper);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.benefit-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: var(--transition);
}

.benefit-card:hover img {
    transform: scale(1.05);
}

.benefit-card h3 {
    padding: 1.5rem 1rem 0.5rem;
    color: var(--accent);
    font-size: 1.3rem;
    font-weight: 800;
}

.benefit-card p {
    padding: 0 1.5rem 2rem;
    font-size: 0.95rem;
    color: var(--muted);
}

/* --- Use Cases --- */
.use-cases {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 4rem 0;
}

@media (max-width: 768px) {
    .use-cases {
        grid-template-columns: 1fr;
    }

    .use {
        padding: 1.5rem 1rem;
    }
}

.use {
    background: var(--paper);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.use::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 20px;
    width: 30px;
    height: 4px;
    background: var(--gold);
    border-radius: 2px;
}

.use h3 {
    margin: 1.5rem 0 1rem;
    color: var(--accent);
    font-weight: 900;
    font-family: 'Zen Old Mincho', serif;
    font-size: 1.4rem;
}

.highlight {
    color: var(--accent);
    font-weight: 800;
    background: linear-gradient(transparent 70%, rgba(212, 175, 55, 0.2) 0%);
}

/* --- Gallery --- */
.gallery-container {
    position: relative;
    max-width: 1000px;
    margin: 6rem auto;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #000;
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    .gallery-container {
        aspect-ratio: 4 / 3;
        margin: 4rem auto;
    }
}

.carousel-track figure {
    position: absolute;
    inset: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    filter: blur(20px);
    transition: opacity 1s ease, filter 1s ease;
    z-index: 1;
}

.carousel-track figure.is-active {
    opacity: 1;
    filter: blur(0);
    z-index: 2;
}

.carousel-track img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-track figcaption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-size: 1rem;
    z-index: 10;
    width: max-content;
    max-width: 90%;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    transition: var(--transition);
    font-size: 1.5rem;
}

.carousel-btn:hover {
    background: var(--gold);
    color: #1B1B1B;
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

/* --- FAQ --- */
.faq-header {
    background: #fff;
    padding: 1.8rem 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.faq-header:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--gold);
}

.faq-status {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--accent);
    font-weight: 700;
}

.faq-guide {
    font-size: 0.85rem;
    opacity: 0.7;
}

.faq-chevron {
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    display: block;
}

.faq-list {
    margin-top: 1.5rem;
}

@media (max-width: 600px) {
    .faq-header {
        padding: 1.5rem;
    }

    .faq-guide {
        display: none;
    }
}

.faq-q {
    font-size: 1.1rem;
    font-weight: 800;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.faq-q::before {
    content: "Q.";
    color: var(--gold);
    font-size: 1.4rem;
}

.faq-item {
    background: #fff;
    padding: 2.5rem;
    border-radius: 20px;
    margin-top: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.faq-a {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #eee;
}

/* --- Users --- */
.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.user-card {
    background: var(--paper);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.user-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.user-img-wrap {
    height: 220px;
    background: #fcfcfc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    border-bottom: 1px solid var(--border);
}

.user-card img {
    max-height: 100%;
    width: auto;
    transition: var(--transition);
}

.user-card:hover img {
    transform: scale(1.08);
}

.user-info {
    padding: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

@media (max-width: 600px) {
    .user-info {
        padding: 1.5rem 1rem;
    }

    .user-img-wrap {
        padding: 1.5rem;
        height: 180px;
    }
}

.user-info h3 {
    margin: 0 0 1.2rem;
    font-weight: 900;
    font-size: 1.4rem;
    color: var(--ink);
    font-family: 'Zen Old Mincho', serif;
}

.user-desc {
    font-size: 1rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.user-link {
    margin-top: auto;
    font-weight: 800;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* --- Calendar --- */
.calendar-card {
    padding: 1.5rem !important;
}

@media (max-width: 600px) {
    .calendar-card {
        padding: 0.8rem !important;
    }
}

.calendar-embed {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 12px;
    background: #fff;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .calendar-embed {
        height: 500px;
    }
}

/* --- Map --- */
.map {
    width: 100%;
    height: 450px;
    border-radius: 20px;
    filter: contrast(1.05);
    margin-top: 2rem;
    border: 1px solid #eee;
}

/* --- Mail Form --- */
.form-card {
    padding: 2.5rem 1.5rem !important;
}

@media (max-width: 600px) {
    .form-card {
        padding: 1.5rem 0.8rem !important;
    }
}

.mailform-embed {
    width: 100%;
    height: 600px;
    border: none;
    background: transparent;
}