/* Contact Us Page Variables */
:root {
    --contact-prime-yellow: var(--btn-color);
    --contact-prime-yellow-hover: #e5920d;
    --contact-bg-dark: #0f172a;
    --contact-card-bg: rgba(255, 255, 255, 0.05);
    /* Glassmorphism base */
    --contact-border: rgba(255, 255, 255, 0.1);
    --contact-text-main: #ffffff;
    --contact-text-muted: #94a3b8;
}

/* Force Dark Background and White Text */
body.page-template-page-contact-us {
    background-color: var(--contact-bg-dark) !important;
    color: var(--contact-text-main) !important;
    overflow-x: hidden;
    min-height: 100vh;
}

.contact-page-wrapper {
    position: relative;
    padding-top: 120px;
    /* Account for fixed header */
    padding-bottom: 0;
    overflow: hidden;
    background-color: var(--contact-bg-dark) !important;
    /* Double ensure */
}

/* Background Gradients/Glows */
.contact-page-wrapper::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(252, 163, 17, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.contact-page-wrapper::after {
    content: '';
    position: absolute;
    bottom: 20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, rgba(15, 23, 42, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

/* Hero Section */
.contact-hero {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 4rem;
}

.contact-title {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    /* Explicit White Text */
    color: #ffffff !important;
    opacity: 0;
    /* Animated in */
    transform: translateY(30px);
}

.contact-title .highlight {
    color: var(--contact-prime-yellow) !important;
    position: relative;
    display: inline-block;
}

.contact-description {
    font-size: 1.25rem;
    color: #e2e8f0 !important;
    /* Bright grey for visibility */
    max-width: 700px;
    margin: 0 auto;
    opacity: 0;
    /* Animated in */
    transform: translateY(20px);
    line-height: 1.8;
}

/* Contact Info Section */
.contact-info-section {
    position: relative;
    z-index: 1;
    margin-bottom: 5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: var(--contact-card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--contact-border);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    /* Animated in */
    color: var(--contact-text-muted);
}

/* HOVER STATE - Prime Yellow Background */
.contact-card:hover {
    transform: translateY(-10px) scale(1.02);
    /* Full Yellow Background */
    background: var(--contact-prime-yellow) !important;
    border-color: var(--contact-prime-yellow) !important;
    box-shadow: 0 20px 40px rgba(252, 163, 17, 0.3);
}

/* Text Colors on Hover (Switch to Black) */
.contact-card:hover h3,
.contact-card:hover p,
.contact-card:hover a {
    color: #000000 !important;
}

.icon-wrapper {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #ffffff;
    /* Default icon color */
    transition: all 0.3s ease;
}

/* Icon on Hover (Switch to Black bg, Yellow icon) */
.contact-card:hover .icon-wrapper {
    background: #000000;
    color: var(--contact-prime-yellow);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #ffffff;
    transition: color 0.3s ease;
}

.contact-card p,
.contact-card a {
    color: var(--contact-text-muted);
    font-size: 1.1rem;
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
    /* Ensure links take line height */
}

.contact-card a:hover {
    text-decoration: underline;
}

.phone-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Social Section */
.social-section {
    text-align: center;
    margin-bottom: 5rem;
    z-index: 1;
    position: relative;
}

.social-section h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--contact-text-main);
}

.social-links-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    background: var(--contact-card-bg);
    border: 1px solid var(--contact-border);
    color: var(--contact-text-main);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.social-pill:hover {
    background: var(--contact-prime-yellow);
    border-color: var(--contact-prime-yellow);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(252, 163, 17, 0.2);
}

/* Map Section - Pure, Clean, No Effects */
.map-section {
    position: relative;
    width: 100%;
    height: 500px;
    margin-bottom: -100px;
    z-index: 1;
    overflow: hidden;
    opacity: 0;
    /* Animated */
}

.map-container {
    width: 100%;
    height: 100%;
    position: relative;
    /* NO FILTERS */
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient ONLY at top to blend with body */
    background: linear-gradient(to bottom, var(--contact-bg-dark) 0%, transparent 15%, transparent 100%);
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-title {
        font-size: 2.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}