/*
Theme Name: Star Pizza
Description: A block theme for Star Pizza takeaway in Cavan.
Version: 1.6.1
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: star-pizza
*/

.wp-site-blocks > header,
.wp-site-blocks > main,
.wp-site-blocks > footer,
.front-page-content > section {
  margin-block: 0;
}

.site-width {
  width: calc(100% - 6rem);
  max-width: 78rem;
  margin-inline: auto;
}

.site-header,
.site-footer {
  background: #000;
  color: #fff;
}

.site-header {
  border-bottom: 1px solid #2b2f36;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.75rem;
}

.header-inner > * {
  margin: 0;
}

.brand-title {
  flex-shrink: 0;
  color: inherit;
  font-family: var(--wp--preset--font-family--barlow-condensed);
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.brand-title a {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: inherit;
  text-decoration: none;
}

.brand-title a::before {
  content: '★' / '';
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border-radius: 4px;
  background: #ed2023;
  color: #fff;
  font: 1.25rem/1 Arial, sans-serif;
}

.header-inner .brand-logo,
.footer-brand .brand-logo {
  width: 11rem;
  max-width: 100%;
  flex-shrink: 0;
  margin: 0;
}

.brand-logo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.site-header .primary-nav {
  color: inherit;
  font-size: .9rem;
  font-weight: 700;
  --wp--style--block-gap: 1.75rem;
}

.primary-nav .wp-block-navigation__responsive-container-open {
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.75rem;
}

.primary-nav .wp-block-navigation__responsive-container.is-menu-open {
  background: #fff;
  color: #000;
}

.primary-nav .wp-block-navigation-item__content:hover {
  text-decoration: underline;
  text-underline-offset: .25em;
}

.header-call .wp-block-button__link,
.hero-directions .wp-block-button__link {
  border: 1px solid #777;
  background: transparent;
  color: #fff;
}

.header-call .wp-block-button__link {
  padding: .55rem .9rem;
  font-size: .9rem;
  white-space: nowrap;
}

.header-call .wp-block-button__link:hover,
.hero-directions .wp-block-button__link:hover {
  border-color: #fff;
}

.home-hero {
  position: relative;
  display: grid;
  min-height: 38rem;
  align-items: center;
  overflow: hidden;
  background: #000;
  color: #fff;
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding-block: 4.5rem;
}

.hero-copy > * {
  margin-block: 0;
}

.hero-location {
  color: #bfbfbf;
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: .105em;
  text-transform: uppercase;
}

.hero-title {
  margin-block: 1rem 1.25rem;
  font-size: 9rem;
  line-height: .81;
  letter-spacing: -.02em;
  text-transform: uppercase;
}

.hero-title strong {
  display: block;
  color: #ed2023;
  font-weight: inherit;
}

.hero-intro {
  max-width: 30ch;
  color: #bfbfbf;
  font-size: 1.125rem;
}

.hero-copy .hero-actions {
  gap: .65rem;
  margin-top: 1.4rem;
}

.hero-actions .wp-block-button__link,
.location-details .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  min-height: 3.15rem;
  padding: .7rem .95rem;
  white-space: nowrap;
}

.order-button .wp-block-button__link {
  background: #ed2023;
  color: #fff;
  font-size: 1.1875rem;
}

.order-button .wp-block-button__link:hover {
  background: #d51b20;
}

.home-hero > .hero-photo {
  position: absolute;
  inset: 0 0 0 auto;
  width: 80%;
  max-width: 72rem;
  margin: 0;
}

.hero-photo img,
.takeaway-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo img {
  transform: scaleX(-1);
}

.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #000, transparent 45%);
  pointer-events: none;
}

.takeaway-section {
  padding-block: 5.5rem;
  background: #f7f5f1;
  color: #000;
}

.takeaway-inner,
.location-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.takeaway-inner > *,
.location-inner > * {
  margin-block: 0;
}

.takeaway-copy p {
  max-width: 39ch;
  color: #2b2f36;
}

.feature-button .wp-block-button__link {
  background: #ed2023;
  color: #000;
  font-size: .95rem;
  font-weight: 800;
}

.feature-button .wp-block-button__link:hover {
  background: #ff4749;
}

.section-title {
  font-size: 4.75rem;
  line-height: .9;
  text-transform: uppercase;
}

.takeaway-photo {
  overflow: hidden;
  aspect-ratio: 5 / 3;
  box-shadow: .8rem .8rem 0 #ed2023;
}

.menu-preview {
  padding-block: 4.5rem;
  background: #151619;
  color: #fff;
}

.menu-preview-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 1rem 2rem;
  margin-bottom: 2rem;
}

.menu-preview-header > *,
.menu-card > * {
  margin-block: 0;
}

.menu-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.menu-preview-grid > .menu-card {
  position: relative;
  min-width: 0;
  border: 1px solid #565960;
  background: #2b2f36;
  margin: 0;
}

.menu-card:hover,
.menu-card:focus-within {
  border-color: #fff;
  background: #373c45;
}

