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

:root {
  /* Color Palette - Venetian Luxury */
  --color-bg: #f7f3ed; /* ivory / light parchment */
  --color-bg-alt: #fdfaf5; /* champagne tint */
  --color-surface: #ffffff; /* marble white */
  --color-surface-alt: #f2e8da; /* beige nacré */

  --color-text: #2c2520; /* rich dark espresso */
  --color-text-soft: #5b4e42;
  --color-text-muted: #8a7a6b;

  --color-primary: #a88b5a; /* light gold */
  --color-primary-soft: #d7c3a0;
  --color-primary-strong: #8a6f43;

  --color-accent: #8ea7c7; /* bleu poudré */

  --color-success: #2e7d32;
  --color-warning: #f2a02a;
  --color-danger: #c0392b;

  --color-21bar-bg: #D62828; /* mandatory 21+ bar */
  --color-21bar-text: #ffffff;

  --gray-50: #faf7f3;
  --gray-100: #f0e7dc;
  --gray-200: #e0d4c3;
  --gray-300: #c9b59b;
  --gray-400: #b1977a;
  --gray-500: #947a5f;
  --gray-600: #78604b;
  --gray-700: #5b4736;
  --gray-800: #3f3024;
  --gray-900: #271d17;

  /* Typography */
  --font-sans: "Source Sans Pro", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --font-serif: "Playfair Display", "Cormorant Garamond", "Times New Roman",
    serif; /* for headings */
  --font-decorative: "Cormorant Garamond", "Playfair Display", 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.25rem;  /* 20px */
  --font-size-xl: 1.5rem;   /* 24px */
  --font-size-2xl: 2rem;    /* 32px */
  --font-size-3xl: 2.5rem;  /* 40px */
  --font-size-4xl: 3rem;    /* 48px */

  --line-height-tight: 1.2;
  --line-height-snug: 1.35;
  --line-height-base: 1.6;
  --line-height-relaxed: 1.8;

  /* Spacing scale (0–96px) */
  --space-0: 0;
  --space-1: 0.125rem; /* 2px */
  --space-2: 0.25rem;  /* 4px */
  --space-3: 0.5rem;   /* 8px */
  --space-4: 0.75rem;  /* 12px */
  --space-5: 1rem;     /* 16px */
  --space-6: 1.5rem;   /* 24px */
  --space-7: 2rem;     /* 32px */
  --space-8: 2.5rem;   /* 40px */
  --space-9: 3rem;     /* 48px */
  --space-10: 4rem;    /* 64px */
  --space-11: 5rem;    /* 80px */
  --space-12: 6rem;    /* 96px */

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

  /* Shadows (soft & elegant) */
  --shadow-sm: 0 6px 16px rgba(15, 10, 6, 0.08);
  --shadow-md: 0 14px 40px rgba(15, 10, 6, 0.16);
  --shadow-soft-inner: inset 0 1px 0 rgba(255, 255, 255, 0.5);

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

  /* Layout */
  --container-max-width: 1120px;
  --header-height: 80px; /* approximate, adjust with actual header */
  --bar-21-height: 44px; /* mandatory 21+ bar height */
}

@media (min-width: 768px) {
  :root {
    --header-height: 96px;
    --bar-21-height: 48px;
  }
}

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

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

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

body {
  margin: 0;
}

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

ul,
ol {
  padding-left: 1.25rem;
}

img,
svg,
video,
canvas,
audio,
iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  padding: 0;
}

[hidden] {
  display: none !important;
}

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

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background: radial-gradient(circle at top left, #faf4eb, var(--color-bg))
    fixed;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main {
  min-height: 60vh;
}

/* Ensure layout accounts for fixed 21+ bar + header */
body.has-fixed-header main,
body main.site-main {
  padding-top: calc(var(--bar-21-height) + var(--header-height));
}

/* Typography - headings with Venetian flair */

h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--color-text);
  text-transform: none;
}

h1,
.h1 {
  font-size: clamp(2.25rem, 3vw + 1.25rem, 3rem);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-7);
}

