/* High Mark Exports — modern / glass / depth (mobile-first) */

:root {
  --hm-bg-deep: #030712;
  --hm-bg: #0a0f1c;
  --hm-surface: rgba(15, 23, 42, 0.55);
  --hm-surface-2: rgba(30, 41, 59, 0.65);
  --hm-border: rgba(148, 163, 184, 0.14);
  --hm-border-bright: rgba(34, 211, 238, 0.35);
  --hm-cyan: #22d3ee;
  --hm-cyan-dim: rgba(34, 211, 238, 0.12);
  --hm-violet: #a78bfa;
  --hm-gold: #fbbf24;
  --hm-gold-soft: #fde68a;
  --hm-green: #0d3b2c;
  --hm-green-light: #14b8a6;
  --hm-text: #e2e8f0;
  --hm-muted: #94a3b8;
  --hm-white: #f8fafc;
  --hm-radius: 18px;
  --hm-radius-sm: 12px;
  --hm-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --hm-glow-cyan: 0 0 60px rgba(34, 211, 238, 0.18);
  --hm-font: "DM Sans", system-ui, -apple-system, sans-serif;
  --hm-display: "Space Grotesk", system-ui, sans-serif;
  --hm-tap: 44px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--hm-font);
  color: var(--hm-text);
  background: var(--hm-bg-deep);
  line-height: 1.65;
  font-size: 1rem;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Ambient mesh (no extra DOM) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 120% 80% at 10% -20%, rgba(34, 211, 238, 0.15), transparent 50%),
    radial-gradient(ellipse 90% 60% at 100% 0%, rgba(167, 139, 250, 0.12), transparent 45%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(251, 191, 36, 0.08), transparent 50%),
    linear-gradient(180deg, var(--hm-bg-deep) 0%, var(--hm-bg) 40%, #060b14 100%);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  body::after {
    display: none;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--hm-cyan);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: var(--hm-gold-soft);
}

main {
  position: relative;
  padding-bottom: max(4.5rem, calc(env(safe-area-inset-bottom, 0px) + 3.5rem));
}

.hm-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 max(1rem, env(safe-area-inset-left)) 0 max(1rem, env(safe-area-inset-right));
}

/* —— Top bar —— */
.hm-topbar {
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--hm-muted);
  font-size: 0.8125rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--hm-border);
}

.hm-topbar a {
  color: var(--hm-cyan);
}

.hm-topbar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  justify-content: center;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .hm-topbar__inner {
    justify-content: space-between;
    text-align: left;
  }
}

/* —— Header —— */
.hm-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 28, 0.72);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--hm-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.hm-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  position: relative;
}

.hm-logo {
  font-family: var(--hm-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 4vw, 1.4rem);
  color: var(--hm-white);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.hm-logo span {
  background: linear-gradient(120deg, var(--hm-cyan), var(--hm-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hm-logo:hover {
  text-decoration: none;
  filter: brightness(1.08);
}

.hm-nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid var(--hm-border);
  border-radius: 12px;
  padding: 0.65rem;
  min-width: var(--hm-tap);
  min-height: var(--hm-tap);
  cursor: pointer;
}

@media (min-width: 960px) {
  .hm-nav-toggle {
    display: none;
  }
}

.hm-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: linear-gradient(90deg, var(--hm-cyan), var(--hm-gold));
  border-radius: 2px;
}

.hm-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 0.35rem;
  padding: 0.75rem 1rem 1rem;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--hm-border);
  border-radius: var(--hm-radius-sm);
  box-shadow: var(--hm-shadow), var(--hm-glow-cyan);
}

.hm-nav.is-open {
  display: block;
}

@media (min-width: 960px) {
  .hm-nav {
    display: block !important;
    position: static;
    margin-top: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.hm-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 960px) {
  .hm-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.1rem;
    align-items: center;
    justify-content: flex-end;
  }
}

.hm-nav li {
  border-bottom: 1px solid var(--hm-border);
}

@media (min-width: 960px) {
  .hm-nav li {
    border: 0;
  }
}

.hm-nav a {
  display: flex;
  align-items: center;
  min-height: var(--hm-tap);
  padding: 0.5rem 0;
  color: var(--hm-text);
  font-weight: 500;
  font-size: 0.95rem;
}

