/* Frontier — tokens and shared utilities.
   Colours and fonts follow Elementor Site Settings (Global Colors / Global Fonts), with the design as fallback.
   Mobile first: base styles at 375px, then min-width 640 / 768 / 1024 / 1280.
   Widget CSS loads after this file, so an override of widget CSS placed here needs an "html " prefix. */

:root {
  --fr-ink: var(--e-global-color-primary, #16202a);
  --fr-paper: var(--e-global-color-secondary, #f6f5f1);
  --fr-muted: var(--e-global-color-text, #5c626a);
  --fr-sand: var(--e-global-color-accent, #e7ddd0);
  --fr-deep: var(--e-global-color-fr_deep, #0c1217);
  --fr-paper-2: var(--e-global-color-fr_paper2, #efece5);
  --fr-line: var(--e-global-color-fr_line, #d7d6d2);
  --fr-f-display: var(--e-global-typography-primary-font-family, "Instrument Serif"), "Instrument Serif", Georgia, serif;
  --fr-f-body: var(--e-global-typography-text-font-family, "Inter"), "Inter", "Helvetica Neue", Arial, sans-serif;
  --fr-container: 1240px;
  --fr-gutter: max(20px, 4vw);
  --fr-hdr: 64px;
  --fr-sec-pad: clamp(64px, 9vw, 120px);
  --fr-ease: cubic-bezier(.2, .7, .1, 1);
  /* button colours: "on" = text/border on this background, "off" = the background itself */
  --fr-on: var(--fr-ink);
  --fr-off: var(--fr-paper);
}
@media (min-width: 1024px) { :root { --fr-hdr: 76px; } }

body {
  background: var(--fr-paper);
  color: var(--fr-ink);
  font-family: var(--fr-f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
html { scroll-padding-top: calc(var(--fr-hdr) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }

/* ---------- reset inside Frontier widgets (Hello Elementor styles buttons, links and inputs) ---------- */
.fr-w, .fr-w *, .fr-w *::before, .fr-w *::after { box-sizing: border-box; }
.fr-w a { color: inherit; text-decoration: none; }
.fr-w h1, .fr-w h2, .fr-w h3, .fr-w h4, .fr-w p, .fr-w figure, .fr-w dl, .fr-w dd { margin: 0; }
.fr-w ul, .fr-w ol { margin: 0; padding: 0; list-style: none; }
.fr-w img { display: block; max-width: 100%; }
/* Plain buttons (toggles, arrows, filters) start bare. :where() keeps this at zero extra weight,
   so each widget's own button rules and the .fr-btn styles below always win; it never touches .fr-btn. */
.fr-w :where(button:not(.fr-btn)) {
  margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: inherit;
  font: inherit; letter-spacing: inherit; text-align: inherit; text-transform: inherit; white-space: normal; cursor: pointer;
}
.fr-w :where(button:not(.fr-btn)):hover, .fr-w :where(button:not(.fr-btn)):focus { background: none; color: inherit; }
.fr-w :focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.fr-w em { font-style: italic; }
.fr-sr, .fr-w .fr-hp { position: absolute !important; top: 0; left: 0; width: 1px !important; height: 1px !important; min-height: 0 !important; margin: 0; padding: 0 !important; border: 0 !important; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fr-ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- layout ---------- */
.fr-container { width: min(var(--fr-container), 100% - 2 * var(--fr-gutter)); margin-inline: auto; }
.fr-sec { position: relative; padding-block: var(--fr-sec-pad); }
.fr-sec--light { background: var(--fr-paper); color: var(--fr-ink); }
.fr-sec--sand { background: var(--fr-paper-2); color: var(--fr-ink); }
.fr-sec--dark { background: var(--fr-ink); color: var(--fr-paper); }
.fr-sec--light + .fr-sec--light, .fr-sec--sand + .fr-sec--sand { padding-top: 0; }
/* Elementor wraps every widget: let consecutive same-tone widgets collapse too */
.e-con:has(> .elementor-widget .fr-sec--light) + .e-con:has(> .elementor-widget .fr-sec--light) .fr-sec--light,
.e-con:has(> .elementor-widget .fr-sec--sand) + .e-con:has(> .elementor-widget .fr-sec--sand) .fr-sec--sand { padding-top: 0; }

/* dark contexts flip the button colours */
.fr-sec--dark, .fr-film, .fr-page-hero, .fr-feature, .fr-hdr, .fr-menu, .fr-ftr, .fr-cta-band__box, .fr-mcta { --fr-on: #fff; --fr-off: var(--fr-ink); }
.fr-hdr.is-light { --fr-on: var(--fr-ink); --fr-off: var(--fr-paper); }

.fr-stack { display: grid; gap: 22px; justify-items: start; align-content: start; }
.fr-split { display: grid; gap: 28px; align-items: end; }
.fr-section-head { display: grid; gap: 20px; margin-bottom: clamp(36px, 5vw, 64px); }
.fr-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 768px) {
  .fr-split { grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 90px); }
  .fr-section-head { grid-template-columns: 1fr auto; align-items: end; gap: 32px; }
  .fr-section-head > .fr-lede { max-width: 42ch; }
}

/* ---------- type ---------- */
.fr-head { display: grid; gap: 18px; justify-items: start; }
.fr-head--center { justify-items: center; text-align: center; }
.fr-kicker { font-family: var(--fr-f-body); font-size: 11px; font-weight: 500; letter-spacing: .25em; text-transform: uppercase; }
.fr-sec--light .fr-kicker, .fr-sec--sand .fr-kicker, [data-theme="light"] .fr-kicker { color: var(--fr-muted); }
.fr-title { font-family: var(--fr-f-display); font-size: clamp(2.3rem, 5vw, 4.6rem); font-weight: 400; line-height: 1; letter-spacing: -.01em; color: inherit; }
.fr-title em, .fr-w h1 em, .fr-w h2 em { font-style: italic; }
.fr-lede { max-width: 54ch; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.65; color: var(--fr-muted); }
.fr-lede + .fr-lede { margin-top: -4px; }
.fr-sec--dark .fr-lede, .fr-page-hero .fr-lede, .fr-feature .fr-lede { color: rgba(255, 255, 255, .8); }

/* ---------- buttons & links ---------- */
/* .fr-w prefix: beats Hello Elementor's button/[type=submit] styles and the link reset, on <a> and <button> alike */
.fr-w .fr-btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 44px; margin: 0; padding: 13px 20px; border: 1px solid; border-radius: 0; box-shadow: none; text-decoration: none;
  font-family: var(--fr-f-body); font-size: 11px; font-weight: 500; letter-spacing: .2em; line-height: 1.2; text-align: center; text-transform: uppercase; white-space: nowrap;
  cursor: pointer; transition: background-color .3s, color .3s, border-color .3s, transform .15s;
}
/* colours carry the .fr-w prefix so they beat the ".fr-w a { color: inherit }" reset */
.fr-w .fr-btn { border-color: var(--fr-on); background: transparent; color: var(--fr-on); }
.fr-w .fr-btn:hover, .fr-w .fr-btn:focus-visible { background: var(--fr-on); color: var(--fr-off); }
.fr-w .fr-btn--solid { background: var(--fr-on); color: var(--fr-off); }
.fr-w .fr-btn--solid:hover, .fr-w .fr-btn--solid:focus-visible { background: transparent; color: var(--fr-on); }
.fr-w .fr-btn--light { background: #fff; color: var(--fr-ink); border-color: #fff; }
.fr-w .fr-btn--light:hover, .fr-w .fr-btn--light:focus-visible { background: transparent; color: #fff; border-color: #fff; }
.fr-w .fr-btn--glass { background: rgba(12, 18, 23, .78); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.fr-w .fr-btn--block { justify-content: center; width: 100%; }
.fr-btn .fr-ic { width: 18px; height: 18px; }
.fr-btn:active { transform: scale(.98); }
.fr-link-arrow {
  display: inline-flex; justify-content: space-between; gap: 40px; padding: 12px 0;
  border-bottom: 1px solid currentColor; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
}
.fr-link-arrow::after { content: "↗"; transition: transform .35s var(--fr-ease); }
.fr-link-arrow:hover::after { transform: translate(3px, -3px); }

/* ---------- chips ---------- */
.fr-chip { display: inline-block; padding: 7px 10px; background: rgba(246, 245, 241, .94); color: var(--fr-ink); font-size: 11px; font-weight: 500; letter-spacing: .2em; line-height: 1; text-transform: uppercase; }
.fr-chip--under-contract { background: var(--fr-sand); }
.fr-chip--sold { background: var(--fr-ink); color: var(--fr-paper); }

/* ---------- forms (one style everywhere) ---------- */
.fr-form-card { position: relative; padding: clamp(24px, 4.5vw, 60px) clamp(20px, 5vw, 72px); background: #fff; color: var(--fr-ink); box-shadow: 0 40px 80px -40px rgba(22, 32, 42, .3); }
.fr-form-card__title { margin-bottom: 28px !important; font-family: var(--fr-f-display); font-size: clamp(2rem, 3.2vw, 2.8rem); font-weight: 400; line-height: 1.05; }
.fr-form { display: grid; grid-template-columns: 1fr; gap: 20px 24px; }
@media (min-width: 640px) { .fr-form { grid-template-columns: 1fr 1fr; } }
.fr-field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.fr-field--full, .fr-form > .fr-form__submit, .fr-form__done, .fr-form__error { grid-column: 1 / -1; }
.fr-field label, .fr-field legend { padding: 0; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--fr-ink); }
.fr-w .fr-field input, .fr-w .fr-field select, .fr-w .fr-field textarea {
  width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid var(--fr-line); border-radius: 0; background: #fff; color: var(--fr-ink);
  font: 16px/1.4 var(--fr-f-body); outline: 0; transition: border-color .3s;
}
.fr-w .fr-field textarea { min-height: 120px; resize: vertical; }
.fr-w .fr-field input:focus, .fr-w .fr-field select:focus, .fr-w .fr-field textarea:focus { border-color: var(--fr-ink); }
.fr-field ::placeholder { color: #8f9398; }
.fr-checks { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 4px; }
.fr-w .fr-checks label { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; font-size: 15px; font-weight: 400; letter-spacing: 0; text-transform: none; cursor: pointer; }
.fr-w .fr-checks input { width: 18px; min-height: 0; height: 18px; margin: 0; accent-color: var(--fr-ink); }
.fr-w .fr-form__submit { justify-self: stretch; justify-content: center; }
@media (min-width: 640px) { .fr-w .fr-form__submit { justify-self: end; } }
.fr-form__done, .fr-form__error { display: none; }
.fr-form__done-title { font-family: var(--fr-f-display); font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.1; }
.fr-form__done p:last-child { margin-top: 10px; color: var(--fr-muted); }
.fr-form.is-sent > * { display: none; }
.fr-form.is-sent > .fr-form__done { display: block; }
.fr-form.has-error > .fr-form__error { display: block; color: #b3261e; font-size: 14px; }
.fr-form.is-busy .fr-form__submit { opacity: .6; pointer-events: none; }

/* contact details list */
.fr-contact-list { display: grid; gap: 24px; margin-top: 10px; }
.fr-contact-list dt { margin-bottom: 6px; }
.fr-contact-list dd { font-family: var(--fr-f-display); font-size: clamp(1.4rem, 2vw, 1.7rem); line-height: 1.2; }
.fr-contact-list a:hover { text-decoration: underline; }

/* ---------- motion: reveal on scroll (motion.js) ---------- */
html.fr-motion .fr-reveal { opacity: 0; transform: translateY(24px); }
html.fr-motion .fr-reveal.is-in { opacity: 1; transform: none; transition: opacity .9s ease, transform .9s var(--fr-ease); transition-delay: var(--fr-delay, 0s); }

/* hover lift on cards (hover devices only) */
@media (hover: hover) {
  .fr-card, .fr-tiles__item, .fr-team__member { transition: transform .4s var(--fr-ease); }
  .fr-card:hover, .fr-tiles__item:hover { transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  html.fr-motion .fr-reveal { opacity: 1; transform: none; }
  * { scroll-behavior: auto !important; }
}
