/* =========================================================================
   Shark Bay Pizza - shared stylesheet
   Plain CSS, mobile-first. Matches the live Divi site's look:
   full-width banner, black Cinzel nav, photo hero, then a white "paper"
   box with torn edges floating over a textured background.
   Sections:
   1. Design tokens        6. Hero
   2. Base / reset         7. Paper box + torn edges
   3. Typography           8. Section titles, intro text, photo strips
   4. Utilities            9. Menu grid / menu items / category banners
   5. Header + nav         10. Contact, footer
   See COMPONENTS.md for HTML examples of every class.
   ========================================================================= */

/* 1. Design tokens ------------------------------------------------------- */
:root {
  --gold: #e09900;          /* nav accent, active link, top border */
  --price: #d1a054;         /* menu prices */
  --black: #000;
  --white: #fff;
  --heading: #333;          /* headings and item names */
  --ink: #666;              /* body text */
  --rule: rgba(0, 0, 0, 0.3);

  --font-head: 'Cinzel', Georgia, 'Times New Roman', serif;
  --font-body: 'Open Sans', Arial, sans-serif;

  --box-width: 80%;         /* paper box width, as on the live site */
  --box-max: 1080px;
  --box-pad: 7.5%;          /* side padding for menu items / contact */
  --shadow: 0 0 10px 3px rgba(0, 0, 0, 0.3);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink);
  background-color: #f2f2f2;
  background-image: url("../images/bg1.png");
  background-repeat: repeat;
  background-position: center top;
  background-attachment: fixed;
  overflow-wrap: break-word;
}

img,
picture {
  max-width: 100%;
  height: auto;
}

img {
  display: block;
}

iframe {
  max-width: 100%;
}

/* 3. Typography ---------------------------------------------------------- */
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1;
  color: var(--heading);
}

p {
  margin: 0;
  padding-bottom: 1em;
}

p:last-child {
  padding-bottom: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s linear;
}

a:hover {
  color: var(--gold);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* 4. Utilities ----------------------------------------------------------- */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--black);
  color: var(--gold);
  font-family: var(--font-head);
}

.skip-link:focus {
  top: 8px;
}

.text-center {
  text-align: center;
}

/* 5. Header + nav (pure CSS, checkbox toggle on mobile) ------------------ */
.site-header {
  background-color: var(--black);
}

/* Full-width banner image (water, logo, phone), black strip below */
.site-brand {
  padding-bottom: 25px;
  background-color: var(--black);
}

.site-brand a {
  display: block;
}

.site-brand img {
  width: 100%;
  height: auto;
}

.site-nav {
  position: relative;
  background-color: var(--black);
  border-top: 2px solid var(--gold);
}

/* Visually hidden checkbox keeps keyboard support (Space toggles) */
.nav-toggle-input {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  padding: 0;
}

/* Mobile: centred gold hamburger on a black bar */
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  cursor: pointer;
  user-select: none;
}

.nav-toggle-input:focus-visible + .nav-toggle {
  outline: 2px solid var(--gold);
  outline-offset: -4px;
}

.nav-toggle__icon {
  position: relative;
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--gold);
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--gold);
}

.nav-toggle__icon::before { top: -7px; }
.nav-toggle__icon::after { top: 7px; }

.nav-panel {
  display: none;
}

.nav-toggle-input:checked ~ .nav-panel {
  display: block;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0 0 12px;
}

.nav-list a {
  display: block;
  padding: 8px 16px;
  color: var(--white);
  font-family: var(--font-head);
  font-size: 24px;
  line-height: 1.4;
  text-align: center;
}

.nav-list a:hover,
.nav-list a.active,
.nav-list a[aria-current="page"] {
  color: var(--gold);
}

@media (min-width: 981px) {
  .nav-toggle {
    display: none;
  }

  .nav-panel {
    display: block;
  }

  .nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 22px;
    padding: 0 16px;
  }

  .nav-list a {
    padding: 15px 0 14px;
    font-size: 30px;
    line-height: 43px;
  }
}

/* 6. Hero ---------------------------------------------------------------- */
/* Photo banner under the nav. The paper box overlaps its bottom 100px. */
.hero {
  position: relative;
  overflow: hidden;
  height: calc(30vh + 100px);
  min-height: 260px;
  background-color: var(--black);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  .hero { height: calc(40vh + 100px); }
}

