/* ============================================================
   SABOR — Restaurant & Café HTML Template
   Main stylesheet (style.css)
   ------------------------------------------------------------
   Contents:
     01. CSS variables (light + dark theme)
     02. Base & typography
     03. Utilities (container, buttons, section headings)
     04. Header & navigation
     05. Hero
     06. Featured dishes / cards
     07. About preview & stats
     08. Testimonials slider
     09. Menu page (tabs + items)
     10. Gallery + lightbox
     11. Reservation / contact form
     12. Footer
     13. Reveal-on-scroll animation
   ============================================================ */

/* ---------- 01. CSS variables ---------- */
:root {
  --bg: #faf6ef;
  --bg-alt: #f1e8da;
  --surface: #ffffff;
  --text: #2b2118;
  --text-soft: #6f6154;
  --accent: #bc5633;          /* terracotta */
  --accent-dark: #9c4223;
  --gold: #d9a441;
  --border: #e4d8c6;
  --shadow: 0 10px 30px rgba(60, 40, 20, 0.10);
  --header-bg: rgba(250, 246, 239, 0.92);
  --hero-overlay: linear-gradient(105deg, rgba(24, 15, 8, 0.82) 30%, rgba(24, 15, 8, 0.25) 75%);
  --radius: 14px;
  --font-head: Georgia, "Times New Roman", serif;
  --font-body: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --transition: 0.3s ease;
}

[data-theme="dark"] {
  --bg: #171310;
  --bg-alt: #1f1a16;
  --surface: #241e19;
  --text: #f2e9dc;
  --text-soft: #b8a892;
  --accent: #e0724a;
  --accent-dark: #bc5633;
  --gold: #e0b45c;
  --border: #3a3129;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --header-bg: rgba(23, 19, 16, 0.92);
}

/* ---------- 02. Base & typography ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  transition: background var(--transition), color var(--transition);
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}

/* ---------- 03. Utilities ---------- */
.container { width: min(1180px, 92%); margin: 0 auto; }
.section { padding: 5.2rem 0; }
.section.alt { background: var(--bg-alt); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head .eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.section-head h2 { font-size: 2.3rem; margin-bottom: 0.7rem; }
.section-head p { color: var(--text-soft); }

.btn {
  display: inline-block;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--accent);
  transition: all var(--transition);
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ---------- 04. Header & navigation ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.9rem 0;
}
.logo {
  font-family: var(--font-head);
  font-size: 1.7rem; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 0.5rem;
}
.logo .logo-mark { color: var(--accent); font-size: 1.5rem; }
.logo small { font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); display: block; line-height: 1; }

.main-nav ul { display: flex; gap: 2rem; }
.main-nav a {
  color: var(--text); font-weight: 500; font-size: 0.98rem; position: relative; padding: 0.2rem 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--accent); transition: width var(--transition);
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 0.7rem; }
.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font-size: 1.05rem; cursor: pointer;
  display: grid; place-items: center; transition: all var(--transition);
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font-size: 1.2rem; cursor: pointer;
}

/* ---------- 05. Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  background: url("../assets/img/hero-dish.jpg") center/cover no-repeat;
  position: relative; padding: 8.5rem 0 5rem;
}
.hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-overlay); }
.hero-content { position: relative; max-width: 620px; color: #fdf8ef; }
.hero-content .eyebrow {
  text-transform: uppercase; letter-spacing: 0.25em; font-size: 0.8rem;
  font-weight: 700; color: var(--gold); margin-bottom: 1rem; display: block;
}
.hero-content h1 { color: #fdf8ef; font-size: 3.4rem; margin-bottom: 1.1rem; }
.hero-content h1 em { color: var(--gold); font-style: italic; }
.hero-content p { font-size: 1.12rem; color: #e9dfcd; margin-bottom: 2rem; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero .btn-outline { color: #fdf8ef; border-color: rgba(253, 248, 239, 0.55); }
.hero .btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.hero-badge {
  position: relative; margin-top: 2.6rem; display: inline-flex; gap: 2rem;
  background: rgba(23, 16, 10, 0.55); border: 1px solid rgba(253, 248, 239, 0.18);
  padding: 0.9rem 1.5rem; border-radius: var(--radius); color: #e9dfcd; font-size: 0.9rem;
}
.hero-badge strong { color: var(--gold); display: block; font-family: var(--font-head); font-size: 1.05rem; }

/* Page banner (inner pages) */
.page-banner {
  padding: 9.5rem 0 4.5rem; text-align: center;
  background: linear-gradient(120deg, var(--bg-alt), var(--bg));
  border-bottom: 1px solid var(--border);
}
.page-banner h1 { font-size: 2.8rem; margin-bottom: 0.6rem; }
.page-banner p { color: var(--text-soft); max-width: 560px; margin: 0 auto; }
.breadcrumb { font-size: 0.85rem; color: var(--text-soft); margin-bottom: 0.8rem; text-transform: uppercase; letter-spacing: 0.15em; }
.breadcrumb a { color: var(--accent); }