@media (min-width: 960px) {
  .hm-nav a {
    min-height: auto;
    padding: 0.4rem 0;
  }
}

.hm-nav a:hover,
.hm-nav a.is-active {
  color: var(--hm-cyan);
  text-decoration: none;
}

.hm-nav a.is-active {
  text-shadow: 0 0 20px rgba(34, 211, 238, 0.4);
}

.hm-nav__trigger {
  display: none;
}

.hm-nav__chev::after {
  content: "";
  display: inline-block;
  width: 0.4em;
  height: 0.4em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -0.15em;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

.hm-nav__dropdown {
  margin-top: 0.25rem;
  padding-left: 0.5rem;
}

@media (max-width: 959px) {
  .hm-nav__dropdown {
    display: block;
    padding: 0 0 0.35rem 0.35rem;
  }

  .hm-nav__label {
    display: block;
    padding: 0.65rem 0 0.35rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--hm-violet);
    font-weight: 700;
  }
}

@media (min-width: 960px) {
  .hm-nav__label {
    display: none;
  }

  .hm-nav__trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    background: rgba(34, 211, 238, 0.06);
    border: 1px solid var(--hm-border);
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font: inherit;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--hm-text);
    cursor: pointer;
    font-family: var(--hm-font);
    min-height: var(--hm-tap);
  }

  .hm-nav__trigger:hover {
    border-color: var(--hm-border-bright);
    color: var(--hm-cyan);
    text-decoration: none;
    box-shadow: 0 0 24px rgba(34, 211, 238, 0.12);
  }

  .hm-nav__trigger:focus {
    outline: none;
  }

  .hm-nav__trigger:focus-visible {
    box-shadow: 0 0 0 2px var(--hm-bg-deep), 0 0 0 4px var(--hm-cyan);
  }

  .hm-nav li.hm-has-sub.is-sub-open .hm-nav__trigger {
    color: var(--hm-cyan);
    border-color: var(--hm-border-bright);
    background: rgba(34, 211, 238, 0.12);
  }

  .hm-nav li.hm-has-sub.is-sub-open .hm-nav__chev::after {
    transform: rotate(-135deg);
    margin-top: 0.12em;
  }

  .hm-nav li.hm-has-sub {
    position: relative;
  }

  .hm-nav__dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: auto;
    min-width: 260px;
    max-height: min(70vh, 440px);
    overflow-y: auto;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--hm-border);
    border-radius: var(--hm-radius-sm);
    box-shadow: var(--hm-shadow), 0 0 0 1px rgba(255, 255, 255, 0.04) inset, var(--hm-glow-cyan);
    padding: 0.4rem 0;
    margin-top: 0;
    display: none;
    z-index: 300;
    padding-left: 0;
    -webkit-overflow-scrolling: touch;
  }

  .hm-nav li.hm-has-sub.is-sub-open .hm-nav__dropdown {
    display: block;
  }
}

.hm-nav__dropdown a {
  font-size: 0.9rem;
  font-weight: 450;
  padding: 0.55rem 1.1rem;
  min-height: var(--hm-tap);
}

@media (min-width: 960px) {
  .hm-nav__dropdown a {
    min-height: auto;
  }
}

/* —— Buttons —— */
.hm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  min-height: var(--hm-tap);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9375rem;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.hm-btn:hover {
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .hm-btn:hover {
    transform: translateY(-3px);
  }
}

