/* Syntrax Technologies — professional design (Outfit, pharmacy-site patterns) */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --soft: #f8fafc;
  --soft-2: #f1f5ff;
  --cta: #0f172a;
  --foreground: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --brand: #0052ff;
  --brand-hover: #0040cc;
  --brand-text: #0040cc;
  --wa: #25d366;
  --radius: 8px;
  --radius-sm: 6px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --header-bar: 72px;
  --header-h: calc(var(--header-bar) + var(--safe-top));
  --bottom-bar-h: 64px;
  --font: "Outfit", Arial, Helvetica, sans-serif;
  --max: 1120px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1220;
  --surface: #121a2b;
  --soft: #0f172a;
  --soft-2: #172554;
  --cta: #020617;
  --foreground: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border: #243044;
  --border-strong: #334155;
  --brand-text: #93b4ff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--foreground);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100dvh;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font);
  color: var(--foreground);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: var(--radius-sm);
  padding: 0.7rem 1.15rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: background 0.15s var(--ease), border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.btn--primary {
  background: var(--brand);
  color: #fff;
}

.btn--primary:hover {
  background: var(--brand-hover);
}

.btn--secondary {
  background: var(--foreground);
  color: #fff;
}

.btn--secondary:hover {
  background: #1e293b;
}

.btn--outline {
  background: var(--surface);
  color: var(--foreground);
  border-color: var(--border-strong);
}

.btn--outline:hover {
  border-color: var(--foreground);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}

.btn--ghost:hover {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--foreground);
}

.btn--lg {
  padding: 0.9rem 1.35rem;
  font-size: 1rem;
}

.btn--sm {
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
}

.btn--block {
  width: 100%;
}

.text-link {
  color: var(--brand);
  font-weight: 600;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-text);
  margin-bottom: 0.75rem;
}

.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.25rem;
}

.section-head--center {
  text-align: center;
  margin-inline: auto;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
}

.section-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0;
}

