/* ==========================================================================
   Cumbre English — Base, typography and shared components
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
}

img {
  display: block;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--navy-text);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  text-wrap: balance;
}

h1 {
  font-size: var(--text-5xl);
}

h2 {
  font-size: var(--text-4xl);
}

h3 {
  font-size: var(--text-2xl);
  line-height: var(--leading-snug);
}

h4 {
  font-size: var(--text-lg);
  line-height: var(--leading-snug);
}

p {
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

::selection {
  background: var(--teal-100);
  color: var(--navy-900);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

.container--wide {
  max-width: var(--container-wide);
}

.section {
  padding-block: var(--sp-16);
}

.section--tight {
  padding-block: var(--sp-12);
}

.section--alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 680px;
  display: grid;
  gap: var(--sp-4);
  margin-bottom: var(--sp-10);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}

.section-head p {
  color: var(--muted-strong);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--teal-700);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--teal-600);
  border-radius: 2px;
}

.eyebrow--on-dark {
  color: var(--teal-500);
}

.lead {
  color: var(--muted-strong);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
}

.small {
  font-size: var(--text-sm);
  color: var(--muted-strong);
  line-height: 1.55;
}

.muted {
  color: var(--muted);
}

.text-strong {
  color: var(--ink);
  font-weight: 600;
}

.link {
  color: var(--blue-700);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.link:hover {
  color: var(--navy-800);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform var(--dur-fast) var(--ease-out);
}

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

/* --------------------------------------------------------------------------
   Icons
   -------------------------------------------------------------------------- */

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--sm {
  width: 1rem;
  height: 1rem;
}

.icon--lg {
  width: 1.5rem;
  height: 1.5rem;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: var(--btn-height);
  padding: 0 var(--sp-5);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 1px 2px rgba(15, 36, 64, 0.12);
}

.btn--primary:hover {
  background: var(--blue-700);
}

.btn--secondary {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--navy-800);
}

.btn--secondary:hover {
  border-color: var(--navy-600);
  background: var(--surface-alt);
}

.btn--navy {
  background: var(--navy-800);
  color: #fff;
}

.btn--navy:hover {
  background: var(--navy-900);
}

.btn--teal {
  background: var(--teal-600);
  color: #fff;
}

.btn--teal:hover {
  background: var(--teal-700);
}

.btn--ghost {
  background: transparent;
  color: var(--navy-800);
}

.btn--ghost:hover {
  background: var(--surface-alt);
}

.btn--danger {
  background: var(--red-50);
  border-color: var(--red-100);
  color: var(--red-700);
}

.btn--danger:hover {
  background: var(--red-100);
}

.btn--sm {
  min-height: 38px;
  padding-inline: var(--sp-4);
  font-size: var(--text-sm);
}

.btn--lg {
  min-height: 52px;
  padding-inline: var(--sp-6);
  font-size: var(--text-base);
}

.btn--block {
  width: 100%;
}

.btn--has-icon {
  padding-inline-start: var(--sp-4);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue-700);
  font-weight: 600;
  font-size: var(--text-sm);
  text-align: left;
}

.link-btn:hover {
  color: var(--navy-800);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--navy-800);
  transition: background-color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
}

.icon-btn:hover {
  background: var(--surface-alt);
  border-color: var(--line-strong);
}

/* --------------------------------------------------------------------------
   Badges, chips and labels
   -------------------------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge--blue {
  background: var(--blue-50);
  color: var(--blue-700);
  border-color: var(--blue-100);
}

.badge--teal {
  background: var(--teal-50);
  color: var(--teal-800);
  border-color: var(--teal-100);
}

.badge--navy {
  background: var(--navy-800);
  color: #fff;
}

.badge--neutral {
  background: var(--surface-alt);
  color: var(--muted-strong);
  border-color: var(--line);
}

.badge--green {
  background: var(--green-50);
  color: var(--green-700);
  border-color: var(--green-100);
}

.badge--amber {
  background: var(--amber-50);
  color: var(--amber-700);
  border-color: var(--amber-100);
}

.badge--red {
  background: var(--red-50);
  color: var(--red-700);
  border-color: var(--red-100);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--surface-alt);
  color: var(--muted-strong);
  font-size: var(--text-xs);
  font-weight: 500;
  white-space: nowrap;
}

.level-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(20, 45, 78, 0.9);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(6px);
}

/* --------------------------------------------------------------------------
   Cards and surfaces
   -------------------------------------------------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
}

.card--pad {
  padding: var(--sp-6);
}

.card--flat {
  border-color: var(--line);
  box-shadow: none;
}

.card--raised {
  box-shadow: var(--shadow-sm);
}

.card--interactive {
  transition: border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out);
}

.card--interactive:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}

.card-head h3 {
  font-size: var(--text-lg);
}

.card-head p {
  margin-top: 4px;
  font-size: var(--text-sm);
  color: var(--muted);
}

.surface-alt {
  background: var(--surface-alt);
}

.divider {
  height: 1px;
  border: 0;
  background: var(--line);
  margin-block: var(--sp-5);
}

/* Avatars */

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-alt);
  color: var(--navy-800);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  flex: none;
}

