/*
Theme Name: Swad Restaurant
Theme URI: https://swadrestaurantsylhet.store
Author: Swad Restaurant
Author URI: https://swadrestaurantsylhet.store
Description: Official custom WordPress theme for Swad Restaurant, an authentic dining experience in Baruthkhana, Sylhet, Bangladesh.
Version: 1.0.0
Requires at least: 5.5
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: swad-restaurant
Tags: restaurant, business, one-column, custom-menu, custom-logo, featured-images, translation-ready
*/

/* ---------- Design tokens ---------- */
:root {
  --swad-bg: #fffaf3;
  --swad-surface: #ffffff;
  --swad-ink: #22180f;
  --swad-muted: #6d5a48;
  --swad-primary: #b3261e;
  --swad-primary-dark: #8c1a14;
  --swad-accent: #e2a03f;
  --swad-border: #ecdfd0;
  --swad-radius: 14px;
  --swad-shadow: 0 10px 30px rgba(59, 34, 15, 0.08);
  --swad-max: 1140px;
}

/* ---------- Base / reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--swad-bg);
  color: var(--swad-ink);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--swad-primary); }
a:hover { color: var(--swad-primary-dark); }

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.2;
  margin: 0 0 0.5em;
}
h1 { font-size: 2.1rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.25rem; }

.swad-container {
  width: 100%;
  max-width: var(--swad-max);
  margin: 0 auto;
  padding: 0 20px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed; top: 10px; left: 10px; z-index: 999;
  background: #fff; padding: 10px 16px; border-radius: 8px;
  clip: auto; width: auto; height: auto;
}

/* ---------- Buttons ---------- */
.swad-btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--swad-primary);
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.swad-btn:hover { background: var(--swad-primary-dark); transform: translateY(-1px); }
.swad-btn--ghost {
  background: transparent;
  color: var(--swad-primary) !important;
  border: 2px solid var(--swad-primary);
}
.swad-btn--ghost:hover { background: rgba(179, 38, 30, 0.08); }

/* ---------- Header ---------- */
.swad-topbar {
  background: var(--swad-ink);
  color: #f6e9da;
  font-size: 0.85rem;
}
.swad-topbar .swad-container {
  display: flex; flex-wrap: wrap; gap: 6px 20px;
  justify-content: center; align-items: center;
  padding-top: 8px; padding-bottom: 8px; text-align: center;
}
.swad-topbar a { color: var(--swad-accent); text-decoration: none; font-weight: 600; }

.swad-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--swad-border);
  backdrop-filter: blur(8px);
}
.swad-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 14px; padding-bottom: 14px;
}
.swad-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.swad-brand__mark {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--swad-primary); color: #fff;
  font-family: Georgia, serif; font-size: 1.25rem; font-weight: 700;
}
.swad-brand__name { font-family: Georgia, serif; font-size: 1.2rem; font-weight: 700; margin: 0; }
.swad-brand__tag { display: block; font-size: 0.75rem; color: var(--swad-muted); letter-spacing: 0.08em; text-transform: uppercase; }

.swad-nav-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 1px solid var(--swad-border);
  border-radius: 10px; padding: 9px 14px;
  font: inherit; font-size: 0.9rem; color: var(--swad-ink); cursor: pointer;
}
.swad-nav { display: none; width: 100%; }
.swad-nav.is-open { display: block; }
.swad-nav ul { list-style: none; margin: 0; padding: 0 0 14px; }
.swad-nav li { border-top: 1px solid var(--swad-border); }
.swad-nav a {
  display: block; padding: 12px 2px;
  color: var(--swad-ink); text-decoration: none; font-weight: 600;
}
.swad-nav a:hover, .swad-nav .current-menu-item > a { color: var(--swad-primary); }
.swad-header__cta { display: none; }

@media (min-width: 880px) {
  .swad-nav-toggle { display: none; }
  .swad-nav { display: block !important; width: auto; }
  .swad-nav ul { display: flex; gap: 26px; padding: 0; }
  .swad-nav li { border-top: 0; }
  .swad-nav a { padding: 4px 0; }
  .swad-header__cta { display: inline-block; }
}

/* ---------- Sections ---------- */
.swad-section { padding: 64px 0; }
.swad-section--alt { background: var(--swad-surface); border-top: 1px solid var(--swad-border); border-bottom: 1px solid var(--swad-border); }
.swad-section__head { max-width: 700px; margin: 0 auto 40px; text-align: center; }
.swad-eyebrow {
  display: inline-block; margin-bottom: 10px;
  color: var(--swad-primary); font-size: 0.78rem;
  letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700;
}
.swad-lead { color: var(--swad-muted); font-size: 1.05rem; margin: 0; }

