/* Belgrave landing — trimmed brand system */

:root {
  --c-base: #00091a;
  --c-base-mid: #061428;
  --c-cream: #fdfaf5;
  --c-sand: #f5f0e8;
  --c-text: #1a2433;
  --c-text-muted: #4a5568;
  --c-on-dark: #f4f7fb;
  --c-on-dark-muted: #c5d0de;
  --c-accent: #b08d52;
  --c-accent-dark: #82652f;
  --c-border: rgba(0, 9, 26, 0.12);
  --c-border-hover: rgba(0, 9, 26, 0.22);
  --c-border-on-dark: rgba(244, 247, 251, 0.14);
  --c-focus: #82652f;

  --font-display: 'Barlow Semi Condensed', 'Segoe UI', Tahoma, sans-serif;
  --font-body: 'Lexend', 'Segoe UI', Tahoma, sans-serif;

  --fs-h1: clamp(2.25rem, 5vw, 3.5rem);
  --fs-h2: clamp(1.75rem, 3.2vw, 2.5rem);
  --fs-body: 1.125rem;
  --fs-small: 0.9375rem;
  --fs-label: 0.875rem;

  --lh-tight: 1.05;
  --lh-display: 1.15;
  --lh-body: 1.65;
  --ls-tight: -0.02em;
  --ls-wide: 0.06em;

  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 2.5rem;
  --sp-6: 3rem;
  --sp-8: 4rem;

  --max-w: 1320px;
  --nav-h: 88px;
  --nav-h-sm: 84px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 6px;
  --mobile-cta-h: 72px;

  --t-fast: 150ms;
  --t-base: 300ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --z-base: 0;
  --z-elevated: 10;
  --z-nav: 200;
  --z-mobile-cta: 320;
  --z-loading: 400;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--c-text);
  background: var(--c-cream);
  overflow-x: clip;
  min-height: 100%;
}

body:has(.mobile-cta-bar) {
  padding-bottom: calc(var(--mobile-cta-h) + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
  body:has(.mobile-cta-bar) {
    padding-bottom: 0;
  }
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--sp-2);
  top: -100px;
  z-index: var(--z-loading);
  background: var(--c-base);
  color: var(--c-on-dark);
  padding: var(--sp-1) var(--sp-2);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: var(--sp-2);
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-display);
  letter-spacing: var(--ls-tight);
  color: var(--c-base);
}

h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
}

h2 {
  font-size: var(--fs-h2);
}

.eyebrow {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--sp-1);
}

.lead {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: var(--c-text-muted);
  max-width: 40rem;
}

.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--sp-6);
}

@media (min-width: 768px) {
  .section {
    padding-block: var(--sp-8);
  }
}

.section--navy {
  background: var(--c-base);
  color: var(--c-on-dark);
}

.section--navy h2 {
  color: var(--c-on-dark);
}

.section--navy .lead {
  color: var(--c-on-dark-muted);
}

.section-intro {
  margin-bottom: var(--sp-4);
  max-width: 40rem;
}

.section-intro h2 {
  margin-bottom: var(--sp-2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease-out), background var(--t-base),
    border-color var(--t-base), color var(--t-base);
}

.btn--primary {
  background: var(--c-accent);
  color: var(--c-base);
  border-color: var(--c-accent);
}

.btn--ghost {
  background: transparent;
  color: var(--c-on-dark);
  border-color: rgba(244, 247, 251, 0.55);
}

.btn--ghost-dark {
  background: transparent;
  color: var(--c-base);
  border-color: var(--c-base);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover {
    background: var(--c-accent-dark);
    border-color: var(--c-accent-dark);
    color: var(--c-on-dark);
    transform: translateY(-2px);
  }

  .btn--ghost:hover {
    background: rgba(244, 247, 251, 0.08);
    border-color: var(--c-on-dark);
  }

  .btn--ghost-dark:hover {
    background: var(--c-base);
    color: var(--c-on-dark);
  }
}

.btn:active {
  transform: scale(0.98);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  height: var(--nav-h-sm);
  background: rgba(0, 9, 26, 0.92);
  color: var(--c-on-dark);
  border-bottom: 1px solid transparent;
  transition: background var(--t-base), border-color var(--t-base),
    box-shadow var(--t-base);
}