@media (min-width: 981px) {
  .hero { height: calc(50vh + 100px); }
}

/* 7. Paper box + torn edges --------------------------------------------- */
.page {
  padding-bottom: 54px;
}

.paper {
  position: relative;
  z-index: 1;
  display: flow-root;       /* stops the first title's margin collapsing */
  width: var(--box-width);
  max-width: var(--box-max);
  margin: -100px auto 0;
  background-color: var(--white);
  box-shadow: var(--shadow);
}

/* Torn-paper strips on the top and bottom edges of the box */
.paper::before,
.paper::after {
  content: "";
  position: absolute;
  left: 0;
  z-index: 10;
  width: 100%;
  height: 7px;
  background-image: url("../images/torn-paper.png");
}

.paper::before { top: -7px; }
.paper::after { bottom: -7px; }

.paper__section {
  padding-bottom: 27px;
}

/* 8. Section titles, intro text, photo strips --------------------------- */
/* Cinzel heading framed by thin dark rules, centred in the box */
.section-title {
  display: table;
  margin: 50px auto 0;
  padding: 5px 15px 0;
  border-top: 1px solid var(--heading);
  border-bottom: 1px solid var(--heading);
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
  color: var(--heading);
  text-align: center;
}

.intro {
  margin: 50px 0;
  padding: 0 15%;
  text-align: center;
}

.intro a:hover {
  color: var(--gold);
  text-decoration: underline;
}

/* Full-width photo between sections inside the box */
.photo-strip {
  height: 173px;
  background-color: #333;
  background-image: url("../images/cheese-delicious-dinner-2232.jpg");
  background-image: image-set(
    url("../images/cheese-delicious-dinner-2232.webp") type("image/webp"),
    url("../images/cheese-delicious-dinner-2232.jpg") type("image/jpeg")
  );
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (min-width: 768px) {
  .photo-strip { height: 223px; }
}

/* 9. Menu grid + menu items + category banners ------------------------- */
.menu-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 50px 7.4%;
  padding: 54px var(--box-pad) 27px;
}

.menu-grid--compact {
  row-gap: 44px;
}

@media (min-width: 768px) {
  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.menu-item {
  min-width: 0;
}

/* Name left, price right, dashed rule underneath */
.menu-item__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px dashed var(--rule);
}

.menu-item__name,
.menu-item__price {
  margin: 0;
  padding: 0 0 2px;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.1;
}

.menu-item__name {
  min-width: 0;
  color: var(--heading);
}

.menu-item__price {
  flex-shrink: 0;
  color: var(--price);
  white-space: nowrap;
}

.menu-item__desc {
  margin: 0;
  padding: 0;
  font-size: 12px;
  line-height: 23.8px;
  color: var(--ink);
}

/* Photo banner with a big white title, e.g. "Pizza" on the menu page */
.category-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  padding: 24px 16px;
  background-color: #333;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.category-banner h2 {
  font-size: clamp(42px, 6vw, 75px);
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  text-align: center;
  text-shadow: 6px 6px 6px rgba(0, 0, 0, 0.8);
}

@media (min-width: 768px) {
  .category-banner { min-height: 245px; }
}

.category-banner--pizza {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)),
    url("../images/cheese-delicious-dinner-2232.jpg");
}

.category-banner--extras {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)),
    url("../images/american-1239086_1920.jpg");
}

.category-banner--sides {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)),
    url("../images/bread-3535048_1920.jpg");
}

.category-banner--desserts {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)),
    url("../images/dairy-product-delicious-dessert-2161643.jpg");
}

/* 10. Contact + footer -------------------------------------------------- */
.contact-grid {
  display: grid;
  gap: 32px 7.4%;
  padding: 54px var(--box-pad) 60px;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.contact-info strong {
  font-weight: 700;
}

.map-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: #e5e3df;
}

.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.site-footer {
  padding: 15px 16px;
  background-color: var(--black);
  color: var(--ink);
  text-align: center;
}

.site-footer p {
  padding: 0;
}

.site-footer a {
  font-weight: 700;
}