.avatar--navy {
  background: var(--navy-800);
  color: #fff;
}

.avatar--teal {
  background: var(--teal-50);
  color: var(--teal-800);
}

.avatar--blue {
  background: var(--blue-50);
  color: var(--blue-700);
}

.avatar--lg {
  width: 64px;
  height: 64px;
  font-size: var(--text-xl);
}

.avatar--sm {
  width: 34px;
  height: 34px;
  font-size: var(--text-xs);
}

/* --------------------------------------------------------------------------
   Progress
   -------------------------------------------------------------------------- */

.progress {
  position: relative;
  height: 8px;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: #e7eef7;
}

.progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue-600);
}

.progress--teal > span {
  background: var(--teal-600);
}

.progress--thin {
  height: 6px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: var(--sp-2);
  font-size: var(--text-xs);
  color: var(--muted);
}

.progress-meta strong {
  color: var(--navy-800);
  font-weight: 600;
}

.w-8 { width: 8%; }
.w-12 { width: 12%; }
.w-18 { width: 18%; }
.w-24 { width: 24%; }
.w-32 { width: 32%; }
.w-38 { width: 38%; }
.w-42 { width: 42%; }
.w-48 { width: 48%; }
.w-55 { width: 55%; }
.w-62 { width: 62%; }
.w-68 { width: 68%; }
.w-72 { width: 72%; }
.w-78 { width: 78%; }
.w-82 { width: 82%; }
.w-88 { width: 88%; }
.w-92 { width: 92%; }
.w-96 { width: 96%; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.field {
  display: grid;
  gap: 6px;
}

.field > label,
.field-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
}

.field-hint {
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: 1.5;
}

.field-error {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  font-size: var(--text-xs);
  color: var(--red-700);
  line-height: 1.5;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: var(--control-height);
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--text-sm);
  line-height: 1.4;
  transition: border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

.input::placeholder,
.textarea::placeholder {
  color: #8a97a8;
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: #a9b7c8;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.input[aria-invalid="true"],
.select[aria-invalid="true"],
.textarea[aria-invalid="true"] {
  border-color: var(--red-600);
}

.input[aria-invalid="true"]:focus,
.textarea[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.16);
}

.input-icon {
  position: relative;
}

.input-icon > .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.input-icon > .input {
  padding-left: 42px;
}

.select {
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.field-row {
  display: grid;
  gap: var(--sp-4);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--text-sm);
  color: var(--muted-strong);
  line-height: 1.5;
  cursor: pointer;
}

.check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--blue-600);
  flex: none;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--muted-strong);
}

.switch input {
  appearance: none;
  width: 40px;
  height: 24px;
  margin: 0;
  border-radius: 999px;
  background: var(--line-strong);
  position: relative;
  transition: background-color var(--dur-fast) var(--ease-out);
  flex: none;
}

.switch input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur-fast) var(--ease-out);
}

.switch input:checked {
  background: var(--teal-600);
}

.switch input:checked::after {
  transform: translateX(16px);
}

.segmented {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-alt);
}

.segmented button {
  border: 0;
  background: transparent;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--muted-strong);
  min-height: 34px;
}

.segmented button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--navy-800);
  box-shadow: var(--shadow-xs);
}

/* --------------------------------------------------------------------------
   Alerts
   -------------------------------------------------------------------------- */

.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-alt);
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--muted-strong);
}

.alert strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 2px;
}

.alert .icon {
  margin-top: 1px;
}

.alert--info {
  background: var(--blue-50);
  border-color: var(--blue-100);
  color: #26456f;
}

.alert--info .icon {
  color: var(--blue-700);
}

.alert--success {
  background: var(--green-50);
  border-color: var(--green-100);
  color: #166534;
}

