/* ============================================================
   Technically Eclectic — Design System
   Structure + Flow: Art Deco geometry, Nouveau warmth,
   celestial cartography orientation, steampunk interconnection.
   ============================================================ */

:root {
  /* core palette */
  --navy: #0B1324;
  --navy-deep: #081019;
  --teal: #123F46;
  --gold: #D4AF37;
  --ivory: #F2EADA;

  /* supporting palette (use sparingly) */
  --verdigris: #3D7F7A;
  --gray: #8A8A8A;
  --copper: #B8734A;

  /* derived */
  --line: rgba(212, 175, 55, 0.45);
  --line-faint: rgba(212, 175, 55, 0.22);
  --ivory-faint: rgba(242, 234, 218, 0.7);
  --navy-tint: rgba(11, 19, 36, 0.6);
  --shadow: 0 24px 60px rgba(4, 8, 16, 0.35);

  /* type */
  --display: "Cinzel", Georgia, serif;
  --body: "EB Garamond", Georgia, serif;
  --label: "Jost", system-ui, sans-serif;

  /* rhythm */
  --max-w: 1180px;
  --gutter: clamp(24px, 6vw, 96px);
  --section-pad: clamp(64px, 10vw, 128px);
}

/* ---------- reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--navy);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 500; letter-spacing: 0.03em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

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

/* ---------- layout helpers ---------- */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section { padding: var(--section-pad) 0; position: relative; }
.section--navy { background: var(--navy); color: var(--ivory); }
.section--teal { background: var(--teal); color: var(--ivory); }
.section--ivory { background: var(--ivory); color: var(--navy); }
.section--deep { background: var(--navy-deep); color: var(--ivory); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--label);
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1em;
}
.eyebrow::before, .eyebrow::after {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}
.eyebrow--left::after { display: none; }
.eyebrow--left { justify-content: flex-start; }

h1 { font-size: clamp(2.4rem, 5vw, 4.1rem); line-height: 1.08; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.15; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.lede {
  font-family: var(--body);
  font-style: italic;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  color: var(--ivory-faint);
}
.section--ivory .lede, .section--ivory .eyebrow { color: var(--teal); }
.section--ivory .eyebrow { color: var(--copper); }

.center { text-align: center; }
.stack { display: flex; flex-direction: column; }
.gap-sm { gap: 1rem; }
.gap-md { gap: 2rem; }
.gap-lg { gap: 3.5rem; }

/* ---------- gold hairline frames ---------- */
.framed {
  position: relative;
  border: 1px solid var(--line);
  padding: clamp(28px, 4vw, 56px);
}
.framed::before, .framed::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1px solid var(--gold);
}
.framed::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.framed::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
  margin: clamp(48px, 8vw, 96px) 0;
}

/* ---------- signet / sunburst ---------- */
.signet { width: 64px; height: 64px; }
.signet--sm { width: 40px; height: 40px; }
.signet path, .signet line, .signet circle, .signet polygon, .signet rect { stroke: var(--gold); fill: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--label);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 1.05em 2.1em;
  border: 1px solid var(--gold);
  border-radius: 2px;
  transition: background 0.35s ease, color 0.35s ease, transform 0.25s ease;
  white-space: nowrap;
}
.btn--solid { background: var(--gold); color: var(--navy-deep); }
.btn--solid:hover { background: var(--ivory); border-color: var(--ivory); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: inherit; }
.btn--ghost:hover { background: var(--gold); color: var(--navy-deep); transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--verdigris); outline-offset: 3px; }

