/* =========================================================
   Casi Lignes Base Styles
   Modern luxury, soft pink, elegant, refined
   ========================================================= */

/* =========================================================
   1. CSS Variables (Design Tokens)
   ========================================================= */

:root {
  /* Color palette - Casi Lignes */
  --color-bg: #fdf7f8; /* soft, warm background */
  --color-bg-alt: #f8f0f2; /* section contrast */
  --color-surface: #ffffff; /* cards, panels */

  --color-text: #2e2628; /* primary text */
  --color-text-soft: #6f5f63; /* secondary text */
  --color-text-muted: #a48e93; /* subtle accents */

  --color-primary: #f2a7b8; /* blush pink */
  --color-primary-soft: #f8c5d2;
  --color-primary-dark: #d77c93;

  --color-accent-rose-gold: #c08a7b; /* rose gold accent */

  --color-success: #4caf50;
  --color-warning: #ffb300;
  --color-danger: #e53935;

  --gray-50: #faf7f8;
  --gray-100: #f2e9ec;
  --gray-200: #e3d3d8;
  --gray-300: #cbb3ba;
  --gray-400: #b2959e;
  --gray-500: #95757f;
  --gray-600: #775861;
  --gray-700: #5b4047;
  --gray-800: #3f2c31;
  --gray-900: #25181b;

  /* Typography */
  --font-sans: "Playfair Display", "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  --font-sans-alt: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --font-family-body: var(--font-sans-alt);
  --font-family-heading: var(--font-sans);

  --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: 1.875rem; /* 30px */
  --font-size-3xl: 2.25rem;  /* 36px */
  --font-size-4xl: 3rem;     /* 48px */

  --line-height-tight: 1.2;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.8;

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

  /* Shadows - soft, luxury */
  --shadow-soft: 0 10px 30px rgba(46, 38, 40, 0.08);
  --shadow-medium: 0 18px 45px rgba(46, 38, 40, 0.12);
  --shadow-focus: 0 0 0 2px #ffffff, 0 0 0 4px rgba(242, 167, 184, 0.7);

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

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

/* Darker overlay color for hero readability */
:root {
  --hero-overlay: linear-gradient(
    135deg,
    rgba(24, 12, 16, 0.58),
    rgba(34, 15, 18, 0.70)
  );
}

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


/* =========================================================
   2. Reset & Normalize
   ========================================================= */

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

html,
body {
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
}

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

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

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

a:hover {
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

legend {
  padding: 0;
}

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

/* Remove tap highlight on mobile for a more polished feel */
button,
 a {
  -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   3. Base Typography & Body
   ========================================================= */

body {
  font-family: var(--font-family-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

h2 {
  font-size: clamp(2rem, 3.6vw, 2.6rem);
  margin-bottom: var(--space-3);
}

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

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

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

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

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

strong {
  font-weight: 600;
}

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


/* =========================================================
   4. Links & Interactive Base
   ========================================================= */

a,
button {
  transition: color var(--transition-base),
    background-color var(--transition-base),
    border-color var(--transition-base),
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    opacity var(--transition-fast);
}

/* Luxurious link style (used mainly in copy, not navigation) */
.link-luxe {
  position: relative;
  padding-bottom: 2px;
}

.link-luxe::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--color-accent-rose-gold), var(--color-primary));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

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


/* =========================================================
   5. Layout Utilities
   ========================================================= */

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.grid-3 {
  display: grid;
  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;
}

.mw-narrow {
  max-width: 640px;
}

.mx-auto {
  margin-inline: auto;
}

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


/* =========================================================
   6. Accessibility Utilities
   ========================================================= */

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

:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

/* Remove focus styles when using mouse only */
:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}


/* =========================================================
   7. Buttons - Casi Lignes Style
   ========================================================= */

.button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(215, 124, 147, 0.35);
}

.button:hover,
.btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(215, 124, 147, 0.45);
}

