/* ===================================================
   Leonine Project - v2 Redesign
   Confident, cohesive, editorial
   =================================================== */

:root {
  --navy: #081120;
  --navy-surface: #0d1829;
  --cream: #f0ebe0;
  --cream-mid: #e4ddd0;
  --gold: #c8aa62;
  --gold-glow: rgba(200, 170, 98, 0.15);
  --ink: #f4f7fd;
  --text-light: #b8c8de;
  --muted: #8a9bb5;
  --ink-dark: #0f1528;
  --text-dark: #4e4e60;
  --lion-blue: #7ea8e8;
  --line-light: rgba(255, 255, 255, 0.08);
  --max: 1140px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text-light);
  background: var(--navy);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Libre Caslon Display", serif;
  font-weight: 400;
}

a {
  color: inherit;
}

img {
  display: block;
}

.eyebrow {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin-top: 18px;
  background: var(--gold);
}

.topbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-wordmark {
  width: 200px;
  max-width: min(44vw, 200px);
  height: auto;
}

.topbar-nav {
  display: flex;
  gap: 32px;
}

.topbar-nav a {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 220ms ease;
}

.topbar-nav a:hover,
.topbar-nav a:focus-visible {
  color: var(--ink);
}

.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(178deg, #0e1b30 0%, var(--navy) 50%, #060e1a 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 80px 3vw 40px auto;
  width: min(54vw, 820px);
  background:
    linear-gradient(90deg, rgba(8, 17, 32, 0) 0%, rgba(8, 17, 32, 0.2) 25%, rgba(8, 17, 32, 0.4) 100%),
    url("White_Lion.svg") no-repeat center right / contain;
  opacity: 0.1;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 170, 98, 0.35), transparent);
  pointer-events: none;
}

.hero-inner {
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 80px;
}

.hero-copy {
  max-width: 920px;
}

h1 {
  margin-top: 0;
  font-size: clamp(4.2rem, 8.8vw, 8rem);
  line-height: 0.88;
  letter-spacing: -0.06em;
  color: var(--ink);
  text-wrap: balance;
}

h1 span,
h1 em {
  display: block;
}

h1 span {
  color: rgba(220, 232, 251, 0.7);
}

h1 em {
  font-style: normal;
  color: var(--lion-blue);
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 48px;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  border: none;
  border-radius: 999px;
  font-family: "Manrope", sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-glass {
  border: 1px solid rgba(198, 219, 250, 0.18);
  color: rgba(244, 247, 253, 0.95);
  background:
    linear-gradient(135deg, rgba(198, 219, 250, 0.14), rgba(200, 170, 98, 0.06)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 16px 40px rgba(2, 8, 18, 0.28);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  min-width: 152px;
  padding-inline: 25px 20px;
}

.button-glass::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.14) 42%, transparent 58%);
  opacity: 0;
  transform: translateX(-34%);
  transition:
    opacity 240ms ease,
    transform 440ms ease;
  pointer-events: none;
}

.button-glass > * {
  position: relative;
  z-index: 1;
}

.button-glass:hover,
.button-glass:focus-visible {
  border-color: rgba(198, 219, 250, 0.32);
  background:
    linear-gradient(135deg, rgba(198, 219, 250, 0.2), rgba(200, 170, 98, 0.09)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.06));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 20px 48px rgba(35, 77, 143, 0.22);
}

.button-glass:hover::before,
.button-glass:focus-visible::before {
  opacity: 1;
  transform: translateX(34%);
}

.button-glass .button-arrow {
  background: rgba(198, 219, 250, 0.12);
  color: #d8c078;
}

.button-glass:hover .button-arrow,
.button-glass:focus-visible .button-arrow {
  background: rgba(216, 182, 102, 0.14);
  color: #f3d88a;
}