/* Header — safe-area aware (Dynamic Island / notch) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-h);
  padding-top: var(--safe-top);
  display: flex;
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.header-inner {
  width: min(100% - 1.5rem, var(--max));
  margin-inline: auto;
  min-height: var(--header-bar);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-inline: max(0px, var(--safe-left)) max(0px, var(--safe-right));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  min-height: 48px;
  overflow: visible;
}

.brand-logo-nav {
  display: block;
  width: 190px;
  height: auto;
  max-width: none;
  max-height: 48px;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
  background: transparent;
}

@media (max-width: 480px) {
  .brand-logo-nav {
    width: min(165px, 52vw);
    max-height: 42px;
  }
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-mark-img {
  width: 36px !important;
  height: 36px !important;
  max-width: none;
  object-fit: contain;
  display: block;
  background: transparent;
}

.brand-logo {
  display: block;
  width: 190px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  background: transparent;
}

.brand-logo-nav.logo-on-dark,
.brand-logo.logo-on-dark {
  display: none;
}

html[data-theme="dark"] .brand-logo-nav.logo-on-light,
html[data-theme="dark"] .brand-logo.logo-on-light {
  display: none;
}

html[data-theme="dark"] .brand-logo-nav.logo-on-dark,
html[data-theme="dark"] .brand-logo.logo-on-dark {
  display: block;
}

.brand--footer {
  display: inline-block;
  overflow: visible;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.brand-sub {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 0.1rem;
  margin-left: auto;
  padding: 0.2rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.nav-link,
.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  min-height: 36px;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.nav-link:hover,
.nav-trigger:hover,
.nav-trigger[aria-expanded="true"] {
  color: var(--foreground);
  background: var(--soft);
  text-decoration: none;
}

.nav-link.is-active {
  color: var(--brand);
  background: var(--soft-2);
  font-weight: 600;
}

.nav-trigger svg {
  transition: transform 0.2s var(--ease);
}

.nav-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.nav-item {
  position: relative;
}

.mega-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  translate: -50% 0;
  width: min(580px, calc(100vw - 2rem - var(--safe-left) - var(--safe-right)));
  padding: 0.85rem;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
  z-index: 50;
}

.nav-item.is-open .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.2rem;
}

.mega-card {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.8rem 0.85rem;
  border-radius: 8px;
  transition: background 0.15s var(--ease);
}

.mega-card:hover {
  background: var(--soft);
  outline: none;
}

.mega-card strong {
  font-size: 0.88rem;
  color: var(--foreground);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.mega-card[target="_blank"] strong::after {
  content: "";
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  opacity: 0.45;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M4.5 2.5H2.5v7h7V7.5M6.5 2.5h3v3M5 7l4.5-4.5' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M4.5 2.5H2.5v7h7V7.5M6.5 2.5h3v3M5 7l4.5-4.5' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.mega-card small {
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.35;
}

.mega-aside {
  grid-column: 1 / -1;
  margin-top: 0.4rem;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  background: var(--soft);
  border: 1px solid var(--border);
}

.mega-aside-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-text);
  margin: 0 0 0.3rem;
}

.mega-aside-text {
  color: var(--text-muted);
  font-size: 0.84rem;
  margin: 0 0 0.7rem;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  margin-left: auto;
  flex-shrink: 0;
}

.theme-switch {
  position: relative;
  flex-shrink: 0;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--foreground);
  display: grid;
  place-items: center;
  -webkit-tap-highlight-color: transparent;
}

.theme-toggle:hover,
.theme-toggle[aria-expanded="true"] {
  border-color: var(--border-strong);
  background: var(--soft);
}

.theme-icon {
  display: none;
  width: 18px;
  height: 18px;
}

html[data-theme-mode="light"] .theme-icon--sun,
html[data-theme-mode="dark"] .theme-icon--moon,
html[data-theme-mode="system"] .theme-icon--system {
  display: block;
}

.theme-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 156px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
  z-index: 130;
}

.theme-menu[hidden] {
  display: none;
}

.theme-menu button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: left;
}

.theme-menu button[aria-checked="true"] {
  background: var(--soft-2);
  color: var(--brand-text);
}

.theme-menu button:hover {
  background: var(--soft);
}

.lang-switch {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
  flex-shrink: 0;
}

.lang-btn {
  padding: 0.38rem 0.62rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  line-height: 1;
  min-height: 32px;
}

.lang-btn.is-active {
  background: var(--brand);
  color: #fff;
}

.lang-btn:not(.is-active):hover {
  color: var(--brand);
  background: var(--soft-2);
}

.drawer-lang {
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.drawer-lang-label {
  margin: 0 0 0.5rem;
  padding: 0 0.15rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.lang-switch--drawer {
  display: flex;
  width: 100%;
}

.lang-switch--drawer .lang-btn {
  flex: 1;
  min-height: 44px;
  padding: 0.7rem 0.9rem;
  font-size: 0.82rem;
}

.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 3rem;
  background: var(--bg);
  color: var(--foreground);
  min-height: 100dvh;
}

.legal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 1.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.legal-tools {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  flex-shrink: 0;
}

.legal-bar .brand-logo-nav {
  width: min(150px, 46vw);
  max-height: 40px;
}

.legal-bar a {
  font-weight: 600;
  color: var(--brand);
}

.legal-page h1 {
  font-size: clamp(1.6rem, 4vw, 2rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}

.legal-page h2 {
  margin-top: 1.75rem;
  font-size: 1.05rem;
}

.legal-page a {
  color: var(--brand);
}

.header-contact {
  display: none;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--surface);
  position: relative;
  margin-left: 0;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--foreground);
  border-radius: 1px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  z-index: 120;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(360px, 100%);
  height: 100%;
  height: 100dvh;
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 130;
  transform: translateX(100%);
  transition: transform 0.28s var(--ease);
  padding:
    calc(1rem + var(--safe-top))
    calc(1.15rem + var(--safe-right))
    calc(1.15rem + var(--safe-bottom))
    1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.mobile-drawer.is-open {
  transform: none;
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.drawer-close {
  font-size: 1.6rem;
  color: var(--text-muted);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}

.drawer-close:hover {
  background: var(--soft);
  color: var(--foreground);
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
}

.drawer-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0.85rem 0 0.25rem;
  padding: 0 0.65rem;
}

.drawer-label:first-child {
  margin-top: 0.25rem;
}

.drawer-nav a {
  padding: 0.85rem 0.75rem;
  border-radius: 10px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  -webkit-tap-highlight-color: transparent;
}

.drawer-nav a[target="_blank"]::after {
  content: "↗";
  font-size: 0.8rem;
  color: var(--text-muted);
}

.drawer-nav a:hover,
.drawer-nav a:active {
  background: var(--soft);
  color: var(--brand);
}

.drawer-cta {
  margin-top: auto;
  display: grid;
  gap: 0.55rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

/* Hero */
.hero {
  padding: clamp(2.75rem, 7vw, 4.5rem) 0 clamp(3rem, 7vw, 4.75rem);
}

