/*
Theme Name: House of Pizza Gniezno
Theme URI: https://houseofpizza.com.pl/
Author: Codex
Author URI: https://openai.com/
Description: Gotowy motyw WordPress dla House of Pizza Gniezno, inspirowany szybkim zamawianiem, kategoriami menu i promocjami znanymi z nowoczesnych stron pizzerii.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: houseofpizza-gniezno
Tags: restaurant, food, custom-logo, custom-menu, featured-images
*/

:root {
  --hop-ink: #101216;
  --hop-muted: #626a73;
  --hop-line: #dde5df;
  --hop-paper: #f4f7f3;
  --hop-white: #ffffff;
  --hop-red: #e0313b;
  --hop-red-dark: #b71928;
  --hop-green: #078854;
  --hop-mint: #e7fbf1;
  --hop-yellow: #f4c441;
  --hop-shadow: 0 22px 55px rgba(16, 18, 22, 0.14);
  --hop-radius: 8px;
  --hop-max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--hop-ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 247, 243, 0.96) 420px),
    var(--hop-paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(244, 196, 65, 0.82);
  outline-offset: 3px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(16, 18, 22, 0.08);
  box-shadow: 0 12px 35px rgba(16, 18, 22, 0.05);
  backdrop-filter: blur(18px);
}

.header-inner,
.section-inner {
  width: min(calc(100% - 32px), var(--hop-max));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--hop-white);
  background: linear-gradient(135deg, var(--hop-red), var(--hop-red-dark));
  border: 1px solid rgba(16, 18, 22, 0.16);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(224, 49, 59, 0.28);
}

.brand-name {
  display: grid;
  line-height: 1.02;
}

.brand-name small {
  color: var(--hop-green);
  font-size: 12px;
  font-weight: 800;
}

.custom-logo {
  max-width: 210px;
  max-height: 58px;
  object-fit: contain;
}

.restaurant-logo {
  width: auto;
  max-width: 220px;
  max-height: 58px;
  object-fit: contain;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 6px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 18, 22, 0.08);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(16, 18, 22, 0.07);
  font-size: 14px;
  font-weight: 850;
}

.header-nav .menu {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 13px;
  color: rgba(16, 18, 22, 0.78);
  border-radius: 7px;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.header-nav a:hover {
  color: var(--hop-red);
  background: rgba(224, 49, 59, 0.08);
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-link,
.cart-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--hop-ink);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(16, 18, 22, 0.1);
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(16, 18, 22, 0.07);
  font-weight: 900;
  line-height: 1;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.phone-link:hover,
.cart-link:hover {
  background: var(--hop-white);
  border-color: rgba(224, 49, 59, 0.32);
  transform: translateY(-2px);
}

.cart-link {
  gap: 8px;
}

.cart-link b {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  color: var(--hop-white);
  background: var(--hop-red);
  border-radius: 7px;
  font-size: 12px;
  line-height: 1;
}

.header-order {
  min-height: 42px;
  padding-inline: 16px;
}

.button,
.wp-block-button__link,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  color: var(--hop-white);
  background: linear-gradient(135deg, var(--hop-red), var(--hop-red-dark));
  border: 1px solid rgba(183, 25, 40, 0.7);
  border-radius: var(--hop-radius);
  box-shadow: 0 14px 28px rgba(224, 49, 59, 0.2);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  line-height: 1.1;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover {
  background: var(--hop-red-dark);
  border-color: var(--hop-red-dark);
  transform: translateY(-2px);
}

.button.secondary {
  color: var(--hop-ink);
  background: var(--hop-white);
  border-color: rgba(16, 18, 22, 0.22);
  box-shadow: 0 12px 26px rgba(16, 18, 22, 0.08);
}

.button.green {
  color: var(--hop-white);
  background: linear-gradient(135deg, var(--hop-green), #056a43);
  border-color: rgba(7, 136, 84, 0.7);
  box-shadow: 0 14px 28px rgba(7, 136, 84, 0.2);
}

.nav-toggle {
  display: none;
  width: 46px;
  padding: 0;
  color: var(--hop-ink);
  background: var(--hop-white);
  border-color: rgba(16, 18, 22, 0.14);
  box-shadow: 0 12px 24px rgba(16, 18, 22, 0.08);
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  content: "";
}

.nav-toggle-lines {
  position: relative;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  position: absolute;
  left: 0;
}

.nav-toggle-lines::before {
  top: -6px;
}

.nav-toggle-lines::after {
  top: 6px;
}

.hero {
  min-height: calc(100svh - 76px);
  padding: 58px 0 66px;
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(21, 21, 21, 0.86), rgba(21, 21, 21, 0.42)),
    url("https://images.unsplash.com/photo-1513104890138-7c749659a591?auto=format&fit=crop&w=1800&q=82") center / cover;
  color: var(--hop-white);
  background-position: center;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.72fr);
  gap: 34px;
  align-items: end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  color: var(--hop-ink);
  background: rgba(244, 196, 65, 0.96);
  border: 1px solid rgba(16, 18, 22, 0.08);
  border-radius: var(--hop-radius);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1,
.page-title {
  max-width: 780px;
  margin: 18px 0;
  font-size: clamp(42px, 7vw, 92px);
  line-height: 0.96;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
}

.hero-lead {
  max-width: 650px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
}

.hero-actions,
.promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.order-panel {
  color: var(--hop-ink);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--hop-radius);
  box-shadow: var(--hop-shadow);
  backdrop-filter: blur(14px);
}

