@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300..700&family=Geist+Mono:wght@400;500&display=swap');

:root {
  --color-background: #F6F4EF;
  --color-background-2: #EDE9E1;
  --color-background-3: #FBFAF7;
  --color-background-card: #FFFFFF;
  --color-background-error: #FBEAE6;
  --color-background-success: #E8F1EB;
  --color-main-1: #16191B;
  --color-main-2: #D9692E;
  --color-main-2-hover: #C25A22;
  --color-main-2-on-dark: #E8793C;
  --color-main-3: #2B5878;
  --color-text: #16191B;
  --color-text-muted: #5E5D57;
  --color-text-soft: #4A4B47;
  --color-text-on-dark: #F2EFE8;
  --color-text-on-dark-muted: #A3A29B;
  --color-link: #16191B;
  --color-label: #6B6A64;
  --color-line: #E3DFD6;
  --color-line-strong: #DAD6CC;
  --color-line-dark: #33383C;
  --color-error: #C2412D;
  --color-success: #3F7D5C;
  --font-main: 'Geist', sans-serif;
  --font-title: 'Geist', sans-serif;
  --font-mono: 'Geist Mono', monospace;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  font-style: normal;
}

html {
  overflow-x: clip;
}

body {
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--color-main-2);
  color: #FFFFFF;
}

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

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color 0.2s ease;
}

ul, ol {
  padding-left: 30px;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: inherit;
  text-wrap: balance;
}

h1 {
  font-size: 90px;
  line-height: 0.98;
  letter-spacing: -0.045em;
  @media (max-width: 1200px) {
    font-size: 60px;
  }
  @media (max-width: 767px) {
    font-size: 44px;
  }
}

h2 {
  font-size: 60px;
  letter-spacing: -0.035em;
  @media (max-width: 1200px) {
    font-size: 48px;
  }
  @media (max-width: 767px) {
    font-size: 36px;
  }
}

h3 {
  font-size: 48px;
  @media (max-width: 1200px) {
    font-size: 36px;
  }
}

h4 {
  font-size: 36px;
  @media (max-width: 1200px) {
    font-size: 24px;
  }
}

h5 {
  font-size: 24px;
  letter-spacing: -0.015em;
  @media (max-width: 1200px) {
    font-size: 18px;
  }
}

h6 {
  font-size: 18px;
  letter-spacing: -0.01em;
  @media (max-width: 1200px) {
    font-size: 16px;
  }
}

p, span, li {
  font-size: 16px;
  font-weight: 400;
  line-height: 150%;
  color: inherit;
  text-wrap: pretty;
}

/* Accent inside headings - the universal reset would otherwise force the body font */
h1 em, h2 em, h3 em, h4 em,
h1 .accent, h2 .accent, h3 .accent, h4 .accent {
  font-family: var(--font-title);
  font-style: normal;
  font-size: inherit;
  line-height: inherit;
  color: var(--color-main-2);
}

.lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text-soft);
  @media (max-width: 767px) {
    font-size: 16px;
  }
}

/* Small tracked mono label - eyebrows, tags, codes, timestamps */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.eyebrow.no-rule::before {
  display: none;
}

.mono {
  font-family: var(--font-mono);
}

/* ==========================================================================
   SPACING SYSTEM
   ========================================================================== */

.mt-120 {
  margin-top: 120px;
  @media (max-width: 1360px) {
    margin-top: 60px;
  }
}

.mt-60 {
  margin-top: 60px;
  @media (max-width: 1360px) {
    margin-top: 30px;
  }
}

.mb-120 {
  margin-bottom: 120px;
  @media (max-width: 1360px) {
    margin-bottom: 60px;
  }
}

.mb-60 {
  margin-bottom: 60px;
  @media (max-width: 1360px) {
    margin-bottom: 30px;
  }
}

/* Standard gap between a section's title block and the content after it */
.mb-36 {
  margin-bottom: 36px;
  @media (max-width: 1360px) {
    margin-bottom: 18px;
  }
}

.pt-120 {
  padding-top: 120px;
  @media (max-width: 1360px) {
    padding-top: 60px;
  }
}

.pt-60 {
  padding-top: 60px;
  @media (max-width: 1360px) {
    padding-top: 30px;
  }
}

