/* ================================================================
   FASTEST IMMIGRATION — contact.css
   Styles for: page hero, horizontal social bubbles, office cards
   Inherits tokens from style.css
   ================================================================ */

/* ----------------------------------------------------------------
   SHARED SECTION TOKENS (mirrors about.css)
   ---------------------------------------------------------------- */
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: 0.5rem;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.12;
  color: var(--clr-charcoal);
  margin-bottom: var(--sp-sm);
}

.section-heading em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(135deg, var(--clr-gold-light) 0%, var(--clr-gold) 55%, var(--clr-gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal]:nth-child(2) { transition-delay: 0.1s; }
[data-reveal]:nth-child(3) { transition-delay: 0.2s; }

/* ----------------------------------------------------------------
   PAGE HERO
   ---------------------------------------------------------------- */
.contact-hero {
  position: relative;
  padding: calc(var(--nav-h) + var(--sp-xl)) var(--sp-lg) var(--sp-xl);
  background: linear-gradient(160deg, #FAF8F3 0%, #F2EDE3 60%, #E8DFD0 100%);
  text-align: center;
  overflow: hidden;
}

.contact-hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  top: -200px; right: -200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184,146,42,0.1) 0%, transparent 70%);
  filter: blur(90px);
  pointer-events: none;
}

.contact-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-md);
}

.contact-hero-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--clr-charcoal);
}

.hero-heading-accent {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(135deg, var(--clr-gold-light) 0%, var(--clr-gold) 55%, var(--clr-gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-gold);
}

.hero-eyebrow-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--clr-gold);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.35; transform: scale(0.65); }
}

.contact-hero-sub {
  font-size: 1rem;
  color: rgba(28,26,23,0.6);
  max-width: 460px;
  line-height: 1.8;
}

.contact-hero-rule {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 120px; height: 2px;
  background: linear-gradient(to right, transparent, var(--clr-gold), transparent);
}

/* ----------------------------------------------------------------
   SECTION 1 — SOCIAL BUBBLES
   ---------------------------------------------------------------- */
.socials-section {
  padding: var(--sp-2xl) 0 calc(var(--sp-2xl) + 2rem);
  background: var(--clr-ivory);
  position: relative;
}

.socials-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-xl);
  position: relative;
}

.socials-header {
  text-align: center;
  max-width: 560px;
}

.socials-sub {
  font-size: 0.95rem;
  color: var(--clr-muted);
  line-height: 1.8;
}

/* Horizontal bubble row */
.socials-bubbles {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: var(--sp-md);
  flex-wrap: wrap;
}

/* Individual bubble */
.bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 148px;
  padding: 1.8rem 1rem 1.5rem;
  border-radius: 22px;
  border: 1.5px solid var(--clr-border);
  background: white;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease),
              background var(--dur-base) var(--ease);
  text-decoration: none;
  color: var(--clr-charcoal);
}

/* Shimmer sheen */
.bubble::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, transparent 30%, rgba(255,255,255,0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.55s var(--ease);
  pointer-events: none;
}
.bubble:hover::before { transform: translateX(120%); }

.bubble:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: var(--shadow-card);
}

/* Icon circle */
.bubble-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px; height: 72px;
  border-radius: 50%;
  transition: background var(--dur-base) var(--ease),
              color     var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease);
  background: var(--clr-cream);
  color: var(--clr-charcoal-3);
}

.bubble-label {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--clr-charcoal);
  transition: color var(--dur-base) var(--ease);
}

.bubble-handle {
  font-size: 0.68rem;
  color: var(--clr-muted);
  text-align: center;
  line-height: 1.4;
  transition: color var(--dur-base) var(--ease);
}

/* ---- Platform tints on hover ---- */

