/*
  Waiter Worx MVP Stylesheet
  - Stack: Pure CSS
  - Design: Elegant, professional, warm hospitality

  Sections:
  1) CSS Variables (Color Palette)
  2) Base & Typography
  3) Layout Utilities
  4) Header & Navigation
  5) Hero
  6) Sections
  7) Cards
  8) Buttons (CTAs)
  9) Forms
  10) Footer
  11) Responsive
*/

/* 1) CSS Variables (Color Palette) */
:root {
  --color-primary: #1C1C2A; /* Deep Navy / Charcoal */
  --color-secondary: #EAD7B6; /* Warm Beige */
  --color-gold: #D4AF37; /* Soft Gold */
  --color-olive: #A3B18A; /* Muted Olive */
  --color-offwhite: #F9F9F9; /* Neutral Base */
  --color-taupe: #CBBEB5; /* Taupe */
  --color-white: #FFFFFF;
  --color-text: #1C1C2A;

  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.08);
  --shadow-subtle: 0 6px 14px rgba(0, 0, 0, 0.06);

  --container-width: 1200px;
}

/* 2) Base & Typography */
* {
  box-sizing: border-box;
}

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

body {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-offwhite);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  margin: 0 0 12px;
  line-height: 1.25;
  color: var(--color-primary);
}

p {
  margin: 0 0 16px;
}

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

img {
  max-width: 100%;
  display: block;
}

/* 3) Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 64px 0;
}

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

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

.text-muted {
  color: #5e6070;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: 1fr;
}

.center {
  text-align: center;
}

/* 4) Header & Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-subtle);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 150px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
}

.logo-img {
  height: 120px;
  width: auto;
  display: inline-block;
  border-radius: 8px;
  box-shadow: var(--shadow-subtle);
}

.logo-waiter {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 600;
}

.logo-worx {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-weight: 600;
}

.logo-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-gold), #f6d36e);
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-subtle);
}

.site-nav a {
  margin-left: 18px;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--color-primary);
  font-weight: 500;
}

.site-nav a:hover {
  background: var(--color-secondary);
}

/* Active nav link */
.site-nav a.active {
  background: var(--color-gold);
  color: var(--color-white);
  box-shadow: var(--shadow-subtle);
}

.site-nav a.active:hover {
  background: var(--color-gold);
  color: var(--color-white);
}

/* Header offset for fixed navbar */
main {
  padding-top: 170px; /* header height + spacing */
}

/* 5) Hero */
.hero {
  position: relative;
  min-height: 68vh;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 28, 42, 0.55), rgba(28, 28, 42, 0.2));
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--color-white);
  padding: 64px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 68vh;
  text-align: center;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 12px;
}

.hero h2 {
  font-size: 20px;
  font-weight: 500;
  opacity: 0.95;
  margin-bottom: 24px;
}

.hero h1,
.hero h2 {
  color: var(--color-white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* 6) Sections */
.section-header {
  margin-bottom: 24px;
}

.section-header p {
  max-width: 720px;
}

.media-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

.media-block .image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.media-block .text {
  padding: 8px 0;
}

/* Homepage-specific centering (general) */
.home .container,
.home .section-header,
.home .grid,
.home p {
  text-align: center;
}

.home .section-header p,
.home .card p {
  margin-left: auto;
  margin-right: auto;
}

/* Keep About preview in two-column layout and left-aligned on desktop */
#about-preview .section-header,
#about-preview .text,
#about-preview p {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

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

/* Lists */
.checklist {
  list-style: none;
  padding-left: 0;
  margin: 0 0 8px;
}

.checklist li {
  margin-bottom: 8px;
}

/* 7) Cards */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 20px;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--color-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin: 0 auto;
}

.post-card .cover {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  margin-bottom: 12px;
}

.job-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: center;
}

.job-main h3 {
  margin: 0 0 4px;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6a6c7d;
  font-size: 14px;
}

.job-meta span + span::before {
  content: '•';
  margin: 0 6px 0 2px;
  color: #b9bcc8;
}

.job-detail,
.job-pay {
  color: #5e6070;
}

.job-cta {
  justify-self: end;
}

.meta {
  color: #6a6c7d;
  font-size: 14px;
}

/* About page */
.quote-card {
  background: var(--color-white);
  border-left: 4px solid var(--color-gold);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 20px;
}

.quote {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 20px;
  color: var(--color-primary);
  margin: 0 0 8px;
}

.quote cite {
  display: block;
  font-style: normal;
  color: #5e6070;
}

