/* ==========================================================================
   Opertool starter template — café / restaurant one-pager
   EDIT the variables below first: they retheme the whole site.
   ========================================================================== */

:root {
  /* EDIT: brand colors. --accent is used for buttons, links, prices. */
  --accent: #b5652b;
  --accent-dark: #8f4e20;
  --ink: #241c15;
  --ink-soft: #5a5048;
  --paper: #fffdfa;
  --paper-alt: #f6efe6;
  --border: #e8ddcd;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 14px;
  --shadow: 0 4px 20px rgba(36, 28, 21, 0.08);
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.1rem; margin-bottom: 0.25em; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--accent-dark); }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 253, 250, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--ink);
  text-decoration: none;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.primary-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.primary-nav a:hover { color: var(--accent-dark); }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--accent-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  display: block;
}

/* ---------- hero ---------- */
.hero {
  padding: 96px 0 72px;
  background: linear-gradient(180deg, var(--paper-alt), var(--paper));
}

.hero-inner { max-width: 720px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: 0.75em;
}

.hero-lead { font-size: 1.08rem; max-width: 52ch; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.5em;
}

.btn {
  display: inline-block;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-dark); }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--paper-alt); }
.section-lead { max-width: 60ch; }

/* ---------- menu ---------- */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 1.5em;
}

.menu-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.menu-item-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.price {
  font-family: var(--font-display);
  color: var(--accent-dark);
  font-weight: 700;
  white-space: nowrap;
}

.menu-item p { margin: 0; font-size: 0.92rem; }

.menu-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 1.5em;
}

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.about-figure {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent) 0%, var(--paper-alt) 100%);
  box-shadow: var(--shadow);
}

.about-figure img,
.about-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 1.5em;
}

.gallery-placeholder,
.gallery-grid img {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background: var(--paper-alt);
  border: 1px dashed var(--border);
  object-fit: cover;
  width: 100%;
}

/* ---------- hours / location ---------- */
.hours-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.hours-table { border-collapse: collapse; width: 100%; }
.hours-table th, .hours-table td {
  text-align: left;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 400;
}
.hours-table th { color: var(--ink); font-weight: 600; width: 55%; }
.hours-table td { color: var(--ink-soft); }

address { font-style: normal; margin-bottom: 1.2em; }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.map-embed iframe {
  width: 100%;
  height: 260px;
  border: 0;
  display: block;
}

/* ---------- contact ---------- */
.contact-wrap { max-width: 560px; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 1.5em;
}

.contact-form label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 12px;
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.contact-form button { margin-top: 18px; align-self: flex-start; }

.hidden-field { position: absolute; left: -9999px; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  background: var(--paper-alt);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.social-links { display: flex; gap: 16px; }
.social-links a { color: var(--ink-soft); text-decoration: none; }
.social-links a:hover { color: var(--accent-dark); }

/* ---------- responsive ---------- */
@media (max-width: 780px) {
  .about-grid, .hours-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }

  .primary-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 16px;
    display: none;
  }
  .primary-nav.open { display: flex; }
  .nav-cta { align-self: flex-start; }
}