/* Instagram — gradient purple/pink */
.bubble--instagram:hover {
  border-color: #e1306c;
  box-shadow: 0 12px 40px rgba(225,48,108,0.18), 0 0 0 4px rgba(225,48,108,0.08);
}
.bubble--instagram:hover .bubble-icon {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(225,48,108,0.35);
}
.bubble--instagram:hover .bubble-label { color: #cc2366; }

/* WhatsApp — green */
.bubble--whatsapp:hover {
  border-color: #25D366;
  box-shadow: 0 12px 40px rgba(37,211,102,0.18), 0 0 0 4px rgba(37,211,102,0.08);
}
.bubble--whatsapp:hover .bubble-icon {
  background: #25D366;
  color: white;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
}
.bubble--whatsapp:hover .bubble-label { color: #128C7E; }

/* Email — gold (brand) */
.bubble--email:hover {
  border-color: var(--clr-gold);
  box-shadow: var(--shadow-gold), 0 12px 40px rgba(184,146,42,0.15);
}
.bubble--email:hover .bubble-icon {
  background: linear-gradient(135deg, var(--clr-gold-light), var(--clr-gold));
  color: white;
  box-shadow: 0 4px 20px rgba(184,146,42,0.4);
}
.bubble--email:hover .bubble-label { color: var(--clr-gold-dark); }

/* Facebook — blue */
.bubble--facebook:hover {
  border-color: #1877F2;
  box-shadow: 0 12px 40px rgba(24,119,242,0.18), 0 0 0 4px rgba(24,119,242,0.08);
}
.bubble--facebook:hover .bubble-icon {
  background: #1877F2;
  color: white;
  box-shadow: 0 4px 20px rgba(24,119,242,0.4);
}
.bubble--facebook:hover .bubble-label { color: #1877F2; }

/* ---- Fancy curved arrow annotation pointing to email bubble ---- */
.email-annotation {
  position: absolute;
  /* Positioned to sit above and left of the email bubble (3rd of 4) */
  bottom: -1.2rem;
  left: calc(50% + 20px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  pointer-events: none;
}

.email-annotation-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.88rem;
  color: var(--clr-gold);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.email-annotation-arrow {
  width: 90px;
  height: 60px;
  margin-left: 8px;
  opacity: 0.85;
}

/* ----------------------------------------------------------------
   SECTION 2 — OFFICES
   ---------------------------------------------------------------- */
.offices-section {
  padding: var(--sp-2xl) 0;
  background: var(--clr-cream);
  border-top: 1px solid var(--clr-border-soft);
}

.offices-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-xl);
}

.offices-header {
  text-align: center;
  max-width: 560px;
}

.offices-sub {
  font-size: 0.95rem;
  color: var(--clr-muted);
  line-height: 1.8;
}

/* Grid: card — connector — card */
.offices-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--sp-lg);
  align-items: center;
  width: 100%;
  max-width: 960px;
}

/* ---- Office Card ---- */
.office-card {
  background: white;
  border: 1px solid var(--clr-border);
  border-radius: 20px;
  padding: var(--sp-lg);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  transition: box-shadow var(--dur-base) var(--ease),
              transform   var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease);
}

.office-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
  border-color: rgba(184,146,42,0.38);
}

.office-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Flag emoji */
.office-flag {
  font-size: 2.4rem;
  line-height: 1;
  flex-shrink: 0;
}

/* Badge */
.office-badge {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-gold-dark);
  background: var(--clr-gold-dim);
  border: 1px solid var(--clr-border);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
}

.office-badge--pk {
  color: #01411C;
  background: rgba(1,65,28,0.08);
  border-color: rgba(1,65,28,0.2);
}

.office-heading {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--clr-charcoal);
  line-height: 1.2;
}

.office-city {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-gold);
}

/* Details list */
.office-details {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.25rem;
}

.office-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: rgba(28,26,23,0.72);
  line-height: 1.6;
}

.office-detail-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--clr-gold-dim);
  color: var(--clr-gold);
  margin-top: 1px;
}

.office-link {
  color: var(--clr-charcoal);
  font-weight: 500;
  transition: color var(--dur-fast) var(--ease);
  text-decoration: none;
}
.office-link:hover { color: var(--clr-gold); }

