@import url('https://fonts.googleapis.com/css2?family=Cormorant:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* ── Design Tokens ── */
:root {
  --color-primary: #1C1917;
  --color-cta: #CA8A04;
  --color-cta-hover: #A16207;
  --font-heading: 'Cormorant', Georgia, serif;
  --font-body: 'Montserrat', system-ui, sans-serif;
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ── */
*, *::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); color: #0C0A09; background: #0A0908; line-height: 1.6; min-height: 100vh; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes glowDrift {
  0%   { opacity: 1; transform: scale(1) translate(0, 0); }
  100% { opacity: 0.85; transform: scale(1.04) translate(-8px, 6px); }
}

.fade-up { opacity: 0; animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.fade-up-d1 { animation-delay: 0.15s; }
.fade-up-d2 { animation-delay: 0.3s; }
.fade-up-d3 { animation-delay: 0.45s; }
.fade-up-d4 { animation-delay: 0.6s; }

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.625rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #FAFAF9;
  cursor: pointer;
}

.nav-logo span { color: var(--color-cta); }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250, 250, 249, 0.7);
  transition: color var(--transition);
  cursor: pointer;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--color-cta);
  transition: width var(--transition);
}

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

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { width: 100%; }

.nav-links a:focus-visible {
  outline: 2px solid var(--color-cta);
  outline-offset: 6px;
  border-radius: 2px;
}

/* ── Shared Dark Background ── */
.dark-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #0A0908 0%, #1C1917 40%, #171412 100%);
}

.dark-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 20% 35%, rgba(202, 138, 4, 0.10) 0%, transparent 70%),
    radial-gradient(ellipse 45% 55% at 75% 70%, rgba(202, 138, 4, 0.06) 0%, transparent 65%),
    radial-gradient(ellipse 40% 35% at 85% 15%, rgba(120, 113, 108, 0.07) 0%, transparent 60%),
    radial-gradient(circle at 50% 48%, rgba(250, 250, 249, 0.03) 0%, transparent 45%);
  animation: glowDrift 12s ease-in-out infinite alternate;
}

.dark-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.03;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 2rem;
  text-align: center;
}

.hero-content::before {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  background: var(--color-cta);
  margin: 0 auto 2rem;
  opacity: 0;
  animation: fadeIn 1s 0.2s forwards;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-cta);
  margin-bottom: 1.25rem;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 600;
  line-height: 1.15;
  color: #FAFAF9;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.hero-content h1 em {
  font-style: italic;
  color: var(--color-cta);
}

.hero-divider {
  width: 32px;
  height: 1px;
  background: rgba(202, 138, 4, 0.5);
  margin: 0 auto 2rem;
}

.hero-text {
  font-size: clamp(0.9375rem, 1.4vw, 1.0625rem);
  font-weight: 300;
  color: rgba(214, 211, 209, 0.9);
  line-height: 1.85;
  margin-bottom: 1.25rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-text:last-of-type { margin-bottom: 2.75rem; }
.hero-text strong { color: #FAFAF9; font-weight: 500; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 1.0625rem 2.75rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.btn:focus-visible { outline: 2px solid var(--color-cta); outline-offset: 4px; }

.btn-primary { background: var(--color-cta); color: #FAFAF9; }

.btn-primary:hover {
  background: var(--color-cta-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(202, 138, 4, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(202, 138, 4, 0.2);
}

.btn svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform var(--transition); }
.btn:hover svg { transform: translateX(3px); }

/* ── Contact Page ── */
.contact-dark {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem 3rem;
  overflow: hidden;
}

.contact-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
}

.contact-header-dark {
  text-align: center;
  margin-bottom: 2.5rem;
}

.contact-header-dark::before {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  background: var(--color-cta);
  margin: 0 auto 2rem;
  opacity: 0;
  animation: fadeIn 1s 0.2s forwards;
}

.contact-header-dark h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  color: #FAFAF9;
  margin-bottom: 0.75rem;
}

.contact-header-dark h1 em { font-style: italic; color: var(--color-cta); }

.contact-sub {
  font-size: 0.9375rem;
  color: rgba(214, 211, 209, 0.7);
  font-weight: 300;
}

/* ── Dark Form ── */
.form-dark {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 2.75rem;
}

.form-group-dark { margin-bottom: 1.5rem; }

.form-group-dark label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(214, 211, 209, 0.6);
  margin-bottom: 0.5rem;
}

.form-group-dark input,
.form-group-dark select {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: #FAFAF9;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form-group-dark input::placeholder { color: rgba(168, 162, 158, 0.5); font-weight: 300; }

.form-group-dark input:focus,
.form-group-dark select:focus {
  outline: none;
  border-color: var(--color-cta);
  box-shadow: 0 0 0 3px rgba(202, 138, 4, 0.15);
  background: rgba(255, 255, 255, 0.08);
}

.form-group-dark input.error,
.form-group-dark select.error {
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.error-message-dark {
  display: none;
  font-size: 0.8125rem;
  color: #F87171;
  margin-top: 0.375rem;
  font-weight: 400;
}

.error-message-dark.visible { display: block; }

.form-group-dark select option { background: #1C1917; color: #FAFAF9; }

.hidden { display: none !important; }

.location-row {
  display: flex;
  gap: 0.75rem;
  padding-bottom: 1.25rem; /* room for error messages */
}

.location-row > .select-wrapper-dark {
  flex: 1;
  min-width: 0; /* allow shrinking below content width */
}

.select-wrapper-dark { position: relative; }

.select-wrapper-dark > .error-message-dark {
  position: absolute;
  left: 0;
  top: 100%;
  white-space: nowrap;
}

.select-wrapper-dark select {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  padding-right: 2rem; /* room for the arrow */
}

.select-wrapper-dark::after {
  content: '';
  position: absolute;
  right: 1rem; top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid rgba(214, 211, 209, 0.4);
  pointer-events: none;
}

.form-submit { margin-top: 2.25rem; }
.form-submit .btn { width: 100%; justify-content: center; padding: 1.125rem; }

/* ── Toast ── */
.toast {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(calc(-100% - 3rem));
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
  background: var(--color-cta);
  color: #FAFAF9;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 200;
}

.toast.show { transform: translateX(-50%) translateY(0); }

.toast-text { flex: 1; }

.toast-close {
  background: none;
  border: none;
  color: rgba(250, 250, 249, 0.7);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.125rem;
  transition: color var(--transition);
}

.toast-close:hover { color: #FAFAF9; }

/* ── Responsive rules moved to css/mobile.css ── */

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .fade-up { opacity: 1; transform: none; }
}