h2,
.h2 {
  font-size: clamp(1.75rem, 2.4vw + 1rem, 2.25rem);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-5);
}

h3,
.h3 {
  font-size: 1.5rem;
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-4);
}

h4,
.h4 {
  font-size: 1.25rem;
  margin-bottom: var(--space-3);
}

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

p.lead {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  color: var(--color-text);
}

strong {
  font-weight: 600;
}

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

/* Links */

a {
  color: var(--color-primary-strong);
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color var(--transition-base),
    text-shadow var(--transition-base),
    opacity var(--transition-fast);
}

a:hover {
  color: var(--color-primary);
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.4);
}

a:active {
  opacity: 0.85;
}

/* Lists inside rich text */

.rich-text ul,
.rich-text ol {
  margin-bottom: var(--space-4);
}

.rich-text /* ========================================================================
   Accessibility & Reduced Motion
   ======================================================================== */

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

@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;
  }
}

/* Screen reader only */

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

/* ========================================================================
   Mandatory 21+ Notification Bar
   ======================================================================== */

.bar-21 {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  right: 0;
  height: var(--bar-21-height);
  background-color: var(--color-21bar-bg);
  color: var(--color-21bar-text);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0 var(--space-4);
}

@media (min-width: 768px) {
  .bar-21 {
    font-size: 0.82rem;
  }
}

/* To ensure header sits below mandatory bar */

.site-header {
  position: fixed;
  top: var(--bar-21-height);
  left: 0;
  right: 0;
  z-index: 9990;
}

body.has-fixed-header {
  padding-top: calc(var(--bar-21-height) + var(--header-height));
}

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

/* Container */

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

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

/* Sections spacing */

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

.section--alt {
  background: linear-gradient(180deg, var(--color-bg-alt), #fbf7f0);
}

/* Flex utilities */

.flex {
  display: flex;
}

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

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

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

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

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

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

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

.justify-between {
  justify-content: space-between;
}

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

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

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

/* Grid utilities */

.grid {
  display: grid;
}

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

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

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

/* Alignment & text utilities */

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

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

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

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

/* Spacing utilities (subset) */

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

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

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

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

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

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

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

/* Width utilities */

.w-full {
  width: 100%;
}

/* Decorative Venetian motif helpers (for borders / separators) */

.motif-border-top {
  position: relative;
  padding-top: var(--space-7);
}

.motif-border-top::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(168, 139, 90, 0.9),
    transparent
  );
}

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

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(138, 111, 67, 0.2);
  background: radial-gradient(circle at 10% 0, #fff7e9, #ead8bf);
  box-shadow: var(--shadow-sm), var(--shadow-soft-inner);
  color: #3a2714;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-fast),
    color var(--transition-base),
    border-color var(--transition-base);
}

.btn:hover {
  transform: translateY(-1px);
  background: radial-gradient(circle at 20% 0, #fffaf0, #e0c9a4);
  box-shadow: var(--shadow-md);
  border-color: rgba(138, 111, 67, 0.45);
}

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

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

.btn--ghost {
  background: transparent;
  border-color: rgba(168, 139, 90, 0.4);
  color: var(--color-text);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.btn--secondary {
  background: linear-gradient(135deg, #f9fbff, #dde6f3);
  color: #283346;
  border-color: rgba(142, 167, 199, 0.5);
}

/* Form elements */

.input,
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 122, 95, 0.32);
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--color-text);
  font-size: 0.95rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: border-color var(--transition-base),
    box-shadow var(--transition-base),
    background-color var(--transition-base);
}

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

.input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px rgba(142, 167, 199, 0.55), var(--shadow-sm);
  background-color: #ffffff;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
}

label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--font-size-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.form-field {
  margin-bottom: var(--space-5);
}

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

/* Card component (for events, testimonials, etc.) */

.card {
  position: relative;
  background: linear-gradient(145deg, var(--color-surface), #faf3e6);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(176, 151, 122, 0.26);
  overflow: hidden;
}

.card::before {
  /* subtle top highlight */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 0 0,
    rgba(255, 255, 255, 0.8),
    transparent 55%
  );
  pointer-events: none;
}

