/* Tech Edge Partners — brand system carried over from the Squarespace original
   bg #E0E0DB · ink #2A2829 · navy #253551 · Anton headings · Epilogue body */

:root {
  --bg: #e0e0db;
  --ink: #2a2829;
  --navy: #253551;
  --navy-hi: #32456a;
  --muted: #5c5a5b;
  --rule: rgba(42, 40, 41, 0.14);
  --max: 1180px;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Epilogue, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo, .stat-n {
  font-family: Anton, "Arial Narrow", Impact, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: 0.01em;
  margin: 0;
}

h1 { font-size: clamp(2.5rem, 1.4rem + 5.4vw, 5.75rem); }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.25rem); }
h3 { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem); }

p { margin: 0 0 1.1em; }
a { color: inherit; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-head.scrolled { border-bottom-color: var(--rule); }
.head-in {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 78px;
}
.logo {
  font-size: 1.32rem; letter-spacing: 0.02em;
  text-decoration: none; margin-right: auto; white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.nav a {
  text-decoration: none; font-size: 0.975rem; color: var(--ink);
  opacity: .85; transition: opacity .15s ease;
}
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
.nav a[aria-current="page"]:not(.btn) { text-decoration: underline; text-underline-offset: 6px; }
/* .nav a (0,1,1) would otherwise beat .btn (0,1,0) and darken the button text */
.nav a.btn { color: #fff; opacity: 1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  background: var(--navy); color: #fff;
  padding: 0.85rem 1.9rem; border-radius: 300px;
  font-size: 0.95rem; letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; border: 0; cursor: pointer; white-space: nowrap;
  transition: background .18s ease, transform .18s ease;
}
.btn:hover { background: var(--navy-hi); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #fff; opacity: .9; }
/* outline button for use on the navy hero/band */
.btn-outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); }
.btn-outline:hover { background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1.5px #fff; }

.nav-toggle { display: none; background: 0; border: 0; padding: .5rem; cursor: pointer; color: inherit; }

/* ---------- hero ---------- */
.hero {
  background: var(--navy); color: #fff;
  border-radius: 6px;
  margin: 0 var(--pad) clamp(3rem, 7vw, 5.5rem);
  padding: clamp(4rem, 11vw, 8.5rem) clamp(1.5rem, 5vw, 5rem);
  position: relative; overflow: hidden;
  text-align: center;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% -10%, rgba(255,255,255,.13), transparent 70%),
    radial-gradient(ellipse 45% 40% at 92% 108%, rgba(255,255,255,.07), transparent 70%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { max-width: 17ch; margin-inline: auto; }
.hero p {
  max-width: 56ch; margin: 1.6rem auto 2.4rem;
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
  color: rgba(255,255,255,.82);
}
.hero-cta { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }

/* page header for interior pages */
.page-head { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.page-head p.lede {
  max-width: 60ch; font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
  color: var(--muted); margin-top: 1.2rem;
}

.eyebrow {
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1rem; display: block;
}
.hero .eyebrow { color: rgba(255,255,255,.6); }

/* ---------- sections ---------- */
section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--muted); margin-top: 1rem; font-size: 1.08rem; }

.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }

.card {
  background: rgba(255,255,255,.55);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,.78);
  box-shadow: 0 12px 30px -18px rgba(42,40,41,.5);
}
.card .num {
  font-family: Anton, sans-serif; font-size: .95rem;
  color: var(--navy); opacity: .5; margin-bottom: 1rem; display: block;
}
.card h3 { margin-bottom: .9rem; }
.card p { color: var(--muted); flex: 1; }
.card .btn { align-self: flex-start; margin-top: .6rem; }

/* ---------- cta band ---------- */
.band {
  background: var(--navy); color: #fff;
  border-radius: 6px;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 4rem);
  text-align: center;
  margin-block: clamp(2rem, 5vw, 4rem);
}
.band p { color: rgba(255,255,255,.82); max-width: 52ch; margin: 1.2rem auto 2rem; }

/* ---------- contact ---------- */
.contact-grid {
  display: grid; gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  align-items: start;
}
.contact-item { border-top: 2px solid var(--ink); padding-top: 1.1rem; }
.contact-item .label {
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); display: block; margin-bottom: .5rem;
}
.contact-item a { font-size: 1.2rem; text-decoration: none; border-bottom: 1.5px solid var(--rule); }
.contact-item a:hover { border-bottom-color: var(--ink); }

/* ---------- contact form ---------- */
.form-layout {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: start;
}
@media (max-width: 860px) { .form-layout { grid-template-columns: 1fr; } }

.field { margin-bottom: 1.4rem; }
.field label {
  display: block; margin-bottom: .5rem;
  font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.field label .opt { text-transform: none; letter-spacing: 0; opacity: .75; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: rgba(255,255,255,.6);
  border: 1px solid var(--rule); border-radius: 3px;
  padding: .85rem 1rem;
  transition: border-color .15s ease, background .15s ease;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:hover, .field textarea:hover { background: rgba(255,255,255,.8); }
.field input:focus, .field textarea:focus {
  outline: none; background: #fff; border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(37,53,81,.15);
}
.field input.invalid, .field textarea.invalid {
  border-color: #a33; background: rgba(255,240,240,.85);
}

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

#cf-submit[disabled] { opacity: .6; cursor: progress; }

.form-status { margin: 1rem 0 0; min-height: 1.4em; font-size: .95rem; color: var(--muted); }
.form-status.is-success { color: #1d6b3f; font-weight: 500; }
.form-status.is-error { color: #a33; font-weight: 500; }

.contact-aside { display: grid; gap: 1.75rem; }

/* ---------- booking embed ---------- */
.booking {
  background: #fff; border: 1px solid var(--rule); border-radius: 4px;
  overflow: hidden; margin-bottom: 3rem;
}
.booking iframe { display: block; width: 100%; height: 850px; border: 0; }

/* ---------- footer ---------- */
.site-foot {
  border-top: 1px solid var(--rule);
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 2rem;
}
.foot-in {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
.foot-in .logo { font-size: 1.15rem; }
.foot-col .label {
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); display: block; margin-bottom: .8rem;
}
.foot-col a { display: block; text-decoration: none; opacity: .85; margin-bottom: .45rem; }
.foot-col a:hover { opacity: 1; }
.foot-bot {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .875rem; color: var(--muted);
}

/* ---------- mobile nav ---------- */
@media (max-width: 820px) {
  .nav-toggle { display: block; order: 3; }
  .nav {
    order: 4; width: 100%; display: none;
    flex-direction: column; align-items: flex-start; gap: .25rem;
    padding: .5rem 0 1.25rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: .6rem 0; font-size: 1.05rem; }
  .nav .btn { margin-top: .6rem; }
  .head-in { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* reveal-on-scroll — only ever hidden when JS is confirmed running, so content
   stays visible if the script fails, is blocked, or hasn't parsed yet */
.js .reveal { opacity: 0; transform: translateY(14px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

:focus-visible { outline: 2.5px solid var(--navy); outline-offset: 3px; border-radius: 2px; }
.hero :focus-visible, .band :focus-visible { outline-color: #fff; }
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: .75rem 1.25rem; z-index: 100;
}
.skip:focus { left: .5rem; top: .5rem; }
