/* ==========================================================================
   Base layout, typography, header, nav, footer
   ========================================================================== */

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

p {
  color: var(--text-muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-300), transparent);
}

.text-muted { color: var(--text-muted); }
.text-gold { color: var(--accent); }

/* ---- Gold text treatment ---- */
.gold-text {
  background: linear-gradient(115deg, var(--gold-500) 10%, var(--gold-100) 40%, var(--gold-300) 60%, var(--gold-500) 90%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Buttons ---- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 1em 2.1em;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: transform var(--dur-fast) var(--ease-out-soft), box-shadow var(--dur-fast) var(--ease-out-soft), background var(--dur-fast) var(--ease-out-soft), color var(--dur-fast) var(--ease-out-soft), border-color var(--dur-fast) var(--ease-out-soft);
  will-change: transform;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-200) 50%, var(--gold-400));
  color: var(--black-950);
  border: 1px solid var(--gold-300);
}

.btn-primary:hover {
  box-shadow: var(--glow-gold);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--ivory);
  border: 1px solid var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--gold-300);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-small {
  padding: 0.75em 1.4em;
  font-size: var(--fs-micro);
}

/* ---- Link underline ---- */
.link-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 0.2em;
}

.link-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-med) var(--ease-luxe);
}

.link-underline:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: height var(--dur-med) var(--ease-out-soft), background var(--dur-med) var(--ease-out-soft), border-color var(--dur-med) var(--ease-out-soft), backdrop-filter var(--dur-med) var(--ease-out-soft);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  height: var(--header-h-scrolled);
  background: rgba(5, 5, 5, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand img {
  height: 52px;
  width: auto;
  transition: height var(--dur-med) var(--ease-out-soft);
}

.site-header.is-scrolled .brand img {
  height: 42px;
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2vw, 2.1rem);
}

.nav-primary a {
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--off-white);
  opacity: 0.86;
  transition: opacity var(--dur-fast) var(--ease-out-soft), color var(--dur-fast) var(--ease-out-soft);
}

.nav-primary a:hover,
.nav-primary a.is-active {
  opacity: 1;
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--accent-soft);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  z-index: var(--z-overlay);
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--ivory);
  transition: transform var(--dur-fast) var(--ease-out-soft), opacity var(--dur-fast) var(--ease-out-soft);
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---- Mobile drawer ---- */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  background: linear-gradient(160deg, #060604, #0c0a06 55%, #060604);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--container-pad);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity var(--dur-med) var(--ease-out-soft), visibility var(--dur-med), transform var(--dur-med) var(--ease-out-soft);
}

.nav-drawer.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-drawer nav {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.nav-drawer a {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 9vw, 2.6rem);
  font-weight: 600;
  color: var(--ivory);
}

.nav-drawer a:hover,
.nav-drawer a:active {
  color: var(--accent);
}

.nav-drawer .drawer-foot {
  margin-top: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  border-top: 1px solid var(--line);
  padding-top: var(--space-md);
}

.nav-drawer .drawer-foot a {
  font-family: var(--font-body);
  font-size: var(--fs-body-lg);
  font-weight: 600;
  color: var(--accent-soft);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  position: relative;
  background: var(--black-900);
  border-top: 1px solid var(--line);
  padding-block: var(--space-xl) var(--space-md);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--line);
}

.footer-brand img {
  height: 56px;
  width: auto;
  margin-bottom: 1.2rem;
}

.footer-brand p {
  max-width: 34ch;
  font-size: var(--fs-small);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col a,
.footer-col span {
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.footer-col a:hover {
  color: var(--accent-soft);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: var(--space-md);
  flex-wrap: wrap;
}

.footer-bottom p,
.footer-bottom a {
  font-size: var(--fs-micro);
  color: var(--fog-dim);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

/* ==========================================================================
   Section scaffolding
   ========================================================================== */

.section {
  position: relative;
  padding-block: var(--space-2xl);
}

.section-head {
  max-width: 46rem;
  margin-bottom: var(--space-lg);
}

.section-head h2 {
  margin-top: 0.8rem;
  font-size: var(--fs-display-md);
}

.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + var(--space-xl));
  padding-bottom: var(--space-xl);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,5,5,0.55) 0%, rgba(5,5,5,0.78) 55%, var(--bg) 100%);
}

.page-hero .eyebrow { margin-bottom: 1.1rem; }

.page-hero h1 {
  font-size: var(--fs-display-lg);
  max-width: 18ch;
}

.page-hero .lede {
  margin-top: 1.4rem;
  max-width: 48ch;
  font-size: var(--fs-body-lg);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--gold-200);
  color: var(--black-950);
  padding: 0.75rem 1.2rem;
  z-index: 1000;
  border-radius: var(--radius-sm);
  transition: top var(--dur-fast) var(--ease-out-soft);
}

.skip-link:focus {
  top: 1rem;
}