.site-header.is-scrolled {
  background: rgba(0, 9, 26, 0.98);
  border-bottom-color: var(--c-border-on-dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

@media (min-width: 768px) {
  .site-header {
    height: var(--nav-h);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  height: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-logo-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: calc(100% - 120px);
}

.site-logo-img {
  height: 52px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

@media (min-width: 768px) {
  .site-logo-img {
    height: 60px;
  }

  .site-logo-link {
    max-width: none;
  }
}

.header-cta {
  flex-shrink: 0;
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  font-size: var(--fs-label);
}

/* Hero */
.page-hero,
.hero {
  position: relative;
  min-height: 0;
  height: calc(100vh - var(--nav-h-sm));
  height: calc(100svh - var(--nav-h-sm));
  display: flex;
  align-items: flex-end;
  color: var(--c-on-dark);
  overflow: clip;
  background: var(--c-base);
}

@media (min-width: 768px) {
  .page-hero,
  .hero {
    height: calc(100vh - var(--nav-h));
    height: calc(100svh - var(--nav-h));
    min-height: 520px;
  }
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: var(--z-base);
}

.hero-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

@media (max-width: 767px) {
  .hero-media img {
    object-position: center 82%;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: var(--z-elevated);
  background: linear-gradient(
    180deg,
    rgba(0, 9, 26, 0.28) 0%,
    rgba(0, 9, 26, 0.55) 40%,
    rgba(0, 9, 26, 0.9) 100%
  );
}

.hero-content {
  position: relative;
  z-index: calc(var(--z-elevated) + 1);
  width: 100%;
  padding-block: var(--sp-3) var(--sp-4);
}

@media (min-width: 768px) {
  .hero-content {
    padding-block: var(--sp-5) var(--sp-6);
  }
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 5.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-tight);
  color: var(--c-on-dark);
  margin-bottom: var(--sp-1);
}

.hero h1 {
  color: var(--c-on-dark);
  font-size: clamp(1.35rem, 3.6vw, 2.35rem);
}

.hero-content .lead {
  color: var(--c-on-dark-muted);
  margin-bottom: var(--sp-3);
  font-size: clamp(0.95rem, 1.6vw, 1.0625rem);
  max-width: 36rem;
}

@media (max-width: 767px) {
  .hero .btn-group {
    display: none !important;
  }

  .hero.page-hero.hero-enter {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-sizing: border-box;
    height: calc(100svh - var(--nav-h-sm));
    min-height: calc(100svh - var(--nav-h-sm));
    max-height: calc(100svh - var(--nav-h-sm));
    padding-bottom: calc(
      var(--mobile-cta-h) + env(safe-area-inset-bottom, 0px)
    );
  }

  .hero.page-hero.hero-enter > .hero-content {
    margin-top: auto;
    padding-block: var(--sp-2) var(--sp-3);
    transform: none;
  }

  .hero.page-hero.hero-enter > .hero-content .lead {
    margin-bottom: 0;
  }
}

html.js .hero-enter > *:not(.hero-media):not(.hero-overlay) {
  opacity: 0;
  transform: translateY(18px);
}

html.js .hero-enter.is-in > *:not(.hero-media):not(.hero-overlay) {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

@media (max-width: 767px) {
  html.js .hero-enter > .hero-content,
  html.js .hero-enter.is-in > .hero-content {
    transform: none;
  }
}

html.js .hero-enter.is-in .hero-content > *:nth-child(1) {
  transition-delay: 0.05s;
}
html.js .hero-enter.is-in .hero-content > *:nth-child(2) {
  transition-delay: 0.14s;
}
html.js .hero-enter.is-in .hero-content > *:nth-child(3) {
  transition-delay: 0.22s;
}
html.js .hero-enter.is-in .hero-content > *:nth-child(4) {
  transition-delay: 0.3s;
}

html.js .hero-enter .hero-media,
html.js .hero-enter .hero-overlay {
  opacity: 1;
  transform: none;
}

.coming-soon .lead {
  margin-top: var(--sp-2);
}

.thank-you {
  min-height: calc(100svh - var(--nav-h-sm) - 180px);
  display: flex;
  align-items: center;
}

.thank-you h1 {
  margin-bottom: var(--sp-2);
}

/* Contact */
.contact-layout {
  display: grid;
  gap: var(--sp-6);
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}

.contact-list {
  display: grid;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}

.contact-list a {
  color: var(--c-accent-dark);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.form-grid {
  display: grid;
  gap: var(--sp-3);
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-group--full {
    grid-column: 1 / -1;
  }
}

.form-group {
  display: grid;
  gap: var(--sp-1);
}

.form-group label {
  font-size: var(--fs-label);
  font-weight: 600;
  color: var(--c-text);
}

.form-group input,
.form-group textarea {
  min-height: 48px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--c-border-hover);
  border-radius: var(--radius);
  background: #fff;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-actions {
  margin-top: var(--sp-3);
}

.form-status {
  min-height: 1.5em;
  margin-top: var(--sp-2);
  font-size: var(--fs-small);
  color: var(--c-accent-dark);
}

.form-status[data-state='error'] {
  color: #8b1e1e;
}

.form-status[data-state='success'] {
  color: #1f5c3a;
}

/* Footer */
.site-footer {
  background: var(--c-base);
  color: var(--c-on-dark-muted);
  padding-block: var(--sp-5);
  padding-bottom: calc(var(--sp-5) + var(--mobile-cta-h));
}

@media (min-width: 768px) {
  .site-footer {
    padding-bottom: var(--sp-5);
  }
}

.footer-inner {
  display: grid;
  gap: var(--sp-2);
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--c-on-dark);
  font-size: var(--fs-h2);
  font-size: 1.35rem;
}

.footer-meta a {
  color: var(--c-accent);
}

/* Mobile CTA */
.mobile-cta-bar {
  display: none;
}

@media (max-width: 767px) {
  .mobile-cta-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-mobile-cta);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-2);
    padding: var(--sp-2) var(--gutter);
    padding-bottom: calc(var(--sp-2) + env(safe-area-inset-bottom, 0px));
    background: rgba(0, 9, 26, 0.96);
    border-top: 1px solid var(--c-border-on-dark);
  }

  .mobile-cta-bar .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html.js .hero-enter > *:not(.hero-media):not(.hero-overlay),
  html.js .hero-enter.is-in > *:not(.hero-media):not(.hero-overlay) {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
