:root {
  /* Color Palette */
  --color-background: #0f1114; /* deep charcoal for immersive contrast */
  --color-surface: #171a1f; /* elevated surfaces */
  --color-surface-soft: #1f2329;
  --color-text: #f7f3ea; /* warm off-white */
  --color-text-muted: #b0a89c;
  --color-primary: #f0b15c; /* soft amber/gold */
  --color-primary-soft: rgba(240, 177, 92, 0.15);
  --color-success: #7fbf7f;
  --color-warning: #f3c97a;
  --color-danger: #e46a6a;

  --color-border-subtle: #2a2f36;
  --color-border-strong: #3a4048;

  /* Neutral grays (warm-leaning) */
  --gray-50: #f8f5f0;
  --gray-100: #e9e2d7;
  --gray-200: #d5c8b5;
  --gray-300: #bba992;
  --gray-400: #9a8570;
  --gray-500: #7c6958;
  --gray-600: #5f5043;
  --gray-700: #40362f;
  --gray-800: #272320;
  --gray-900: #151310;

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

  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-md: 1rem;      /* 16px */
  --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-normal: 1.5;
  --line-height-relaxed: 1.75;

  /* Spacing scale (px) */
  --space-0: 0;
  --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-16: 32px;
  --space-20: 40px;
  --space-24: 48px;
  --space-28: 56px;
  --space-32: 64px;
  --space-40: 80px;
  --space-48: 96px;
  --space-56: 112px;
  --space-64: 128px;
  --space-72: 144px;
  --space-80: 160px;
  --space-96: 192px;

  /* Radius */
  --radius-none: 0;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Shadows (soft, light-inspired) */
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-medium: 0 14px 45px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 32px rgba(240, 177, 92, 0.35);

  /* Transitions */
  --transition-fast: 150ms ease-out;
  --transition-normal: 220ms ease-out;
  --transition-slow: 320ms ease-out;
}

/* Prefer-reduced-motion support */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-normal: 0ms;
    --transition-slow: 0ms;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* =====================================
   Reset / Normalize
   ===================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
}

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section {
  display: block;
}

ol,
ul {
  list-style: none;
}

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

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  background: transparent;
  border-radius: 0;
}

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

textarea {
  resize: vertical;
}

[hidden] {
  display: none !important;
}

/* =====================================
   Base Styles
   ===================================== */

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-md);
  line-height: var(--line-height-relaxed);
  background-color: var(--color-background);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

p + p {
  margin-top: var(--space-2);
}

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

h1 {
  font-size: clamp(var(--font-size-3xl), 4vw, var(--font-size-5xl));
  margin-bottom: var(--space-6);
}

h2 {
  font-size: clamp(var(--font-size-2xl), 3vw, var(--font-size-4xl));
  margin-bottom: var(--space-5);
}

h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-4);
}

h4 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-3);
}

h5 {
  font-size: var(--font-size-md);
  margin-bottom: var(--space-2);
}

h6 {
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-2);
}

strong,
b {
  font-weight: 600;
}

em,
i {
  font-style: italic;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  text-underline-offset: 2px;
  transition: color var(--transition-normal),
    text-decoration-color var(--transition-normal),
    opacity var(--transition-fast);
}

a:hover {
  color: #f5c578;
}

a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

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

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}

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

/* =====================================
   Accessibility & Focus
   ===================================== */

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* 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;
}

/* =====================================
   Layout Utilities
   ===================================== */

.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
  max-width: 1120px;
}

@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }
}

/* Flex helpers */

.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

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

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

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

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

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

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

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

.gap-8 {
  gap: var(--space-8);
}

/* Grid helpers */

.grid {
  display: grid;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-8);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-8);
}

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

/* Spacing utilities (selected, extend as needed) */

.mt-0 {
  margin-top: 0 !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mt-4 {
  margin-top: var(--space-4) !important;
}

.mb-4 {
  margin-bottom: var(--space-4) !important;
}

.mt-8 {
  margin-top: var(--space-8) !important;
}

.mb-8 {
  margin-bottom: var(--space-8) !important;
}

.py-8 {
  padding-top: var(--space-8) !important;
  padding-bottom: var(--space-8) !important;
}

.py-16 {
  padding-top: var(--space-16) !important;
  padding-bottom: var(--space-16) !important;
}

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

/* Buttons */

.button,
button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.7em 1.6em;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: linear-gradient(135deg, #f0b15c, #f6d297);
  color: #382819!important;
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: background var(--transition-normal),
    box-shadow var(--transition-normal),
    transform var(--transition-fast),
    color var(--transition-fast),
    opacity var(--transition-fast);
}

.button:hover,
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover {
  background: linear-gradient(135deg, #f6d297, #ffe3b0);
  box-shadow: var(--shadow-medium), var(--shadow-glow);
  transform: translateY(-1px);
}

.button:active,
button:active,
input[type="button"]:active,
input[type="submit"]:active,
input[type="reset"]:active {
  transform: translateY(0);
  box-shadow: var(--shadow-soft);
}

.button:disabled,
button:disabled,
input[type="button"]:disabled,
input[type="submit"]:disabled,
input[type="reset"]:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

.button--ghost {
  background: transparent;
  color: var(--color-text)!important;
  border-color: var(--color-border-strong);
  box-shadow: none;
}

.button--ghost:hover {
  background: var(--color-surface-soft);
  box-shadow: var(--shadow-soft);
}

.button--secondary {
  background: var(--color-surface-soft);
  color: var(--color-text)!important;
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-soft);
}

.button--secondary:hover {
  background: #242932;
}

/* Form elements */

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

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="search"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 0.7em 0.9em;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  background-color: #111317;
  color: var(--color-text);
  font-size: var(--font-size-sm);
  transition: border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-fast);
}

input::placeholder,
textarea::placeholder {
  color: var(--color-text-muted);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary-soft),
    0 0 0 1px var(--color-primary);
}

input:disabled,
textarea:disabled,
select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Card */

.card {
  background: radial-gradient(circle at top left, rgba(240, 177, 92, 0.12), transparent 55%),
    var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: var(--space-8);
  box-shadow: var(--shadow-soft);
  color: var(--color-text);
}

.card--soft {
  background: var(--color-surface-soft);
  box-shadow: none;
}

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

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

.card-subtitle {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.card-body {
  font-size: var(--font-size-sm);
}

/* Subtle highlight for key numbers/prices */
.highlight-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.35em 0.8em;
  border-radius: var(--radius-pill);
  background: rgba(240, 177, 92, 0.12);
  color: var(--color-primary);
  font-size: var(--font-size-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* =====================================
   Media helpers
   ===================================== */

.media-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-rounded {
  border-radius: var(--radius-lg);
}

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

/* =====================================
   Section patterns (optional helpers)
   ===================================== */

.section {
  padding-top: var(--space-24);
  padding-bottom: var(--space-24);
}

.section--inset {
  background: radial-gradient(circle at top, rgba(240, 177, 92, 0.12), transparent 55%),
    linear-gradient(145deg, #0e1013, #14171c);
}

.section--soft {
  background: #13161b;
}

.section-title {
  margin-bottom: var(--space-8);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  font-size: var(--font-size-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.section-eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, rgba(240, 177, 92, 0.4), transparent);
}

/* =====================================
   Misc helpers
   ===================================== */

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

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

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

.shadow-glow {
  box-shadow: var(--shadow-glow);
}

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

.rounded-full {
  border-radius: var(--radius-pill);
}

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

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

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

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