.order-panel header,
.order-panel footer {
  padding: 18px;
}

.order-panel header {
  border-bottom: 1px solid var(--hop-line);
}

.order-panel h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.1;
}

.order-field {
  display: grid;
  gap: 8px;
  padding: 18px;
}

label {
  color: var(--hop-muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

input,
textarea,
select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--hop-ink);
  background: var(--hop-white);
  border: 1px solid var(--hop-line);
  border-radius: var(--hop-radius);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(16, 18, 22, 0.03);
}

textarea {
  min-height: 130px;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hop-line);
}

.quick-fact {
  padding: 15px;
  border-right: 1px solid var(--hop-line);
}

.quick-fact:last-child {
  border-right: 0;
}

.quick-fact strong {
  display: block;
  font-size: 18px;
}

.quick-fact span {
  color: var(--hop-muted);
  font-size: 13px;
  font-weight: 700;
}

.payment-note {
  margin: 0;
  padding: 14px 18px 18px;
  color: var(--hop-muted);
  border-top: 1px solid var(--hop-line);
  font-size: 13px;
  font-weight: 800;
}

.section {
  padding: 74px 0;
}

.section-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-title-row h2,
.content-area h1,
.content-area h2 {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-title-row p {
  max-width: 440px;
  margin: 0;
  color: var(--hop-muted);
  font-weight: 700;
}

.promo-strip {
  background: linear-gradient(135deg, #08764b, var(--hop-green));
  color: var(--hop-white);
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.promo-card,
.menu-card,
.category-card,
.info-card {
  background: var(--hop-white);
  border: 1px solid rgba(16, 18, 22, 0.1);
  border-radius: var(--hop-radius);
  box-shadow: 0 18px 44px rgba(16, 18, 22, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.promo-card:hover,
.menu-card:hover,
.category-card:hover,
.info-card:hover,
.mini-card:hover {
  border-color: rgba(224, 49, 59, 0.32);
  box-shadow: 0 24px 58px rgba(16, 18, 22, 0.16);
  transform: translateY(-3px);
}

.promo-card {
  min-height: 172px;
  padding: 22px;
  color: var(--hop-ink);
}

.promo-card b {
  display: block;
  margin-bottom: 10px;
  color: var(--hop-red);
  font-size: 14px;
  text-transform: uppercase;
}

.promo-card strong {
  display: block;
  font-size: 30px;
  line-height: 1.05;
}

.category-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.category-tab {
  flex: 0 0 auto;
  color: var(--hop-ink);
  background: var(--hop-white);
  border-color: rgba(16, 18, 22, 0.14);
  box-shadow: 0 10px 20px rgba(16, 18, 22, 0.06);
}

.category-tab.is-active {
  color: var(--hop-white);
  background: var(--hop-ink);
  border-color: var(--hop-ink);
}

.menu-grid,
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.category-card {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  color: var(--hop-white);
  background: var(--hop-ink);
}

.category-card img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  opacity: 0.72;
  transition: transform 220ms ease, opacity 220ms ease;
}

.category-card:hover img {
  opacity: 0.82;
  transform: scale(1.04);
}

.category-card h3 {
  position: absolute;
  left: 18px;
  bottom: 14px;
  margin: 0;
  font-size: 26px;
  text-transform: uppercase;
}

.menu-card {
  display: grid;
  grid-template-rows: 190px 1fr;
  overflow: hidden;
}

.menu-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  background: var(--hop-line);
}

.menu-card-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.menu-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.menu-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 8px;
  color: var(--hop-white);
  background: var(--hop-ink);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.menu-badge.is-vege {
  background: var(--hop-green);
}

.menu-badge.is-new {
  color: var(--hop-ink);
  background: var(--hop-yellow);
}

.menu-badge.is-spicy,
.menu-badge.is-bestseller {
  background: var(--hop-red);
}

.menu-card h3 {
  min-height: 2.35em;
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: 0;
}

.menu-card p {
  min-height: 4.8em;
  margin: 0;
  color: var(--hop-muted);
  font-size: 14px;
  font-weight: 650;
}

.menu-card .menu-ingredients {
  min-height: auto;
  color: var(--hop-ink);
}

.menu-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 30px;
}

.menu-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 8px;
  color: var(--hop-muted);
  background: #f7f9f6;
  border: 1px solid var(--hop-line);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

.menu-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.price {
  color: var(--hop-red);
  font-size: 26px;
  font-weight: 950;
  line-height: 1;
}

.price-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.price-list span {
  display: grid;
  gap: 2px;
  min-width: 52px;
  padding: 7px 8px;
  color: var(--hop-red);
  background: #f7f9f6;
  border: 1px solid var(--hop-line);
  border-radius: 6px;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.05;
}

.price-list b {
  color: var(--hop-muted);
  font-size: 10px;
  text-transform: uppercase;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.mini-card {
  display: grid;
  gap: 8px;
  min-height: 140px;
  padding: 18px;
  background: var(--hop-white);
  border: 1px solid rgba(16, 18, 22, 0.1);
  border-radius: var(--hop-radius);
  box-shadow: 0 18px 44px rgba(16, 18, 22, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.mini-card span {
  color: var(--hop-green);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.mini-card strong {
  font-size: 22px;
  line-height: 1.1;
}

.mini-card b {
  color: var(--hop-red);
  font-size: 24px;
  line-height: 1;
}

.compact-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.compact-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--hop-line);
  color: var(--hop-muted);
  font-weight: 800;
}

.compact-list b {
  font-size: 15px;
}

.split-section {
  background: linear-gradient(180deg, #ffffff, #f7f9f6);
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 34px;
  align-items: center;
}

.split-image {
  overflow: hidden;
  border: 1px solid rgba(16, 18, 22, 0.12);
  border-radius: var(--hop-radius);
  box-shadow: var(--hop-shadow);
}

.split-image img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.feature-list {
  display: grid;
  gap: 14px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 800;
}

.feature-list li::before {
  content: "";
  flex: 0 0 14px;
  height: 14px;
  margin-top: 6px;
  background: var(--hop-green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--hop-mint);
}

.contact-band {
  background:
    linear-gradient(90deg, rgba(16, 18, 22, 0.92), rgba(16, 18, 22, 0.68)),
    url("https://images.unsplash.com/photo-1565299507177-b0ac66763828?auto=format&fit=crop&w=1700&q=82") center / cover;
  color: var(--hop-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: stretch;
}

.info-card {
  padding: 24px;
  color: var(--hop-ink);
}

.info-card h3 {
  margin: 0 0 14px;
  font-size: 25px;
}

.hours {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hours li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hop-line);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.social-links a {
  padding: 8px 10px;
  color: var(--hop-white);
  background: var(--hop-ink);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 900;
}

.site-footer {
  padding: 34px 0;
  color: var(--hop-white);
  background: var(--hop-ink);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.content-area {
  width: min(calc(100% - 32px), 900px);
  margin: 0 auto;
  padding: 70px 0;
}

.content-area a {
  color: var(--hop-red);
  font-weight: 800;
  text-decoration: underline;
}

.post-card {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--hop-line);
}

@media (max-width: 940px) {
  .nav-toggle {
    display: inline-flex;
  }

  .header-nav {
    position: fixed;
    inset: 82px 12px auto 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(16, 18, 22, 0.1);
    border-radius: 8px;
    box-shadow: var(--hop-shadow);
  }

  .header-nav .menu {
    display: contents;
  }

  .header-nav.is-open {
    display: flex;
  }

  .header-nav a {
    padding: 14px 12px;
    border-bottom: 1px solid var(--hop-line);
  }

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

  .hero {
    min-height: auto;
  }

  .promo-grid,
  .menu-grid,
  .category-grid,
  .mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .header-actions .button {
    display: none;
  }

  .cart-link,
  .phone-link {
    display: none;
  }

  .brand-name {
    font-size: 14px;
  }

  .restaurant-logo,
  .custom-logo {
    max-width: 158px;
    max-height: 48px;
  }

  .hero h1,
  .page-title {
    font-size: 43px;
  }

  .hero-lead {
    font-size: 17px;
  }

  .quick-facts,
  .promo-grid,
  .menu-grid,
  .category-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 54px 0;
  }

  .section-title-row,
  .footer-inner {
    display: grid;
    align-items: start;
  }

  .order-panel {
    box-shadow: 0 18px 42px rgba(16, 18, 22, 0.16);
  }

  .split-image img {
    height: 320px;
  }
}