.hm-btn--primary {
  background: linear-gradient(135deg, var(--hm-cyan) 0%, #06b6d4 50%, var(--hm-green-light) 100%);
  color: #020617;
  box-shadow:
    0 8px 28px rgba(34, 211, 238, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

/* Stronger label + beat .hm-prose a / global a:hover (service pages, etc.) */
a.hm-btn.hm-btn--primary,
a.hm-btn.hm-btn--primary:visited,
button.hm-btn.hm-btn--primary {
  color: #020617;
  font-weight: 800;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

a.hm-btn.hm-btn--primary:hover,
a.hm-btn.hm-btn--primary:focus-visible,
button.hm-btn.hm-btn--primary:hover,
button.hm-btn.hm-btn--primary:focus-visible {
  color: #000000;
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .hm-btn--primary:hover {
    box-shadow:
      0 12px 36px rgba(34, 211, 238, 0.45),
      0 0 40px rgba(34, 211, 238, 0.2);
  }
}

.hm-btn--outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--hm-white);
  border: 2px solid rgba(251, 191, 36, 0.5);
  box-shadow: 0 0 24px rgba(251, 191, 36, 0.08);
}

@media (hover: hover) and (pointer: fine) {
  .hm-btn--outline:hover {
    border-color: var(--hm-gold);
    background: rgba(251, 191, 36, 0.08);
    color: var(--hm-gold-soft);
  }
}

/* —— Hero —— */
.hm-hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: flex-end;
  color: var(--hm-white);
  background: var(--hm-bg-deep);
}

@media (min-width: 768px) {
  .hm-hero {
    min-height: min(78vh, 820px);
  }
}

.hm-hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hm-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  opacity: 0.45;
  transform: scale(1.02);
}

.hm-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(3, 7, 18, 0.97) 0%, rgba(3, 7, 18, 0.82) 32%, rgba(10, 15, 28, 0.55) 62%, rgba(3, 7, 18, 0.35) 100%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(34, 211, 238, 0.12), transparent 55%);
}

.hm-hero__content {
  position: relative;
  padding: 2.5rem 0 2.75rem;
  max-width: 44rem;
}

.hm-hero h1 {
  font-family: var(--hm-display);
  font-size: clamp(1.85rem, 6vw, 3.1rem);
  line-height: 1.08;
  margin: 0 0 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-shadow:
    0 2px 40px rgba(0, 0, 0, 0.75),
    0 0 80px rgba(34, 211, 238, 0.15);
}

.hm-hero p {
  margin: 0 0 1.5rem;
  font-size: clamp(1rem, 2.8vw, 1.125rem);
  opacity: 0.95;
  color: var(--hm-muted);
  max-width: 38rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}

.hm-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* —— Sections —— */
.hm-section {
  padding: 2.75rem 0;
  position: relative;
}

@media (min-width: 768px) {
  .hm-section {
    padding: 4rem 0;
  }
}

.hm-section--alt {
  background: rgba(15, 23, 42, 0.35);
  border-top: 1px solid var(--hm-border);
  border-bottom: 1px solid var(--hm-border);
}

.hm-section h2 {
  font-family: var(--hm-display);
  font-size: clamp(1.55rem, 4vw, 2.25rem);
  color: var(--hm-white);
  margin: 0 0 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hm-section__lead {
  max-width: 720px;
  color: var(--hm-muted);
  margin: 0 0 2rem;
  font-size: 1.02rem;
}

.hm-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  perspective: 1200px;
}

@media (min-width: 600px) {
  .hm-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .hm-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Glass 3D cards */
.hm-card {
  position: relative;
  background: var(--hm-surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--hm-radius);
  overflow: hidden;
  border: 1px solid var(--hm-border);
  box-shadow:
    var(--hm-shadow),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 50px -20px rgba(34, 211, 238, 0.12);
  transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.35s ease, border-color 0.25s ease;
  transform-style: preserve-3d;
}

@media (hover: hover) and (pointer: fine) {
  .hm-card:hover {
    transform: translateY(-10px) rotateX(3deg);
    border-color: rgba(34, 211, 238, 0.28);
    box-shadow:
      0 24px 48px rgba(0, 0, 0, 0.55),
      0 0 0 1px rgba(34, 211, 238, 0.12) inset,
      0 0 60px -15px rgba(34, 211, 238, 0.25);
  }
}

@media (max-width: 899px), (pointer: coarse) {
  .hm-card:active {
    transform: scale(0.985);
  }
}

.hm-card__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, #1e293b, #0f172a);
}

.hm-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

@media (hover: hover) and (pointer: fine) {
  .hm-card:hover .hm-card__img img {
    transform: scale(1.05);
  }
}

.hm-card__body {
  padding: 1.2rem 1.35rem 1.4rem;
  position: relative;
  z-index: 1;
}