/* 8) Buttons (CTAs) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-white);
  box-shadow: var(--shadow-subtle);
}

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

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

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

/* 9) Forms */
form .field {
  margin-bottom: 14px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #dddde5;
  background: var(--color-white);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

input:focus,
textarea:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.error-text {
  color: #b00020;
  font-size: 13px;
  margin-top: 4px;
}

.inline-note {
  font-size: 13px;
  color: #6a6c7d;
}

/* 10) Footer */
.site-footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 32px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  justify-items: center;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.footer-links a {
  color: var(--color-white);
  opacity: 0.9;
  margin-right: 14px;
}

.footer-links a:hover {
  opacity: 1;
}

.copyright {
  margin-top: 8px;
  font-size: 14px;
  opacity: 0.9;
}

/* 11) Responsive */
@media (max-width: 719px) {
  /* Header */
  .nav-container {
    height: 98px;
  }
  .logo-img {
    height: auto;
    max-height: 72px;
  }
  main {
    padding-top: 130px;
  }
  /* Mobile dropdown nav with smooth transition */
  .site-nav {
    display: block;
    position: absolute;
    top: 98px;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: var(--shadow-subtle);
    z-index: 1001;
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }
  body.menu-open .site-nav {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }
  .site-nav a { display: block; padding: 12px 20px; margin: 0; border-radius: 0; text-align: center; }
  .site-nav a + a { border-top: 1px solid #efeff5; }
  .menu-toggle { display: inline-flex; }

  /* Hero */
  .hero {
    min-height: 56vh;
  }
  .hero h1 {
    font-size: 32px;
  }
  .hero h2 {
    font-size: 16px;
  }

  /* Cards & sections */
  .section { padding: 48px 0; }
  .card { padding: 16px; }
  .post-card { text-align: left; }

  /* Jobs layout */
  .job-card {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .job-cta { justify-self: stretch; }
  .job-cta .btn { width: 100%; }

  /* Back to top sizing */
  .back-to-top { right: 16px; bottom: 16px; width: 48px; height: 48px; }
}

/* Tablet/mobile header breakpoint */
@media (max-width: 1024px) {
  .nav-container { height: 96px; }
  .logo-img { height: auto; max-height: 68px; }
  main { padding-top: 110px; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .site-nav {
    display: block;
    position: absolute;
    top: 90px;
    left: 0; right: 0;
    background: #ffffff;
    box-shadow: var(--shadow-subtle);
    z-index: 1001;
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }
  body.menu-open .site-nav {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }
  .site-nav a { display: block; padding: 12px 20px; margin: 0; border-radius: 0; text-align: center; }
  .site-nav a + a { border-top: 1px solid #efeff5; }
}

@media (min-width: 720px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero h1 {
    font-size: 52px;
  }
  .media-block {
    grid-template-columns: 1.1fr 0.9fr;
  }
  .job-card {
    grid-template-columns: 2fr 1.2fr 1fr auto;
    align-items: center;
  }
}

/* Back to top button */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-gold);
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  border: none;
  outline: none;
  appearance: none;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
  pointer-events: none;
  z-index: 1001;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--color-primary);
}

/* Mobile menu */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: #ffffff;
  cursor: pointer;
  z-index: 1002;
}

.menu-toggle .bars {
  position: relative;
  width: 18px;
  height: 2px;
  background: var(--color-primary);
}
.menu-toggle .bars::before,
.menu-toggle .bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--color-primary);
}
.menu-toggle .bars::before { top: -6px; }
.menu-toggle .bars::after { top: 6px; }

body.menu-open .menu-toggle .bars { background: transparent; }
body.menu-open .menu-toggle .bars::before { transform: rotate(45deg); top: 0; }
body.menu-open .menu-toggle .bars::after { transform: rotate(-45deg); top: 0; }

/* Ensure hamburger shows on mobile/tablet (override later base rule) */
@media (max-width: 1024px) {
  .menu-toggle { display: inline-flex; }
}

/* 12) Animations */
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Reveal utilities */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
  will-change: opacity, transform;
}

.reveal.reveal-fade { transform: none; }

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Variants */
.reveal-strong { transform: translateY(36px); }
.reveal-left { transform: translateX(-28px); }
.reveal-right { transform: translateX(28px); }
.reveal-zoom { transform: translateY(18px) scale(0.96); }

/* Delays */
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }
.delay-5 { transition-delay: 0.40s; }
.delay-6 { transition-delay: 0.48s; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; transform: none !important; opacity: 1 !important; }
}