/* ---------- nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 15, 28, 0.98);
  border-bottom: 1px solid var(--line-faint);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ivory);
}
.brand img { width: 40px; height: 40px; }
.brand-word {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.brand-word span { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 40px);
  font-family: var(--label);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory-faint);
}
.nav-links a { position: relative; padding: 6px 0; transition: color 0.25s ease; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--gold); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--gold);
}
.nav-cta { display: flex; align-items: center; gap: 24px; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--ivory);
  padding: 8px 12px;
  font-family: var(--label);
  letter-spacing: 0.1em;
  font-size: 0.75rem;
}

@media (max-width: 1040px) {
  .nav-links { position: fixed; inset: 72px 0 0 0; background: var(--navy); flex-direction: column; justify-content: flex-start; padding: 40px var(--gutter); gap: 28px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.3s ease, transform 0.3s ease; }
  .nav-links.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-toggle { display: block; }
  .nav-cta .btn { display: none; }
}

/* ---------- hero ---------- */
.hero {
  background: radial-gradient(120% 140% at 82% 10%, rgba(61,127,122,0.28), transparent 55%), var(--navy);
  color: var(--ivory);
  position: relative;
  overflow: hidden;
  padding-top: clamp(88px, 14vw, 160px);
  padding-bottom: clamp(80px, 12vw, 140px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.btn-row { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.hero-copy .btn-row { margin-top: 2.2em; }
.hero-art { display: flex; justify-content: center; align-items: center; position: relative; }
.hero-art img { width: min(420px, 90%); filter: drop-shadow(0 30px 60px rgba(0,0,0,0.45)); }
.hero-art .ring {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(520px, 100%);
  aspect-ratio: 1;
  border: 1px solid var(--line-faint);
  border-radius: 50%;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy .btn-row { justify-content: center; }
  .hero-art { order: -1; }
}

/* ---------- as-seen-in strip ---------- */
.strip {
  background: var(--teal);
  color: var(--ivory-faint);
  padding: 26px 0;
  border-top: 1px solid var(--line-faint);
  border-bottom: 1px solid var(--line-faint);
}
.strip-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vw, 56px);
  flex-wrap: wrap;
  font-family: var(--label);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

/* ---------- grids / cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 4vw, 56px); }
@media (max-width: 880px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  border: 1px solid var(--line-faint);
  padding: clamp(28px, 3.4vw, 44px);
  background: rgba(242, 234, 218, 0.02);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.section--ivory .card { background: #fff; border-color: rgba(11,19,36,0.1); }
.card:hover { border-color: var(--gold); transform: translateY(-4px); }
.card .num {
  font-family: var(--label);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--copper);
  margin-bottom: 1.2em;
  display: block;
}
.card h3 { margin-bottom: 0.6em; }
.card p { color: var(--ivory-faint); }
.section--ivory .card p { color: var(--navy); opacity: 0.75; }

/* ---------- pull quote / testimonial ---------- */
.pull-quote {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.pull-quote p {
  font-family: var(--body);
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  line-height: 1.5;
}
.pull-quote cite {
  display: block;
  margin-top: 1.6em;
  font-style: normal;
  font-family: var(--label);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- freebie / cta banner ---------- */
.banner {
  background: linear-gradient(120deg, var(--teal), var(--navy));
  color: var(--ivory);
  border: 1px solid var(--line);
  padding: clamp(36px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.banner h3 { margin-bottom: 0.4em; }
.banner p { color: var(--ivory-faint); max-width: 46ch; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: var(--ivory-faint);
  padding: clamp(56px, 8vw, 96px) 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: clamp(28px, 5vw, 56px);
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-faint);
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 {
  font-family: var(--label);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2em;
}
.footer-grid li { margin-bottom: 0.7em; }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 28px;
  font-family: var(--label);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--gray);
}

/* ---------- page hero (interior pages) ---------- */
.page-hero {
  background: var(--navy);
  color: var(--ivory);
  padding: clamp(120px, 14vw, 180px) 0 clamp(64px, 8vw, 96px);
  text-align: center;
  position: relative;
}
.page-hero .lede { max-width: 62ch; margin: 0.8em auto 0; }

/* ---------- form ---------- */
.form-field { display: flex; flex-direction: column; gap: 0.5em; margin-bottom: 1.4em; text-align: left; }
.form-field label {
  font-family: var(--label);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.form-field input, .form-field textarea {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ivory);
  padding: 0.9em 1em;
  font-family: var(--body);
  font-size: 1rem;
  border-radius: 2px;
}
.section--ivory .form-field input, .section--ivory .form-field textarea {
  color: var(--navy);
  border-color: rgba(11,19,36,0.25);
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--gold); }

/* ---------- utility ---------- */
.mt-lg { margin-top: clamp(40px, 6vw, 72px); }
.pill {
  display: inline-block;
  font-family: var(--label);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--verdigris);
  border: 1px solid var(--verdigris);
  padding: 0.4em 1em;
  border-radius: 20px;
}
