/* Website Builder — Gostilna Marko (RESTAURANT) */
:root {
  --color-bg: #faf6f0;
  --color-surface: #ffffff;
  --color-text: #2b1e13;
  --color-muted: #6b5b4d;
  --color-accent: #9d4a1f;
  --color-accent-hover: #7d3b18;
  --color-accent-soft: #f2e4d6;
  --color-border: #e7dccb;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --radius: 0.5rem;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --max-width: 72rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; }
.container { width: min(100% - 2rem, var(--max-width)); margin-inline: auto; }

/* Header / nav */
.site-header {
  background: var(--color-surface);
  border-bottom: 2px solid var(--color-border);
  position: sticky; top: 0; z-index: 40;
}
.site-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; }
.brand { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--color-text); }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 1.25rem; }
.nav-links a { color: var(--color-text); font-weight: 500; }
.nav-links a:hover { color: var(--color-accent); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.4rem; cursor: pointer; }
.site-nav__brand-links { display: flex; align-items: center; gap: 1.5rem; }

/* Buttons */
.btn {
  display: inline-block; padding: 0.65rem 1.15rem; border-radius: var(--radius);
  background: var(--color-accent); color: #fff; font-weight: 600; border: none; cursor: pointer;
}
.btn:hover { background: var(--color-accent-hover); text-decoration: none; }
.btn--light { background: #fff; color: var(--color-accent); }

/* Hero */
.hero { position: relative; }
.hero img { width: 100%; max-height: 560px; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.65));
  display: flex; align-items: center; justify-content: center; text-align: center; color: #fff;
}
.hero__content { padding: 2rem; }
.hero__content h1 { font-size: clamp(2rem, 5vw, 3.25rem); margin: 0 0 0.5rem; }
.hero__content p { font-size: 1.15rem; max-width: 38rem; margin: 0 auto 1.25rem; }

.section { padding: var(--space-xl) 0; }
.section__title { font-size: 1.75rem; margin: 0 0 var(--space-md); text-align: center; }
.section--muted { background: var(--color-surface); border-block: 1px solid var(--color-border); }

.grid { display: grid; gap: var(--space-lg); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Cards */
.card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.card img { width: 100%; height: 200px; object-fit: cover; }
.card__body { padding: 1.25rem; }
.card__body h3 { margin: 0 0 0.5rem; }

/* Hero food highlight cards on index */
.feature-card { text-align: center; }
.feature-card img { aspect-ratio: 4 / 3; }

/* Menu items */
.menu-item {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.9rem 0; border-bottom: 1px dashed var(--color-border);
}
.menu-item__name { font-weight: 600; }
.menu-item__price { color: var(--color-accent); font-weight: 700; white-space: nowrap; }

/* Reviews */
.review-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
}
.review-card .stars { color: #e6a23c; font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 0.5rem; }
.review-card blockquote { margin: 0 0 0.75rem; font-style: italic; color: var(--color-muted); }
.review-card .reviewer { font-weight: 700; }

/* Pricing notice */
.pricing-demo-notice {
  background: var(--color-accent-soft); border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent); border-radius: var(--radius);
  padding: 1rem 1.25rem; color: var(--color-text); font-size: 0.95rem;
}

/* Tables */
table { width: 100%; border-collapse: collapse; background: var(--color-surface); }
th, td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--color-border); text-align: left; }
th { background: var(--color-accent-soft); font-family: var(--font-display); }
tbody .price { text-align: right; font-weight: 700; color: var(--color-accent); }

/* Forms */
.form-field { margin-bottom: 1rem; }
.form-field label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.form-field input, .form-field textarea {
  width: 100%; padding: 0.7rem 0.85rem; border: 1px solid var(--color-border);
  border-radius: var(--radius); font: inherit; background: #fff;
}
.form-success { display: none; margin-top: 1rem; padding: 1rem; border-radius: var(--radius); background: #e8f5e9; color: #1b5e20; }
.form-error { display: none; margin-top: 0.5rem; padding: 0.75rem 1rem; border-radius: var(--radius); background: #fdecea; color: #b71c1c; }

/* About */
.about-photo { border-radius: var(--radius); box-shadow: var(--shadow); height: 100%; object-fit: cover; }

/* Contact block */
.contact-info { margin-top: var(--space-lg); }

/* Footer */
.site-footer {
  margin-top: var(--space-2xl); padding: var(--space-xl) 0; border-top: 2px solid var(--color-border);
  background: var(--color-surface); color: var(--color-muted); font-size: 0.9rem;
}
.site-footer__cols { display: grid; gap: var(--space-lg); grid-template-columns: 1fr; }
@media (min-width: 720px) { .site-footer__cols { grid-template-columns: repeat(3, 1fr); } }
.site-footer h4 { color: var(--color-text); margin: 0 0 0.5rem; }
.site-footer a { color: var(--color-muted); }
.site-footer a:hover { color: var(--color-accent); }
.site-footer__social { margin-top: var(--space-lg); }
.site-footer__social-title { font-weight: 600; color: var(--color-text); margin-bottom: 0.75rem; }
.social-icons { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.social-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; color: var(--color-accent) !important;
  background: var(--color-accent-soft); transition: background 0.2s;
}
.social-icon:hover { background: var(--color-accent); color: #fff !important; }
.site-footer__bottom { border-top: 1px solid var(--color-border); margin-top: var(--space-lg); padding-top: var(--space-md); }

/* Legal */
.legal article { max-width: 46rem; }
.legal h2 { font-size: 1.35rem; margin-top: var(--space-xl); }

/* Footer nav */
.footer-nav { display: flex; flex-wrap: wrap; gap: 1rem; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--color-surface); flex-direction: column; align-items: flex-start;
    padding: 1rem; border-bottom: 2px solid var(--color-border); gap: 0.75rem;
  }
  .nav-links.is-open { display: flex; }
}