/* Email row — "shared" pill */
.office-email-row {
  flex-wrap: wrap;
  gap: 0.5rem;
}

.shared-email-tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-gold-dark);
  background: var(--clr-gold-dim);
  border: 1px solid var(--clr-border);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  align-self: center;
}

/* Get Directions button */
.office-cta-row { margin-top: 0.5rem; }

.office-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clr-gold);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-full);
  background: transparent;
  transition: background var(--dur-base) var(--ease),
              color     var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease),
              transform  var(--dur-fast) var(--ease);
}

.office-map-btn:hover {
  background: var(--clr-gold);
  color: white;
  border-color: var(--clr-gold);
  box-shadow: 0 4px 20px rgba(184,146,42,0.35);
  transform: translateY(-1px);
}

/* ---- Centre connector ---- */
.offices-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0 var(--sp-sm);
}

.connector-line {
  width: 1.5px;
  height: 40px;
  background: linear-gradient(to bottom, var(--clr-gold), rgba(184,146,42,0.15));
}

.connector-line:last-child {
  background: linear-gradient(to top, var(--clr-gold), rgba(184,146,42,0.15));
}

.connector-globe {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: globeSpinSlow 20s linear infinite;
}

@keyframes globeSpinSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ---- Shared email note ---- */
.shared-email-note {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  margin-top: -var(--sp-sm);
}

.shared-arrow {
  width: 60px; height: 80px;
  flex-shrink: 0;
  opacity: 0.75;
  transform: scaleY(-1); /* flip to point up toward offices */
}

.shared-email-note-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: rgba(28,26,23,0.55);
  line-height: 1.7;
}

.shared-email-link {
  color: var(--clr-gold);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(184,146,42,0.4);
  transition: color var(--dur-fast), text-decoration-color var(--dur-fast);
}
.shared-email-link:hover {
  color: var(--clr-gold-dark);
  text-decoration-color: var(--clr-gold-dark);
}

/* ----------------------------------------------------------------
   RESPONSIVE — Tablet (≤ 900px)
   ---------------------------------------------------------------- */
@media (max-width: 900px) {
  .offices-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .offices-connector {
    flex-direction: row;
    padding: 0;
  }

  .connector-line {
    width: 40px; height: 1.5px;
    background: linear-gradient(to right, var(--clr-gold), rgba(184,146,42,0.15));
  }
  .connector-line:last-child {
    background: linear-gradient(to left, var(--clr-gold), rgba(184,146,42,0.15));
  }

  .email-annotation {
    position: static;
    align-items: center;
    margin-top: -var(--sp-sm);
  }

  .email-annotation-arrow {
    transform: rotate(90deg);
  }

  .section-inner,
  .socials-inner,
  .offices-inner { padding: 0 var(--sp-sm); }
}

/* ----------------------------------------------------------------
   RESPONSIVE — Mobile (≤ 520px)
   ---------------------------------------------------------------- */
@media (max-width: 520px) {
  .socials-bubbles {
    gap: var(--sp-sm);
  }

  .bubble {
    width: 130px;
    padding: 1.5rem 0.75rem 1.2rem;
  }

  .bubble-icon {
    width: 60px; height: 60px;
  }

  .bubble-icon svg {
    width: 28px; height: 28px;
  }

  .contact-hero { padding-left: var(--sp-sm); padding-right: var(--sp-sm); }

  .shared-email-note {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .shared-arrow { display: none; }
}
/* ----------------------------------------------------------------
   FIX — solid + full-height mobile menu (prevents hero text bleed-through)
   ---------------------------------------------------------------- */
@media (max-width: 900px) {
  .nav-links {
    background: #FAF8F3 !important;
    height: calc(100vh - var(--nav-h)) !important;
    min-height: calc(100vh - var(--nav-h)) !important;
    overflow-y: auto !important;
    z-index: 1001 !important;
  }
}