/*
Theme Name: pizzeria-online-delivery-child
Template: pizzeria-online-delivery
*/

:root {
  --blood: #c41e1e;
  --fire: #e63232;
  --coal: #111;
  --ink: #1a1a1a;
  --ash: #2c2c2c;
  --bone: #f0e8df;
  --chalk: #fff;
  --rust: #8b2500;
  --smoke: #666;
  --border-w: 3px;
  --shadow-offset: 5px;
}

body {
  background: var(--bone);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l20 20M20 0L0 20' stroke='%23c41e1e' stroke-width='0.3' stroke-opacity='0.07'/%3E%3C/svg%3E");
}

.site-header {
  background: var(--coal);
  border-bottom: var(--border-w) solid var(--blood);
}

.site-title {
  margin: 0;
}

.site-branding img {
  height: auto;
  width: 80px;
  max-width: 100%;
}

.main-navigation a {
  color: var(--bone);
  text-decoration: none;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  transition: color 0.15s;
}

.main-navigation a:hover {
  color: var(--fire);
}

.mt20 {
  margin-top: 20px !important;
}

.top-cover {
  border: var(--border-w) solid var(--coal);
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--blood);
  margin: 1.5rem 0 !important;
  position: relative;
  overflow: hidden;
}

.top-cover::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: var(--blood);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  z-index: 2;
}

.wp-block-cover__background {
  opacity: 0.75 !important;
}

.wp-block-cover__inner-container h1 {
  color: var(--chalk);
  text-transform: uppercase;
  font-weight: 900;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  letter-spacing: 2px;
  line-height: 1.15;
  text-shadow: 3px 3px 0 var(--blood);
  margin-bottom: 0.5rem;
}

.wp-block-cover__inner-container p {
  color: var(--bone);
}

h2.wp-block-heading {
  color: var(--coal);
  text-transform: uppercase;
  font-weight: 900;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  letter-spacing: 1px;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding: 6px 12px;
  background: var(--blood);
  color: var(--chalk);
  display: inline-block;
  box-shadow: 3px 3px 0 var(--coal);
  position: relative;
}

h2.wp-block-heading::before {
  content: "■";
  margin-right: 8px;
  font-size: 0.7em;
  vertical-align: middle;
}

.entry-content a {
  color: var(--blood);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 2px solid var(--fire);
  transition:
    background 0.15s,
    color 0.15s;
}

.entry-content a:hover {
  background: var(--blood);
  color: var(--chalk);
}

.wp-block-columns {
  gap: 1.5rem;
}

.wp-block-column {
  padding: 0;
}

.custom-block {
  background: var(--chalk);
  border: var(--border-w) solid var(--coal);
  padding: 1.2rem 1.5rem;
  position: relative;
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--blood);
}

.custom-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: repeating-linear-gradient(
    90deg,
    var(--blood) 0,
    var(--blood) 10px,
    var(--coal) 10px,
    var(--coal) 20px
  );
}

.custom-block h2.wp-block-heading {
  margin-top: 0.8rem;
}

.custom-block p {
  font-size: 15px;
}

.important {
  background: var(--coal) !important;
  color: var(--chalk);
  border: var(--border-w) solid var(--blood);
  padding: 1rem 1.2rem !important;
  margin: 20px 0;
  position: relative;
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--rust);
}

.important::before {
  content: "⚠";
  position: absolute;
  top: -14px;
  left: 12px;
  background: var(--blood);
  color: var(--chalk);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border: 2px solid var(--coal);
}

.important p {
  color: var(--bone) !important;
  font-size: 14px;
  margin: 0;
}

.important strong {
  color: var(--fire);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
}

.coun-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  counter-reset: brutal-count;
}

.coun-list li {
  counter-increment: brutal-count;
  position: relative;
  padding: 10px 12px 10px 65px;
  margin-bottom: 8px;
  background: var(--chalk);
  border: 2px solid var(--coal);
  font-size: 15px;
  line-height: 1.6;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}

.coun-list li:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--blood);
}