/* ---------- 06. Featured dishes / cards ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.dish-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.dish-card:hover { transform: translateY(-6px); }
.dish-card img { height: 220px; width: 100%; object-fit: cover; }
.dish-card .card-body { padding: 1.4rem 1.5rem 1.6rem; }
.dish-card h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.dish-card p { color: var(--text-soft); font-size: 0.95rem; margin-bottom: 1rem; }
.card-meta { display: flex; justify-content: space-between; align-items: center; }
.price { font-family: var(--font-head); font-size: 1.35rem; color: var(--accent); font-weight: 700; }
.tag {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  background: var(--bg-alt); color: var(--accent); border: 1px solid var(--border);
  padding: 0.25rem 0.65rem; border-radius: 999px;
}

/* Art tile: elegant CSS-only visual (replace with a photo if you wish) */
.art-tile {
  height: 220px; display: grid; place-items: center; text-align: center; padding: 1.5rem;
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.25), transparent 45%),
    linear-gradient(135deg, var(--accent), var(--gold));
  color: #fff;
}
.art-tile .art-icon { font-size: 3rem; line-height: 1; margin-bottom: 0.5rem; }
.art-tile strong { font-family: var(--font-head); font-size: 1.25rem; display: block; }
.art-tile span { font-size: 0.85rem; opacity: 0.9; }

/* ---------- 07. About preview & stats ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.split img.rounded { border-radius: var(--radius); box-shadow: var(--shadow); }
.split .eyebrow {
  text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.75rem;
  font-weight: 700; color: var(--accent); display: block; margin-bottom: 0.6rem;
}
.split h2 { font-size: 2.2rem; margin-bottom: 1rem; }
.split p { color: var(--text-soft); margin-bottom: 1rem; }
.stats { display: flex; gap: 2.5rem; margin-top: 1.6rem; flex-wrap: wrap; }
.stats .stat strong { font-family: var(--font-head); font-size: 2rem; color: var(--accent); display: block; line-height: 1; }
.stats .stat span { font-size: 0.85rem; color: var(--text-soft); }

/* Values list (About page) */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.value-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem 1.6rem; text-align: center; box-shadow: var(--shadow);
}
.value-card .value-icon { font-size: 2.2rem; margin-bottom: 0.8rem; }
.value-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.value-card p { color: var(--text-soft); font-size: 0.94rem; }

/* Team (About page) */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.team-card { text-align: center; }
.team-card .avatar {
  width: 130px; height: 130px; border-radius: 50%; margin: 0 auto 1rem;
  display: grid; place-items: center; font-size: 3rem; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  border: 4px solid var(--surface); box-shadow: var(--shadow);
}
.team-card h3 { font-size: 1.2rem; }
.team-card .role { color: var(--accent); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }
.team-card p { color: var(--text-soft); font-size: 0.93rem; margin-top: 0.5rem; }

/* ---------- 08. Testimonials slider ---------- */
.testimonials { max-width: 820px; margin: 0 auto; text-align: center; position: relative; }
.testimonial-slide { display: none; padding: 0 1rem; }
.testimonial-slide.active { display: block; animation: fadeIn 0.6s ease; }
.testimonial-slide .stars { color: var(--gold); font-size: 1.2rem; letter-spacing: 0.3em; margin-bottom: 1.2rem; }
.testimonial-slide blockquote {
  font-family: var(--font-head); font-size: 1.45rem; font-style: italic;
  line-height: 1.5; margin-bottom: 1.4rem;
}
.testimonial-slide .author { font-weight: 700; }
.testimonial-slide .author-role { color: var(--text-soft); font-size: 0.88rem; }
.slider-dots { display: flex; gap: 0.55rem; justify-content: center; margin-top: 2rem; }
.slider-dots button {
  width: 11px; height: 11px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--border); transition: all var(--transition);
}
.slider-dots button.active { background: var(--accent); transform: scale(1.25); }

@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- 09. Menu page ---------- */
.menu-tabs { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }
.menu-tab {
  padding: 0.7rem 1.6rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
  transition: all var(--transition);
}
.menu-tab:hover { border-color: var(--accent); color: var(--accent); }
.menu-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.menu-panel { display: none; }
.menu-panel.active { display: block; animation: fadeIn 0.5s ease; }
.menu-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 3rem; max-width: 980px; margin: 0 auto; }
.menu-item { padding-bottom: 1.1rem; border-bottom: 1px dashed var(--border); }
.menu-item-head { display: flex; align-items: baseline; gap: 0.6rem; }
.menu-item-head h3 { font-size: 1.15rem; }
.menu-item-head .dots { flex: 1; border-bottom: 2px dotted var(--border); transform: translateY(-4px); }
.menu-item-head .price { font-size: 1.15rem; }
.menu-item p { color: var(--text-soft); font-size: 0.92rem; margin-top: 0.25rem; }
.menu-note { text-align: center; color: var(--text-soft); margin-top: 3rem; font-size: 0.92rem; }

