/* --- About / Contact Page Styles (page-about.php) --- */

/* 0. About Section */
.about-section {
    text-align: center;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    text-align: left;
    margin-top: 32px;
}

.about-grid__image .about-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
}

.about-grid__text {
    font-size: var(--secondary-size);
    color: var(--text-color);
    line-height: 1.8;
}

.about-grid__text p:last-child {
    margin-bottom: 0;
}

.about-text-only,
.about-long-desc {
    max-width: 800px;
    margin: 32px auto 0;
    font-size: var(--secondary-size);
    color: var(--text-color);
    line-height: 1.8;
    text-align: left;
}
.about-grid__title {
    font-size: var(--h3-size);
    font-weight: 800;
    color: var(--heading-color);
    margin-bottom: 16px;
}

.about-long-desc__title {
    font-size: var(--h4-size);
    font-weight: 800;
    color: var(--heading-color);
    margin-bottom: 12px;
}

.about-image-only .about-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    margin-top: 32px;
}

/* 0b. Team Section */
.team-section {
    text-align: center;
}

.team-photo {
    margin-top: 32px;
    text-align: center;
}

.team-photo img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    object-fit: contain;
}

.team-gallery-wrap {
    margin-top: 24px;
    position: relative;
}

.team-gallery {
    overflow: hidden;
}

.team-gallery__track {
    display: flex;
    gap: 12px;
    transition: transform 0.4s ease;
}

.team-gallery__item {
    flex-shrink: 0;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.team-gallery__item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.team-gallery__item img {
    height: 200px;
    width: auto;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}

/* Gallery arrows */
.team-gallery__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--bg-color);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    color: var(--heading-color);
    font-size: var(--content-size);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: auto;
}

.team-gallery__arrow:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.team-gallery__arrow--prev {
    left: 8px;
}

.team-gallery__arrow--next {
    right: 8px;
}

.team-gallery__arrow:disabled {
    opacity: 0.3;
    cursor: default;
    transform: translateY(-50%);
}

/* 0c. Team Video */
.team-video-section {
    text-align: center;
}

.team-video__title {
    font-size: var(--content-h2-size);
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 24px;
}

.team-video__wrap {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
}

.team-video__wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* 0d. Full-width Map */
.about-page.site-main {
    padding-bottom: 0;
}
.about-map-full {
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.about-map-full iframe {
    width: 100%;
    height: 100%;
    filter: grayscale(1) invert(0.9) contrast(1.2);
}

/* 1. Header & Intro (Uses .archive-header from tour.css) */

/* 2. Contact Info Cards */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.contact-box {
    text-align: center;
    padding: 28px;
    background: rgba(var(--heading-color-rgb), 0.02);
    border: 1px solid rgba(var(--heading-color-rgb), 0.05);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.contact-box:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.contact-box:hover *,
.contact-box:hover a {
    color: var(--cta-text-color) !important;
}

.contact-box__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-bottom: 14px;
}

.contact-box__icon svg {
    width: 40px;
    height: 40px;
}

.contact-box__title {
    font-size: var(--content-size);
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 10px;
}

.contact-box p,
.contact-box a {
    font-size: var(--secondary-size);
    opacity: 0.8;
    text-decoration: none;
    color: inherit;
}

/* 3. Maps Section */
.map-wrap {
    width: 100%;
    height: 450px;
    border-radius: 30px;
    overflow: hidden;
    margin-bottom: 40px;
    border: 1px solid rgba(var(--heading-color-rgb), 0.05);
}

.map-wrap iframe {
    width: 100%;
    height: 100%;
    filter: grayscale(1) invert(0.9) contrast(1.2);
}

/* 4. Contact Form Section */
.contact-form-section {
    padding: var(--space-xl, 80px) 0;
}

.contact-form-header {
    text-align: center;
    margin-bottom: var(--space-lg, 48px);
}

.siap-contact-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md, 24px);
}

.form-group {
    margin-bottom: var(--space-md, 24px);
}

.form-group label {
    display: block;
    font-size: var(--button-size);
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 8px;
}

