/* Kebab House — home page (index.html).
   Loaded after styles.css, which supplies the theme: colours, font, .wrap, .btn, .pill, .checkout and the
   site header and footer shared with the ordering page.
   Everything here is scoped to this page so the ordering page is unaffected. */

/* The pages are sections of index.html; site.js shows one at a time. Footer stays at the bottom on short pages. */
body.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

.site main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.page[hidden] {
  display: none;
}

.page.wrap {
  width: 100%;
  padding-block: 36px 56px;
}

/* Without JavaScript every page shows in a row, so headings need to clear the sticky header */
html {
  scroll-padding-top: 108px;
}

.site a:focus-visible,
.site button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- Header ---------- */
/* Stays in view here; on the ordering page the cart is the sticky part instead */
.site-top {
  position: sticky;
  top: 0;
  z-index: 30;
}

/* ---------- Home ---------- */
.site section {
  margin-bottom: 0;
}

.home {
  flex: 1;
  display: grid;
  align-items: center;
  min-height: min(620px, 78vh);
  padding-block: 48px;
  color: #fff;
  text-align: center;
  background:
    linear-gradient(rgba(20, 8, 6, .55), rgba(20, 8, 6, .55)),
    url("images/home-hero.jpg") center / cover no-repeat #3a1512;
}

.home h1 {
  font-size: clamp(2rem, 7vw, 3.4rem);
  line-height: 1.1;
  margin: 10px 0;
}

.home-lead {
  margin: 0;
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.btn.big {
  padding: 14px 30px;
  font-size: 1.05rem;
}

.btn.light {
  background: #fff;
  color: var(--ink);
}

.btn.light:hover {
  background: var(--bg);
}

/* ---------- Sections ---------- */
.lead {
  margin: 0 0 18px;
  color: var(--muted);
}

.after {
  margin: 20px 0 0;
  text-align: center;
}

.panel {
  background: #fff;
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 1px 0 var(--line), 0 20px 40px -24px rgba(90, 30, 20, .35);
}

.panel h3 {
  margin: 18px 0 6px;
  color: var(--red);
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .6px;
}

.panel h3:first-child {
  margin-top: 0;
}

.panel p {
  margin: 0 0 8px;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

/* Menu pages */
.sheets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.sheets a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: 0 1px 2px rgba(60, 20, 10, .08), 0 14px 26px -14px rgba(60, 20, 10, .4);
}

.sheets img,
.shots img {
  display: block;
  width: 100%;
  height: auto;
}

/* Gallery */
.shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

/* Photos are shown whole at their own shape: never cropped, nothing showing behind them */
.shots img {
  border-radius: var(--radius);
}

/* About */
.prose {
  max-width: 760px;
  line-height: 1.7;
}

.prose .intro {
  font-size: 1.15rem;
  font-weight: 500;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* Location & hours */
address {
  font-style: normal;
  font-weight: 600;
}

.hours {
  width: 100%;
  border-collapse: collapse;
}

.hours th,
.hours td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
  text-align: left;
}

.hours td {
  text-align: right;
  white-space: nowrap;
}

.hours tr:last-child > * {
  border-bottom: 0;
}

.hours .closed td {
  color: var(--red);
  font-weight: 600;
}

.hours .today > * {
  background: var(--bg);
  font-weight: 600;
}

.hours .today th::after {
  content: " · Today";
  color: var(--muted);
  font-size: .8rem;
  font-weight: 500;
}

.map {
  height: 100%;
  min-height: 340px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--line);
  box-shadow: 0 20px 40px -24px rgba(90, 30, 20, .35);
}

.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
}

/* Contact */
.phone {
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
}

.sent {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--green);
  background: #eef9f2;
  color: #14693a;
  font-size: .85rem;
}

/* ---------- Tablet and phone ---------- */
@media (max-width: 860px) {
  html {
    scroll-padding-top: 134px;
  }

  .split,
  .sheets {
    grid-template-columns: 1fr;
  }

  .page.wrap {
    padding-block: 24px 40px;
  }
}

@media (max-width: 600px) {
  .shots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .home {
    min-height: min(520px, 70vh);
  }

  .panel {
    padding: 16px;
  }
}

