/* ==========================================================================
   La Puerta del México – One Page (Moderní úvodní stránka)
   Čistá gastronomická typografie, autentický styl, žádné generické šablony.
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/inter-variable.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #080c0a;
  --night: #0f1613;
  --forest: #123b2c;
  --forest-light: #1c523e;
  --cream: #fbf2df;
  --cream-dim: #c5bba8;
  --gold: #d9ad54;
  --gold-hover: #e8bf6a;
  --line: rgba(251, 242, 223, 0.12);
  --line-strong: rgba(217, 173, 84, 0.35);
  
  --surface: rgba(15, 23, 19, 0.78);
  --surface-solid: #111a16;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  
  /* --- Jednotná typografická stupnice --- */
  --font-h1: clamp(2.1rem, 4.8vw, 2.9rem);      /* Hlavní název restaurace (H1) */
  --font-h2: 1.35rem;                          /* Nadpisy sekcí a telefon (H2) */
  --font-h3: 0.92rem;                          /* Názvy tlačítek / karet (H3) */
  --font-lead: 1.02rem;                        /* Úvodní podnadpis / sdělení */
  --font-body: 0.94rem;                        /* Základní text odstavců, tabulka, adresa, odkazy */
  --font-small: 0.84rem;                       /* Doplňující text, podtitulky, poznámky, patička */
  --font-caption: 0.74rem;                     /* Kategorie, štítky, indikátory */

  --radius: 12px;
  --radius-sm: 6px;
  --max-w: 960px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--ink);
  color: var(--cream);
  min-height: 100vh;
  line-height: 1.65;
  position: relative;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* --- Tiché atmosférické pozadí --- */
.bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-layer-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.14;
  filter: brightness(0.65) saturate(1.1);
}

.bg-layer-tint {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(18, 59, 44, 0.65) 0%, rgba(8, 12, 10, 0.96) 65%, var(--ink) 100%);
}

/* --- Hlavní obal --- */
.site-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px 64px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  flex: 1;
}

/* --- Brand / Hlavička --- */
.brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 8px;
}

.brand-avatar {
  width: 84px;
  height: 84px;
  margin-bottom: 18px;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.5));
}

.brand-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: var(--font-h1);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--cream);
  line-height: 1.15;
}

.brand-tagline {
  font-size: var(--font-caption);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-top: 8px;
}

/* --- Informace o novém webu pod názvem --- */
.brand-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 14px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--font-lead);
  color: var(--cream-dim);
  letter-spacing: 0.01em;
}

.brand-status::before,
.brand-status::after {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--gold);
  opacity: 0.45;
}

.site-main {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* --- Dvousloupcový grid s informacemi --- */
.info-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.panel {
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3.5vw, 36px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
}

.panel-title {
  font-family: var(--font-serif);
  font-size: var(--font-h2);
  font-weight: 400;
  color: var(--cream);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
  line-height: 1.3;
}

/* Rozvržení kontaktu */
.contact-group {
  display: flex;
  flex-direction: column;
  gap: 22px;
  flex: 1;
}

.contact-entry {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.entry-label {
  font-size: var(--font-caption);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.phone-number {
  font-size: var(--font-h2);
  font-weight: 700;
  color: var(--cream);
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-block;
  width: fit-content;
  line-height: 1.3;
}

.phone-number:hover {
  color: var(--gold);
}

.entry-hint {
  font-size: var(--font-small);
  color: var(--cream-dim);
  line-height: 1.5;
  margin-top: 2px;
}

.address-block {
  font-size: var(--font-body);
  color: var(--cream);
  line-height: 1.55;
}

.map-link {
  display: inline-block;
  margin-top: 6px;
  font-size: var(--font-body);
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  width: fit-content;
}

.map-link:hover {
  color: var(--gold-hover);
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 4px;
}

.social-links a {
  color: var(--cream-dim);
  text-decoration: none;
  font-size: var(--font-body);
  transition: color 0.2s ease;
}

.social-links a:hover {
  color: var(--gold);
}

/* Otevírací doba tabulka */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-body);
}

.schedule-table tr {
  border-bottom: 1px solid rgba(251, 242, 223, 0.07);
}

.schedule-table tr:last-child {
  border-bottom: none;
}

.schedule-table th {
  text-align: left;
  font-weight: 400;
  color: var(--cream-dim);
  padding: 10px 0;
}

.schedule-table td {
  text-align: right;
  font-weight: 600;
  color: var(--cream);
  padding: 10px 0;
  font-variant-numeric: tabular-nums;
}

.schedule-table tr.today th,
.schedule-table tr.today td {
  color: var(--gold);
  font-weight: 700;
}

.today-indicator {
  display: inline-block;
  font-size: var(--font-caption);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: var(--gold);
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  margin-left: 8px;
  vertical-align: middle;
}

.schedule-footnote {
  margin-top: auto;
  padding-top: 16px;
  font-size: var(--font-small);
  color: rgba(251, 242, 223, 0.45);
  line-height: 1.5;
}

/* --- Patička webu s informacemi o provozovateli --- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-top: 32px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.footer-brand {
  font-family: var(--font-serif);
  font-size: var(--font-body);
  color: var(--cream);
}

.footer-nav {
  display: flex;
  gap: 18px;
}

.footer-nav a {
  color: var(--cream-dim);
  text-decoration: none;
  font-size: var(--font-small);
  transition: color 0.2s ease;
}

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

.footer-legal {
  color: rgba(251, 242, 223, 0.5);
  font-size: var(--font-small);
  line-height: 1.6;
}

.footer-legal span:not(:last-child)::after {
  content: "·";
  margin: 0 0.55em;
  color: var(--gold);
  opacity: 0.7;
}

/* --- Sekce 4 rychlých tlačítek (Rozvoz, Polední menu, Jídelní a Vinný lístek) --- */
.quick-links-section {
  width: 100%;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.quick-card {
  position: relative;
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--cream);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.quick-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, var(--card-glow, rgba(217, 173, 84, 0.15)), transparent 70%);
  opacity: 0.5;
  transition: opacity 0.25s ease;
}

