/* ---------------------------------------------------------------
   Farkas Capital — one page, no framework.
   Rebuilt from the Elementor original; same type scale and rhythm.
   --------------------------------------------------------------- */

@font-face {
  font-family: "Optima";
  src: url("/assets/fonts/optima-roman.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("/assets/fonts/lato-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("/assets/fonts/lato-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("/assets/fonts/ebgaramond-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #000;
  --rule: #000;
  --page: #f2f4f5;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Lato", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Fixed hero behind everything — the original pinned it the same way,
   so the two screens scroll over a still image. */
.backdrop {
  position: fixed;
  inset: 0;
  height: 100vh;
  background: url("/assets/hero.jpg") center / cover no-repeat;
  pointer-events: none;
  z-index: -1;
}

main { position: relative; }

.screen {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0 4vw;
}

.screen--intro {
  justify-content: center;
  align-items: center;
  gap: 2vw;
  text-align: center;
}

.logo {
  width: 18vw;
  height: auto;
  max-width: 100%;
}

.tagline {
  margin: 0;
  font-family: "Lato", sans-serif;
  font-size: 2.4vw;
  font-weight: 300;
  line-height: 1.3em;
  letter-spacing: -0.2px;
  color: var(--ink);
  overflow: hidden;
}

.screen--contact {
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  padding-bottom: 2vw;
}

/* ---- form ---------------------------------------------------- */

.form {
  width: 40vw;
  max-width: 100%;
}

.form__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 0;
  margin: 0;
}

.field {
  flex: 1 1 100%;
  min-width: 0;
  margin: 0;
  padding: 0 20px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 4px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  color: var(--ink);
  font-family: "Optima", "Optima Regular", Georgia, serif;
  font-size: 1.2vw;
  font-weight: 400;
  letter-spacing: -0.2px;
  line-height: 1.5;
}

.field textarea {
  resize: vertical;
  overflow: hidden;
  min-height: calc(1.5em + 8px);
}

.field ::placeholder { color: var(--ink); opacity: 1; }

.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

/* native select, custom caret */
.select { position: relative; display: block; }
.select select {
  appearance: none;
  margin-bottom: 10px;
  padding: 4px 24px 4px 4px;
  cursor: pointer;
}
.select::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -9px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  transform: rotate(45deg);
  pointer-events: none;
}

.form__actions { text-align: center; }

.button {
  padding: 16px 60px;
  background: var(--ink);
  border: 0;
  border-radius: 0;
  color: #fff;
  font-family: "Optima", "Optima Regular", Georgia, serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.2px;
  cursor: pointer;
  transition: transform .3s;
}
.button:hover { transform: scale(1.1); }
.button:disabled { opacity: .5; cursor: default; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
  .button:hover { transform: none; }
}

.form__status {
  margin: 16px 0 0;
  min-height: 1.2em;
  font-family: "Optima", Georgia, serif;
  font-size: 1rem;
  text-align: center;
}
.form__status[data-state="error"] { color: #8a1c1c; }

/* ---- disclaimer ---------------------------------------------- */

.disclaimer {
  width: 100%;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 0.9vw;
  font-weight: 400;
  letter-spacing: 0.2px;
  color: var(--ink);
  text-align: justify;
}
.disclaimer p { margin: 0; }

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

/* ---- tablet --------------------------------------------------- */

@media (max-width: 1024px) {
  .logo { width: 18em; }
  .tagline { font-size: 4.2vw; }
  .form { width: 100%; }
  .field input,
  .field textarea,
  .field select { font-size: 20px; }
  .button { font-size: 20px; }
  .disclaimer { font-size: 11px; line-height: 1.35; }
}

/* ---- phone ---------------------------------------------------- */

@media (max-width: 767px) {
  .backdrop { background-image: url("/assets/hero-mobile.jpg"); }
  .screen { padding: 0 16px; }
  .logo { width: 160px; max-width: 160px; }
  .tagline { font-size: 18px; letter-spacing: 0; }
  .form { padding-top: 120px; }
  .form__grid { gap: 28px 0; }
  .field { padding: 0; }
  .field input,
  .field textarea,
  .field select { font-size: 16px; } /* 16px stops iOS zooming on focus */
  .button { margin-top: 15px; font-size: 16px; padding: 14px 48px; }
  .disclaimer { font-size: 7px; line-height: 8px; }
  .screen--contact { padding-bottom: 16px; }
}
