@font-face {
  font-family: "Candara";
  src: url("../fonts/Candara.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Candara";
  src: url("../fonts/Candara_Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Candara";
  src: url("../fonts/Candara_Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Okine Sans";
  src: url("../fonts/MADEOkineSansPERSONALUSE-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Okine Sans";
  src: url("../fonts/MADEOkineSansPERSONALUSE-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Okine Sans";
  src: url("../fonts/MADEOkineSansPERSONALUSE-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Okine Sans";
  src: url("../fonts/MADEOkineSansPERSONALUSE-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #093b32;
  --green-deep: #062821;
  --gold: #d6b77f;
  --gold-bright: #e4c998;
  --ink: #041814;
  --paper: #f4efe4;
  --paper-mute: #c7c0b0;
  --line: #2a5249;
  --field: transparent;
  --field-fill: color-mix(in srgb, #000 22%, transparent);
  --danger: #e8a0a0;
  --font-display: "Candara", "Segoe UI", sans-serif;
  --font-body: "Okine Sans", "Avenir Next", "Segoe UI", sans-serif;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--paper);
  background: var(--green);
  line-height: 1.55;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  justify-content: flex-end;
  padding: 1rem 1.25rem 0;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--paper-mute);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  opacity: 0.55;
  transition: opacity 160ms ease, color 160ms ease;
}

.lang-btn .flag {
  font-size: 1.15rem;
  display: inline;
  line-height: 1;
}

.lang-btn .lang-code {
  display: inline;
}

.lang-btn.is-active {
  opacity: 1;
  color: var(--gold);
}

.lang-btn:hover {
  opacity: 1;
}

.lang-btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
.country-trigger:focus-visible,
.country-search:focus-visible,
.submit-btn:focus-visible,
.icone-credit:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.shell {
  width: min(1180px, calc(100% - 2.5rem));
  margin: auto;
  padding: 1rem 0 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  flex: 1;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: 100%;
  min-height: 100%;
  animation: rise 700ms ease both;
}

.brand-logo {
  display: block;
  width: min(380px, 88%);
  height: auto;
  margin: 0;
  background: transparent;
}

.form-intro {
  margin-bottom: 1.15rem;
  text-align: center;
}

.form-intro h1 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: #ffffff;
  text-wrap: balance;
}

.eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.notify {
  animation: rise 700ms ease 80ms both;
}

.notify-form {
  display: grid;
  gap: 0.85rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.phone-combo {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0;
  border: 1px solid var(--line);
  background: var(--field-fill);
}

.phone-combo .country-picker,
.phone-combo input {
  border: 0;
  background: transparent;
}

.phone-combo .country-trigger {
  border-right: 1px solid var(--line);
  height: 100%;
  min-width: 5.6rem;
}

input,
textarea,
.country-trigger,
.country-search {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--field-fill);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.85rem 0.95rem;
}

textarea {
  resize: vertical;
  min-height: 4.5rem;
  max-height: 9rem;
  height: 4.8rem;
}

input::placeholder,
textarea::placeholder,
.country-search::placeholder {
  color: #8f978f;
}

input:hover,
textarea:hover,
.country-trigger:hover {
  border-color: var(--gold);
}

.phone-combo:hover {
  border-color: var(--gold);
}

input:user-invalid,
textarea:user-invalid {
  border-color: var(--danger);
}

.country-picker {
  position: relative;
}

.country-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  padding-inline: 0.7rem;
  text-align: left;
}

.country-flag {
  font-size: 1.05rem;
  line-height: 1;
}

.country-dial {
  font-weight: 500;
  font-size: 0.88rem;
}

.chevron {
  margin-left: 0.15rem;
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: rotate(45deg) translateY(-1px);
}

.country-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 0.35rem);
  left: 0;
  width: min(19rem, calc(100vw - 3rem));
  border: 1px solid var(--line);
  background: var(--ink);
}

.country-search-wrap {
  padding: 0.55rem;
  border-bottom: 1px solid var(--line);
}

.country-search {
  padding: 0.65rem 0.75rem;
  font-size: 0.9rem;
}

.country-list {
  list-style: none;
  margin: 0;
  padding: 0.3rem;
  max-height: 13rem;
  overflow: auto;
  scrollbar-width: thin;
}

.country-option {
  display: grid;
  grid-template-columns: 1.3rem 1fr auto;
  gap: 0.5rem;
  align-items: center;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.88rem;
  text-align: left;
  padding: 0.6rem 0.65rem;
  cursor: pointer;
}

.country-option:hover,
.country-option.is-active,
.country-option[aria-selected="true"] {
  background: #124038;
  color: var(--gold-bright);
}

.country-option .opt-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.country-option .opt-dial {
  color: var(--paper-mute);
  font-variant-numeric: tabular-nums;
}

.country-empty {
  padding: 0.9rem;
  text-align: center;
  color: var(--paper-mute);
  font-size: 0.88rem;
}

.submit-btn {
  appearance: none;
  border: 1px solid var(--gold);
  margin-top: 0.15rem;
  padding: 0.95rem 1.1rem;
  background: var(--gold);
  color: var(--green-deep);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.submit-btn:hover {
  background: var(--gold-bright);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.form-status {
  margin: 0;
  padding: 0.7rem 0.8rem;
  font-size: 0.9rem;
  border: 1px solid var(--line);
  background: transparent;
}

.form-status.is-success {
  color: var(--gold-bright);
  border-color: var(--gold);
}

.form-status.is-error {
  color: var(--danger);
  border-color: #6a3a3a;
}

.site-footer {
  text-align: center;
  padding: 0 1.25rem 1.35rem;
  color: var(--paper-mute);
  font-size: 0.78rem;
  font-weight: 300;
}

.site-footer p {
  margin: 0;
}

.icone-credit {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
}

.icone-credit:hover {
  text-decoration: underline;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .shell {
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 0.5rem;
    padding-bottom: 2rem;
  }

  .brand {
    min-height: auto;
    padding-bottom: 0.5rem;
  }

  .brand-logo {
    width: min(200px, 55%);
  }

  .form-intro {
    text-align: center;
    margin-top: 0.25rem;
    margin-bottom: 1.15rem;
  }

  .form-intro h1 {
    font-size: clamp(1.35rem, 6vw, 1.75rem);
  }
}

@media (max-width: 560px) {
  .topbar {
    padding: 0.85rem 1rem 0;
  }

  .row {
    grid-template-columns: 1fr;
  }

  .shell {
    width: min(100% - 1.25rem, 1120px);
    gap: 1.5rem;
  }

  .notify-form {
    gap: 0.75rem;
  }

  .phone-combo {
    grid-template-columns: auto 1fr;
  }

  .country-panel {
    width: min(100vw - 2rem, 19rem);
    left: 0;
    right: auto;
  }

  input,
  textarea,
  .country-trigger {
    padding: 0.8rem 0.85rem;
    font-size: 16px; /* avoid iOS zoom */
  }

  .submit-btn {
    width: 100%;
  }

  .site-footer {
    padding-bottom: 1.1rem;
  }
}

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