/* =============================================
   Variables
   ============================================= */
:root {
  /* Color Palette */
  --color-bg: #050813; /* deep cinematic navy-black */
  --color-bg-elevated: rgba(11, 16, 32, 0.96);
  --color-bg-soft: #101523;
  --color-surface-glass: rgba(13, 20, 35, 0.72);
  --color-text: #f7f3ea; /* soft ivory */
  --color-text-muted: #c2b9a8;
  --color-primary: #d5b686; /* champagne gold */
  --color-primary-soft: rgba(213, 182, 134, 0.16);
  --color-success: #7bbf9a; /* subtle fresh accent */
  --color-warning: #e0a75a;
  --color-danger: #b85e63; /* muted ruby */
  --color-danger-soft: rgba(184, 94, 99, 0.15);
  --color-ivory: #f5efe3;
  --color-walnut: #5b3d2a; /* warm walnut brown */
  --color-charcoal: #18191f;
  --color-border-subtle: rgba(245, 239, 227, 0.08);
  --color-border-strong: rgba(245, 239, 227, 0.18);
  --color-ruby-accent: #b32c3b; /* for very small highlights only */

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --font-display: "Playfair Display", "Times New Roman", serif;

  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-base: 1rem;    /* 16px */
  --font-size-md: 1.0625rem; /* 17px */
  --font-size-lg: 1.125rem;  /* 18px */
  --font-size-xl: 1.25rem;   /* 20px */
  --font-size-2xl: 1.5rem;   /* 24px */
  --font-size-3xl: 1.875rem; /* 30px */
  --font-size-4xl: 2.25rem;  /* 36px */
  --font-size-5xl: 3rem;     /* 48px */

  --line-height-tight: 1.2;
  --line-height-snug: 1.35;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  /* Spacing scale (0–96px) */
  --space-0: 0px;
  --space-1: 2px;
  --space-2: 4px;
  --space-3: 6px;
  --space-4: 8px;
  --space-5: 10px;
  --space-6: 12px;
  --space-8: 16px;
  --space-10: 20px;
  --space-12: 24px;
  --space-14: 28px;
  --space-16: 32px;
  --space-20: 40px;
  --space-24: 48px;
  --space-28: 56px;
  --space-32: 64px;
  --space-36: 72px;
  --space-40: 80px;
  --space-48: 96px;

  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.45);
  --shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-elevated: 0 26px 80px rgba(0, 0, 0, 0.7);
  --shadow-focus: 0 0 0 1px rgba(213, 182, 134, 0.85), 0 0 0 6px rgba(213, 182, 134, 0.35);

  /* Transitions */
  --transition-fast: 120ms ease-out;
  --transition-base: 200ms ease;
  --transition-slow: 320ms ease;

  /* Layout */
  --container-max-width: 1120px;
  --nav-height: 72px;
}

/* =============================================
   Reset / Normalize
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
}

h1, h2, h3, h4, h5, h6,
p, figure, blockquote,
dl, dd {
  margin: 0;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  margin: 0;
  padding: 0;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  border: none;
  padding: 0;
  background: none;
}

a {
  text-decoration: none;
  color: inherit;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

body,
html {
  min-height: 100%;
}

/* =============================================
   Base Styles
   ============================================= */
body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  background-color: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  min-height: calc(100vh - var(--nav-height));
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: var(--line-height-tight);
  color: var(--color-ivory);
}

h1 {
  font-size: var(--font-size-5xl);
  letter-spacing: 0.02em;
}

h2 {
  font-size: var(--font-size-4xl);
}

h3 {
  font-size: var(--font-size-3xl);
}

h4 {
  font-size: var(--font-size-2xl);
}

h5 {
  font-size: var(--font-size-xl);
}

h6 {
  font-size: var(--font-size-lg);
}

p {
  margin-bottom: var(--space-6);
  color: var(--color-text);
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 600;
}

small {
  font-size: var(--font-size-xs);
}

a {
  position: relative;
  cursor: pointer;
  transition: color var(--transition-base), opacity var(--transition-fast);
}

/* Soft lounge link underline on hover */
a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--color-primary), rgba(213, 182, 134, 0.1));
  opacity: 0.85;
  transition: width var(--transition-base), opacity var(--transition-base);
}

a:not(.btn):hover::after {
  width: 100%;
  opacity: 1;
}

::selection {
  background: rgba(213, 182, 134, 0.18);
  color: var(--color-ivory);
}

hr {
  border: 0;
  border-top: 1px solid var(--color-border-subtle);
  margin: var(--space-16) 0;
}

/* =============================================
   Accessibility & Motion
   ============================================= */
:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: var(--radius-sm);
}

:focus {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =============================================
   Layout Utilities
   ============================================= */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: var(--space-8);
}

@media (min-width: 1024px) {
  .container {
    padding-inline: var(--space-16);
  }
}

.section {
  padding-block: var(--space-32);
}

.section--tight {
  padding-block: var(--space-24);
}

.section--hero {
  padding-block: var(--space-40);
}

/* Flex helpers */
.flex {
  display: flex;
}

.flex-row {
  flex-direction: row;
}

.flex-column {
  flex-direction: column;
}

.flex-center {
  justify-content: center;
  align-items: center;
}

.flex-between {
  justify-content: space-between;
  align-items: center;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-xs {
  gap: var(--space-4);
}

.gap-sm {
  gap: var(--space-6);
}

.gap-md {
  gap: var(--space-10);
}

.gap-lg {
  gap: var(--space-16);
}

.gap-xl {
  gap: var(--space-24);
}

/* Grid helpers */
.grid {
  display: grid;
  gap: var(--space-16);
}

.grid-2 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Width helpers */
.w-full {
  width: 100%;
}

.max-w-sm {
  max-width: 440px;
}

.max-w-md {
  max-width: 640px;
}

.max-w-lg {
  max-width: 820px;
}

/* Spacing utilities (subset) */
.mt-0 { margin-top: 0; }
.mt-xs { margin-top: var(--space-4); }
.mt-sm { margin-top: var(--space-8); }
.mt-md { margin-top: var(--space-16); }
.mt-lg { margin-top: var(--space-24); }
.mt-xl { margin-top: var(--space-32); }

.mb-0 { margin-bottom: 0; }
.mb-xs { margin-bottom: var(--space-4); }
.mb-sm { margin-bottom: var(--space-8); }
.mb-md { margin-bottom: var(--space-16); }
.mb-lg { margin-bottom: var(--space-24); }
.mb-xl { margin-bottom: var(--space-32); }

.pt-section { padding-top: var(--space-32); }
.pb-section { padding-bottom: var(--space-32); }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

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

/* Screen-reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =============================================
   Components
   ============================================= */

/* Glassmorphism header shell (generic, can be reused) */
.glass-shell {
  background: var(--color-surface-glass);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-subtle);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--transition-base),
              color var(--transition-base),
              border-color var(--transition-base),
              box-shadow var(--transition-base),
              transform var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.24), transparent 55%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.btn:hover::after {
  opacity: 1;
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #f1d5a3);
  color: #24180c;
  box-shadow: 0 18px 40px rgba(213, 182, 134, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 22px 60px rgba(213, 182, 134, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: rgba(213, 182, 134, 0.7);
  box-shadow: 0 0 0 1px rgba(213, 182, 134, 0.4);
}

.btn-outline:hover {
  background: rgba(213, 182, 134, 0.06);
}

.btn-ghost {
  background: rgba(5, 8, 19, 0.7);
  color: var(--color-ivory);
  border-color: rgba(245, 239, 227, 0.1);
}

.btn-ghost:hover {
  background: rgba(16, 21, 35, 0.9);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

/* Inputs */
.input,
textarea,
select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  background: rgba(11, 16, 32, 0.7);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  transition: border-color var(--transition-base),
              box-shadow var(--transition-base),
              background-color var(--transition-base);
}

.input::placeholder,
textarea::placeholder {
  color: rgba(242, 238, 228, 0.5);
}

.input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  border-color: rgba(213, 182, 134, 0.85);
  box-shadow: 0 0 0 1px rgba(213, 182, 134, 0.7), 0 0 0 8px rgba(213, 182, 134, 0.22);
  background-color: rgba(11, 16, 32, 0.9);
}

.input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--color-danger);
  background: var(--color-danger-soft);
}

label {
  display: inline-block;
  margin-bottom: var(--space-4);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.form-help {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
}

.form-error {
  font-size: var(--font-size-xs);
  color: var(--color-danger);
  margin-top: var(--space-3);
}

/* Cards */
.card {
  background: radial-gradient(circle at 0 0, rgba(213, 182, 134, 0.12), transparent 58%),
              radial-gradient(circle at 100% 100%, rgba(179, 44, 59, 0.12), transparent 60%),
              linear-gradient(135deg, rgba(16, 21, 35, 0.96), rgba(5, 8, 19, 0.98));
  border-radius: var(--radius-xl);
  border: 1px solid rgba(245, 239, 227, 0.08);
  padding: var(--space-16);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg,
              rgba(255, 255, 255, 0.12),
              transparent 40%,
              transparent 60%,
              rgba(179, 44, 59, 0.18));
  mix-blend-mode: soft-light;
  opacity: 0.55;
  pointer-events: none;
}

