/* Homepage — Corporate Head Office map card */

.head-office {
  padding: clamp(72px, 10vw, 110px) 0 clamp(64px, 8vw, 96px);
  background:
    radial-gradient(ellipse 80% 55% at 15% 0%, rgba(151, 140, 33, 0.09), transparent 58%),
    radial-gradient(ellipse 70% 50% at 90% 100%, rgba(151, 140, 33, 0.06), transparent 55%),
    var(--background);
  transition: background 0.5s ease;
}

.head-office__head {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.head-office__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary-color);
}

.head-office__eyebrow svg {
  width: 16px;
  height: 16px;
}

.head-office__card {
  position: relative;
  border-radius: 1.65rem;
  padding: 3px;
  background: linear-gradient(
    135deg,
    rgba(151, 140, 33, 0.55),
    rgba(255, 255, 255, 0.15) 35%,
    rgba(151, 140, 33, 0.35) 70%,
    rgba(60, 60, 59, 0.2)
  );
  box-shadow:
    0 28px 70px rgba(60, 60, 59, 0.12),
    0 8px 24px rgba(151, 140, 33, 0.08);
  animation: headOfficeFloat 7s ease-in-out infinite;
}

html[data-theme="dark"] .head-office__card {
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.35),
    0 8px 24px rgba(151, 140, 33, 0.12);
}

.head-office__card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--head-office-angle, 0deg),
    rgba(151, 140, 33, 0.85),
    rgba(255, 255, 255, 0.35),
    rgba(151, 140, 33, 0.55),
    rgba(60, 60, 59, 0.25),
    rgba(151, 140, 33, 0.85)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.55;
  pointer-events: none;
  animation: headOfficeBorderSpin 8s linear infinite;
}

.head-office__card-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(280px, 0.78fr);
  gap: 0;
  border-radius: calc(1.65rem - 3px);
  overflow: hidden;
  background: var(--background);
  min-height: min(520px, 72vh);
}

.head-office__card-inner--solo {
  grid-template-columns: 1fr;
  min-height: 0;
}

.head-office__map-wrap {
  position: relative;
  min-height: 360px;
  background: #1a1d22;
}

.head-office__map-glow {
  position: absolute;
  inset: auto 12% 8% 12%;
  height: 42%;
  background: radial-gradient(circle, rgba(151, 140, 33, 0.35), transparent 70%);
  filter: blur(28px);
  opacity: 0.75;
  pointer-events: none;
  animation: headOfficeGlow 4.5s ease-in-out infinite;
}

.head-office__map-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.head-office__map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  display: block;
  filter: saturate(1.05) contrast(1.02);
  transform: scale(1.02);
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s ease;
}

.head-office__card:hover .head-office__map-frame iframe {
  transform: scale(1.06);
  filter: saturate(1.12) contrast(1.04);
}

.head-office__map-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(21, 23, 27, 0.08) 0%,
    rgba(21, 23, 27, 0) 28%,
    rgba(21, 23, 27, 0) 62%,
    rgba(21, 23, 27, 0.28) 100%
  );
  pointer-events: none;
}

.head-office__map-badge {
  position: absolute;
  left: 1.35rem;
  top: 1.35rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: rgba(21, 23, 27, 0.72);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.12);
  animation: headOfficeBadgePulse 3s ease-in-out infinite;
}

.head-office__map-badge svg {
  width: 14px;
  height: 14px;
  color: var(--primary-color);
}

.head-office__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  background:
    linear-gradient(165deg, rgba(151, 140, 33, 0.08) 0%, transparent 42%),
    var(--background);
}

.head-office__panel-title {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--primary-color-two);
  margin: 0 0 0.35rem;
}

.head-office__panel-lead {
  margin: 0 0 1.35rem;
  font-size: 0.92rem;
  line-height: 1.65;
  opacity: 0.72;
  color: var(--primary-color-two);
}

.head-office__details {
  display: grid;
  gap: 0.85rem;
}

.head-office__detail {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.85rem 0.95rem;
  border-radius: 1rem;
  background: rgba(151, 140, 33, 0.06);
  border: 1px solid rgba(151, 140, 33, 0.12);
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.65s ease,
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

html[data-theme="dark"] .head-office__detail {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.head-office__card.reveal.visible .head-office__detail {
  opacity: 1;
  transform: translateY(0);
}

.head-office__card.reveal.visible .head-office__detail:nth-child(1) { transition-delay: 0.12s; }
.head-office__card.reveal.visible .head-office__detail:nth-child(2) { transition-delay: 0.22s; }
.head-office__card.reveal.visible .head-office__detail:nth-child(3) { transition-delay: 0.32s; }
.head-office__card.reveal.visible .head-office__detail:nth-child(4) { transition-delay: 0.42s; }

.head-office__detail:hover {
  background: rgba(151, 140, 33, 0.11);
  border-color: rgba(151, 140, 33, 0.28);
  box-shadow: 0 10px 24px rgba(151, 140, 33, 0.08);
}

.head-office__detail-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(151, 140, 33, 0.14);
  color: var(--primary-color);
}

.head-office__detail-icon svg {
  width: 18px;
  height: 18px;
}

.head-office__detail-body {
  min-width: 0;
}

.head-office__detail-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 0.2rem;
  color: var(--primary-color-two);
}

.head-office__detail-value {
  display: block;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--primary-color-two);
  text-decoration: none;
  transition: color 0.2s ease;
}

a.head-office__detail-value:hover {
  color: var(--primary-color);
}

.head-office__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.head-office__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.head-office__btn svg {
  width: 16px;
  height: 16px;
}

.head-office__btn--primary {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 12px 28px rgba(151, 140, 33, 0.28);
}

.head-office__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(151, 140, 33, 0.34);
  color: #fff;
}

.head-office__btn--ghost {
  background: transparent;
  color: var(--primary-color-two);
  border: 1px solid rgba(60, 60, 59, 0.16);
}

html[data-theme="dark"] .head-office__btn--ghost {
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.head-office__btn--ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(151, 140, 33, 0.45);
  color: var(--primary-color);
}

@keyframes headOfficeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes headOfficeBorderSpin {
  to { --head-office-angle: 360deg; }
}

@property --head-office-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes headOfficeGlow {
  0%, 100% { opacity: 0.55; transform: scale(0.96); }
  50% { opacity: 0.9; transform: scale(1.04); }
}

@keyframes headOfficeBadgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(151, 140, 33, 0.25); }
  50% { box-shadow: 0 0 0 8px rgba(151, 140, 33, 0); }
}

@media (max-width: 991.98px) {
  .head-office__card-inner {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .head-office__map-wrap {
    min-height: 300px;
  }

  .head-office__map-frame iframe {
    min-height: 300px;
  }
}

@media (max-width: 767.98px) {
  .head-office__head {
    margin-bottom: 1.75rem;
  }

  .head-office__card {
    border-radius: 1.25rem;
    animation: none;
  }

  .head-office__card-inner {
    border-radius: calc(1.25rem - 3px);
  }

  .head-office__panel {
    padding: 1.35rem 1.15rem 1.5rem;
  }

  .head-office__actions {
    flex-direction: column;
  }

  .head-office__btn {
    width: 100%;
  }
}