.quick-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-accent, var(--gold));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.quick-card:hover::before {
  opacity: 1;
}

.card-rozvoz {
  --card-accent: #e8654f;
  --card-glow: rgba(232, 101, 79, 0.22);
}

.card-poledni {
  --card-accent: #a7c957;
  --card-glow: rgba(167, 201, 87, 0.2);
}

.card-jidelni {
  --card-accent: var(--gold);
  --card-glow: rgba(217, 173, 84, 0.22);
}

.card-vinny {
  --card-accent: #7ccbb2;
  --card-glow: rgba(124, 203, 178, 0.2);
}

.quick-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(251, 242, 223, 0.14);
  background: rgba(5, 6, 4, 0.4);
  color: var(--card-accent, var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.quick-card:hover .quick-icon {
  transform: scale(1.08);
  border-color: var(--card-accent, var(--gold));
}

.quick-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quick-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.quick-title {
  font-size: var(--font-h3);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cream);
  line-height: 1.25;
}

.quick-sub {
  font-size: var(--font-small);
  color: var(--cream-dim);
}

.quick-arrow {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: var(--font-small);
  color: var(--card-accent, var(--gold));
  opacity: 0.6;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.quick-card:hover .quick-arrow {
  opacity: 1;
  transform: translateX(3px);
}

/* --- Responzivita --- */
@media (max-width: 768px) {
  .site-container {
    padding: 36px 18px 48px;
    gap: 32px;
  }

  .quick-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .quick-card {
    padding: 20px 14px;
  }

  .info-columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .site-main {
    gap: 32px;
  }

  .panel {
    padding: 24px 18px;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  :root {
    --font-h1: 2.15rem;
    --font-h2: 1.25rem;
    --font-h3: 0.82rem;
    --font-lead: 0.94rem;
    --font-body: 0.9rem;
    --font-small: 0.78rem;
    --font-caption: 0.72rem;
  }

  .site-container {
    padding: 24px 14px 40px;
    gap: 24px;
  }

  .site-main {
    gap: 24px;
  }

  .brand-avatar {
    width: 72px;
    height: 72px;
    margin-bottom: 12px;
  }

  .brand-status {
    margin-top: 10px;
    gap: 12px;
  }

  .brand-status::before,
  .brand-status::after {
    width: 20px;
  }

  .quick-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .quick-card {
    padding: 18px 8px 14px;
  }

  .quick-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
  }

  .quick-icon svg {
    width: 24px;
    height: 24px;
  }

  .quick-info {
    gap: 3px;
  }

  .quick-arrow {
    top: 8px;
    right: 8px;
  }
}

