:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 280px;
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background: #102534;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 75%, white);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  background: #111;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  position: relative;
  width: min(100%, 425px);
  min-height: 100vh;
  min-height: 100dvh;
  margin-inline: auto;
  overflow: clip;
  background:
    radial-gradient(circle at 100% 34%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 32%),
    var(--surface);
  box-shadow: 0 0 48px rgba(0, 0, 0, .28);
}

.hero {
  position: relative;
  height: 220px;
  background-color: var(--primary);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero__brand {
  position: absolute;
  z-index: 1;
  inset-block-start: 18px;
  inset-inline-start: 18px;
  display: grid;
  width: 205px;
  height: 84px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
  backdrop-filter: blur(10px);
}

.hero__brand img {
  width: 184px;
  height: 70px;
  object-fit: contain;
}

.page-content {
  padding: 0 16px calc(116px + env(safe-area-inset-bottom));
}

.profile {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: -76px;
}

.profile__image {
  width: 128px;
  height: 128px;
  object-fit: cover;
  object-position: center 22%;
  border: 5px solid #fff;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 12px 30px rgba(10, 37, 56, .18);
}

.profile__identity {
  min-width: 0;
  padding-top: 68px;
}

.profile h1 {
  margin: 0;
  color: var(--primary);
  font-size: clamp(1.38rem, 6.2vw, 1.72rem);
  font-weight: 850;
  letter-spacing: -.025em;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.profile p {
  margin: 5px 0 0;
  line-height: 1.35;
}

.profile__role {
  color: var(--accent);
  font-size: 1.02rem;
  font-weight: 800;
}

.profile__company,
.profile__department {
  color: var(--muted);
  font-size: .88rem;
  font-weight: 600;
}

.social-section {
  margin-top: 20px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.social-link {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--primary) 82%, white);
  border-radius: 50% 50% 50% 13px;
  color: #fff;
  background: linear-gradient(145deg, var(--primary), color-mix(in srgb, var(--primary) 76%, var(--accent)));
  text-decoration: none;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 22%, transparent);
  transition: transform .18s ease, border-radius .18s ease;
}

.social-link:hover {
  border-radius: 50%;
  transform: translateY(-2px);
}

.social-link__glyph {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

.social-link__icon {
  width: 24px;
  height: 24px;
}

.contact-section {
  margin-top: 26px;
}

.contact-section h2,
.company-section h2 {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 1.18rem;
  font-weight: 850;
  letter-spacing: .025em;
}

.contact-list {
  display: grid;
  gap: 10px;
}

.contact-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 70px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--primary) 14%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--card) 92%, white);
  text-decoration: none;
}

.contact-card:hover .contact-card__value {
  color: var(--primary);
  text-decoration: underline;
}

.contact-card__icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(145deg, var(--primary), color-mix(in srgb, var(--primary) 76%, var(--accent)));
  font-size: 1.1rem;
  font-weight: 800;
}

.contact-card__content {
  min-width: 0;
}

.contact-card__label {
  display: block;
  margin-bottom: 5px;
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.contact-card__value {
  display: block;
  color: var(--text);
  font-size: .96rem;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.company-section {
  margin-top: 30px;
  padding: 18px 14px 16px;
  border: 1px solid color-mix(in srgb, var(--primary) 14%, transparent);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(7, 91, 150, .10);
}

.company-section__eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
  font-size: .69rem;
  font-weight: 850;
  letter-spacing: .13em;
}

.company-section h2 {
  margin-bottom: 14px;
}

.company-list {
  display: grid;
  gap: 10px;
}

.branch-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 11px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 17%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 5%, white);
  text-decoration: none;
}

.branch-card__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: var(--accent);
  font-size: 1rem;
  font-weight: 850;
}

.branch-card__title {
  display: block;
  margin-bottom: 5px;
  color: var(--primary);
  font-size: .84rem;
  font-weight: 850;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.branch-card__phone,
.branch-card__address {
  display: block;
  color: var(--text);
  font-size: .9rem;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.branch-card__phone {
  margin-bottom: 3px;
  font-weight: 750;
  text-decoration: none;
}

.company-socials {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 0 0 16px;
}

.company-socials .social-link {
  width: 42px;
  height: 42px;
  border-color: color-mix(in srgb, var(--accent) 70%, white);
  background: var(--accent);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 18%, transparent);
}

.footer {
  padding: 24px 0 10px;
  color: var(--muted);
  font-size: .8rem;
  text-align: center;
}

.footer p {
  margin: 0;
}

.action-bar {
  position: fixed;
  z-index: 10;
  right: 50%;
  bottom: 0;
  display: flex;
  width: min(100%, 425px);
  gap: 10px;
  justify-content: flex-end;
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--surface) 94%, transparent) 28%);
  transform: translateX(50%);
  pointer-events: none;
}

.action {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  pointer-events: auto;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
}

.action--secondary {
  width: 54px;
  color: var(--primary);
  background: #fff;
  font-size: 1.2rem;
}

.action--primary {
  gap: 10px;
  padding: 6px 6px 6px 22px;
  color: #fff;
  background: var(--action);
  font-size: .94rem;
  font-weight: 700;
}

[dir="rtl"] .action--primary {
  padding: 6px 22px 6px 6px;
}

.action__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: var(--action);
  background: #fff;
  font-size: 1.5rem;
}

.toast {
  position: fixed;
  z-index: 30;
  right: 50%;
  bottom: calc(86px + env(safe-area-inset-bottom));
  max-width: min(90vw, 360px);
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  background: #111;
  opacity: 0;
  transform: translate(50%, 12px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(50%, 0);
}

@media (max-width: 340px) {
  .profile {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .profile__image {
    width: 104px;
    height: 104px;
  }

  .profile__identity {
    padding-top: 38px;
  }

  .profile h1 {
    font-size: 1.22rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