.button:active,
.btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(215, 124, 147, 0.35);
}

.button--outline,
.btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(192, 138, 123, 0.55);
  box-shadow: none;
}

.button--outline:hover,
.btn--outline:hover {
  background: rgba(248, 197, 210, 0.15);
  border-color: rgba(192, 138, 123, 0.9);
}

.button--ghost,
.btn--ghost {
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: none;
}

.button--ghost:hover,
.btn--ghost:hover {
  background: rgba(0, 0, 0, 0.32);
}

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


/* =========================================================
   8. Form Elements
   ========================================================= */

input,
select,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(192, 138, 123, 0.4);
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--color-text);
  outline: none;
  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 {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(242, 167, 184, 0.4);
}

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

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

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

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

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


/* =========================================================
   9. Card Component - Venue & Experiences
   ========================================================= */

.card {
  position: relative;
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

.card--subtle {
  box-shadow: none;
  border-color: rgba(227, 211, 216, 0.9);
}

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

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

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

.card-body {
  color: var(--color-text-soft);
}


/* =========================================================
   10. Header & Navigation - Center Logo Layout
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(22px);
  background: linear-gradient(
    to bottom,
    rgba(253, 247, 248, 0.92),
    rgba(253, 247, 248, 0.70),
    rgba(253, 247, 248, 0)
  );
  border-bottom: 1px solid rgba(227, 211, 216, 0.8);
}

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

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}

.site-nav--left {
  justify-content: flex-end;
}

.site-nav--right {
  justify-content: flex-start;
}

.nav-link {
  position: relative;
  font-size: var(--font-size-sm);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  padding-block: 0.25rem;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--color-accent-rose-gold), var(--color-primary));
  transform-origin: center;
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--color-text);
}

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

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

.site-logo-mark {
  font-family: var(--font-family-heading);
  font-size: 1.25rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text);
}

.site-logo-subtitle {
  font-size: 0.625rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 0.2rem;
}

/* Mobile navigation handle (menu icon if needed) */
.header-toggle {
  display: none;
}

@media (max-width: 768px) {
  .site-header-inner {
    grid-template-columns: auto auto auto;
    justify-content: space-between;
  }

  .site-nav {
    display: none;
  }

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


/* =========================================================
   11. Hero Section & Slider Base
   ========================================================= */

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

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 800ms ease-out;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}

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

.hero-layout {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    align-items: center;
  }
}

.hero-kicker {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-3);
}

.hero-title {
  font-family: var(--font-family-heading);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: var(--space-4);
  color: #fff;
}

.hero-title span {
  color: var(--color-primary-soft);
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  max-width: 32rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-6);
}

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

.hero-secondary-text {
  font-size: var(--font-size-sm);
  max-width: 18rem;
  color: rgba(255, 255, 255, 0.75);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  background: rgba(253, 247, 248, 0.15);
  border: 1px solid rgba(248, 197, 210, 0.55);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.hero-indicators {
  position: absolute;
  left: 50%;
  bottom: var(--space-6);
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.hero-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  transition: transform var(--transition-fast),
    opacity var(--transition-fast),
    background-color var(--transition-fast);
}

.hero-indicator-dot.is-active {
  width: 16px;
  background: #fff;
  transform: scale(1.1);
}


/* =========================================================
   12. Footer Base
   ========================================================= */

.site-footer {
  margin-top: var(--space-12);
  padding-block: var(--space-8);
  background: #fff;
  border-top: 1px solid rgba(227, 211, 216, 0.9);
}

.footer-main {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .footer-main {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

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

.footer-link {
  display: inline-flex;
  font-size: var(--font-size-sm);
  color: var(--color-text-soft);
  margin-bottom: 0.4rem;
}

.footer-link:hover {
  color: var(--color-text);
}

.footer-bottom {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(227, 211, 216, 0.7);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}


/* =========================================================
   13. Motion & Reduced Motion
   ========================================================= */

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