.menu-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.menu-card h3 {
  padding: .6rem .9rem;
  font-size: 2.25rem;
  line-height: 1;
  text-transform: uppercase;
}

.menu-card a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .35rem;
  min-height: 2.75rem;
  color: inherit;
  text-decoration: none;
}

.menu-card a::before {
  position: absolute;
  inset: 0;
  content: '';
}

.menu-card a::after {
  content: '→' / '';
  font-size: .7em;
}

.location-section {
  padding-block: 4rem;
  background: #ed2023;
  color: #000;
}

.location-details p {
  font-weight: 700;
}

.site-footer {
  border-top: 3px solid #ed2023;
  background: #111;
  padding-block: 3.5rem 1rem;
}

.site-footer .footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-inner > .wp-block-group,
.footer-inner h2,
.footer-bottom > p {
  margin: 0;
}

.site-footer .brand-title {
  font-size: 2.25rem;
}

.footer-inner p:not(.brand-title) {
  color: #bfbfbf;
}

.footer-heading {
  color: #ff6264;
  font: 800 .85rem/1.3 var(--wp--preset--font-family--manrope);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li + li {
  margin-top: .1rem;
}

.footer-links a,
.footer-visit a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: #fff;
  text-decoration: none;
}

.footer-contact a[href^="mailto:"] {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.footer-inner a:hover,
.footer-actions .wp-block-button__link:hover {
  text-decoration: underline;
  text-underline-offset: .25em;
}

.site-footer .footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  margin: 0;
  padding-top: .75rem;
  border-top: 1px solid #44474d;
  color: #bfbfbf;
  font-size: .875rem;
}

.footer-bottom > .footer-actions {
  gap: .15rem 1.3rem;
  margin: 0;
}

.footer-actions .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .4rem 0;
  background: transparent;
  color: #bfbfbf;
  font-size: .9rem;
}

.document-page {
  min-height: 62vh;
  padding: 3.5rem 1.25rem 5rem;
  overflow-wrap: anywhere;
}

.document-title {
  font-size: 4rem;
}

.about-hero {
  padding-block: 4.5rem;
  border-top: 3px solid #ed2023;
  background: #151619;
  color: #fff;
}

.about-page .about-hero,
.about-page .about-details {
  margin-block: 0;
}

.about-hero .about-layout,
.about-details .about-layout {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 3rem;
}

.about-layout > .wp-block-group,
.about-layout > .about-photo {
  margin-block: 0;
}

.about-title {
  margin: 0;
  font-size: clamp(4rem, 9vw, 7.5rem);
  line-height: .9;
  text-transform: uppercase;
}

.about-hero .about-intro {
  max-width: 36ch;
  color: #ddd;
  font-size: 1.15rem;
}

.about-photo {
  border-bottom: .4rem solid #ed2023;
  background: #2b2f36;
}

.about-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.about-details {
  padding-block: 4rem;
  background: #f7f5f1;
}

.about-details .section-title {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
}

.about-details .about-visit {
  padding: 1.65rem;
  border: 1px solid #bfbfbf;
  border-top: .25rem solid #ed2023;
  background: #fff;
}

.about-visit > h2 {
  margin-top: 0;
  font-size: 2.25rem;
  line-height: 1;
}

.about-visit .wp-block-buttons {
  gap: .55rem 1rem;
}

@media (max-width: 48rem) {
  .about-hero,
  .about-details {
    padding-block: 2.5rem;
  }

  .about-hero .about-layout,
  .about-details .about-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .about-details .about-visit {
    padding: 1.15rem;
  }
}

.document-page .wp-block-post-content h2 {
  margin-block-start: 2.4rem;
  font-size: 2.25rem;
}

.document-page .allergen-intro {
  padding: 1.25rem;
  border-left: .25rem solid #ed2023;
  background: #f7f5f1;
}

.allergen-list {
  columns: 14rem 2;
  column-gap: 2rem;
}

.allergen-list li {
  break-inside: avoid;
  margin-bottom: .4rem;
}

.menu-sheet .menu-category-links {
  gap: .55rem;
}

.menu-sheet .menu-note {
  padding: .8rem 1rem;
  border-left: .2rem solid #ed2023;
  background: #f7f5f1;
}

.menu-category-links .wp-block-button__link {
  padding: .6rem .95rem;
  border: 1px solid #2b2f36;
  background: #fff;
  color: #151619;
}

.menu-category-links .wp-block-button__link:hover {
  background: #151619;
  color: #fff;
}

.menu-sheet h2 {
  padding-bottom: .4rem;
  border-bottom: .2rem solid #ed2023;
  line-height: 1;
  text-transform: uppercase;
  scroll-margin-top: 3rem;
}

.menu-sheet h3 {
  font-size: 1.65rem;
  line-height: 1.15;
}

.menu-sheet .signature-pizzas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.6rem;
}

.menu-sheet .signature-pizzas > p {
  padding-block: .65rem;
  margin: 0;
  border-bottom: 1px solid #dedede;
}

