/* =========================================================
   Town Loungge Base Styles
   ========================================================= */

/* =========================================================
   Variables
   ========================================================= */
:root {
  /* Colors */
  --color-bg: #050608; /* deep black */
  --color-bg-elevated: #111318; /* dark graphite */
  --color-bg-soft: #181b21; /* charcoal */
  --color-bg-accent: radial-gradient(circle at top, #2b1c12 0%, #050608 55%, #020203 100%);

  --color-text: #f7f7f8; /* clean white */
  --color-text-muted: #a7a9b3;
  --color-text-soft: #c6c8d2;

  --color-primary: #ff8a3d; /* warm orange */
  --color-primary-soft: rgba(255, 138, 61, 0.18);
  --color-primary-strong: #ff6a00; /* burnt orange */
  --color-primary-border: rgba(255, 138, 61, 0.8);

  --color-success: #34c38f;
  --color-warning: #f1c40f;
  --color-danger: #e74c3c;

  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2933;
  --gray-900: #111827;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-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 */

  --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-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 18px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 14px 40px rgba(0, 0, 0, 0.55);
  --shadow-strong: 0 22px 60px rgba(0, 0, 0, 0.75);

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

  /* Layout */
  --container-max-width: 1180px;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }

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

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

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

ul, ol {
  margin: 0;
  padding: 0;
}

/* Required: no list bullets globally */
ul {
  list-style: none !important;
}

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

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

img {
  height: auto;
}

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

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

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

input,
textarea,
button,
select,
a {
  -webkit-tap-highlight-color: transparent;
}

/* =========================================================
   Base Styles
   ========================================================= */
body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  background: radial-gradient(circle at top left, #111318 0%, #050608 45%, #000000 100%);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

main {
  min-height: 60vh;
}

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

h1 {
  font-size: clamp(2.4rem, 3vw + 1.5rem, var(--font-size-5xl));
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(1.9rem, 2vw + 1rem, var(--font-size-4xl));
}

h3 {
  font-size: clamp(1.5rem, 1.4vw + 1rem, var(--font-size-3xl));
}

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

h5 {
  font-size: var(--font-size-xl);
}

h6 {
  font-size: var(--font-size-lg);
}

p {
  font-size: var(--font-size-md);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-soft);
}

strong {
  font-weight: 600;
}

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

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

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

hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin: var(--space-8) 0;
}

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

/* Remove default outline but keep focus-visible */
:focus {
  outline: none;
}

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

/* Layout / Containers */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

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

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

.section--hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  text-align: center;
  overflow: hidden;
}

.section--hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(5, 6, 8, 0.95) 35%, rgba(5, 6, 8, 0.98) 100%),
    radial-gradient(circle at top left, rgba(255, 138, 61, 0.33) 0%, transparent 55%);
  mix-blend-mode: normal;
}

.section--hero-inner {
  position: relative;
  z-index: 1;
}

.hero-labels {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  margin-bottom: var(--space-4);
}

.hero-label {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 138, 61, 0.55);
  background: rgba(5, 6, 8, 0.85);
  font-size: var(--font-size-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

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

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

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

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

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

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

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

.gap-xs { gap: var(--space-1); }
.gap-sm { gap: var(--space-2); }
.gap-md { gap: var(--space-4); }
.gap-lg { gap: var(--space-6); }

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

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

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

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

/* Spacing utilities */
.mt-0 { margin-top: 0; }
.mt-xs { margin-top: var(--space-2); }
.mt-sm { margin-top: var(--space-3); }
.mt-md { margin-top: var(--space-4); }
.mt-lg { margin-top: var(--space-6); }
.mt-xl { margin-top: var(--space-8); }

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

.pt-lg { padding-top: var(--space-6); }
.pb-lg { padding-bottom: var(--space-6); }

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

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

/* Screen-reader only */
.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;
}

