@layer reset, base, components, utilities;

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

  * {
    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%;
    height: auto;
  }

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

  button {
    border: none;
    background: none;
  }

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

  ul, ol {
    list-style: none;
  }
}

@layer base {
  :root {
    --color-bg: #faf6f0;
    --color-bg-soft: #f3ebe1;
    --color-bg-elevated: #ffffff;
    --color-text: #111217;
    --color-text-muted: #5a5a63;
    --color-primary: #c45a3b;
    --color-primary-soft: #f0c2a6;
    --color-success: #2f7d4a;
    --color-warning: #b38022;
    --color-danger: #b03b3b;
    --color-border-subtle: #e1d8cd;
    --color-border-strong: #1f1f23;
    --color-gray-100: #f5f1ea;
    --color-gray-200: #e3d6c7;
    --color-gray-300: #c9b9a8;
    --color-gray-500: #7d7267;
    --color-gray-700: #3a3835;
    --shadow-soft: 0 10px 35px rgba(12, 8, 4, 0.12);
    --shadow-subtle: 0 4px 18px rgba(12, 8, 4, 0.08);
    --shadow-strong: 0 18px 55px rgba(12, 8, 4, 0.22);
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-pill: 999px;
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    --font-display: "Playfair Display", "Times New Roman", serif;
    --font-mono: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-md: 1.0625rem;
    --text-lg: 1.25rem;
    --text-xl: 1.5rem;
    --text-2xl: 2rem;
    --text-3xl: 2.5rem;
    --text-hero: clamp(2.6rem, 4vw, 3.4rem);
    --leading-tight: 1.2;
    --leading-snug: 1.35;
    --leading-relaxed: 1.6;
    --leading-loose: 1.8;
    --space-0: 0;
    --space-1: 2px;
    --space-2: 4px;
    --space-3: 6px;
    --space-4: 8px;
    --space-5: 10px;
    --space-6: 12px;
    --space-7: 16px;
    --space-8: 20px;
    --space-9: 24px;
    --space-10: 28px;
    --space-11: 32px;
    --space-12: 36px;
    --space-14: 44px;
    --space-16: 52px;
    --space-20: 72px;
    --space-24: 96px;
    --duration-fast: 120ms;
    --duration-base: 180ms;
    --duration-slow: 260ms;
    --easing-snappy: cubic-bezier(0.18, 0.89, 0.32, 1.28);
    --easing-soft: cubic-bezier(0.19, 1, 0.22, 1);
    --grid-max-width: 1120px;
    --grid-gutter: 24px;
  }

  @media (max-width: 768px) {
    :root {
      --grid-gutter: 18px;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    * {
      scroll-behavior: auto !important;
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }

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

  h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--color-text);
  }

  h1 {
    font-size: var(--text-hero);
    line-height: var(--leading-tight);
    margin-bottom: var(--space-7);
  }

  h2 {
    font-size: var(--text-3xl);
    line-height: var(--leading-tight);
    margin-bottom: var(--space-6);
  }

  h3 {
    font-size: var(--text-2xl);
    line-height: var(--leading-snug);
    margin-bottom: var(--space-5);
  }

  h4 {
    font-size: var(--text-xl);
    line-height: var(--leading-snug);
    margin-bottom: var(--space-4);
  }

  h5 {
    font-size: var(--text-lg);
    line-height: var(--leading-snug);
    margin-bottom: var(--space-3);
  }

  h6 {
    font-size: var(--text-base);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-3);
  }

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

  a {
    color: var(--color-primary);
    transition: color var(--duration-base) var(--easing-soft);
  }

  a:hover {
    color: var(--color-text);
  }

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

  ::selection {
    background-color: rgba(196, 90, 59, 0.16);
    color: var(--color-text);
  }
}