.pb-120 {
  padding-bottom: 120px;
  @media (max-width: 1360px) {
    padding-bottom: 60px;
  }
}

.pb-60 {
  padding-bottom: 60px;
  @media (max-width: 1360px) {
    padding-bottom: 30px;
  }
}

/* ==========================================================================
   BUTTON
   Pill-shaped, with an arrow that slides through on hover (out right, in
   from the left) rather than a plain nudge.
   ========================================================================== */

.button {
  position: relative;
  width: fit-content;
  height: 54px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s var(--ease-out-expo);
}

.button:active {
  transform: scale(0.98);
}

.button:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.button .btn-icon {
  position: relative;
  width: 18px;
  height: 18px;
  overflow: hidden;
  display: inline-flex;
}

.button .btn-icon i {
  position: absolute;
  inset: 0;
  font-size: 18px;
  line-height: 18px;
  transition: transform 0.45s var(--ease-out-expo);
}

.button .btn-icon i + i {
  transform: translateX(-120%);
}

.button:hover .btn-icon i:first-child {
  transform: translateX(120%);
}

.button:hover .btn-icon i + i {
  transform: translateX(0);
}

.button.btn-primary {
  background: var(--color-main-2);
  border-color: var(--color-main-2);
  color: #FFFFFF;
}

.button.btn-primary:hover {
  background: var(--color-main-2-hover);
  border-color: var(--color-main-2-hover);
  color: #FFFFFF;
}

.button.btn-dark {
  background: var(--color-main-1);
  border-color: var(--color-main-1);
  color: var(--color-background);
}

.button.btn-dark:hover {
  background: var(--color-main-2);
  border-color: var(--color-main-2);
  color: #FFFFFF;
}

.button.btn-ghost {
  background: transparent;
  border-color: var(--color-line-strong);
  color: inherit;
}

.button.btn-ghost:hover {
  background: var(--color-main-1);
  border-color: var(--color-main-1);
  color: var(--color-background);
}

.button.btn-sm {
  height: 42px;
  padding: 0 18px;
  font-size: 14px;
}

/* ==========================================================================
   PILLS / TAGS
   ========================================================================== */

.tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--color-line-strong);
  border-radius: 999px;
  font-size: 14px;
  line-height: 1.4;
}

.status-dot {
  display: inline-block;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
}

.status-dot.is-live {
  animation: status-pulse 2s infinite;
}

@keyframes status-pulse {
  0% { box-shadow: 0 0 0 0 rgba(63, 125, 92, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(63, 125, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 125, 92, 0); }
}

/* ==========================================================================
   NAV TOGGLE
   ========================================================================== */

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--color-line-strong);
  border-radius: 50%;
  font-size: 20px;
  color: var(--color-text);
  cursor: pointer;
}

/* ==========================================================================
   SCROLL TO TOP
   ========================================================================== */

.scroll-top-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-main-1);
  color: var(--color-background);
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.4s var(--ease-out-expo), background-color 0.2s ease;
  z-index: 998;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: var(--color-main-2);
}

/* ==========================================================================
   LINK ARROW
   ========================================================================== */

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.link-arrow i {
  display: inline-block;
  font-size: 16px;
  line-height: 1;
  color: var(--color-main-2);
  transition: transform 0.3s var(--ease-out-expo);
}

.link-arrow:hover {
  color: var(--color-main-2);
}

.link-arrow:hover i {
  transform: translate(2px, -2px);
}

/* ==========================================================================
   CONTACT ITEM
   ========================================================================== */

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-item i {
  font-size: 16px;
  line-height: 1;
  color: var(--color-main-2);
}

a.contact-item:hover {
  color: var(--color-main-2);
}

/* ==========================================================================
   ACCORDION
   Hairline-divided list (no filled bars): the active item's title picks up
   the accent color and the plus rotates into an x.
   ========================================================================== */

.accordion-wrapper {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--color-line-strong);
}

.accordion-item {
  border-top: 1px solid var(--color-line-strong);
}

.item-title-wrapper {
  padding: 24px 0;
  display: grid;
  grid-template-columns: 1fr 36px;
  column-gap: 24px;
  align-items: center;
  cursor: pointer;
}

.item-title-wrapper span {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.35;
  transition: color 0.25s ease;
  @media (max-width: 767px) {
    font-size: 17px;
  }
}

