/**
 * Contact Page Styles
 * Modern Intercom-powered contact page with card-based design
 * Mobile-first responsive approach
 * Opanije brand colors and typography
 */

/* ===== HERO SECTION ===== */
.hero-pages {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    padding: 80px 20px;
}

.hero-pages h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 3rem;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    margin: 0;
}

/* ===== CONTACT HUB SECTION ===== */
.contact-hub-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.contact-hub-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: #2B2823;
    margin-bottom: 20px;
}

.contact-hub-subtitle {
    font-family: 'Lato', sans-serif;
    font-size: 1.125rem;
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== CONTACT CARDS ===== */
.contact-cards-grid {
    margin-top: 40px;
}

.contact-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: #d2ab68;
}

.contact-card-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1;
}

.contact-card-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #2B2823;
    margin-bottom: 15px;
}

.contact-card-description {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 25px;
    line-height: 1.6;
    flex-grow: 1;
}

.contact-card-button {
    background: linear-gradient(135deg, #d2ab68 0%, #b8935a 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 32px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 12px rgba(210, 171, 104, 0.3);
}

.contact-card-button:hover {
    background: linear-gradient(135deg, #b8935a 0%, #d2ab68 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(210, 171, 104, 0.4);
}

.contact-card-button:active {
    transform: translateY(0);
}

.contact-card-button:focus {
    outline: 3px solid rgba(210, 171, 104, 0.5);
    outline-offset: 2px;
}

/* ===== TRUST INDICATORS SECTION ===== */
.contact-trust-section {
    padding: 80px 0;
    background: #fff;
}

.trust-indicator {
    padding: 20px;
}

.trust-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    line-height: 1;
}

.trust-indicator h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #2B2823;
    margin-bottom: 10px;
}

.trust-indicator p {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.6;
}

/* ===== FALLBACK EMAIL ===== */
.fallback-text {
    font-family: 'Lato', sans-serif;
    font-size: 1.125rem;
    color: #6c757d;
    margin: 0;
}

.fallback-email {
    color: #d2ab68;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.fallback-email:hover {
    color: #b8935a;
    text-decoration: underline;
}

/* ===== NOSCRIPT ALERT ===== */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.alert-info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* ===== LOADING STATE ===== */
.contact-card-button.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.contact-card-button.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* ===== ACCESSIBILITY ===== */
.contact-card:focus-within {
    outline: 3px solid #d2ab68;
    outline-offset: 4px;
}

/* Improve focus visibility for keyboard navigation */
.contact-card-button:focus-visible {
    outline: 3px solid rgba(210, 171, 104, 0.6);
    outline-offset: 3px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .contact-card,
    .contact-card-button {
        transition: none;
    }

    .contact-card:hover {
        transform: none;
    }

    .contact-card-button:hover {
        transform: none;
    }

    @keyframes spinner {
        to {
            transform: none;
        }
    }
}

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

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    .hero-pages h1 {
        font-size: 2.5rem;
    }

    .contact-hub-title {
        font-size: 2rem;
    }

    .contact-hub-subtitle {
        font-size: 1rem;
    }

    .contact-card {
        padding: 35px 25px;
    }

    .contact-card-icon {
        font-size: 3.5rem;
    }

    .contact-card-title {
        font-size: 1.375rem;
    }
}

/* Mobile (up to 767px) */
@media (max-width: 767px) {
    .hero-pages {
        min-height: 300px;
        padding: 60px 20px;
    }

    .hero-pages h1 {
        font-size: 2rem;
    }

    .contact-hub-section {
        padding: 60px 0;
    }

    .contact-hub-title {
        font-size: 1.75rem;
        margin-bottom: 15px;
    }

    .contact-hub-subtitle {
        font-size: 0.938rem;
        padding: 0 15px;
    }

    .contact-cards-grid {
        margin-top: 30px;
    }

    .contact-card {
        padding: 30px 20px;
        margin-bottom: 15px;
    }

    .contact-card-icon {
        font-size: 3rem;
        margin-bottom: 15px;
    }

    .contact-card-title {
        font-size: 1.25rem;
        margin-bottom: 12px;
    }

    .contact-card-description {
        font-size: 0.938rem;
        margin-bottom: 20px;
    }

    .contact-card-button {
        padding: 12px 24px;
        font-size: 0.938rem;
    }

    .contact-trust-section {
        padding: 60px 0;
    }

    .trust-icon {
        font-size: 2.5rem;
    }

    .trust-indicator h4 {
        font-size: 1.125rem;
    }

    .trust-indicator p {
        font-size: 0.938rem;
    }

    .fallback-text {
        font-size: 1rem;
        padding: 0 15px;
    }
}

/* Small mobile (up to 575px) */
@media (max-width: 575px) {
    .hero-pages h1 {
        font-size: 1.75rem;
    }

    .contact-hub-title {
        font-size: 1.5rem;
    }

    .contact-card {
        padding: 25px 15px;
    }

    .contact-card-icon {
        font-size: 2.5rem;
    }

    .contact-card-title {
        font-size: 1.125rem;
    }

    .trust-indicator {
        margin-bottom: 20px;
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    .contact-card {
        border: 2px solid #2B2823;
    }

    .contact-card:hover {
        border-color: #d2ab68;
        border-width: 3px;
    }

    .contact-card-button {
        border: 2px solid #2B2823;
    }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    .contact-hub-section {
        background: #1a1816;
    }

    .contact-card {
        background: #2B2823;
        border-color: #3a3532;
    }

    .contact-hub-title,
    .contact-card-title {
        color: #f8f9fa;
    }

    .contact-hub-subtitle,
    .contact-card-description {
        color: #adb5bd;
    }

    .contact-trust-section {
        background: #1a1816;
    }

    .trust-indicator h4 {
        color: #f8f9fa;
    }

    .trust-indicator p {
        color: #adb5bd;
    }

    .fallback-text {
        color: #adb5bd;
    }

    .alert-info {
        background-color: #0c3d47;
        border-color: #0a2e36;
        color: #bee5eb;
    }
}
