/* ==========================================================================
   TRIPLE A CAFE - MASTER STYLESHEET
   Design System, Typography, Layout, Components & Responsive Utilities
   ========================================================================== */

:root {
  /* Color Palette */
  --ink-primary: #16221c;
  --ink-secondary: #4a5850;
  --ink-muted: #74837a;
  --ink-faint: #a0aca4;

  --cream-bg: #f7f4ed;
  --cream-surface: #ffffff;
  --cream-alt: #f0ebd9;
  --cream-card: #fdfbf7;

  --forest-green: #213b2f;
  --forest-green-dark: #172a21;
  --forest-green-light: #2d4f3f;
  --forest-green-surface: rgba(255, 255, 255, 0.06);

  --accent-orange: #ea582c;
  --accent-orange-hover: #d2481d;
  --accent-orange-subtle: rgba(234, 88, 44, 0.12);

  --accent-yellow: #f5b838;
  --accent-yellow-subtle: rgba(245, 184, 56, 0.15);

  --border-dark: rgba(22, 34, 28, 0.1);
  --border-light: rgba(255, 255, 255, 0.12);
  --border-forest: rgba(33, 59, 47, 0.15);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(22, 34, 28, 0.04);
  --shadow-md: 0 8px 24px rgba(22, 34, 28, 0.08);
  --shadow-lg: 0 16px 40px rgba(22, 34, 28, 0.12);
  --shadow-glow: 0 0 25px rgba(234, 88, 44, 0.35);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Layout */
  --container-max: 1240px;
  --header-height: 84px;
}

/* --------------------------------------------------------------------------
   Reset & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--cream-bg);
  color: var(--ink-primary);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: inherit;
}

h1 {
  font-size: clamp(2.75rem, 6.5vw, 5.5rem);
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  letter-spacing: -0.04em;
}

h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
}

h4 {
  font-size: 1.15rem;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
}

h1 em, h2 em, h3 em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent-orange);
}

p {
  color: var(--ink-secondary);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-orange);
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* --------------------------------------------------------------------------
   Container & Layout Shell
   -------------------------------------------------------------------------- */
.section-shell {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(20px, 4vw, 48px);
  padding-right: clamp(20px, 4vw, 48px);
}

/* --------------------------------------------------------------------------
   Top Utility Bar
   -------------------------------------------------------------------------- */
.utility-bar {
  background: var(--forest-green-dark);
  color: rgba(255, 255, 255, 0.9);
  padding: 10px 0;
  font-family: "DM Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.utility-bar .utility-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.utility-bar .status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.25);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.utility-bar a {
  color: var(--accent-yellow);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.utility-bar a:hover {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 237, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dark);
  transition: all 0.3s ease;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-primary);
  font-weight: 700;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink-primary);
  color: var(--accent-yellow);
  font-family: "DM Mono", monospace;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: -1.5px;
  box-shadow: 0 4px 12px rgba(22, 34, 28, 0.15);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand:hover .brand-mark {
  transform: rotate(-8deg) scale(1.08);
}

.brand-name {
  font-family: "DM Sans", sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-secondary);
  position: relative;
  padding: 6px 0;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-orange);
  transition: width 0.25s ease;
}

nav a:hover, nav a.active {
  color: var(--accent-orange);
}

nav a:hover::after, nav a.active::after {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Buttons & Links
   -------------------------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-full);
  font-family: "DM Sans", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  white-space: nowrap;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.button span {
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.button:hover span {
  transform: translateX(3px);
}

.button-dark {
  background: var(--ink-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(22, 34, 28, 0.15);
}

.button-dark:hover {
  background: #000000;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(22, 34, 28, 0.25);
}

.button-orange {
  background: var(--accent-orange);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(234, 88, 44, 0.35);
}

.button-orange:hover {
  background: var(--accent-orange-hover);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(234, 88, 44, 0.45);
}

.button-outline {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.button-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  color: #ffffff;
}

.button-light {
  background: var(--cream-surface);
  color: var(--ink-primary);
  border: 1px solid var(--border-dark);
  box-shadow: var(--shadow-sm);
}

.button-light:hover {
  background: #ffffff;
  border-color: var(--ink-primary);
  box-shadow: var(--shadow-md);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-primary);
  border-bottom: 2px solid var(--ink-primary);
  padding-bottom: 3px;
  transition: all 0.2s ease;
}

.text-link span {
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.text-link:hover {
  color: var(--accent-orange);
  border-color: var(--accent-orange);
}

.text-link:hover span {
  transform: translateX(4px);
}

.menu-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "DM Mono", monospace;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
  padding: 6px 14px;
  background: rgba(22, 34, 28, 0.04);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-dark);
  transition: all 0.2s ease;
}

.menu-back:hover {
  color: var(--accent-orange);
  background: rgba(234, 88, 44, 0.08);
  border-color: var(--accent-orange);
  transform: translateX(-3px);
}

/* --------------------------------------------------------------------------
   Section Label
   -------------------------------------------------------------------------- */
