/* ===========================
   hommex-contact — base
   All classes namespaced with hommex-contact-
   =========================== */

.hommex-contact-wrapper {
  font-family: Tahoma, Arial, sans-serif;
  background: #f6f8fb;
  color: #222;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* container */
.hommex-contact-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* ---------------------------
   Hero
   --------------------------- */
.hommex-contact-hero {
  position: relative;
  padding: 56px 16px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg,#0a2248 0%, #123b8e 100%);
  border-radius: 0 0 22px 22px;
  overflow: hidden;
}

.hommex-contact-hero-title {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: .2px;
}

.hommex-contact-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  pointer-events: none;
}

/* ---------------------------
   Intro
   --------------------------- */
.hommex-contact-intro {
  background: #fff;
  padding: 28px 0;
  text-align: center;
}

/* ---------------------------
   Contact cards (numbers) — UPDATED STYLE
   --------------------------- */
.hommex-contact-info {
  padding: 36px 0;
}

.hommex-contact-grid {
  display: grid;
  gap: 18px;
}

/* Mobile-first: single column; desktop -> 2x2 */
@media (min-width: 992px) {
  .hommex-contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* card */
.hommex-contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  padding: 18px;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(9,31,91,0.06);
  transition: transform .18s ease, box-shadow .18s ease;
  overflow: hidden;
}

/* subtle hover on devices with pointer */
@media (hover: hover) {
  .hommex-contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(9,31,91,0.07);
  }
}

/* left area: icon circle (on the right visually because RTL) */
.hommex-contact-card-left {
  flex: 0 0 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* circle icon */
.hommex-contact-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg,#123b8e 0%, #0a2a66 100%);
  box-shadow: 0 6px 16px rgba(18,59,142,0.12);
}

/* allow specific icon color variations if needed */
.hommex-contact-icon-phone { background: linear-gradient(180deg,#1f6ae0,#0c3ea8); }
.hommex-contact-icon-headset { background: linear-gradient(180deg,#0f9d8f,#087b6d); }
.hommex-contact-icon-building { background: linear-gradient(180deg,#6c5ce7,#4b39c7); }
.hommex-contact-icon-mail { background: linear-gradient(180deg,#f76b1c,#e64a19); }

/* ensure svg inside icon is white */
.hommex-contact-card-icon svg { display:block; color:#fff; }

/* card body */
.hommex-contact-card-body {
  flex: 1 1 auto;
  text-align: right; /* keep text right-aligned (RTL) */
}

.hommex-contact-card-body h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: #0a2248;
}

.hommex-contact-small {
  margin: 0;
  color: #444;
  line-height: 1.4;
}

.hommex-contact-muted {
  display: block;
  margin-top: 6px;
  color: #7a8697;
  font-size: 0.86rem;
}

/* phone / email links */
.hommex-contact-tel {
  display: inline-block;
  margin-top: 6px;
  color: #123b8e;
  text-decoration: none;
  font-weight: 600;
}

/* ---------------------------
   Socials (above map)
   1 row x 3 columns on desktop,
   stacks on small screens
   --------------------------- */
.hommex-contact-socials {
  padding: 28px 0 6px;
  text-align: center;
  background: transparent;
}

.hommex-contact-socials-title {
  margin: 0 0 12px;
  font-size: 1.05rem;
  color: #0a2248;
}

/* grid: default 1 col, at >=768px -> 3 cols */
.hommex-contact-socials-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
}

@media (min-width: 768px) {
  .hommex-contact-socials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* each social link */
.hommex-contact-social {
  text-decoration: none;
  color: #222;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform .18s ease;
}

/* circle with brand color background; SVG inside is white */
.hommex-contact-social-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(9,31,91,0.06);
}

/* brand backgrounds */
.hommex-contact-social-instagram { background: radial-gradient(circle at 30% 20%, #ffd, #f06292 0 10%, #f0932b 30%, #a32bd6 60%); }
.hommex-contact-social-linkedin { background: #0e76a8; }
.hommex-contact-social-aparat { background: #ff6b35; }

/* label */
.hommex-contact-social-label {
  display: block;
  font-size: 0.95rem;
  color: #0a2248;
}

/* hover */
@media (hover: hover) {
  .hommex-contact-social:hover { transform: translateY(-6px); }
}

/* ---------------------------
   Map
   --------------------------- */
.hommex-contact-map {
  padding: 24px 0 8px;
  text-align: center;
}

.hommpx;
  text-align: center;
  background: transparent;
}

.hommex-contact-socials-title {
  margin: 0 0 12px;
  font-size: 1.05rem;
  color: #0a2248;
}

/* grid: default 1 col, at >=768px -> 3 cols */
.hommex-contact-socials-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
}

@media (min-width: 768px) {
  .hommex-contact-socials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* each social link */
.hommex-contact-social {
  text-decoration: none;
  color: #222;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform .18s ease;
}

/* circle with brand color background; SVG inside is white */
.hommex-contact-social-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(9,31,91,0.06);
}

/* brand backgrounds */
.hommex-contact-social-instagram { background: radial-gradient(circle at 30% 20%, #ffd, #f06292 0 10%, #f0932b 30%, #a32bd6 60%); }
.hommex-contact-social-linkedin { background: #0e76a8; }
.hommex-contact-social-aparat { background: #ff6b35; }

/* label */
.hommex-contact-social-label {
  display: block;
  font-size: 0.95rem;
  color: #0a2248;
}

/* hover */
@media (hover: hover) {
  .hommex-contact-social:hover { transform: translateY(-6px); }
}

/* ---------------------------
   Map
   --------------------------- */
.hommex-contact-map {
  padding: 24px 0 8px;
  text-align: center;
}

.hommex-contact-map-box {
  margin-top: 14px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(9,31,91,0.06);
}

.hommex-contact-map-box iframe {
  width: 100%;
  height: 360px;
  border: 0;
}

/* External maps underneath */
.hommex-contact-external-maps {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

@media (min-width: 768px) {
  .hommex-contact-external-maps { grid-template-columns: repeat(2, 1fr); }
}

.hommex-contact-map-link {
  background: #fff;
  padding: 12px;
  border-radius: 12px;
  text-decoration: none;
  color: #091f5b;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(9,31,91,0.06);
  transition: transform .15s ease;
}

.hommex-contact-map-link:hover { transform: translateY(-4px); }

.hommex-contact-map-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #123b8e;
  color: #fff;
  font-size: 18px;
}

/* ---------------------------
   Bottom text
   --------------------------- */
.hommex-contact-bottom-text {
  padding: 28px 0 60px;
  text-align: center;
  background: #fff;
  margin-top: 18px;
}

/* small helpers */
.hommex-contact-hidden { display: none !important; }