.item-title-wrapper i {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-line-strong);
  border-radius: 50%;
  font-size: 18px;
  color: var(--color-main-2);
  transition: transform 0.4s var(--ease-out-expo), background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.item-title-wrapper:hover span {
  color: var(--color-main-2);
}

.item-description-wrapper {
  display: none;
}

.item-content {
  padding: 0 60px 30px 0;
  @media (max-width: 767px) {
    padding-right: 0;
  }
}

.item-content p {
  color: var(--color-text-soft);
  line-height: 1.65;
}

.accordion-item.active .item-title-wrapper span {
  color: var(--color-text);
}

.accordion-item.active .item-title-wrapper i {
  background: var(--color-main-2);
  border-color: var(--color-main-2);
  color: #FFFFFF;
  transform: rotate(45deg);
}

/* ==========================================================================
   GRID (row / col)
   ========================================================================== */

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.row .col {
  flex: 1 1 200px;
}

.row .col-12 {
  flex: 1 1 100%;
}

/* ==========================================================================
   FORMS
   ========================================================================== */

.d-block {
  display: block !important;
}

.contact-form-box {
  width: 100%;
}

.form-clt {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
}

.access-input {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  background: var(--color-background-card);
  border-radius: 12px;
  border: 1px solid var(--color-line-strong);
  font-size: 16px;
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.access-input::placeholder {
  color: #9A988F;
}

.access-input:focus-visible {
  outline: none;
  border-color: var(--color-main-1);
  box-shadow: 0 0 0 3px rgba(22, 25, 27, 0.08);
}

select.access-input {
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='18' height='18'%3E%3Cpath fill='%235E5D57' d='M12 13.17l4.95-4.95 1.41 1.42L12 16 5.64 9.64l1.41-1.42z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

textarea.access-input {
  height: auto;
  padding-top: 18px;
  padding-bottom: 18px;
  resize: none;
}

.access-input.input-error {
  background-color: var(--color-background-error);
  border-color: var(--color-error);
}

/* Checkbox chips - multi-select options styled as pills */
.choice-chip {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.choice-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-chip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 15px;
  background: var(--color-background-card);
  border: 1px solid var(--color-line-strong);
  border-radius: 999px;
  font-size: 14px;
  line-height: 1.3;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.choice-chip:hover span {
  border-color: var(--color-main-1);
}

.choice-chip input:checked + span {
  background: var(--color-main-1);
  border-color: var(--color-main-1);
  color: var(--color-background);
}

.choice-chip input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(217, 105, 46, 0.3);
}

/* Consent checkbox */
.check-label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
}

.check-label span {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-soft);
}

.check-label a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.access-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: var(--color-main-2);
  cursor: pointer;
}

.access-check.input-error {
  outline: 2px solid var(--color-error);
  outline-offset: 2px;
}

/* Honeypot - off-screen, ignored by validation */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field-error {
  display: none;
  font-size: 13px;
  color: var(--color-error);
}

.field-error.visible {
  display: block;
}

.loading,
.error-message,
.sent-message {
  display: none;
}

.form-loading {
  color: var(--color-text-muted);
  font-size: 14px;
}

.form-loading-spinner {
  display: inline-block;
  vertical-align: middle;
  width: 18px;
  height: 18px;
  margin-right: 12px;
  border: 2px solid var(--color-line-strong);
  border-top-color: var(--color-main-2);
  border-radius: 50%;
  animation: form-spin 0.6s linear infinite;
}

@keyframes form-spin {
  to {
    transform: rotate(360deg);
  }
}

.form-error-msg {
  padding: 12px 18px;
  background: var(--color-background-error);
  color: var(--color-error);
  border-radius: 12px;
  font-size: 14px;
}

.form-error-msg i {
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}

/* After a successful send, only the success block stays visible */
.contact-form-box:has(.sent-message.d-block) .form-fields {
  display: none;
}

.form-sent {
  padding: 12px 0;
}

.form-sent-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  background: var(--color-background-success);
  color: var(--color-success);
  font-size: 24px;
  border-radius: 50%;
}

.form-sent-title {
  margin-bottom: 12px;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.form-sent-sub {
  margin-bottom: 24px;
  color: var(--color-text-soft);
}

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