.alert--success .icon {
  color: var(--green-700);
}

.alert--warning {
  background: var(--amber-50);
  border-color: var(--amber-100);
  color: #7c4a08;
}

.alert--warning .icon {
  color: var(--amber-700);
}

.alert--danger {
  background: var(--red-50);
  border-color: var(--red-100);
  color: #8f1d1d;
}

.alert--danger .icon {
  color: var(--red-700);
}

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.data-table th {
  padding: 10px 14px;
  text-align: left;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.data-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  color: var(--muted-strong);
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: #fbfdff;
}

.data-table .cell-strong {
  color: var(--ink);
  font-weight: 600;
}

.cell-person {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cell-person span {
  display: block;
}

.cell-person small {
  display: block;
  font-size: var(--text-xs);
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Empty and loading states
   -------------------------------------------------------------------------- */

.empty-state {
  display: grid;
  justify-items: center;
  gap: var(--sp-3);
  padding: var(--sp-12) var(--sp-6);
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.empty-state__art {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--surface-alt);
  color: var(--muted-strong);
  margin-bottom: var(--sp-1);
}

.empty-state h3 {
  font-size: var(--text-xl);
}

.empty-state p {
  max-width: 42ch;
  color: var(--muted-strong);
  font-size: var(--text-sm);
}

.skeleton {
  border-radius: var(--radius-sm);
  background: linear-gradient(100deg, #eef2f7 8%, #f7fafc 24%, #eef2f7 40%);
  background-size: 220% 100%;
  animation: skeleton 1.6s linear infinite;
}

.skeleton--text {
  height: 12px;
  margin-block: 8px;
}

.skeleton--title {
  height: 20px;
  width: 55%;
}

.skeleton--avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

@keyframes skeleton {
  to {
    background-position-x: -220%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   Dialogs and sheets
   -------------------------------------------------------------------------- */

dialog {
  padding: 0;
  border: 0;
  border-radius: var(--radius-xl);
  background: var(--surface);
  color: var(--ink);
  width: min(92vw, 560px);
  max-height: min(88vh, 900px);
  overflow: auto;
  box-shadow: var(--shadow-dialog);
  overscroll-behavior: contain;
}

dialog::backdrop {
  background: rgba(8, 18, 32, 0.56);
  backdrop-filter: blur(3px);
}

dialog[open] {
  animation: dialog-in var(--dur-base) var(--ease-out);
}

dialog[open]::backdrop {
  animation: backdrop-in var(--dur-base) var(--ease-out);
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
}

@keyframes backdrop-in {
  from {
    opacity: 0;
  }
}

.dialog--md {
  width: min(94vw, 680px);
}

.dialog--lg {
  width: min(96vw, 940px);
}

.dialog--booking {
  width: min(96vw, 920px);
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-6) var(--sp-6) 0;
}

.dialog-head h2 {
  font-size: var(--text-2xl);
}

.dialog-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: var(--text-sm);
}

.dialog-body {
  padding: var(--sp-6);
}

.dialog-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--sp-3);
  padding: 0 var(--sp-6) var(--sp-6);
}

.dialog-close {
  width: 40px;
  height: 40px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--muted-strong);
}

.dialog-close:hover {
  background: var(--surface-alt);
  color: var(--ink);
}

dialog.sheet {
  width: min(96vw, 540px);
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
  animation: sheet-in var(--dur-base) var(--ease-out);
}

@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
}

@media (max-width: 640px) {
  dialog.sheet {
    width: 100vw;
    border-radius: 0;
  }
}

/* Full-width language nav sheet */

.nav-sheet {
  width: min(94vw, 400px);
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
}

@media (max-width: 640px) {
  .nav-sheet {
    width: 100vw;
    border-radius: 0;
  }
}

/* --------------------------------------------------------------------------
   Toasts
   -------------------------------------------------------------------------- */

.toast-region {
  position: fixed;
  z-index: 160;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: grid;
  gap: 10px;
  width: min(92vw, 440px);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--navy-900);
  color: #fff;
  font-size: var(--text-sm);
  line-height: 1.5;
  box-shadow: var(--shadow-lg);
  animation: toast-in var(--dur-base) var(--ease-out);
}

.toast .icon {
  color: var(--teal-500);
  margin-top: 1px;
}

.toast p {
  flex: 1;
}

