/* Shared by every page: tokens, reset, the top bar, the footer and the
   form controls. */
:root {
  --red: #A6192E;
  --red-dark: #8d1527;
  --border-red: #BF0D3E;
  --gold: #E8B24D;
  --black: #101820;
  --night: #14100c;
  --paper: #F7F5F2;
  --muted: #6f6964;
  --line: rgba(16, 24, 32, .14);
  --shadow: 0 24px 70px rgba(16, 24, 32, .16);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Components set their own display; [hidden] has to win over all of them. */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Roboto, Arial, sans-serif;
  background: var(--paper);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

/* Top bar */
.nav {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 72px;
  padding: 0 42px;
  background: rgba(247, 245, 242, .92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
}

.logo-mark {
  height: 28px;
  width: auto;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Icon links: a 40px box for the finger, WhatsApp in its muted teal,
   email in the brand red. */
.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  color: #128C7E;
}

.nav-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.nav-mail {
  color: var(--red);
}

.nav-mail svg {
  width: 20px;
  height: 20px;
}

@media (hover: hover) and (pointer: fine) {
  .nav-icon {
    position: relative;
  }

  .nav-icon svg {
    transition: transform .2s ease, color .2s ease;
  }

  .nav-icon:hover svg,
  .nav-icon:focus-visible svg {
    transform: scale(1.12);
  }

  .nav-icon:hover,
  .nav-icon:focus-visible {
    color: #0d6b60;
  }

  .nav-mail:hover,
  .nav-mail:focus-visible {
    color: #7d1222;
  }

  /* The label shows at once; the native title tooltip is slow. */
  .nav-icon::after {
    content: attr(data-tip);
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    padding: 6px 10px;
    background: var(--black);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
  }

  .nav-icon:hover::after,
  .nav-icon:focus-visible::after {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-icon svg,
  .nav-icon::after {
    transition: none;
  }
}

@media (max-width: 900px) {
  .nav {
    padding: 0 20px;
  }
}

/* Footer */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 34px 42px;
  font-size: 13px;
  color: rgba(255, 255, 255, .65);
  background: var(--black);
}

.footer-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* "de la Ascendis" never breaks: on a narrow phone it moves down whole. */
.footer-by {
  white-space: nowrap;
}

.footer-by b {
  color: #fff;
}

.footer-legal {
  font-size: 12px;
  color: rgba(255, 255, 255, .55);
  text-underline-offset: 3px;
}

.footer-legal:hover,
.footer-legal:focus-visible {
  color: #fff;
}

.footer-mark {
  flex-shrink: 0;
  height: 34px;
  width: auto;
}

/* Forms */
.form {
  display: grid;
  gap: 14px;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #5b5550;
}

.form-required {
  color: var(--red);
}

.form-optional {
  font-weight: 400;
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  padding: 15px;
  font: inherit;
  font-size: 16px;
  color: var(--black);
  background: #fff;
  border: 1px solid var(--line);
}

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

textarea {
  min-height: 110px;
  resize: vertical;
}

.form-optin {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: normal;
  text-transform: none;
  color: #5b5550;
  cursor: pointer;
}

.form-optin input {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  padding: 0;
  accent-color: var(--red);
}

/* Honeypot: off-screen, not display:none, which some bots skip. */
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

button {
  padding: 17px;
  font: inherit;
  font-weight: 900;
  color: #fff;
  background: var(--red);
  border: 0;
  cursor: pointer;
}
