/* ========================================================================== 
   Variables
   ========================================================================== */

:root {
  /* Colors - Brand Palette */
  --color-background: #ffffff;
  --color-surface: #f9fafc;
  --color-surface-alt: #f3f4f8;

  --color-text: #111827;
  --color-text-soft: #4b5563;
  --color-text-muted: #6b7280;

  --color-primary: #1f3258; /* Deep navy */
  --color-primary-soft: #2b416f;
  --color-primary-light: #d8e1ff;

  --color-accent-gold: #c9a25b;
  --color-accent-gold-soft: #f4e4c4;
  --color-accent-champagne: #f7efe4;

  --color-success: #16a34a;
  --color-warning: #f59e0b;
  --color-danger: #dc2626;

  /* Neutral Grays */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2933;
  --gray-900: #111827;

  /* Typography */
  --font-sans: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "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-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: 0;
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.25rem;  /* 20px */
  --space-6: 1.5rem;   /* 24px */
  --space-7: 1.75rem;  /* 28px */
  --space-8: 2rem;     /* 32px */
  --space-10: 2.5rem;  /* 40px */
  --space-12: 3rem;    /* 48px */
  --space-16: 4rem;    /* 64px */
  --space-20: 5rem;    /* 80px */
  --space-24: 6rem;    /* 96px */

  /* Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-soft: 0 8px 20px rgba(15, 23, 42, 0.06);
  --shadow-medium: 0 16px 40px rgba(15, 23, 42, 0.12);
  --shadow-elevated: 0 22px 60px rgba(15, 23, 42, 0.18);

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

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

/* Reduced motion adjustments */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-base: 0ms;
    --transition-slow: 0ms;
  }
}

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

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

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

body {
  margin: 0;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
}

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

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

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

a {
  color: inherit;
}

/* Remove default list styles */
ul[role="list"],
ol[role="list"],
ul,
ol {
  list-style: none;
}

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

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

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

h1,
 h2,
 h3,
 h4,
 h5,
 h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: var(--line-height-tight);
  color: var(--color-primary);
}

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

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

h3 {
  font-size: clamp(var(--font-size-xl), 1.2vw + 1rem, var(--font-size-3xl));
  margin-bottom: var(--space-2);
}

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

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

strong {
  font-weight: 600;
}

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

a {
  text-decoration: none;
  color: var(--color-primary);
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-accent-gold);
}

/* Structural spacing between sections */
section {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

@media (min-width: 768px) {
  section {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
  }
}

/* ========================================================================== 
   Accessibility
   ========================================================================== */

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

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

/* Screen-reader only utility */
.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;
}

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

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

@media (min-width: 1024px) {
  .container {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }
}

/* 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-col {
  flex-direction: column;
}

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

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

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

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

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

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

/* Grid helpers */
.grid {
  display: grid;
}

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

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

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

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

/* Alignment & spacing utilities */
.text-center {
  text-align: center;
}

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

.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

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

.py-12 {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

/* Background helpers */
.bg-surface {
  background-color: var(--color-surface);
}

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

.bg-primary {
  background-color: var(--color-primary);
  color: #ffffff;
}

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

/* Text color helpers */
.text-muted {
  color: var(--color-text-muted);
}

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

/* Elevation & radius */
.shadow-soft {
  box-shadow: var(--shadow-soft);
}

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

.rounded-sm { border-radius: var(--radius-sm); }
.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); }

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.03em;
  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);
}

.btn-primary {
  background-image: linear-gradient(135deg, var(--color-primary) 0%, #090f1f 100%);
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-soft);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: rgba(31, 50, 88, 0.35);
}

.btn-outline:hover {
  background-color: rgba(248, 249, 252, 0.9);
  border-color: var(--color-primary);
}

.btn-gold {
  background-image: linear-gradient(135deg, var(--color-accent-gold) 0%, #f1c981 100%);
  color: #1f2933;
  box-shadow: var(--shadow-soft);
}

.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
}

.btn[disabled],
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-icon {
  padding-inline: 1rem;
}

/* Form elements */

.form-group {
  margin-bottom: var(--space-4);
}

.label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text);
}

.input,
.textarea,
.select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-size: var(--font-size-sm);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  background-color: #ffffff;
  color: var(--color-text);
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    background-color var(--transition-base);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--gray-400);
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--color-accent-gold);
  box-shadow: 0 0 0 1px rgba(201, 162, 91, 0.45);
}

.textarea {
  min-height: 7rem;
  resize: vertical;
}

.input[disabled],
.textarea[disabled],
.select[disabled] {
  background-color: var(--gray-100);
  cursor: not-allowed;
}

/* Card */

.card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-soft);
}

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

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

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

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

/* Hero / full-bleed visual wrapper (for sliders and key visual sections) */

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  color: #ffffff;
  background-color: #020617;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 0%, rgba(201, 162, 91, 0.26), transparent 55%),
              radial-gradient(circle at 80% 100%, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.98));
  mix-blend-mode: multiply;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  font-size: var(--font-size-sm);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent-gold);
  margin-bottom: var(--space-2);
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw + 1.2rem, 3.4rem);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-4);
  color: #ffffff;
}

.hero__subtitle {
  max-width: 38rem;
  font-size: var(--font-size-lg);
  color: #e5e7eb;
  margin-bottom: var(--space-6);
}

/* Media wrapper inside hero (for sliders / galleries) */

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-media img,
.hero-media picture,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.85));
}

/* Tag / badge for event labels */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background-color: rgba(249, 250, 251, 0.95);
  color: var(--color-primary);
}

.badge--gold {
  background-color: rgba(201, 162, 91, 0.08);
  color: var(--color-accent-gold);
}

/* Section heading block */

.section-heading {
  margin-bottom: var(--space-8);
  text-align: left;
}

.section-heading__eyebrow {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-accent-gold);
  margin-bottom: var(--space-2);
}

.section-heading__title {
  font-family: var(--font-serif);
  font-size: clamp(var(--font-size-2xl), 2vw + 1.2rem, var(--font-size-4xl));
  margin-bottom: var(--space-2);
}

.section-heading__subtitle {
  max-width: 36rem;
  color: var(--color-text-muted);
}

@media (min-width: 768px) {
  .section-heading--center {
    text-align: center;
  }

  .section-heading--center .section-heading__subtitle {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Header helpers (sticky behavior baseline) */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background-color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.site-header__inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav {
  display: none;
}

@media (min-width: 960px) {
  .site-nav {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.16em;
  }

  .site-nav a {
    position: relative;
    padding-bottom: 0.4rem;
    color: var(--color-text-soft);
  }

  .site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent-gold), #f1c981);
    transition: width var(--transition-base);
  }

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

  .site-nav a[aria-current="page"] {
    color: var(--color-primary);
  }
}

/* Footer baseline */

.site-footer {
  border-top: 1px solid var(--gray-200);
  background-color: #ffffff;
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}

.site-footer__brand {
  font-family: var(--font-serif);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-2);
}

.site-footer__meta {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.6rem;
  font-size: var(--font-size-sm);
}

.site-footer__nav a {
  color: var(--color-text-soft);
}

.site-footer__nav a:hover {
  color: var(--color-accent-gold);
}

/* Simple fade-in utility for sections (can be combined with JS) */

.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity var(--transition-slow),
    transform var(--transition-slow);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}