@layer components {
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
    padding: 0.7rem 1.6rem;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition-property: background-color, color, border-color, box-shadow, transform;
    transition-duration: var(--duration-base);
    transition-timing-function: var(--easing-snappy);
    white-space: nowrap;
  }

  .btn-primary {
    background: linear-gradient(135deg, #c45a3b, #e08a53);
    color: #fff;
    box-shadow: var(--shadow-soft);
  }

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

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

  .btn-outline {
    background-color: rgba(250, 246, 240, 0.4);
    border-color: var(--color-gray-300);
    color: var(--color-text);
  }

  .btn-outline:hover {
    border-color: var(--color-primary);
    background-color: #f6e5d7;
  }

  .btn-ghost {
    background-color: transparent;
    color: var(--color-text);
    padding-inline: 0;
  }

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

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

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

  .input, input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], input[type="time"], textarea, select {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border-subtle);
    background-color: rgba(255, 255, 255, 0.85);
    color: var(--color-text);
    font-size: var(--text-sm);
    line-height: 1.4;
    transition: border-color var(--duration-base) var(--easing-soft), box-shadow var(--duration-base) var(--easing-soft), background-color var(--duration-base) var(--easing-soft);
  }

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

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

  .input:focus-visible,
  input:focus-visible,
  textarea:focus-visible,
  select:focus-visible {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px rgba(196, 90, 59, 0.7), 0 9px 30px rgba(12, 8, 4, 0.18);
    background-color: #fff;
  }

  .card {
    position: relative;
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at top left, #fffaf4 0, #f3ebe1 40%, #f1e2d4 100%);
    padding: var(--space-10);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.8);
  }

  .card-soft {
    border-radius: var(--radius-md);
    background-color: var(--color-bg-elevated);
    padding: var(--space-8);
    box-shadow: var(--shadow-subtle);
    border: 1px solid rgba(225, 216, 205, 0.7);
  }

  .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    padding: 0.25rem 0.7rem;
    border-radius: var(--radius-pill);
    font-size: var(--text-xs);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: rgba(196, 90, 59, 0.08);
    color: var(--color-primary);
    border: 1px solid rgba(196, 90, 59, 0.4);
  }

  .badge-soft {
    background: rgba(243, 235, 225, 0.9);
    border-color: rgba(201, 185, 168, 0.7);
    color: var(--color-gray-700);
  }

  .layout-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }

  .hero-shell {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
  }

  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
    gap: var(--space-14);
    align-items: center;
  }

  .hero-copy {
    display: grid;
    gap: var(--space-7);
  }

  .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: var(--text-xs);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-gray-700);
  }

  .hero-eyebrow::before {
    content: "";
    width: 34px;
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(196, 90, 59, 0.8), rgba(224, 138, 83, 0.1));
  }

  .hero-title {
    max-width: 22ch;
  }

  .hero-subcopy {
    max-width: 38ch;
  }

  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-6);
  }

  .hero-note {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--color-gray-500);
  }

  .hero-media-stack {
    position: relative;
    display: grid;
    align-items: center;
    justify-items: center;
    padding: var(--space-4);
  }

  .hero-media-backdrop {
    position: absolute;
    inset: 0;
    border-radius: 30px;
    background: radial-gradient(circle at top left, rgba(196, 90, 59, 0.15) 0, rgba(196, 90, 59, 0.03) 40%, rgba(12, 8, 4, 0.02) 100%);
    filter: drop-shadow(0 40px 80px rgba(12, 8, 4, 0.35));
  }

  .hero-media-main {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 5fr 4fr;
    gap: var(--space-6);
    align-items: stretch;
  }

  .hero-photo-primary,
  .hero-photo-secondary {
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
  }

  .hero-photo-primary {
    min-height: 260px;
    background-image: linear-gradient(120deg, rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.1)), url("/assets/images/hero-daylit-dining-room.webp");
  }

  .hero-photo-secondary {
    min-height: 220px;
    background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.2)), url("/assets/images/card-lounge-interior.webp");
  }

  .hero-photo-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-7);
    color: #fff;
  }

  .hero-photo-label {
    font-size: var(--text-xs);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.82;
  }

  .hero-photo-title {
    margin-top: var(--space-3);
    font-family: var(--font-display);
    font-size: var(--text-xl);
    line-height: var(--leading-tight);
  }

  .hero-photo-detail {
    margin-top: var(--space-3);
    font-size: var(--text-sm);
    max-width: 26ch;
    opacity: 0.9;
  }

  .hero-card-chip {
    position: absolute;
    right: 10%;
    bottom: 12%;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: rgba(250, 246, 240, 0.96);
    color: var(--color-text);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: var(--text-xs);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.32);
  }

  .hero-card-chip-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #f7c56f, #e08a53);
  }

  .hero-lounge-card {
    position: absolute;
    left: -6%;
    bottom: 8%;
    padding: 0.85rem 1rem;
    width: 190px;
    border-radius: 18px;
    background: rgba(12, 8, 4, 0.9);
    color: #fdf5ea;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    display: grid;
    gap: 0.35rem;
  }

  .hero-lounge-label {
    font-size: var(--text-xs);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.75;
  }

  .hero-lounge-title {
    font-family: var(--font-display);
    font-size: var(--text-sm);
  }

  .hero-lounge-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: var(--text-xs);
    opacity: 0.9;
  }

  .hero-availability-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #8fdca0, #2f7d4a);
  }

  .hero-ribbon {
    position: absolute;
    inset-inline: 10%;
    top: -20px;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    background: rgba(250, 246, 240, 0.96);
    color: var(--color-gray-700);
    font-size: var(--text-xs);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border: 1px solid rgba(201, 185, 168, 0.85);
    box-shadow: 0 18px 40px rgba(12, 8, 4, 0.18);
  }

  .hero-ribbon strong {
    color: var(--color-primary);
    font-weight: 600;
  }

  .hero-ribbon-divider {
    width: 1px;
    align-self: stretch;
    background: linear-gradient(to bottom, transparent, rgba(201, 185, 168, 0.9), transparent);
  }

  .hero-glow-ring {
    position: absolute;
    inset: 15%;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    mix-blend-mode: screen;
  }

  @media (max-width: 1024px) {
    .hero-shell {
      padding-top: var(--space-14);
      padding-bottom: var(--space-14);
    }

    .hero-grid {
      grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
      gap: var(--space-10);
    }

    .hero-media-main {
      grid-template-columns: 1fr;
    }

    .hero-lounge-card {
      left: 4%;
      bottom: 7%;
    }

    .hero-ribbon {
      inset-inline: 8%;
    }
  }

  @media (max-width: 768px) {
    .hero-shell {
      padding-top: var(--space-12);
      padding-bottom: var(--space-12);
    }

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

    .hero-media-stack {
      order: -1;
    }

    .hero-ribbon {
      position: static;
      margin-bottom: var(--space-7);
      box-shadow: var(--shadow-subtle);
    }

    .hero-photo-primary,
    .hero-photo-secondary {
      min-height: 210px;
    }

    .hero-lounge-card {
      display: none;
    }
  }

  @media (max-width: 480px) {
    .hero-photo-primary,
    .hero-photo-secondary {
      border-radius: 18px;
    }

    .hero-photo-overlay {
      padding: var(--space-6);
    }

    .hero-photo-title {
      font-size: var(--text-lg);
    }

    .hero-actions {
      flex-direction: column;
      align-items: flex-start;
    }
  }
}

