@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --obsidian: #1A1A2E;
  --charcoal: #2D2D3F;
  --gunmetal: #393950;
  --bone: #F7F4EF;
  --white: #FFFFFF;
  --gold: #C9A84C;
  --brass: #D4A017;
  --navy: #0F0F1E;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.75rem;
  --fs-4xl: 3.5rem;
  --fs-5xl: 4.25rem;

  --radius: 6px;
  --radius-lg: 12px;
  --transition: 0.3s ease;
  --gold-glow: 0 0 20px rgba(201, 168, 76, 0.25);
  --card-border: 1px solid rgba(201, 168, 76, 0.15);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.7;
  color: var(--bone);
  background-color: var(--navy);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
}

/* ========== LAYOUT ========== */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-2xl) 0;
  background-color: var(--obsidian);
}

.section-alt {
  padding: var(--space-2xl) 0;
  background-color: var(--charcoal);
  background-image: linear-gradient(135deg, var(--charcoal) 0%, var(--gunmetal) 100%);
}

.text-center {
  text-align: center;
}

/* ========== HEADER / NAV ========== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15, 15, 30, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.08);
  transition: background var(--transition), border-bottom var(--transition);
}

.site-header.scrolled {
  background: rgba(15, 15, 30, 0.97);
  border-bottom-color: rgba(201, 168, 76, 0.2);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: var(--space-sm);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  position: relative;
  padding-bottom: 6px;
}

.nav-logo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
}

.nav-link {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: rgba(247, 244, 239, 0.8);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--transition);
  position: relative;
  padding: var(--space-xs) 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-link:hover,
.nav-link:focus {
  color: var(--gold);
}

.nav-link:hover::after,
.nav-link:focus::after {
  width: 100%;
}

.nav-cta {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--navy);
  background: linear-gradient(135deg, var(--gold), var(--brass));
  padding: 10px 22px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.02em;
  transition: box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
  display: inline-block;
}

.nav-cta:hover {
  box-shadow: var(--gold-glow);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle::before,
.nav-toggle::after {
  content: '';
}

/* ========== HERO ========== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 15, 30, 0.7) 0%,
    rgba(26, 26, 46, 0.65) 40%,
    rgba(26, 26, 46, 0.85) 100%
  );
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  padding: calc(72px + var(--space-2xl)) var(--space-md) var(--space-2xl);
}

.hero-title {
  font-size: var(--fs-5xl);
  font-weight: 800;
  color: var(--white);
  margin-bottom: var(--space-md);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.hero-sub {
  font-size: var(--fs-lg);
  font-weight: 300;
  color: rgba(247, 244, 239, 0.85);
  max-width: 640px;
  margin: 0 auto var(--space-lg);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

/* ========== BUTTONS ========== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.btn-primary {
  color: var(--navy);
  background: linear-gradient(135deg, var(--gold), var(--brass));
  border-color: var(--gold);
}

.btn-primary:hover {
  box-shadow: var(--gold-glow), 0 4px 20px rgba(201, 168, 76, 0.35);
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--brass), var(--gold));
}

.btn-ghost {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

/* ========== TYPE ========== */

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: var(--space-xs);
  display: block;
}

.lead {
  font-size: var(--fs-lg);
  font-weight: 300;
  color: rgba(247, 244, 239, 0.8);
  line-height: 1.8;
  max-width: 680px;
}

.text-center .lead {
  margin-left: auto;
  margin-right: auto;
}

.muted {
  font-size: var(--fs-sm);
  color: rgba(247, 244, 239, 0.5);
}

/* ========== GRID & CARDS ========== */

.grid {
  display: grid;
  gap: var(--space-md);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: linear-gradient(145deg, rgba(57, 57, 80, 0.5), rgba(45, 45, 63, 0.7));
  border: var(--card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: rgba(201, 168, 76, 0.4);
  box-shadow: var(--gold-glow);
  transform: translateY(-4px);
}

.card-icon {
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-sm);
  line-height: 1;
  display: block;
}

.card-title {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-xs);
  line-height: 1.3;
}

.card-body {
  font-size: var(--fs-sm);
  color: rgba(247, 244, 239, 0.7);
  line-height: 1.7;
  flex: 1;
}

