/* ============================================================
   CONTACT PAGE STYLES — Atlas Power
   contact.css v1
   ============================================================ */

/* ======================== CUSTOM PROPERTIES ======================== */
:root {
    --contact-red: #b23c34;
    --contact-red-dark: #922e27;
    --contact-red-light: rgba(178, 60, 52, 0.08);
    --contact-gold: #c8a45a;
    --contact-bg: #f9f8f6;
    --contact-white: #ffffff;
    --contact-text: #1a1a1a;
    --contact-text-muted: #6b6b6b;
    --contact-border: #e5e2dc;
    --contact-card-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --contact-card-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.14);
    --contact-radius: 16px;
    --contact-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ======================== CONTACT HERO ======================== */
.contact-hero {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1a0c0b 0%, #2c1210 40%, #3d1a17 70%, #1a0c0b 100%);
    margin-top: 0;
    padding-top: 80px;
    /* offset for fixed header */
}

.contact-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 20% 50%, rgba(178, 60, 52, 0.25) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 80% 30%, rgba(200, 164, 90, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.contact-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(178, 60, 52, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(178, 60, 52, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    opacity: 0.5;
}

.contact-hero-overlay {
    display: none;
    /* decorative overlays handled by ::before / ::after */
}

.contact-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 60px 24px 68px;
}

.contact-hero-tag {
    display: inline-block;
    background: rgba(178, 60, 52, 0.18);
    color: var(--contact-gold);
    border: 1px solid rgba(200, 164, 90, 0.35);
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.contact-hero-title {
    font-family: 'Anton', sans-serif;
    font-size: clamp(2.8rem, 7vw, 5rem);
    color: #ffffff;
    letter-spacing: 0.02em;
    line-height: 1;
    margin: 0 0 16px;
    text-transform: uppercase;
}

.contact-hero-sub {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.65);
    font-weight: 400;
    margin: 0;
    letter-spacing: 0.02em;
}

/* ======================== LOCATIONS SECTION ======================== */
.contact-locations-section {
    background: var(--contact-bg);
    padding: 80px 0 72px;
}

.contact-locations-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

.contact-locations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 52px;
}

/* ======================== LOCATION CARD ======================== */
.contact-location-card {
    background: var(--contact-white);
    border-radius: var(--contact-radius);
    border: 1.5px solid var(--contact-border);
    padding: 36px 32px 32px;
    box-shadow: var(--contact-card-shadow);
    transition: var(--contact-transition);
    position: relative;
    overflow: hidden;
}

.contact-location-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--contact-gold), #a0803a);
    border-radius: var(--contact-radius) var(--contact-radius) 0 0;
}


.contact-location-card:hover {
    box-shadow: var(--contact-card-shadow-hover);
    transform: translateY(-4px);
    border-color: rgba(200, 164, 90, 0.35);
}

/* Card Header */
.location-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.location-number-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(200, 164, 90, 0.1);
    color: var(--contact-gold);
    font-family: 'Anton', sans-serif;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.location-type-tag {
    display: inline-block;
    background: rgba(200, 164, 90, 0.1);
    color: var(--contact-gold);
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 100px;
    border: 1px solid rgba(200, 164, 90, 0.3);
}

/* Title */
.location-title {
    font-family: 'Anton', sans-serif;
    font-size: 1.55rem;
    color: var(--contact-text);
    letter-spacing: 0.02em;
    margin: 0 0 22px;
    text-transform: uppercase;
}

/* Detail Rows */
.location-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.location-detail-row:last-of-type {
    margin-bottom: 24px;
}

.location-detail-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(200, 164, 90, 0.1);
    color: var(--contact-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.location-detail-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--contact-text-muted);
    line-height: 1.75;
}

/* Links */
.contact-link {
    color: var(--contact-text-muted);
    text-decoration: none;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
}

.contact-link:hover {
    color: var(--contact-red);
}

.whatsapp-link {
    color: #25d366 !important;
    font-weight: 600;
}

.whatsapp-link:hover {
    color: #1aab53 !important;
    text-decoration: underline;
}

/* Directions Button */
.location-directions-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--contact-gold);
    color: #1a1a1a;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    transition: var(--contact-transition);
}

.location-directions-btn:hover {
    background: #a0803a;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(200, 164, 90, 0.35);
    color: #1a1a1a;
}

/* ======================== MAP SECTION ======================== */
.contact-map-section {
    background: #ffffff;
    padding: 72px 0 0;
}

.contact-map-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

.contact-map-wrapper {
    margin-top: 44px;
    border-radius: var(--contact-radius);
    overflow: hidden;
    box-shadow: var(--contact-card-shadow);
    border: 1.5px solid var(--contact-border);
    position: relative;
}

.contact-map-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--contact-red), var(--contact-gold));
    z-index: 1;
}

.contact-map-wrapper iframe {
    display: block;
    width: 100%;
    height: 450px;
    border: 0;
}

/* ======================== CTA STRIP ======================== */
.contact-cta-strip {
    background: linear-gradient(135deg, #1a0c0b 0%, #2c1210 60%, #3d1a17 100%);
    padding: 64px 24px;
    margin-top: 72px;
    position: relative;
    overflow: hidden;
}

.contact-cta-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 100% at 0% 50%, rgba(178, 60, 52, 0.2) 0%, transparent 70%),
        radial-gradient(ellipse 40% 80% at 100% 50%, rgba(200, 164, 90, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.contact-cta-inner {
    max-width: 1160px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    position: relative;
    z-index: 1;
}

.contact-cta-title {
    font-family: 'Anton', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: #ffffff;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin: 0 0 8px;
    line-height: 1.1;
}

.contact-cta-sub {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.contact-cta-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cta-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 8px;
    transition: var(--contact-transition);
    white-space: nowrap;
}

.cta-call-btn {
    background: var(--contact-red);
    color: #ffffff;
}

.cta-call-btn:hover {
    background: var(--contact-red-dark);
    box-shadow: 0 4px 20px rgba(178, 60, 52, 0.45);
    transform: translateY(-2px);
}

.cta-whatsapp-btn {
    background: #25d366;
    color: #ffffff;
}

.cta-whatsapp-btn:hover {
    background: #1aab53;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transform: translateY(-2px);
}

.cta-email-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.cta-email-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* ======================== SECTION HEADER (reuse site pattern) ======================== */
.contact-locations-section .section-header,
.contact-map-section .section-header {
    text-align: center;
}

/* ======================== RESPONSIVE ======================== */
@media (max-width: 900px) {
    .contact-locations-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }

    .contact-cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .contact-cta-actions {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .contact-hero {
        min-height: 300px;
    }

    .contact-hero-content {
        padding: 48px 20px 56px;
    }

    .contact-location-card {
        padding: 28px 22px 26px;
    }

    .contact-map-wrapper iframe {
        height: 320px;
    }

    .contact-cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .cta-action-btn {
        justify-content: center;
    }
}