/* Elevation helpers */
.surface {
  background: var(--color-bg-elevated);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.surface--bordered {
  border: 1px solid rgba(255, 255, 255, 0.05);
}

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

/* Header layout specifics for Town Loungge */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(5, 6, 8, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.site-logo {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-logo span {
  color: var(--color-primary);
}

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

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

.site-nav a {
  position: relative;
  padding: 0.35rem 0;
  color: var(--color-text-soft);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(to right, var(--color-primary), var(--color-primary-strong));
  transition: width var(--transition-base);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--color-text);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  width: 100%;
}

.site-nav a.is-active {
  color: var(--color-primary);
}

.site-nav a.is-active::after {
  width: 100%;
}

/* Mobile navigation toggle */
.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(5, 6, 8, 0.9);
  color: var(--color-text);
  cursor: pointer;
  transition: border-color var(--transition-base),
    background-color var(--transition-base),
    transform var(--transition-fast);

  /* Required: flex-direction column */
  flex-direction: column;
}

.nav-toggle-bar {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-text);
  transition: transform var(--transition-base),
    opacity var(--transition-base),
    background-color var(--transition-base);
}

.nav-toggle:hover {
  border-color: var(--color-primary-border);
  background: rgba(10, 12, 16, 0.98);
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

.site-nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(5, 6, 8, 0.98);
  backdrop-filter: blur(18px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}

.site-nav-mobile.is-open {
  display: flex;
}

.site-nav-mobile a {
  font-size: var(--font-size-xl);
  color: var(--color-text-soft);
}

.site-nav-mobile a.is-active {
  color: var(--color-primary);
}

@media (max-width: 960px) {
  .site-header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .site-nav,
  .site-nav--right {
    display: none;
  }

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.5rem;
  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;
  line-height: 1;
  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);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-strong) 100%);
  color: #050608;
  box-shadow: 0 16px 40px rgba(255, 138, 61, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 52px rgba(255, 138, 61, 0.48);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 10px 30px rgba(255, 138, 61, 0.35);
}

.btn-outline {
  background: rgba(5, 6, 8, 0.9);
  color: var(--color-text);
  border-color: rgba(255, 255, 255, 0.16);
}

.btn-outline:hover {
  border-color: var(--color-primary-border);
  background: radial-gradient(circle at top left, rgba(255, 138, 61, 0.18) 0%, rgba(3, 4, 6, 0.96) 40%);
}

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

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

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

/* Form elements */
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.form-field {
  width: 100%;
}

label {
  display: block;
  margin-bottom: var(--space-1);
  font-size: var(--font-size-sm);
  color: var(--color-text-soft);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="time"],
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 9, 12, 0.95);
  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-500);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--color-primary-border);
  box-shadow: 0 0 0 1px rgba(255, 138, 61, 0.45);
}

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

/* Cards */
.card {
  position: relative;
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 138, 61, 0.08) 0%, rgba(17, 19, 24, 0.98) 38%, rgba(8, 9, 12, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid transparent;
  background: linear-gradient(135deg, rgba(255, 138, 61, 0.55), rgba(255, 138, 61, 0)) border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.card:hover::before {
  opacity: 0.6;
}

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

.card-title {
  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.12em;
  color: var(--color-text-muted);
}

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

/* Hero image background helper */
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.02);
  filter: saturate(1.1) contrast(1.05);
}

/* FAQ accordion basics (structure only; JS handles state) */
.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--space-4) 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  font-size: var(--font-size-md);
}

.faq-answer {
  margin-top: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--color-text-soft);
}

/* Contact / Reservation highlight block */
.reservation-block {
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top left, rgba(255, 138, 61, 0.24) 0%, transparent 55%),
    linear-gradient(135deg, #0b0c10, #050608);
  border: 1px solid rgba(255, 138, 61, 0.38);
  box-shadow: var(--shadow-md);
}

/* Footer */
.site-footer {
  padding-top: var(--space-10);
  padding-bottom: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #050608;
}

.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: var(--font-size-sm);
}

.site-footer-nav a {
  color: var(--color-text-muted);
}

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

.site-footer-legal {
  margin-top: var(--space-4);
  font-size: var(--font-size-xs);
  color: var(--gray-500);
}

/* =========================================================
   Responsive tweaks for sections / typography
   ========================================================= */
@media (max-width: 768px) {
  .section {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
  }

  h1 {
    font-size: 2.1rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  .card {
    padding: var(--space-4);
  }

  .reservation-block {
    padding: var(--space-4);
  }
}