.card--soft {
  background: rgba(255, 255, 255, 0.86);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}

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

.card-title {
  font-family: var(--font-decorative);
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-meta {
  font-size: var(--font-size-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.card-body {
  position: relative;
  z-index: 1;
}

/* Hero imagery & slider helpers */

.hero {
  position: relative;
  color: var(--color-text);
  background-color: #15110d;
  overflow: hidden;
}

.hero::before {
  /* soft vignette overlay for luxury photos */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 10% 0,
      rgba(248, 230, 199, 0.5),
      transparent 55%
    ),
    radial-gradient(circle at 90% 100%, rgba(17, 23, 39, 0.7), transparent 60%);
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--space-10));
  padding-bottom: calc(var(--space-10));
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4vw + 1.5rem, 3.6rem);
  line-height: 1.1;
  color: #fdfaf6;
}

.hero-subtitle {
  margin-top: var(--space-4);
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: var(--line-height-relaxed);
  color: rgba(250, 244, 236, 0.9);
}

/* Footer basics incl. mandatory disclaimer */

.site-footer {
  background: #14100d;
  color: #f2e6d5;
  padding-top: var(--space-10);
  padding-bottom: var(--space-7);
}

.site-footer a {
  color: #f2e6d5;
}

.site-footer a:hover {
  color: var(--color-primary-soft);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-7);
  margin-bottom: var(--space-6);
}

.footer-heading {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
  color: #f8f0e3;
}

.footer-disclaimer {
  border-top: 1px solid rgba(252, 244, 231, 0.18);
  padding-top: var(--space-4);
  font-size: 0.8rem;
  line-height: 1.8;
  color: rgba(252, 244, 231, 0.9);
}

/* Badges / chips (e.g., SEO keyword tags) */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: rgba(168, 139, 90, 0.08);
  border: 1px solid rgba(168, 139, 90, 0.28);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Tag list for SEO terms */

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

/* Image frames (gallery) */

.image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.image-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.45);
  mix-blend-mode: screen;
  pointer-events: none;
}

/* Simple navigation styles for header (links only; structure handled in layout) */

.nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-link {
  position: relative;
  font-size: 0.86rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text);
  opacity: 0.86;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(168, 139, 90, 0.9),
    transparent
  );
  transition: width var(--transition-base);
}

.nav-link:hover {
  opacity: 1;
}

.nav-link:hover::after,
.nav-link--active::after {
  width: 100%;
}

.nav-link--active {
  color: var(--color-primary-strong);
  opacity: 1;
}

/* Breadcrumbs for inner pages */

.breadcrumbs {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

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

.breadcrumbs a:hover {
  color: var(--color-primary-strong);
}

.breadcrumbs-separator {
  margin: 0 0.4rem;
  opacity: 0.6;
}

/* Messages (info, success, warning, danger) */

.alert {
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  font-size: 0.9rem;
  border: 1px solid transparent;
}

.alert--info {
  background: rgba(142, 167, 199, 0.07);
  border-color: rgba(142, 167, 199, 0.32);
  color: #1f2933;
}

.alert--success {
  background: rgba(46, 125, 50, 0.06);
  border-color: rgba(46, 125, 50, 0.25);
}

.alert--warning {
  background: rgba(242, 160, 42, 0.07);
  border-color: rgba(242, 160, 42, 0.28);
}

.alert--danger {
  background: rgba(192, 57, 43, 0.07);
  border-color: rgba(192, 57, 43, 0.32);
}

/* Tables for legal pages */

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-6);
}

th,
td {
  border-bottom: 1px solid rgba(181, 157, 129, 0.36);
  padding: 0.6rem 0.4rem;
  text-align: left;
}

th {
  font-weight: 600;
  font-family: var(--font-serif);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Responsive helpers */

.hide-mobile {
  display: none;
}

@media (min-width: 768px) {
  .hide-mobile {
    display: initial;
  }

  .hide-desktop {
    display: none !important;
  }
}

/* End of base.css */