.button-primary {
  border: 0;
  background: linear-gradient(140deg, #7eaae6, #2c5ea9 75%);
  color: white;
  box-shadow: 0 14px 36px rgba(35, 77, 143, 0.28);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 18px 44px rgba(35, 77, 143, 0.38);
}

.button-arrow {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 0.9em;
  transition: transform 200ms ease;
}

.button:hover .button-arrow,
.button:focus-visible .button-arrow {
  transform: translateX(3px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.focus-section {
  position: relative;
  background: var(--cream);
  padding: 128px 0 136px;
}

.focus-inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 48px 72px;
  align-items: start;
}

.focus-section .eyebrow {
  color: #a08840;
}

.focus-section .eyebrow::after {
  background: #a08840;
}

.focus-section h2 {
  margin-top: 26px;
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  color: var(--ink-dark);
}

.focus-body {
  padding-top: 16px;
}

.focus-lead {
  margin: 0;
  font-size: clamp(1.15rem, 1.4vw, 1.32rem);
  line-height: 1.7;
  color: var(--ink-dark);
  font-weight: 600;
  text-wrap: pretty;
}

.focus-copy {
  margin: 20px 0 0;
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  line-height: 1.9;
  color: var(--text-dark);
  text-wrap: pretty;
}

.contact-section {
  position: relative;
  background: var(--navy);
  padding: 128px 0 140px;
}

.contact-section::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 170, 98, 0.3), transparent);
  pointer-events: none;
}

.contact-inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.section-intro {
  display: grid;
  gap: 16px;
  margin-bottom: 56px;
}

.section-intro h2 {
  max-width: 14ch;
  font-size: clamp(2.4rem, 4.5vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--ink);
  text-wrap: balance;
}

.contact-grid {
  max-width: 640px;
  margin-left: auto;
}

.contact-form {
  display: grid;
  gap: 20px;
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 24px 56px rgba(0, 0, 0, 0.22);
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: rgba(244, 247, 253, 0.88);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.contact-form select,
.contact-form select option {
  color: var(--ink);
  background: #14202f;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(184, 200, 222, 0.35);
}

.contact-form textarea {
  min-height: 100px;
  resize: vertical;
}

.message-field {
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.message-field.is-hidden {
  display: none;
}

.add-message-button {
  justify-self: start;
  appearance: none;
  border: 1px solid rgba(200, 170, 98, 0.22);
  border-radius: 999px;
  padding: 10px 18px;
  background: transparent;
  color: var(--gold);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    color 200ms ease,
    border-color 200ms ease,
    background 200ms ease;
}

.add-message-button:hover,
.add-message-button:focus-visible {
  color: #e0c47a;
  border-color: rgba(200, 170, 98, 0.38);
  background: rgba(200, 170, 98, 0.06);
}

.add-message-button[hidden] {
  display: none;
}

.form-note {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
  transition: color 200ms ease;
}

.site-footer {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 40px;
}

.site-footer::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-bottom: 28px;
  background: linear-gradient(90deg, var(--gold), rgba(200, 170, 98, 0.08));
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 36px;
  align-items: center;
  font-size: 0.84rem;
}

.footer-statement {
  margin: 0;
  max-width: 55ch;
  color: rgba(184, 200, 222, 0.48);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-links a {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(184, 200, 222, 0.38);
  transition: color 200ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--ink);
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 6px;
}

.footer-bottom p,
.footer-location {
  margin: 0;
  color: rgba(184, 200, 222, 0.3);
  line-height: 1.5;
}

.is-success {
  color: #7edba0;
}

.is-pending {
  color: var(--gold);
}

.is-error {
  color: #f5a0a0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 650ms ease,
    transform 650ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .button {
    transition: none;
  }
}

@media (max-width: 960px) {
  .focus-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .focus-body {
    padding-top: 0;
  }

  .contact-grid {
    margin-left: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding-top: 22px;
    width: min(calc(100% - 32px), var(--max));
  }

  .topbar-nav {
    gap: 20px;
  }

  .brand-wordmark {
    width: 164px;
  }

  .hero {
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .hero-inner {
    width: min(calc(100% - 32px), var(--max));
    padding-bottom: 56px;
  }

  h1 {
    max-width: 10ch;
    font-size: clamp(3.4rem, 14vw, 5.6rem);
    line-height: 0.86;
  }

  .hero-actions {
    margin-top: 36px;
  }

  .focus-section {
    padding: 88px 0 96px;
  }

  .focus-inner {
    width: min(calc(100% - 32px), var(--max));
  }

  .focus-section h2 {
    font-size: clamp(2.4rem, 10vw, 3.8rem);
  }

  .contact-section {
    padding: 88px 0 100px;
  }

  .contact-inner {
    width: min(calc(100% - 32px), var(--max));
  }

  .section-intro h2 {
    max-width: none;
    font-size: clamp(2.2rem, 9vw, 3.4rem);
  }

  .contact-form {
    padding: 24px;
    border-radius: 20px;
  }

  .site-footer {
    width: min(calc(100% - 32px), var(--max));
    padding-bottom: 28px;
  }
}
