/* ==========================================================================
   تواصل معنا — page styles. Requires css/site.css for tokens and base.
   ========================================================================== */

.contact-main { padding-bottom: clamp(3rem, 6vw, 4.5rem); }

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */
.about-section {
    max-width: 780px;
    margin: clamp(2.5rem, 5vw, 3.5rem) auto;
    text-align: center;
}

.about-section h2 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 900;
    margin-bottom: 1rem;
}

.about-section p { color: var(--text-muted); font-size: 1.05rem; }

/* --------------------------------------------------------------------------
   Contact channels
   -------------------------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: clamp(3rem, 6vw, 4rem);
}

.contact-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .5rem;
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}

/* Accent bar grows along the top edge on hover, matching the landing page. */
.contact-item::before {
    content: '';
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--lime));
    transition: width .4s var(--ease);
}

.contact-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
}

.contact-item:hover::before { width: 100%; }

.contact-item > i {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--brand-100), color-mix(in srgb, var(--lime) 22%, transparent));
    color: var(--brand);
    font-size: 1.45rem;
    margin-bottom: .5rem;
    transition: transform .35s var(--ease);
}

.contact-item:hover > i { transform: scale(1.08) rotate(-6deg); }

.contact-item h3 { font-size: 1.15rem; font-weight: 800; }
.contact-item p { color: var(--text-muted); font-size: .95rem; }

.contact-item a,
.contact-item > span {
    margin-top: .35rem;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--brand);
    word-break: break-word;
    transition: var(--transition);
}

.contact-item a:hover { color: var(--brand-600); text-decoration: underline; }

/* --------------------------------------------------------------------------
   Social
   -------------------------------------------------------------------------- */
.social-section {
    text-align: center;
    padding: clamp(2rem, 4vw, 3rem) 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--bg-alt);
    border: 1px solid var(--border);
}

.social-section h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.social-links { display: flex; justify-content: center; flex-wrap: wrap; gap: .85rem; }

.social-link {
    position: relative;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    font-size: 1.15rem;
    overflow: hidden;
    transition: var(--transition);
}

.social-link:hover { transform: translateY(-4px); color: #fff; }
.social-link.facebook:hover { background: #1877f2; border-color: #1877f2; }
.social-link.youtube:hover  { background: #ff0000; border-color: #ff0000; }
.social-link.whatsapp:hover { background: #25d366; border-color: #25d366; }
.social-link.twitter:hover  { background: #000;    border-color: #000; }
.social-link.telegram:hover { background: #0088cc; border-color: #0088cc; }
.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433, #dc2743, #bc1888);
    border-color: #dc2743;
}

/* Ripple span injected by contact.js */
.social-link span {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .5);
    transform: scale(0);
    animation: ripple .6s linear;
    pointer-events: none;
}

@keyframes ripple { to { transform: scale(2.5); opacity: 0; } }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer-text {
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: .9rem;
}

@media (max-width: 600px) {
    .back-btn span { display: none; }
    .back-btn { padding: .55rem .8rem; }
}