/* ---------- 10. Gallery + lightbox ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.gallery-item { border-radius: var(--radius); overflow: hidden; cursor: pointer; position: relative; border: 1px solid var(--border); }
.gallery-item img { height: 230px; width: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item .art-tile { height: 230px; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 2rem 1rem 0.8rem;
  background: linear-gradient(transparent, rgba(15, 9, 4, 0.75));
  color: #fff; font-size: 0.88rem; font-weight: 600;
  opacity: 0; transition: opacity var(--transition);
}
.gallery-item:hover figcaption { opacity: 1; }

.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(10, 6, 3, 0.92); align-items: center; justify-content: center; padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(880px, 92vw); max-height: 82vh; border-radius: var(--radius); box-shadow: var(--shadow); }
.lightbox .lightbox-caption { position: absolute; bottom: 2rem; left: 0; right: 0; text-align: center; color: #f2e9dc; font-family: var(--font-head); font-size: 1.15rem; }
.lightbox-close {
  position: absolute; top: 1.2rem; right: 1.5rem; background: none; border: none;
  color: #fff; font-size: 2.2rem; cursor: pointer; line-height: 1;
}

/* ---------- 11. Reservation / contact form ---------- */
.form-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 2.4rem;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.form-group { display: flex; flex-direction: column; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-weight: 600; font-size: 0.92rem; margin-bottom: 0.4rem; }
.form-group label .required { color: var(--accent); }
.form-group input, .form-group select, .form-group textarea {
  font-family: var(--font-body); font-size: 0.98rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 0.8rem 1rem; transition: border-color var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent);
}
.form-group .error-msg { display: none; color: #c0392b; font-size: 0.82rem; margin-top: 0.35rem; }
.form-group.invalid input, .form-group.invalid select, .form-group.invalid textarea { border-color: #c0392b; }
.form-group.invalid .error-msg { display: block; }
.form-success {
  display: none; margin-top: 1.4rem; padding: 1.1rem 1.3rem; border-radius: 10px;
  background: #e7f4e4; color: #2e6b27; border: 1px solid #bfe0b6; font-weight: 500;
}
[data-theme="dark"] .form-success { background: #22331f; color: #a8d69e; border-color: #39512f; }
.form-success.show { display: block; }

.contact-info { display: flex; flex-direction: column; gap: 1.4rem; }
.info-block { display: flex; gap: 1rem; align-items: flex-start; }
.info-block .info-icon {
  width: 48px; height: 48px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: var(--bg-alt); border: 1px solid var(--border); font-size: 1.25rem;
}
.info-block h3 { font-size: 1.1rem; margin-bottom: 0.2rem; }
.info-block p { color: var(--text-soft); font-size: 0.95rem; }
.map-placeholder {
  margin-top: 0.5rem; border-radius: var(--radius); border: 1px solid var(--border);
  min-height: 190px; display: grid; place-items: center; text-align: center; padding: 1.5rem;
  background:
    repeating-linear-gradient(45deg, transparent, transparent 14px, rgba(128, 110, 84, 0.06) 14px, rgba(128, 110, 84, 0.06) 28px),
    var(--bg-alt);
  color: var(--text-soft);
}
.map-placeholder strong { font-family: var(--font-head); font-size: 1.2rem; color: var(--text); display: block; margin-bottom: 0.3rem; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--accent-dark), var(--accent) 55%, var(--gold));
  color: #fff; text-align: center; padding: 4rem 0;
}
.cta-band h2 { color: #fff; font-size: 2.2rem; margin-bottom: 0.8rem; }
.cta-band p { color: rgba(255, 255, 255, 0.88); max-width: 520px; margin: 0 auto 1.8rem; }
.cta-band .btn { background: #fff; color: var(--accent-dark); border-color: #fff; }
.cta-band .btn:hover { background: transparent; color: #fff; }

/* ---------- 12. Footer ---------- */
.site-footer { background: #1d150e; color: #cfc2ae; padding: 4rem 0 0; }
[data-theme="dark"] .site-footer { background: #100c09; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 2.5rem; padding-bottom: 3rem; }
.site-footer h3, .site-footer h4 { color: #f5eddd; }
.site-footer h4 { font-size: 1.05rem; margin-bottom: 1rem; }
.site-footer p, .site-footer li { font-size: 0.93rem; }
.site-footer .logo { color: #f5eddd; margin-bottom: 0.8rem; }
.footer-links li { margin-bottom: 0.55rem; }
.footer-links a { color: #cfc2ae; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(245, 237, 221, 0.14); padding: 1.3rem 0;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.85rem;
}

/* Back to top */
.back-to-top {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--accent); color: #fff; font-size: 1.15rem; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: all var(--transition);
}
.back-to-top.show { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--accent-dark); }

/* ---------- 13. Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