.hero-layout {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.15rem, 5vw, 3.5rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 1.1rem;
  max-width: 14ch;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 36rem;
  margin-bottom: 1.5rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.hero-checks {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0;
}

.hero-checks li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}

.hero-checks li::before {
  content: "";
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--brand);
}

.hero-photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  aspect-ratio: 4 / 3;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.metrics-band {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.metric {
  padding: 0.25rem 0;
}

.metric strong {
  display: block;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  letter-spacing: -0.03em;
  color: var(--foreground);
  margin-bottom: 0.15rem;
}

.metric span {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Feature / service cards */
.features {
  background: var(--surface);
}

.feature-grid {
  display: grid;
  gap: 0.85rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.feature-card:hover {
  border-color: var(--border-strong);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 1rem;
}

.feature-card .service-link {
  color: var(--brand);
  font-weight: 600;
  font-size: 0.9rem;
}

.feature-card .service-link:hover {
  color: var(--brand-hover);
}

/* Photo services */
.photo-grid {
  display: grid;
  gap: 1rem;
}

.photo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.photo-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--surface);
}

.photo-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
}

.photo-card-body h3 {
  font-size: 1.15rem;
  margin: 0;
}

.photo-card-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
  flex: 1;
}

.photo-card-body .service-link {
  color: var(--brand);
  font-weight: 600;
  font-size: 0.9rem;
  align-self: flex-start;
}

/* Steps */
.steps-grid {
  display: grid;
  gap: 0.85rem;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.9rem;
}

.step-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.step-card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

/* Region / trust */
.region-panel {
  display: grid;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.region-photo img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}

.region-copy {
  padding: 1.75rem;
}

.region-copy h3 {
  font-size: 1.35rem;
}

.region-copy > p {
  color: var(--text-muted);
}

.region-list {
  display: grid;
  gap: 0.65rem;
  margin: 1.15rem 0 1.35rem;
}