.menu-prices table {
  line-height: 1.45;
}

.menu-prices th,
.menu-prices td {
  padding: .7rem .25rem;
  border: 0;
  border-bottom: 1px solid #dedede;
  text-align: left;
  vertical-align: top;
}

.menu-prices th:last-child,
.menu-prices td:last-child {
  padding-left: .75rem;
  text-align: right;
  white-space: nowrap;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.menu-prices th {
  font-size: .8rem;
  text-transform: uppercase;
}

.opening-hours {
  padding-block: 3.5rem;
  background: #2b2f36;
  color: #fff;
}

.opening-hours-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}

.front-page-content > .hours-section,
.opening-hours-inner > *,
.opening-hours-copy h2 {
  margin-block: 0;
}

.opening-hours-copy p {
  max-width: 39ch;
}

.hours-table th,
.hours-table td {
  padding: .65rem .4rem;
  border: 0;
  border-bottom: 1px solid #676b72;
  text-align: left;
}

.hours-table th:last-child,
.hours-table td:last-child {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.document-page .opening-hours {
  padding: 1.3rem 1.2rem;
  border-radius: 6px;
}

.document-page .opening-hours-inner {
  width: 100%;
  grid-template-columns: 1fr;
  gap: .75rem;
}

.document-page .opening-hours-copy h2 {
  margin-block: 0;
}

.contact-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
}

.contact-methods > .contact-card {
  margin-block: 0;
  padding: 1.1rem 1.25rem;
  border: 1px solid #bfbfbf;
  border-radius: 6px;
}

.contact-card p {
  margin-block: 0 .35rem;
}

.contact-card a {
  font-weight: 800;
  text-underline-offset: .19em;
}

.document-page .forminator-ui .forminator-button-submit {
  min-height: 44px;
  padding: .55rem 1rem;
  border-radius: 4px;
  background: #d51b20;
  color: #fff;
  font-size: 1.1875rem;
  font-weight: 800;
}

.document-page .forminator-ui .forminator-button-submit:hover {
  background: #b9171c;
}

.document-page .forminator-ui .forminator-button-submit:focus-visible {
  outline: 2px solid #000;
  outline-offset: 3px;
}

.venue-map {
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid #bfbfbf;
  border-radius: 6px;
}

.venue-map iframe {
  display: block;
  width: 100%;
  height: auto;
  min-height: 17rem;
  aspect-ratio: 19 / 10;
  border: 0;
}

.location-faq details {
  padding-block: .7rem;
  border-bottom: 1px solid #bfbfbf;
}

.location-faq summary {
  cursor: pointer;
  font-weight: 800;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

@media (max-width: 60rem) {
  .site-width {
    width: calc(100% - 3rem);
  }

  .hero-title {
    font-size: 7.25rem;
  }

  .section-title {
    font-size: 3.75rem;
  }
}

@media (max-width: 48rem) {
  .site-width {
    width: calc(100% - 2.5rem);
  }

  .header-inner {
    min-height: 4.1rem;
  }

  .brand-title {
    font-size: 1.65rem;
  }

  .home-hero {
    min-height: auto;
  }

  .hero-copy {
    padding: 2.7rem 0 0;
  }

  .hero-title {
    font-size: 5.4rem;
  }

  .hero-intro {
    font-size: 1rem;
  }

  .home-hero > .hero-photo {
    position: relative;
    width: 100%;
    height: 18rem;
    margin-top: .5rem;
    overflow: hidden;
  }

  .hero-photo img {
    position: absolute;
    right: 0;
    width: 135%;
    max-width: none;
  }

  .hero-photo::after {
    background: linear-gradient(#000, transparent 22%);
  }

  .takeaway-inner,
  .location-inner,
  .opening-hours-inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .takeaway-section,
  .menu-preview,
  .location-section,
  .opening-hours {
    padding-block: 3rem;
  }

  .site-footer {
    padding-block: 2.25rem 4.25rem;
  }

  .site-footer .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 1rem;
    padding-bottom: 1.5rem;
  }

  .document-title {
    font-size: 3.25rem;
  }
}

@media (max-width: 30rem) {
  .header-inner {
    gap: .25rem;
  }

  .header-inner .brand-title {
    font-size: 1.5rem;
  }

  .header-inner .brand-logo {
    width: 8.25rem;
  }

  .header-call .wp-block-button__link {
    padding-inline: .55rem;
  }

  .contact-methods {
    grid-template-columns: 1fr;
  }

  .footer-brand,
  .footer-explore {
    grid-column: 1 / -1;
  }

  .footer-explore .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.2rem;
  }

  .footer-contact a[href^="mailto:"] {
    font-size: .875rem;
  }

  .menu-preview-grid {
    gap: .65rem;
  }

  .menu-card h3 {
    padding: .25rem .5rem;
    font-size: 1.4rem;
  }

  .menu-sheet .signature-pizzas {
    grid-template-columns: 1fr;
  }
}