.toast--leaving {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

@media (min-width: 900px) {
  .toast-region {
    left: auto;
    right: 28px;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Language switch
   -------------------------------------------------------------------------- */

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface-alt);
}

.lang-switch button {
  min-width: 36px;
  min-height: 28px;
  padding: 2px 8px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--navy-800);
  box-shadow: var(--shadow-xs);
}

/* --------------------------------------------------------------------------
   Site header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  border-radius: var(--radius-sm);
}

.brand img {
  width: 40px;
  height: 40px;
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy-800);
}

.brand-sub {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.main-nav {
  display: none;
  align-items: center;
  gap: 2px;
  margin-inline-start: var(--sp-4);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: background-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
}

.nav-link:hover {
  background: var(--surface-alt);
  color: var(--navy-800);
}

.nav-link[aria-current="page"] {
  color: var(--blue-700);
  background: var(--blue-50);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-inline-start: auto;
}

.header-login {
  display: none;
  padding: 8px 6px;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-sm);
}

.header-login:hover {
  color: var(--blue-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.header-cta {
  display: none;
}

.nav-toggle {
  display: inline-flex;
}

@media (min-width: 640px) {
  .header-login {
    display: inline-flex;
  }
}

@media (min-width: 1024px) {
  .main-nav {
    display: flex;
  }

  .header-cta {
    display: inline-flex;
  }

  .nav-toggle {
    display: none;
  }

  .lang-switch {
    margin-inline-end: 6px;
  }
}

/* Mobile navigation */

.nav-sheet-body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  padding: var(--sp-6);
  min-height: 100%;
}

.nav-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-sheet-links {
  display: grid;
  gap: 2px;
}

.nav-sheet-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 var(--sp-3);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--navy-800);
  border-bottom: 1px solid var(--line);
}

.nav-sheet-links a:hover {
  background: var(--surface-alt);
}

.nav-sheet-foot {
  margin-top: auto;
  display: grid;
  gap: var(--sp-3);
  padding-top: var(--sp-4);
}

.nav-sheet-note {
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--navy-950);
  color: var(--on-dark);
  padding-block: var(--sp-16) var(--sp-8);
}

.footer-grid {
  display: grid;
  gap: var(--sp-10);
}

.footer-brand .brand-name,
.footer-brand .brand-sub {
  color: #fff;
}

.footer-brand .brand-sub {
  color: var(--on-dark-muted);
}

.footer-brand p {
  max-width: 34ch;
  margin-top: var(--sp-4);
  color: var(--on-dark-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
}

.footer-col h2 {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: #c7d3e3;
  margin-bottom: var(--sp-4);
}

.footer-col ul {
  display: grid;
  gap: 10px;
}

.footer-col a,
.footer-col button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: #dbe4f0;
  font-size: var(--text-sm);
  text-align: left;
}

.footer-col a:hover,
.footer-col button:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-contact {
  display: grid;
  gap: 12px;
  font-size: var(--text-sm);
  color: var(--on-dark-muted);
}

.footer-contact a {
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: center;
  justify-content: space-between;
  margin-top: var(--sp-12);
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: var(--text-xs);
  color: var(--on-dark-muted);
}

.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.footer-bottom a:hover {
  color: #fff;
}

.footer-lang .lang-switch {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.footer-lang .lang-switch button {
  color: #c9d4e3;
}

.footer-lang .lang-switch button[aria-pressed="true"] {
  background: #fff;
  color: var(--navy-900);
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: var(--sp-8);
  }
}

/* WhatsApp floating action */

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 55;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green-700);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(21, 128, 61, 0.7);
  transition: transform var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out);
}

.whatsapp-float:hover {
  background: #116b34;
  transform: translateY(-2px);
}

.whatsapp-float .icon {
  width: 26px;
  height: 26px;
  stroke-width: 1.8;
}

@media (min-width: 900px) {
  .whatsapp-float {
    right: 28px;
    bottom: 28px;
  }

  .site-footer {
    padding-bottom: var(--sp-12);
  }
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.grid-2 {
  display: grid;
  gap: var(--sp-6);
}

.grid-3 {
  display: grid;
  gap: var(--sp-6);
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.stack-sm {
  display: grid;
  gap: var(--sp-2);
}

.stack-md {
  display: grid;
  gap: var(--sp-4);
}

.stack-lg {
  display: grid;
  gap: var(--sp-6);
}

.nowrap {
  white-space: nowrap;
}

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

  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .field-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .container {
    padding-inline: var(--sp-8);
  }

  .section {
    padding-block: var(--sp-24);
  }
}