.hm-card__body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--hm-white);
  font-family: var(--hm-display);
  font-weight: 600;
}

.hm-card__body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--hm-muted);
  line-height: 1.55;
}

.hm-card__link {
  display: inline-flex;
  align-items: center;
  margin-top: 0.85rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--hm-cyan);
}

.hm-card__link:hover {
  color: var(--hm-gold);
  text-decoration: none;
}

/* Split / secondary band */
.hm-split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hm-split {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
}

.hm-split__img {
  border-radius: var(--hm-radius);
  overflow: hidden;
  border: 1px solid var(--hm-border);
  box-shadow:
    var(--hm-shadow),
    0 0 60px -20px rgba(167, 139, 250, 0.2);
  transform: perspective(900px) rotateY(-2deg);
}

@media (max-width: 899px) {
  .hm-split__img {
    transform: none;
  }
}

.hm-split__img img {
  width: 100%;
  height: auto;
}

.hm-split h2 {
  font-family: var(--hm-display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  color: var(--hm-white);
  margin: 0 0 0.75rem;
}

/* Stats */
.hm-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (min-width: 600px) {
  .hm-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

.hm-stat {
  text-align: center;
  padding: 1.25rem 0.75rem;
  background: var(--hm-surface-2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--hm-radius-sm);
  border: 1px solid var(--hm-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.hm-stat strong {
  display: block;
  font-family: var(--hm-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  background: linear-gradient(120deg, var(--hm-cyan), var(--hm-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
  font-weight: 700;
}

.hm-stat span {
  font-size: 0.78rem;
  color: var(--hm-muted);
  line-height: 1.35;
  display: block;
  margin-top: 0.35rem;
}

/* —— Footer —— */
.hm-footer {
  background: linear-gradient(180deg, rgba(3, 7, 18, 0.98) 0%, #020617 100%);
  color: var(--hm-muted);
  padding: 2.75rem 0 1.5rem;
  margin-top: 0;
  border-top: 1px solid var(--hm-border);
  box-shadow: 0 -20px 60px rgba(34, 211, 238, 0.06);
}

.hm-footer a {
  color: var(--hm-cyan);
}

.hm-footer a:hover {
  color: var(--hm-gold-soft);
}

.hm-footer__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .hm-footer__grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.hm-footer h4 {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  color: var(--hm-white);
  font-family: var(--hm-display);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hm-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hm-footer li {
  margin-bottom: 0.5rem;
}

.hm-footer__bottom {
  margin-top: 2.25rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--hm-border);
  font-size: 0.8125rem;
  text-align: center;
  color: var(--hm-muted);
}

/* —— Inner page hero —— */
.hm-page-hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(3, 7, 18, 0.98) 50%, rgba(15, 23, 42, 0.9) 100%),
    radial-gradient(ellipse 100% 80% at 0% 0%, rgba(34, 211, 238, 0.15), transparent 50%);
  color: var(--hm-white);
  padding: 2.5rem 0 2.25rem;
  border-bottom: 1px solid var(--hm-border);
  overflow: hidden;
}

.hm-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -12deg,
    transparent,
    transparent 40px,
    rgba(34, 211, 238, 0.03) 40px,
    rgba(34, 211, 238, 0.03) 41px
  );
  pointer-events: none;
}

.hm-page-hero .hm-wrap {
  position: relative;
  z-index: 1;
}

.hm-page-hero h1 {
  font-family: var(--hm-display);
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  margin: 0 0 0.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hm-page-hero p {
  margin: 0;
  opacity: 0.88;
  max-width: 640px;
  color: var(--hm-muted);
  font-size: 1.02rem;
}

/* —— Prose —— */
.hm-prose {
  max-width: 720px;
}

.hm-prose p {
  margin: 0 0 1rem;
  color: var(--hm-muted);
}

.hm-prose ul {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  color: var(--hm-muted);
}

.hm-prose a {
  color: var(--hm-cyan);
}

.hm-prose a.hm-btn--primary,
.hm-prose a.hm-btn--primary:visited {
  color: #020617;
}

.hm-prose a.hm-btn--primary:hover,
.hm-prose a.hm-btn--primary:focus-visible {
  color: #000000;
}

/* Contact page — Office column */
.hm-contact-office h2 {
  font-family: var(--hm-display);
  margin-top: 0;
  margin-bottom: 0.85rem;
  font-weight: 700;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  color: #ffffff;
  letter-spacing: -0.02em;
}

.hm-contact-office p.hm-prose,
.hm-contact-office .hm-contact-office__text {
  margin-top: 0;
  margin-bottom: 0.85rem;
  color: #ffffff;
  line-height: 1.65;
}

.hm-contact-office p.hm-prose:last-of-type {
  margin-bottom: 0;
}

.hm-contact-office strong {
  color: #ffffff;
  font-weight: 600;
}

.hm-contact-office a:not(.hm-btn) {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hm-contact-office a:not(.hm-btn):hover,
.hm-contact-office a:not(.hm-btn):focus-visible {
  color: #e2e8f0;
  text-decoration: underline;
}

/* Service layout */
.hm-service-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .hm-service-layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 2.5rem;
  }
}

.hm-service-layout__img {
  border-radius: var(--hm-radius);
  overflow: hidden;
  border: 1px solid var(--hm-border);
  box-shadow:
    var(--hm-shadow),
    0 0 50px -15px rgba(34, 211, 238, 0.15);
}

.hm-service-layout__img img {
  width: 100%;
  height: auto;
}

/* —— Forms —— */
.hm-form label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.4rem;
  color: var(--hm-cyan);
}

.hm-form input,
.hm-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  min-height: var(--hm-tap);
  border: 1px solid var(--hm-border);
  border-radius: var(--hm-radius-sm);
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 1rem;
  background: rgba(15, 23, 42, 0.6);
  color: var(--hm-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hm-form textarea {
  min-height: 140px;
  resize: vertical;
}

.hm-form input:focus,
.hm-form textarea:focus {
  outline: none;
  border-color: var(--hm-border-bright);
  box-shadow: 0 0 0 3px var(--hm-cyan-dim);
}

.hm-form input::placeholder,
.hm-form textarea::placeholder {
  color: var(--hm-muted);
  opacity: 0.7;
}

/* Alerts */
.hm-alert {
  padding: 0.9rem 1.1rem;
  border-radius: var(--hm-radius-sm);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  border: 1px solid transparent;
}

.hm-alert--ok {
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.35);
}

.hm-alert--err {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.35);
}

/* Cert grid */
.hm-cert-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 600px) {
  .hm-cert-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .hm-cert-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.hm-cert-grid figure {
  margin: 0;
  background: var(--hm-surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--hm-radius-sm);
  padding: 0.85rem;
  border: 1px solid var(--hm-border);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .hm-cert-grid figure:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, 0.25);
  }
}

