/* ==========================================================================
   Variables
   ========================================================================== */
:root {
  /* Color Palette – warm, premium, welcoming */
  --color-bg: #f5f1e8;               /* warm ivory background */
  --color-bg-soft: #faf6ef;          /* slightly lighter surfaces */
  --color-surface: #ffffff;          /* cards, elevated blocks */
  --color-surface-alt: #f0e6d8;      /* subtle section contrast */

  --color-text: #2b2520;             /* primary text – deep warm brown */
  --color-text-muted: #7a6e63;       /* secondary text */
  --color-border-subtle: #e0d6c7;

  --color-primary: #c99a4a;          /* soft gold for CTAs */
  --color-primary-soft: rgba(201, 154, 74, 0.12);
  --color-primary-dark: #a77e38;

  --color-success: #4c8a4f;
  --color-warning: #c28b2c;
  --color-danger: #b5463b;

  --color-gray-50: #fbfaf7;
  --color-gray-100: #f2ebe2;
  --color-gray-200: #e3d7c5;
  --color-gray-300: #d2c2ac;
  --color-gray-400: #bda892;
  --color-gray-500: #a38d77;
  --color-gray-600: #87705b;
  --color-gray-700: #6a5746;
  --color-gray-800: #4b3c30;
  --color-gray-900: #2f241c;

  /* Typography – sophisticated & legible */
  --font-sans: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --font-serif-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 – large hero headings */

  --line-height-tight: 1.2;
  --line-height-snug: 1.35;
  --line-height-normal: 1.6;

  /* 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-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: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Shadows – soft, atmospheric */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.14);
  --shadow-lg: 0 20px 60px rgba(15, 10, 6, 0.30);

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

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

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

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

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

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

body {
  margin: 0;
}

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

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

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

img {
  height: auto;
}

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

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

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

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

/* Remove default focus outline: we will style focus-visible explicitly */
:focus {
  outline: none;
}

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

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

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

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

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

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

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

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

h6 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-1);
}

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

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

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

strong {
  font-weight: 600;
}

a {
  position: relative;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-primary-dark);
}

/* Underline only on hover for text links */
a.link-underline {
  text-decoration: none;
}

a.link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

a.link-underline:hover::after,
 a.link-underline:focus-visible::after {
  transform: scaleX(1);
}

hr {
  border: none;
  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;
}

.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%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

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

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

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

.section__header {
  max-width: 680px;
  margin: 0 auto var(--space-8);
  text-align: center;
}

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

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

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

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

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

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

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

.justify-end {
  justify-content: flex-end;
}

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

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

.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(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));
  }
}

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

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

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

.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); }

.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }

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

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

/* ==========================================================================
   Components – Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: var(--font-size-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  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);
  white-space: nowrap;
}

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

.btn--primary {
  background-color: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover:not(:disabled):not([aria-disabled="true"]) {
  background-color: var(--color-primary-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn--primary:active:not(:disabled):not([aria-disabled="true"]) {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-gray-900);
  border-color: rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(8px);
}

.btn--secondary:hover:not(:disabled):not([aria-disabled="true"]) {
  background-color: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.1);
}

.btn--ghost {
  background-color: transparent;
  color: var(--color-primary);
}

.btn--ghost:hover:not(:disabled):not([aria-disabled="true"]) {
  background-color: var(--color-primary-soft);
}

.btn--sm {
  padding: 0.5rem 1.1rem;
  font-size: var(--font-size-xs);
}

.btn--lg {
  padding: 0.9rem 2rem;
  font-size: var(--font-size-md);
}

/* ==========================================================================
   Components – Form Elements
   ========================================================================== */
.input,
.textarea,
.select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  background-color: #fff;
  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: var(--color-text-muted);
  opacity: 0.8;
}

.input:focus-visible,
.textarea:focus-visible,
.select:focus-visible {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(201, 154, 74, 0.35);
}

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

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

.form-label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-gray-800);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

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

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

/* ==========================================================================
   Components – Card
   ========================================================================== */
.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.card--soft {
  background: linear-gradient(135deg, #ffffff, #f6eee1);
}

.card--no-shadow {
  box-shadow: none;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

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

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

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

/* ==========================================================================
   Components – Header Layout (for centered logo / split nav)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 241, 232, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.site-header__inner {
  height: var(--header-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.site-header__nav {
  display: none;
}

.site-header__logo {
  justify-self: center;
}

.site-header__nav--left {
  justify-self: flex-start;
}

.site-header__nav--right {
  justify-self: flex-end;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__link {
  font-size: var(--font-size-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gray-800);
  position: relative;
  padding-bottom: 0.15rem;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-base);
}

.site-nav__link:hover::after,
.site-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

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

.site-header__toggle {
  justify-self: end;
}

@media (min-width: 960px) {
  .site-header__nav {
    display: flex;
  }

  .site-header__toggle {
    display: none;
  }
}

/* ==========================================================================
   Components – Hero & Slider Shell
   ========================================================================== */
.hero {
  position: relative;
  color: #fff;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero--full {
  min-height: calc(100vh - var(--header-height));
}

.hero__background {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.hero__slide.is-active {
  opacity: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(19, 12, 6, 0.76),
    rgba(19, 12, 6, 0.55)
  );
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero__content {
  max-width: 640px;
}

.hero__eyebrow {
  font-size: var(--font-size-sm);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-3);
}

.hero__title {
  font-family: var(--font-serif-display);
  font-size: clamp(2.5rem, 5vw, 3.25rem);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-4);
  color: #fff;
}

.hero__subtitle {
  font-size: var(--font-size-lg);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-6);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hero__meta {
  margin-top: var(--space-6);
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.8);
}

.hero__bullets {
  position: absolute;
  z-index: 1;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.hero__bullet {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.5);
  transition: all var(--transition-base);
}

.hero__bullet.is-active {
  width: 20px;
  background-color: #fff;
}

/* ==========================================================================
   Components – Footer Shell
   ========================================================================== */
.site-footer {
  padding: var(--space-8) 0 var(--space-6);
  background: #15100b;
  color: rgba(255, 255, 255, 0.82);
}

.site-footer__meta {
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.65);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer__link a {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.82);
}

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

.site-footer__responsible {
  margin-top: var(--space-4);
  max-width: 640px;
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   Media Queries – general typography tuning
   ========================================================================== */
@media (min-width: 768px) {
  body {
    font-size: var(--font-size-md);
  }

  .hero__subtitle {
    max-width: 540px;
  }
}