/* ========== FEATURE ========== */

.feature {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  padding: var(--space-lg) 0;
}

.feature:nth-child(even) {
  flex-direction: row-reverse;
}

.feature-media {
  flex: 1;
  min-width: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feature-media img {
  width: 100%;
  border-radius: var(--radius-lg);
}

.feature-body {
  flex: 1;
  min-width: 0;
}

.stat {
  text-align: center;
  padding: var(--space-md);
}

.stat-num {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: var(--space-xs);
  display: block;
}

.stat-label {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: rgba(247, 244, 239, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ========== FORMS ========== */

.form {
  width: 100%;
  max-width: 600px;
}

.text-center .form {
  margin-left: auto;
  margin-right: auto;
}

.form-row {
  display: flex;
  gap: var(--space-sm);
}

.form-row > .form-group {
  flex: 1;
}

.form-group {
  margin-bottom: var(--space-md);
}

.label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--bone);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.input,
.textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--white);
  background: rgba(57, 57, 80, 0.4);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: var(--radius);
  padding: 12px 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.input:focus,
.textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.input::placeholder,
.textarea::placeholder {
  color: rgba(247, 244, 239, 0.35);
}

.textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: var(--fs-xs);
  color: rgba(247, 244, 239, 0.45);
  margin-top: 4px;
}

.form-error {
  font-size: var(--fs-sm);
  color: #e74c3c;
  font-weight: 500;
  margin-top: var(--space-xs);
  display: none;
}

.form-error.visible {
  display: block;
}

.form-success {
  font-size: var(--fs-base);
  color: #2ecc71;
  font-weight: 600;
  text-align: center;
  padding: var(--space-md);
  border: 1px solid rgba(46, 204, 113, 0.3);
  border-radius: var(--radius);
  background: rgba(46, 204, 113, 0.08);
  margin-top: var(--space-sm);
  display: none;
}

.form-success.visible {
  display: block;
}

/* ========== FOOTER ========== */

.site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(201, 168, 76, 0.1);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
}

.footer-col h4,
.footer-col .card-title {
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.footer-col p,
.footer-col span {
  font-size: var(--fs-sm);
  color: rgba(247, 244, 239, 0.6);
  line-height: 1.8;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-links a {
  font-size: var(--fs-sm);
  color: rgba(247, 244, 239, 0.6);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--gold);
}

/* ========== UTILITIES ========== */

.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;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== SECTION TITLE HELPERS ========== */

.section h2,
.section-alt h2 {
  font-size: var(--fs-3xl);
  margin-bottom: var(--space-sm);
}

.section h2 + .lead,
.section-alt h2 + .lead {
  margin-bottom: var(--space-xl);
}

/* gold divider helper */
.section hr,
.section-alt hr {
  border: none;
  height: 2px;
  width: 60px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: var(--space-lg) auto;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 1024px) {
  .hero-title {
    font-size: var(--fs-4xl);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --space-2xl: 4rem;
  }

  .hero-title {
    font-size: var(--fs-3xl);
  }

  .hero-sub {
    font-size: var(--fs-base);
  }

  .section h2,
  .section-alt h2 {
    font-size: var(--fs-2xl);
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .feature {
    flex-direction: column;
    gap: var(--space-md);
  }

  .feature:nth-child(even) {
    flex-direction: column;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  /* Mobile nav */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(15, 15, 30, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: var(--space-lg) var(--space-md);
    gap: var(--space-sm);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
    pointer-events: none;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    font-size: var(--fs-base);
    padding: var(--space-xs) 0;
  }

  .nav-cta {
    width: 100%;
    text-align: center;
    margin-top: var(--space-xs);
  }

  /* Toggle open state: X icon */
  .nav-toggle.open span {
    opacity: 0;
  }

  .nav-toggle.open::before {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.open::after {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: var(--fs-2xl);
  }

  .hero-inner {
    padding-top: calc(72px + var(--space-xl));
  }

  .btn {
    padding: 12px 24px;
    font-size: var(--fs-sm);
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .card {
    padding: var(--space-md);
  }

  .stat-num {
    font-size: var(--fs-2xl);
  }

  .nav-logo {
    font-size: var(--fs-lg);
  }
}