.hm-cert-grid img {
  border-radius: 8px;
}

.hm-cert-grid figcaption {
  font-size: 0.72rem;
  color: var(--hm-muted);
  margin-top: 0.55rem;
  text-align: center;
}

/* Floating WhatsApp */
.hm-wa-float {
  position: fixed;
  z-index: 9998;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #25d366, #128c7e);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.4),
    0 0 0 2px rgba(255, 255, 255, 0.12) inset,
    0 0 40px rgba(37, 211, 102, 0.35);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.hm-wa-float:hover {
  color: #fff;
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .hm-wa-float:hover {
    transform: scale(1.08) translateZ(0);
    box-shadow:
      0 10px 32px rgba(0, 0, 0, 0.45),
      0 0 50px rgba(37, 211, 102, 0.45);
  }
}

.hm-wa-float:focus {
  outline: none;
}

.hm-wa-float:focus-visible {
  box-shadow: 0 0 0 3px var(--hm-bg-deep), 0 0 0 5px #25d366;
}

.hm-wa-float svg {
  width: 1.85rem;
  height: 1.85rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .hm-wa-float {
    right: max(1.35rem, env(safe-area-inset-right, 0px));
    bottom: max(1.35rem, env(safe-area-inset-bottom, 0px));
    width: 3.75rem;
    height: 3.75rem;
  }

  .hm-wa-float svg {
    width: 2rem;
    height: 2rem;
  }
}