.card > * {
  position: relative;
}

.card--subtle {
  background: rgba(8, 10, 20, 0.9);
  box-shadow: var(--shadow-subtle);
}

.card-header {
  margin-bottom: var(--space-10);
}

.card-title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-4);
}

.card-meta {
  font-size: var(--font-size-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Timeline / process accent line */
.timeline-line {
  position: relative;
  padding-left: 1.75rem;
}

.timeline-line::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 0.3rem;
  bottom: 0.3rem;
  width: 1px;
  background: linear-gradient(to bottom, rgba(213, 182, 134, 0.7), rgba(179, 44, 59, 0.6));
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--color-primary) 0, var(--color-walnut) 45%, transparent 70%);
  box-shadow: 0 0 0 4px rgba(213, 182, 134, 0.18);
}

/* Tag / pill */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.19rem 0.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(245, 239, 227, 0.18);
  font-size: var(--font-size-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: rgba(5, 8, 19, 0.8);
}

.tag--ruby {
  border-color: rgba(179, 44, 59, 0.8);
  color: var(--color-ruby-accent);
}

/* FAQ basic shell */
.faq-item {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-subtle);
  background: rgba(10, 13, 23, 0.92);
  padding: var(--space-10) var(--space-12);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-8);
  cursor: pointer;
}

.faq-question-title {
  font-size: var(--font-size-lg);
}

.faq-answer {
  margin-top: var(--space-8);
  color: var(--color-text-muted);
}

/* Hero cinematic overlay utility */
.hero-overlay {
  position: relative;
}

.hero-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(213, 182, 134, 0.18), transparent 50%),
              radial-gradient(circle at 80% 100%, rgba(179, 44, 59, 0.18), transparent 55%),
              linear-gradient(to bottom, rgba(5, 8, 19, 0.7), rgba(5, 8, 19, 0.95));
  mix-blend-mode: soft-light;
  pointer-events: none;
}

/* Footer layout shell */
.footer-shell {
  border-top: 1px solid rgba(245, 239, 227, 0.12);
  background: radial-gradient(circle at top left, rgba(213, 182, 134, 0.12), transparent 55%),
              radial-gradient(circle at bottom right, rgba(179, 44, 59, 0.12), transparent 60%),
              #050813;
  padding-top: var(--space-24);
  padding-bottom: var(--space-20);
}

.footer-meta {
  border-top: 1px solid rgba(245, 239, 227, 0.12);
  margin-top: var(--space-20);
  padding-top: var(--space-12);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

/* Decorative card-line accent (for footer or section tops) */
.card-line-accent {
  position: relative;
  padding-top: var(--space-10);
}

.card-line-accent::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, rgba(213, 182, 134, 0.8), rgba(179, 44, 59, 0.2));
}

/* =============================================
   Utility Colours
   ============================================= */
.bg-soft {
  background-color: var(--color-bg-soft);
}

.bg-elevated {
  background-color: var(--color-bg-elevated);
}

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

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

.border-subtle {
  border: 1px solid var(--color-border-subtle);
}

.border-strong {
  border: 1px solid var(--color-border-strong);
}

.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-pill { border-radius: var(--radius-pill); }

.shadow-soft { box-shadow: var(--shadow-soft); }
.shadow-subtle { box-shadow: var(--shadow-subtle); }
.shadow-elevated { box-shadow: var(--shadow-elevated); }

/* =============================================
   Page-Specific Foundations (generic)
   ============================================= */

.page-hero-title {
  font-size: clamp(2.1rem, 3vw, 2.8rem);
  letter-spacing: 0.03em;
}

.page-intro {
  max-width: 720px;
  color: var(--color-text-muted);
}

.badge-inline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  background: rgba(5, 8, 19, 0.9);
  border: 1px solid rgba(245, 239, 227, 0.16);
  font-size: var(--font-size-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(213, 182, 134, 0.35);
}

/* Thank-you / confirmation shell */
.notice-soft {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(213, 182, 134, 0.32);
  background: radial-gradient(circle at 0 0, rgba(213, 182, 134, 0.16), transparent 60%),
              rgba(5, 8, 19, 0.96);
  padding: var(--space-16);
}

.notice-soft--info {
  border-color: rgba(123, 191, 154, 0.55);
}

.notice-soft--warning {
  border-color: rgba(224, 167, 90, 0.7);
}

.notice-soft--danger {
  border-color: rgba(184, 94, 99, 0.8);
}

/* End of base.css */
