/* =========================================
   Variables
   ========================================= */
:root {
  /* Colors */
  --color-bg: #FAF7F2;
  --color-bg-secondary: #F2ECE6;
  --color-surface: #FFFFFF;

  --color-text: #2E2E2E;
  --color-heading: #4B3F38;

  --color-primary: #3F6B5A;
  --color-primary-hover: #2B4C3F;
  --color-primary-soft: rgba(63, 107, 90, 0.08);

  --color-accent: #D8C39A; /* champagne gold */
  --color-decorative: #D6CEC3; /* warm stone */

  --color-success: #3E7C58;
  --color-warning: #C58B2D;
  --color-danger: #B8413C;

  --gray-50: #F8F5F0;
  --gray-100: #F0EBE3;
  --gray-200: #E3D9CD;
  --gray-300: #CFC3B3;
  --gray-400: #B2A592;
  --gray-500: #8E8373;
  --gray-600: #6E6457;
  --gray-700: #52493F;
  --gray-800: #3A332B;
  --gray-900: #24201B;

  /* Typography */
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Playfair Display", "Georgia", "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.375rem;  /* 22px */
  --font-size-2xl: 1.75rem;  /* 28px */
  --font-size-3xl: 2.25rem;  /* 36px */
  --font-size-4xl: 3rem;     /* 48px */

  --line-height-tight: 1.2;
  --line-height-snug: 1.35;
  --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-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-none: 0;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Shadows - soft, editorial */
  --shadow-soft: 0 14px 40px rgba(0, 0, 0, 0.06);
  --shadow-subtle: 0 10px 30px rgba(36, 32, 27, 0.05);
  --shadow-elevated: 0 20px 60px rgba(0, 0, 0, 0.12);

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

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

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

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

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

* {
  margin: 0;
}

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

body {
  min-height: 100vh;
}

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

img {
  height: auto;
}

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

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

ul[role="list"],
ol[role="list"] {
  list-style: none;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Remove default focus styles; we will re-add via :focus-visible */
:focus {
  outline: none;
}

/* =========================================
   Base Typography & Layout
   ========================================= */
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);
}

main {
  display: block;
}

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

h1 {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-4);
}

h2 {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-3);
}

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

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

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

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

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

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

strong {
  font-weight: 600;
}

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

/* Links - understated luxury */
a {
  color: var(--color-primary);
  text-decoration: none;
  text-underline-offset: 0.18em;
  transition: color var(--transition-base), text-decoration-color var(--transition-base), opacity var(--transition-fast);
}

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

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

/* Lists */
ul, ol {
  padding-left: var(--space-5);
  margin-bottom: var(--space-4);
}

/* Horizontal rule */
hr {
  border: none;
  border-top: 1px solid rgba(214, 206, 195, 0.7);
  margin: var(--space-8) 0;
}

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

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

.sr-only-focusable:focus,
.sr-only-focusable:active {
  clip: auto;
  height: auto;
  width: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: normal;
}

/* =========================================
   Layout Utilities
   ========================================= */
.container {
  max-width: var(--container-max-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--tight {
  padding-block: var(--space-8);
}

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

.section__header {
  margin-bottom: var(--space-8);
}

.section__eyebrow {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gray-500);
  margin-bottom: var(--space-2);
}

.section__title {
  max-width: 22ch;
}

.section__intro {
  max-width: 60ch;
  color: var(--gray-700);
}

/* Flex utilities */
.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 {
  display: flex;
  flex-direction: column;
}

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

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

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

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

/* Alignment & spacing helpers */
.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-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.pt-header {
  padding-top: var(--header-height);
}

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

/* Buttons - primary CTAs for reservas & experiências */
.button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: var(--font-size-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  background-color: var(--color-primary);
  color: #FFFFFF !important;
  transition: background-color var(--transition-base), color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-fast), border-color var(--transition-base);
}

.button:hover,
.btn:hover {
  background-color: var(--color-primary-hover);
  box-shadow: var(--shadow-subtle);
  transform: translateY(-1px);
}

.button:active,
.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

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

.button--ghost,
.btn--ghost {
  background-color: transparent;
  color: var(--color-heading) !important;
  border-color: rgba(216, 195, 154, 0.6);
}

.button--ghost:hover,
.btn--ghost:hover {
  background-color: rgba(216, 195, 154, 0.08);
  border-color: var(--color-accent);
}

.button--subtle,
.btn--subtle {
  background-color: var(--color-primary-soft);
  color: var(--color-primary) !important;
  border-color: transparent;
}

.button--subtle:hover,
.btn--subtle:hover {
  background-color: rgba(63, 107, 90, 0.14);
}

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

.button--lg,
.btn--lg {
  padding: 0.9rem 2.1rem;
}

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

/* Inputs & form controls - reservations/contact */
.input,
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(214, 206, 195, 0.9);
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--color-text);
  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(--gray-400);
}

.input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px rgba(216, 195, 154, 0.4);
}

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

label {
  display: block;
  font-size: var(--font-size-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: var(--space-2);
}

.form-row {
  display: grid;
  gap: var(--space-4);
}

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

/* Cards - for dishes, wine highlights, poker evenings */
.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(214, 206, 195, 0.7);
  box-shadow: var(--shadow-soft);
  padding: var(--space-6);
}

.card--soft {
  box-shadow: none;
  border-style: solid;
  border-width: 1px;
  border-color: rgba(214, 206, 195, 0.6);
}

.card--accent {
  border-color: var(--color-accent);
}

.card__eyebrow {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gray-500);
  margin-bottom: var(--space-2);
}

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

.card__meta {
  font-size: var(--font-size-sm);
  color: var(--gray-600);
}

/* Media blocks - editorial image treatments */
.media-cover {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background-color: #000;
}

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

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

.media-overlay-gradient::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0));
}

/* Tag / pill for highlighting "Entretenimento Social" messages */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid rgba(214, 206, 195, 0.9);
  background-color: rgba(242, 236, 230, 0.8);
  color: var(--gray-700);
}

.tag--accent {
  border-color: var(--color-accent);
  background-color: rgba(216, 195, 154, 0.12);
}

.tag--success {
  border-color: rgba(62, 124, 88, 0.2);
  background-color: rgba(62, 124, 88, 0.08);
  color: var(--color-success);
}

/* =========================================
   Navigation & Header Shell
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: rgba(250, 247, 242, 0.98);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(214, 206, 195, 0.7);
}

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

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

.nav__link {
  position: relative;
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gray-700);
  padding-block: 0.25rem;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--color-accent), rgba(216, 195, 154, 0));
  transition: width var(--transition-slow);
}

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

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

.site-logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}



/* =========================================
   Subtle Animations (for non-reduced-motion)
   ========================================= */
@media (prefers-reduced-motion: no-preference) {
  .fade-in-up {
    opacity: 0;
    transform: translateY(18px);
    animation: fade-in-up 600ms var(--transition-base) forwards;
  }

  @keyframes fade-in-up {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .fade-in {
    opacity: 0;
    animation: fade-in 600ms ease-out forwards;
  }

  @keyframes fade-in {
    to {
      opacity: 1;
    }
  }
}

/* =========================================
   Helper: Poker Entertainment Messaging
   ========================================= */
.poker-note {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  color: var(--gray-700);
  border-left: 2px solid var(--color-accent);
  padding-left: var(--space-3);
}

.poker-note strong {
  color: var(--color-heading);
}

.poker-disclaimer {
  font-size: var(--font-size-xs);
  line-height: var(--line-height-relaxed);
  color: var(--gray-500);
}