.region-list li {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.region-list strong {
  color: var(--brand-text);
}

.region-list span {
  color: var(--text-secondary);
}

.region-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* CTA band */
.cta-band {
  background: var(--cta);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  display: grid;
  gap: 1.5rem;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.cta-band p {
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
  max-width: 36rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.cta-band .btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.cta-band .btn--outline:hover {
  background: #fff;
  color: #0f172a;
  border-color: #fff;
}

/* Catalog (services page) */
.page-hero {
  padding: clamp(2.5rem, 6vw, 3.75rem) 0 2rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.85rem);
  max-width: 16ch;
  letter-spacing: -0.04em;
}

.page-hero .hero-lead {
  max-width: 40rem;
}

.catalog-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.catalog-jump a {
  padding: 0.55rem 0.9rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  -webkit-tap-highlight-color: transparent;
}

.catalog-jump a:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.relationship-grid {
  display: grid;
  gap: 0.75rem;
}

.relationship-card {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.relationship-card h2 {
  font-size: 1.05rem;
  color: var(--brand-text);
  margin-bottom: 0.35rem;
}

.relationship-card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

.catalog-grid {
  display: grid;
  gap: 0.75rem;
}

.catalog-item {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.catalog-item:hover {
  border-color: var(--border-strong);
}

.catalog-item h3 {
  font-size: 1.05rem;
  margin: 0;
}

.catalog-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
  flex: 1;
}

.catalog-item .service-link {
  color: var(--brand);
  font-weight: 600;
  font-size: 0.9rem;
  align-self: flex-start;
  background: none;
  border: none;
  padding: 0;
}

.catalog--muted {
  background: var(--surface);
  border-block: none;
}

.path-steps {
  display: grid;
  gap: 0.65rem;
}

.path-steps li {
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  display: grid;
  gap: 0.2rem;
}

.path-steps strong {
  color: var(--foreground);
}

.path-steps span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2rem;
}

.contact-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.25rem;
}

.contact-list li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.contact-list li > span:first-child {
  color: var(--text-muted);
}

.contact-list a {
  color: var(--brand);
  font-weight: 500;
}

.contact-form {
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  display: grid;
  gap: 0.85rem;
}

.contact-form h3 {
  font-size: 1.15rem;
  margin-bottom: 0.15rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

input,
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.form-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin: 0;
}

/* Footer */
.site-footer {
  padding: 3rem 0 calc(2.5rem + var(--bottom-bar-h) + var(--safe-bottom));
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

.footer-tag {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  max-width: 22rem;
}

.site-footer h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.site-footer a,
.site-footer p {
  display: block;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.site-footer a:hover {
  color: var(--brand);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.82rem;
}

.footer-bottom p {
  margin: 0;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--foreground);
}

.social-links a:hover {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.social-links svg {
  display: block;
  width: 16px;
  height: 16px;
}

/* Float / mobile bar */
.float-actions {
  position: fixed;
  right: max(1rem, var(--safe-right));
  bottom: calc(var(--bottom-bar-h) + var(--safe-bottom) + 0.75rem);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1);
  -webkit-tap-highlight-color: transparent;
}

.float-btn svg {
  width: 22px;
  height: 22px;
}

.float-btn--wa {
  background: var(--wa);
  color: #fff;
  border-color: transparent;
}

.float-btn--call {
  background: var(--brand);
  color: #fff;
  border-color: transparent;
}

.mobile-bottom-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 95;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding:
    0.35rem max(0.25rem, var(--safe-right))
    calc(0.35rem + var(--safe-bottom))
    max(0.25rem, var(--safe-left));
  min-height: calc(var(--bottom-bar-h) + var(--safe-bottom));
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.mobile-bottom-bar a,
.mobile-bottom-bar button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.4rem 0.15rem;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 600;
  min-height: 48px;
  -webkit-tap-highlight-color: transparent;
}

.mobile-bottom-bar a:hover,
.mobile-bottom-bar button:hover,
.mobile-bottom-bar a:active,
.mobile-bottom-bar button:active {
  color: var(--brand);
  background: var(--soft);
}

/* Modal */
.modal[hidden],
.toast[hidden] {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding:
    max(1rem, var(--safe-top))
    max(1rem, var(--safe-right))
    max(1rem, var(--safe-bottom))
    max(1rem, var(--safe-left));
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  max-height: min(90dvh, 720px);
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  -webkit-overflow-scrolling: touch;
}

.modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  font-size: 1.5rem;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
}

.modal-panel h2 {
  font-size: 1.25rem;
  padding-right: 2rem;
}

.modal-lead {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

#quoteForm {
  display: grid;
  gap: 0.75rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bottom-bar-h) + var(--safe-bottom) + 1rem);
  transform: translateX(-50%);
  z-index: 220;
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--foreground);
  color: #fff;
  font-size: 0.9rem;
  max-width: min(90vw, 360px);
  text-align: center;
}

/* Responsive */
@media (min-width: 768px) {
  .metrics-band {
    grid-template-columns: repeat(4, 1fr);
  }

  .feature-grid,
  .photo-grid,
  .steps-grid,
  .catalog-grid,
  .relationship-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .region-panel {
    grid-template-columns: 1fr 1fr;
  }

  .cta-band {
    grid-template-columns: 1.4fr auto;
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }

  .path-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .float-actions {
    bottom: max(1.25rem, var(--safe-bottom));
    right: max(1.25rem, var(--safe-right));
  }

  .mobile-bottom-bar {
    display: none;
  }

  .site-footer {
    padding-bottom: 2.5rem;
  }

  .toast {
    bottom: max(1.25rem, var(--safe-bottom));
  }
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
    margin-left: auto;
  }

  .header-actions {
    margin-left: 0.65rem;
  }

  .menu-toggle {
    display: none;
  }

  .header-contact,
  .hide-mobile {
    display: inline-flex;
  }

  .hero-layout {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }

  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps-grid,
  .relationship-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .path-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .hide-mobile {
    display: none !important;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .mega-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .header-inner {
    width: min(100% - 1rem, var(--max));
  }

  .container {
    width: min(100% - 1.25rem, var(--max));
  }

  .btn--lg {
    padding: 0.85rem 1.1rem;
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@supports (padding: max(0px)) {
  .site-footer {
    padding-left: max(0px, var(--safe-left));
    padding-right: max(0px, var(--safe-right));
  }
}