.form-group label .required {
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    font-size: max(16px, var(--secondary-size));
    font-family: var(--body-font);
    color: var(--heading-color);
    background: rgba(var(--heading-color-rgb), 0.03);
    border: 1px solid rgba(var(--heading-color-rgb), 0.1);
    border-radius: var(--radius-sm, 8px);
    transition: border-color var(--transition-normal, 0.3s ease), box-shadow var(--transition-normal, 0.3s ease);
    outline: none;
    box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-color);
    opacity: 0.5;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-group select option {
    background: var(--bg-color);
    color: var(--heading-color);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.15);
}

.form-group input.form-error,
.form-group select.form-error,
.form-group textarea.form-error {
    border-color: var(--error-color, #FF4757);
    box-shadow: 0 0 0 3px rgba(var(--error-color-rgb, 255, 71, 87), 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    text-align: center;
    margin-top: var(--space-sm, 16px);
}

.btn-submit-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 48px;
    font-size: var(--body-size);
    font-weight: 700;
    font-family: var(--body-font);
    color: var(--cta-text-color);
    background: var(--primary-gradient, var(--cta-bg-color));
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: transform var(--transition-normal, 0.3s ease), box-shadow var(--transition-normal, 0.3s ease);
    min-width: 200px;
}

.btn-submit-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(var(--primary-color-rgb), 0.3);
}

.btn-submit-contact:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-loading .spin {
    animation: siap-spin 1s linear infinite;
}

@keyframes siap-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.form-feedback {
    max-width: 800px;
    margin: var(--space-md, 24px) auto 0;
    padding: 16px 24px;
    border-radius: var(--radius-sm, 8px);
    font-size: var(--secondary-size);
    text-align: center;
}

.feedback-success {
    background: rgba(var(--success-color-rgb, 0, 255, 136), 0.1);
    color: var(--success-color, #00FF88);
    border: 1px solid rgba(var(--success-color-rgb, 0, 255, 136), 0.2);
}

.feedback-error {
    background: rgba(var(--error-color-rgb, 255, 71, 87), 0.1);
    color: var(--error-color, #FF4757);
    border: 1px solid rgba(var(--error-color-rgb, 255, 71, 87), 0.2);
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contact-methods {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .team-gallery__item img {
        height: 160px;
    }

    .about-map-full {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .contact-methods {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .contact-box {
        text-align: center;
        padding: 20px 16px;
        border-radius: 14px;
    }

    .contact-box__icon {
        margin-bottom: 10px;
    }

    .contact-box__icon svg {
        width: 32px;
        height: 32px;
    }

    .contact-box__title {
        font-size: var(--secondary-size);
        margin-bottom: 4px;
    }

    .contact-box p,
    .contact-box a {
        font-size: var(--small-size);
    }

    .map-wrap iframe {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .btn-submit-contact {
        width: 100%;
        padding: 14px 24px;
    }

    .contact-form-section {
        padding: var(--space-lg, 48px) 0;
    }

    .profile-dl-card {
        padding: 32px 20px;
    }

    .profile-dl-modal {
        padding: 24px;
        margin: 16px;
    }
}

/* ============================================
   Profile Download Section & Modal
   ============================================ */
.profile-download-section {
    text-align: center;
    padding-top: 0;
    padding-bottom: var(--space-md, 32px);
}

.profile-dl-card {
    background: rgba(var(--primary-color-rgb), 0.03);
    border: 1px solid rgba(var(--primary-color-rgb), 0.1);
    border-radius: var(--radius-lg, 20px);
    padding: 48px 24px;
    max-width: 640px;
    margin: 0 auto;
}

.profile-dl-card .section-subtitle {
    color: var(--primary-color);
}

.profile-dl-card .section-title {
    color: var(--heading-color);
}

.profile-dl-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.profile-dl-overlay.active {
    display: flex;
}

.profile-dl-modal {
    background: var(--bg-color);
    color: var(--text-color);
    border-radius: var(--radius-lg, 16px);
    padding: 32px;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.profile-dl-modal label {
    font-size: 13px;
    font-weight: 600;
    color: var(--heading-color);
    display: block;
    margin-bottom: 4px;
    text-align: left;
}

.profile-dl-modal input[type="text"],
.profile-dl-modal input[type="email"],
.profile-dl-modal input[type="tel"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(var(--heading-color-rgb), 0.15);
    border-radius: var(--radius-sm, 8px);
    margin-bottom: 12px;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.profile-dl-modal input:focus {
    border-color: var(--primary-color);
    outline: none;
}