/* ==========================================================================
   Contact Page — Dashboard Visual Upgrade
   Only visual/logic layer. No existing text or markup is altered by this
   file; it purely restyles elements that contact-dashboard.js re-classes.
   ========================================================================== */

.contact-info.dashboard-grid {
    padding: 70px 8% 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    align-items: stretch;
}

/* Floating dashboard card */
.contact-card.floating-card {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 20px;
    padding: 36px 28px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    overflow: hidden;
    isolation: isolate;
}

.contact-card.floating-card h3 {
    color: var(--white);
}

.contact-card.floating-card p {
    color: rgba(255, 255, 255, 0.72);
}

.contact-card.floating-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0,180,255,0.35), rgba(255,255,255,0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: -1;
}

.contact-card.floating-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0,180,255,0.15);
}

.contact-card.floating-card:hover::before {
    opacity: 1;
}

/* Glow layer behind the card, tinted per accent */
.contact-card.floating-card::after {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 50% 20%, var(--glow-color, rgba(0,180,255,0.25)), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -2;
    pointer-events: none;
}

.contact-card.floating-card:hover::after {
    opacity: 0.55;
}

.contact-card.accent-phone     { --glow-color: rgba(7, 26, 45, 0.35); }
.contact-card.accent-email     { --glow-color: rgba(0, 180, 255, 0.35); }
.contact-card.accent-location  { --glow-color: rgba(243, 150, 28, 0.35); }
.contact-card.accent-whatsapp  { --glow-color: rgba(37, 211, 102, 0.4); }

/* Gradient icon circle wrapper (injected by JS around the <i>) */
.icon-circle {
    width: 74px;
    height: 74px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: transform 0.35s ease;
}

.contact-card.floating-card:hover .icon-circle {
    transform: scale(1.08) rotate(-4deg);
}

.icon-circle i {
    margin-bottom: 0 !important;
    font-size: 1.7rem !important;
    color: white !important;
}

.accent-phone .icon-circle {
    background: linear-gradient(135deg, #0d2d4d, #071a2d);
}

.accent-email .icon-circle {
    background: linear-gradient(135deg, #4fd0ff, #00b4ff);
}

.accent-location .icon-circle {
    background: linear-gradient(135deg, #ffb84d, #f3961c);
}

.accent-whatsapp .icon-circle {
    background: linear-gradient(135deg, #3ee587, #25D366);
}

/* WhatsApp — the strongest CTA on the page */
.contact-card.featured-card {
    background: linear-gradient(160deg, rgba(37,211,102,0.12) 0%, rgba(255,255,255,0.05) 100%);
    border: 1px solid rgba(37, 211, 102, 0.35);
    box-shadow: 0 20px 45px rgba(37, 211, 102, 0.15);
    transform: translateY(-6px) scale(1.02);
}

.contact-card.featured-card:hover {
    transform: translateY(-14px) scale(1.03);
    box-shadow: 0 30px 60px rgba(37, 211, 102, 0.28);
}

.contact-card.featured-card .icon-circle {
    box-shadow: 0 0 0 6px rgba(37, 211, 102, 0.15), 0 8px 20px rgba(37, 211, 102, 0.35);
    animation: pulse-ring 2.4s ease-out infinite;
}

@keyframes pulse-ring {
    0%   { box-shadow: 0 0 0 6px rgba(37, 211, 102, 0.15), 0 8px 20px rgba(37, 211, 102, 0.35); }
    50%  { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0.06), 0 8px 20px rgba(37, 211, 102, 0.35); }
    100% { box-shadow: 0 0 0 6px rgba(37, 211, 102, 0.15), 0 8px 20px rgba(37, 211, 102, 0.35); }
}

/* Small response-time indicator */
.response-indicator {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #6dffab;
    background: rgba(37, 211, 102, 0.14);
    padding: 6px 14px;
    border-radius: 20px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #25D366;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    animation: dot-pulse 1.8s infinite;
    flex-shrink: 0;
}

@keyframes dot-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
    70%  { box-shadow: 0 0 0 8px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Farm location — dashboard card with embedded map */
.location-section.farm-location-section {
    padding: 20px 8% 70px;
    text-align: left;
}

.farm-location-card {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.farm-location-text {
    padding: 45px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    background: linear-gradient(160deg, #071a2d, #0d2d4d);
    color: white;
}

.farm-location-text h2 {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
}

.farm-location-text p {
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
}

.farm-location-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(0, 180, 255, 0.15);
    color: #7fe0ff;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 4px;
}

.farm-location-map {
    min-height: 320px;
    position: relative;
}

.farm-location-map iframe {
    width: 100%;
    height: 100%;
    min-height: 320px;
    border: 0;
    display: block;
}

@media (max-width: 860px) {
    .farm-location-card {
        grid-template-columns: 1fr;
    }
    .farm-location-map {
        min-height: 260px;
    }
}

/* Full-width wholesale CTA banner */
.wholesale-cta {
    background: linear-gradient(120deg, #071a2d 0%, #0d2d4d 55%, #00507a 100%);
    color: white;
    padding: 55px 8%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    position: relative;
    overflow: hidden;
}

.wholesale-cta::before {
    content: "";
    position: absolute;
    top: -60%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0,180,255,0.35), transparent 65%);
    pointer-events: none;
}

.wholesale-cta::after {
    content: "";
    position: absolute;
    bottom: -80%;
    left: -5%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(37,211,102,0.25), transparent 65%);
    pointer-events: none;
}

.wholesale-cta-text {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.wholesale-cta-text h2 {
    font-size: 1.7rem;
    margin-bottom: 6px;
    text-align: left;
}

.wholesale-cta-text p {
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
}

.wholesale-cta-btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05rem;
    padding: 16px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    white-space: nowrap;
}

.wholesale-cta-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(37, 211, 102, 0.55);
}

@media (max-width: 600px) {
    .wholesale-cta {
        justify-content: center;
        text-align: center;
    }
    .wholesale-cta-text h2,
    .wholesale-cta-text {
        text-align: center;
    }
}