.section-label {
  color: var(--ink-muted);
  font-family: "DM Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.section-label span {
  color: var(--accent-orange);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Visit & Hours Section
   -------------------------------------------------------------------------- */
.visit-section-wrap {
  padding: 90px 0;
  background: var(--cream-bg);
  border-top: 1px solid var(--border-dark);
}

.visit {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.visit-info h2 {
  margin-bottom: 24px;
}

.visit address {
  font-style: normal;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink-secondary);
  margin-bottom: 28px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.visit address::before {
  content: "📍";
  font-size: 1.25rem;
  line-height: 1.3;
}

.visit-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.visit-links a.phone-link {
  font-family: "DM Mono", monospace;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius-full);
  background: rgba(22, 34, 28, 0.05);
  border: 1px solid var(--border-dark);
  transition: all 0.2s ease;
}

.visit-links a.phone-link:hover {
  background: var(--accent-orange-subtle);
  color: var(--accent-orange);
  border-color: var(--accent-orange);
}

/* Hours Card */
.hours-card {
  background: var(--cream-surface);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.hours-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--accent-orange), var(--accent-yellow));
}

.hours-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "DM Mono", monospace;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest-green);
  background: rgba(33, 59, 47, 0.08);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.hours-card hr {
  border: none;
  height: 1px;
  background: var(--border-dark);
  margin: 16px 0 20px;
}

.hours-schedule {
  display: grid;
  gap: 16px;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border-dark);
}

.hours-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hours-row .day-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.hours-row .time-val {
  font-family: "DM Mono", monospace;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-orange);
}

.hours-notes {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-dark);
  font-size: 0.84rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Map Section
   -------------------------------------------------------------------------- */
.map-section-wrap {
  background: var(--cream-alt);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}

.map-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 440px;
}

.map-copy {
  align-self: center;
  padding: 64px clamp(24px, 5vw, 64px);
}

.map-copy h2 {
  margin-bottom: 20px;
}

.map-copy p:not(.eyebrow) {
  max-width: 420px;
  font-size: 1.02rem;
  margin-bottom: 24px;
}

.map-embed-container {
  position: relative;
  width: 100%;
  min-height: 440px;
}

.map-embed-container iframe {
  width: 100%;
  height: 100%;
  min-height: 440px;
  border: 0;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--forest-green-dark);
  color: #f7f4ed;
  padding: 64px 0 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand-col .brand {
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-brand-col p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  max-width: 320px;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: "DM Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-yellow);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-orange);
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.footer-email {
  color: var(--accent-yellow) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-family: "DM Mono", monospace;
  font-size: 0.85rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-family: "DM Mono", monospace;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.04em;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

.footer-bottom a:hover {
  color: var(--accent-yellow);
}

/* --------------------------------------------------------------------------
   Menu Page Styles
   -------------------------------------------------------------------------- */
.menu-page-hero {
  padding: 56px 0 40px;
}

.menu-page-hero h1 {
  margin-bottom: 16px;
}

.menu-page-hero > p {
  max-width: 580px;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink-secondary);
}

/* Category Filter Bar */
.menu-filter-bar {
  position: sticky;
  top: var(--header-height);
  z-index: 90;
  background: rgba(247, 244, 237, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 14px 0;
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  margin-bottom: 48px;
}

.filter-pills-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.filter-pills-scroll::-webkit-scrollbar {
  height: 4px;
}

.filter-pills-scroll::-webkit-scrollbar-thumb {
  background: var(--border-dark);
  border-radius: var(--radius-full);
}

.filter-btn {
  background: var(--cream-surface);
  color: var(--ink-secondary);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: #ffffff;
  color: var(--ink-primary);
  border-color: var(--ink-primary);
}

.filter-btn.active {
  background: var(--forest-green);
  color: #ffffff;
  border-color: var(--forest-green);
  box-shadow: 0 2px 8px rgba(33, 59, 47, 0.2);
}

/* Menu Page Section Wrap */
.menu-page-section {
  background: var(--forest-green);
  color: #ffffff;
  padding: 72px 0 90px;
}

.full-menu-intro {
  margin-bottom: 48px;
}

.full-menu-intro .eyebrow {
  color: var(--accent-yellow);
}

.full-menu-intro h2 {
  color: #ffffff;
  margin-bottom: 12px;
}

.full-menu-intro p:not(.eyebrow) {
  color: #d1ded7;
  font-size: 1.05rem;
}

/* Menu List Grid */
.menu-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px;
  margin-bottom: 64px;
}

.menu-list {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.menu-list:hover {
  border-color: rgba(245, 184, 56, 0.35);
  background: rgba(255, 255, 255, 0.07);
}

.menu-list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 8px;
}

.menu-list-head h3 {
  color: #ffffff;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.menu-list-head span {
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-yellow);
  background: rgba(245, 184, 56, 0.12);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(245, 184, 56, 0.25);
}

.menu-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  transition: background 0.15s ease;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item h4 {
  font-size: 0.95rem;
  font-weight: 500;
  color: #f7f4ed;
  flex: 1;
  letter-spacing: 0;
}

.menu-item strong {
  font-family: "DM Mono", monospace;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent-yellow);
  white-space: nowrap;
}

/* Menu CTA Banner */
.menu-cta {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.menu-cta p {
  color: #ffffff;
  font-size: 1.3rem;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  :root {
    --header-height: 76px;
  }

  .visit {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .map-section {
    grid-template-columns: 1fr;
  }

  .map-embed-container {
    min-height: 360px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .menu-list-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-header nav {
    display: none;
  }

  .site-header .header-order {
    padding: 0 16px;
    font-size: 0.8rem;
    min-height: 40px;
  }

  .utility-bar .utility-content {
    justify-content: center;
    text-align: center;
  }

  .visit-links {
    flex-direction: column;
    align-items: stretch;
  }

  .visit-links .button, .visit-links a.phone-link {
    width: 100%;
    justify-content: center;
  }

  .menu-cta {
    flex-direction: column;
    text-align: center;
    padding: 28px 20px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