@layer utilities {
  .container {
    width: 100%;
    max-width: var(--grid-max-width);
    margin-inline: auto;
    padding-inline: var(--grid-gutter);
  }

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

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

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

  .grid-auto-fit {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }

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

  .grid-gap-loose {
    gap: var(--space-12);
  }

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

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

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

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

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

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

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

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

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

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

  .mt-0 { margin-top: 0; }
  .mt-xs { margin-top: var(--space-4); }
  .mt-sm { margin-top: var(--space-6); }
  .mt-md { margin-top: var(--space-8); }
  .mt-lg { margin-top: var(--space-12); }
  .mt-xl { margin-top: var(--space-16); }

  .mb-0 { margin-bottom: 0; }
  .mb-xs { margin-bottom: var(--space-4); }
  .mb-sm { margin-bottom: var(--space-6); }
  .mb-md { margin-bottom: var(--space-8); }
  .mb-lg { margin-bottom: var(--space-12); }
  .mb-xl { margin-bottom: var(--space-16); }

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

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

  @media (max-width: 768px) {
    .py-section {
      padding-block: var(--space-12);
    }
  }

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

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

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

  .text-label {
    font-size: var(--text-xs);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-gray-500);
  }

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

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

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

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

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

  .radius-md {
    border-radius: var(--radius-md);
  }

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

  .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: 2px solid var(--color-primary);
  outline-offset: 3px;
}

ul {
  list-style: none !important;
}

.nav-toggle {
  flex-direction: column;
}
html, body {
  overflow-x: clip;
  max-width: 100%;
}

img, video, svg {
  max-width: 100%;
  height: auto;
}