.coun-list li::before {
  content: counter(brutal-count, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 50px;
  background: var(--blood);
  color: var(--chalk);
  font-weight: 900;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -1px;
}

.coun-list li:nth-child(even)::before {
  background: var(--coal);
}

.wp-block-quote {
  background: var(--ash);
  color: var(--bone);
  border: var(--border-w) solid var(--blood);
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  position: relative;
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 rgba(196, 30, 30, 0.4);
}

.wp-block-quote::before {
  content: "❝";
  position: absolute;
  top: -18px;
  left: 15px;
  font-size: 36px;
  color: var(--blood);
  line-height: 1;
}

.wp-block-quote p {
  color: var(--bone) !important;
  font-size: 14px;
  line-height: 1.7;
}

.wp-block-quote strong {
  color: var(--fire);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.wp-block-quote em {
  opacity: 0.85;
}

.wp-block-table {
  margin: 1.5rem 0;
  overflow-x: unset !important;
}

.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  border: var(--border-w) solid var(--coal);
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--blood);
}

.wp-block-table thead tr {
  background: var(--coal);
}

.wp-block-table thead th {
  color: var(--chalk);
  text-transform: uppercase;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 1px;
  padding: 10px 12px;
  border: 2px solid var(--coal);
  text-align: left;
}

.wp-block-table thead th:first-child {
  border-right-color: var(--blood);
}

.wp-block-table tbody td {
  padding: 8px 12px;
  border: 1px solid var(--ash);
  font-size: 14px;
  line-height: 1.55;
  background: var(--chalk);
}

.wp-block-table tbody tr:nth-child(odd) td {
  background: var(--bone);
}

.wp-block-table tbody tr:hover td {
  background: var(--blood);
  color: var(--chalk);
  transition: all 0.15s;
}

.wp-block-table tbody td:first-child {
  font-weight: 700;
  border-right: 2px solid var(--coal);
}

.wp-block-image {
  margin: 1rem 0;
}

.wp-block-image figure {
  margin: 0;
}

.wp-block-image img,
.entry-content img:not(.wp-block-cover__image-background) {
  border: var(--border-w) solid var(--coal);
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--blood);
  display: block;
  max-width: 100%;
  height: auto;
}

.schema-faq {
  margin: 1.5rem 0;
}

.schema-faq-section {
  border: 2px solid var(--coal);
  margin-bottom: 8px;
  background: var(--chalk);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}

.schema-faq-section:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--blood);
}

.schema-faq-question {
  display: block;
  padding: 10px 14px;
  background: var(--coal);
  color: var(--chalk);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  position: relative;
}

.schema-faq-question::after {
  content: "＋";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fire);
  font-weight: 900;
  font-size: 18px;
}

.schema-faq-answer {
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.7;
  border-top: 2px solid var(--blood);
}

.site-footer {
  background: var(--coal) !important;
  border-top: 4px solid var(--blood);
}

.site-footer .site-info .copyright {
  display: block;
  width: 100%;
  float: unset;
  text-align: center;
}

.site-footer aside ul {
  list-style: none;
  padding: 0;
}

.site-footer aside li {
  padding: 4px 0;
}

.site-footer aside a {
  color: var(--smoke);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s;
}

.site-footer aside a:hover {
  color: var(--fire);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.site-info {
  border-top: 2px solid var(--ash);
}

.site-info .copyright,
.site-info .by {
  font-size: 12px;
  color: var(--smoke);
}

.site-info a {
  color: var(--fire);
  text-decoration: none;
}

#button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: var(--blood);
  color: var(--chalk);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--coal);
  box-shadow: 3px 3px 0 var(--coal);
  cursor: pointer;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
  z-index: 999;
}

#button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--coal);
}

#button svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 992px) {
  body {
    font-size: 15px;
  }

  .wp-block-cover__inner-container h1 {
    text-shadow: 2px 2px 0 var(--blood);
    letter-spacing: 1px;
  }

  h2.wp-block-heading {
    font-size: 1.15rem;
    display: block;
  }

  .custom-block {
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 3px 3px 0 var(--blood);
  }

  .important {
    padding: 0.8rem 1rem !important;
  }

  .coun-list li::before {
    width: 42px;
    font-size: 17px;
  }

  .schema-faq-question {
    font-size: 13px;
    padding-right: 36px;
  }

  .wp-block-columns {
    flex-direction: column;
  }

  .site-title a {
    font-size: 14px !important;
    letter-spacing: 2px;
  }

  .main-navigation {
    display: none;
  }
}

@media screen and (max-width: 500px) {
  .head_bg {
    padding: 0 8px;
  }
}

@media (max-width: 480px) {
  .top-cover::after {
    width: 40px;
    height: 40px;
  }

  .wp-block-table table {
    box-shadow: 3px 3px 0 var(--blood);
  }
}