/* ---------- Hero ---------- */
.swad-hero {
  background:
    linear-gradient(160deg, rgba(34, 24, 15, 0.92), rgba(140, 26, 20, 0.88)),
    radial-gradient(circle at 80% 20%, rgba(226, 160, 63, 0.5), transparent 60%);
  color: #fff5e9;
  padding: 84px 0;
  text-align: center;
}
.swad-hero h1 { color: #fff; font-size: clamp(2.2rem, 6vw, 3.6rem); }
.swad-hero p { max-width: 620px; margin: 0 auto 28px; color: #f3ddc5; font-size: 1.1rem; }
.swad-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.swad-hero__actions .swad-btn--ghost { color: #fff !important; border-color: rgba(255, 255, 255, 0.7); }
.swad-hero__meta { margin-top: 30px; font-size: 0.9rem; color: #e9cfae; }

/* ---------- Cards / grids ---------- */
.swad-grid { display: grid; gap: 22px; }
@media (min-width: 700px) { .swad-grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .swad-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.swad-card {
  background: var(--swad-surface);
  border: 1px solid var(--swad-border);
  border-radius: var(--swad-radius);
  box-shadow: var(--swad-shadow);
  padding: 26px;
}
.swad-card h3 { margin-top: 0; }
.swad-card p { color: var(--swad-muted); margin-bottom: 0; }

.swad-menu-item { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--swad-border); }
.swad-menu-item:last-child { border-bottom: 0; }
.swad-menu-item__name { font-weight: 600; }
.swad-menu-item__desc { display: block; font-size: 0.9rem; color: var(--swad-muted); font-weight: 400; }
.swad-menu-item__price { color: var(--swad-primary); font-weight: 700; white-space: nowrap; }

.swad-info-list { list-style: none; margin: 0; padding: 0; }
.swad-info-list li { padding: 10px 0; border-bottom: 1px solid var(--swad-border); }
.swad-info-list li:last-child { border-bottom: 0; }
.swad-info-list strong { display: block; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--swad-muted); }

/* ---------- Posts / pages ---------- */
.swad-main { padding: 56px 0; }
.swad-page-title { margin-bottom: 28px; }
.swad-entry { background: var(--swad-surface); border: 1px solid var(--swad-border); border-radius: var(--swad-radius); padding: 28px; margin-bottom: 26px; }
.swad-entry__title { margin-top: 0; }
.swad-entry__title a { text-decoration: none; color: var(--swad-ink); }
.swad-entry__title a:hover { color: var(--swad-primary); }
.swad-entry__meta { font-size: 0.85rem; color: var(--swad-muted); margin-bottom: 14px; }
.swad-entry__thumb { margin-bottom: 18px; border-radius: 10px; overflow: hidden; }
.swad-entry img { border-radius: 10px; }
.swad-pagination { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.swad-pagination .page-numbers {
  display: inline-block; padding: 8px 14px; border-radius: 8px;
  border: 1px solid var(--swad-border); background: #fff; text-decoration: none;
}
.swad-pagination .current { background: var(--swad-primary); color: #fff; border-color: var(--swad-primary); }

.swad-404 { text-align: center; padding: 80px 0; }
.swad-404__code { font-size: clamp(4rem, 18vw, 8rem); line-height: 1; color: var(--swad-primary); margin: 0; }

/* ---------- Footer ---------- */
.swad-footer { background: var(--swad-ink); color: #e8d9c8; margin-top: 40px; }
.swad-footer a { color: var(--swad-accent); }
.swad-footer__widgets { display: grid; gap: 30px; padding: 54px 0 34px; }
@media (min-width: 860px) { .swad-footer__widgets { grid-template-columns: repeat(3, 1fr); } }
.swad-footer h2, .swad-footer h3, .swad-footer .widget-title {
  color: #fff; font-size: 1.05rem; margin-bottom: 14px;
}
.swad-footer ul { list-style: none; margin: 0; padding: 0; }
.swad-footer li { padding: 5px 0; }
.swad-footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0 34px;
  font-size: 0.85rem;
  color: #c6b3a0;
  text-align: center;
}
.swad-footer__legal p { margin: 4px 0; }
