/* ==========================================================================
   O'Resto Pizza - "Why our Pizza best?" Section Styles
   100% Faithful Replica of Anzaar Demo Geometry & Typography
   Scoped & Isolated under #oresto-pizza-why-best
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Norican&family=Poppins:wght@400;500;600;700;800;900&family=Quicksand:wght@400;500;600;700&display=swap');

#oresto-pizza-why-best {
  position: relative;
  width: 100%;
  background-color: #401500;
  padding: 100px 15px 120px 15px;
  overflow: hidden;
  box-sizing: border-box;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #ffffff;
  z-index: 10;
}

#oresto-pizza-why-best * {
  box-sizing: border-box;
}

/* Background floating decorative illustrations */
#oresto-pizza-why-best .oresto-bg-pattern-left {
  position: absolute;
  top: 40px;
  left: -80px;
  width: 341px;
  max-width: 25vw;
  opacity: 0.12;
  filter: invert(1);
  pointer-events: none;
  z-index: 1;
}

#oresto-pizza-why-best .oresto-bg-pattern-right {
  position: absolute;
  bottom: 0px;
  right: -50px;
  width: 155px;
  max-width: 18vw;
  opacity: 0.12;
  filter: invert(1);
  pointer-events: none;
  z-index: 1;
}

/* Header Container */
#oresto-pizza-why-best .oresto-pizza-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  position: relative;
  z-index: 5;
}

#oresto-pizza-why-best .oresto-pizza-subtitle {
  font-family: 'Norican', cursive;
  font-size: 24px;
  line-height: 34px;
  font-weight: 400;
  color: #ffb200;
  margin: 0 0 5px 0;
  display: block;
}

#oresto-pizza-why-best .oresto-pizza-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(34px, 4.5vw, 50px);
  font-weight: 700;
  line-height: 60px;
  color: #ffffff;
  letter-spacing: normal;
  margin: 0;
}

/* Main 3-Column Layout: 1 : 2 : 1 (Exact 317.5px - 635px - 317.5px grid) */
#oresto-pizza-why-best .oresto-pizza-container {
  max-width: 1270px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 5;
}

#oresto-pizza-why-best .oresto-features-col {
  flex: 0 0 317.5px;
  width: 317.5px;
  display: flex;
  flex-direction: column;
  z-index: 5;
}

/* Feature Box Styling (Anzaar pbmit-ihbox-style-4 & 5) */
#oresto-pizza-why-best .oresto-feature-box {
  position: relative;
  transition: transform 0.4s ease;
  margin-bottom: 50px;
}

#oresto-pizza-why-best .oresto-feature-box:last-child {
  margin-bottom: 0;
}

#oresto-pizza-why-best .oresto-feature-box:hover {
  transform: translateY(-6px);
}

/* Left Column: Left-aligned, padding-left 35px */
#oresto-pizza-why-best .oresto-features-left .oresto-feature-box {
  text-align: left;
  padding: 0 0 0 35px;
}

/* Right Column: Right-aligned, padding-right 35px */
#oresto-pizza-why-best .oresto-features-right .oresto-feature-box {
  text-align: right;
  padding: 0 35px 0 0;
}

#oresto-pizza-why-best .oresto-feature-title-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 8px;
  width: 100%;
}

/* Giant Embossed Watermark Number */
#oresto-pizza-why-best .oresto-feature-number {
  position: absolute;
  top: -65px;
  right: -10px;
  font-family: 'Poppins', sans-serif;
  font-size: 100px;
  line-height: 100px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.05);
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.12);
  text-shadow: none;
  pointer-events: none;
  z-index: -1;
  user-select: none;
}

#oresto-pizza-why-best .oresto-features-right .oresto-feature-number {
  right: -10px;
}

#oresto-pizza-why-best .oresto-feature-title {
  position: relative;
  z-index: 2;
  font-family: 'Poppins', sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 30px;
  color: #ffffff;
  margin: 0;
}

#oresto-pizza-why-best .oresto-feature-desc {
  font-family: 'Quicksand', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  position: relative;
  z-index: 2;
}

/* Centerpiece Container: Exact 635px width matching Anzaar */
#oresto-pizza-why-best .oresto-pizza-center {
  flex: 0 0 635px;
  width: 635px;
  height: 550px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Solid Yellow Circle + Dashed Ellipse Ring */
#oresto-pizza-why-best .oresto-circle-box {
  position: absolute;
  width: 550px;
  height: 556px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
}

/* Solid Yellow Center Circle */
#oresto-pizza-why-best .oresto-circle-box::before {
  content: '';
  position: absolute;
  width: 502px;
  height: 502px;
  top: 30px;
  left: 23px;
  border-radius: 50%;
  background-color: #ffb200;
  box-shadow: 0 12px 35px rgba(255, 178, 0, 0.25);
  z-index: 1;
}

/* Outer Rotating Dashed Ring */
#oresto-pizza-why-best .oresto-circle-box::after {
  content: '';
  position: absolute;
  width: 549px;
  height: 556px;
  top: 0px;
  left: 0px;
  border-radius: 50%;
  background-image: url('/hotbite/assets/images/circle-ellipse.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  z-index: 2;
  animation: oresto-rotate-ellipse 45s linear infinite;
}

@keyframes oresto-rotate-ellipse {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Exploding Pizza Slice Stack Container */
#oresto-pizza-why-best .oresto-pizza-slices-stack {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 380px;
  width: 100%;
  z-index: 4;
  text-align: center;
}

/* Common Layer Rules */
#oresto-pizza-why-best .oresto-pizza-layer {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  display: block;
  pointer-events: none;
  will-change: transform;
}

#oresto-pizza-why-best .oresto-pizza-layer img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

/* Exact Anzaar Layer Coordinates & Z-Indices */
/* Layer 1: Basil Leaf */
#oresto-pizza-why-best .oresto-layer-1 {
  top: 43px;
  z-index: 6;
}

/* Layer 2: Herbs & Seasoning */
#oresto-pizza-why-best .oresto-layer-2 {
  top: 10px;
  z-index: 5;
}

/* Layer 3: Black Olives */
#oresto-pizza-why-best .oresto-layer-3 {
  top: 60px;
  z-index: 4;
}

/* Layer 4: Melting Mozzarella Cheese */
#oresto-pizza-why-best .oresto-layer-4 {
  top: 65px;
  z-index: 3;
}

/* Layer 5: Tomato Sauce */
#oresto-pizza-why-best .oresto-layer-5 {
  top: 100px;
  left: 1px;
  right: -1px;
  z-index: 2;
}

/* Layer 6: Golden Crispy Dough Crust */
#oresto-pizza-why-best .oresto-layer-6 {
  top: 100px;
  z-index: 1;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

/* Large Tablets & Medium Screens */
@media (max-width: 1200px) {
  #oresto-pizza-why-best .oresto-pizza-center {
    flex: 0 0 480px;
    width: 480px;
    height: 480px;
  }

  #oresto-pizza-why-best .oresto-circle-box {
    width: 440px;
    height: 446px;
  }

  #oresto-pizza-why-best .oresto-circle-box::before {
    width: 400px;
    height: 400px;
    left: 20px;
    top: 23px;
  }

  #oresto-pizza-why-best .oresto-circle-box::after {
    width: 440px;
    height: 446px;
  }

  #oresto-pizza-why-best .oresto-features-col {
    flex: 0 0 280px;
    width: 280px;
  }

  #oresto-pizza-why-best .oresto-feature-title {
    font-size: 24px;
  }

  #oresto-pizza-why-best .oresto-feature-number {
    font-size: 80px;
    top: -50px;
  }
}

/* Tablets (992px and below) */
@media (max-width: 992px) {
  #oresto-pizza-why-best .oresto-pizza-container {
    flex-direction: column;
    gap: 40px;
  }

  #oresto-pizza-why-best .oresto-pizza-center {
    order: 1;
  }

  #oresto-pizza-why-best .oresto-features-left {
    order: 2;
    width: 100%;
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  #oresto-pizza-why-best .oresto-features-right {
    order: 3;
    width: 100%;
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    text-align: left;
    padding-right: 0;
  }

  #oresto-pizza-why-best .oresto-features-right .oresto-feature-box {
    text-align: left;
    padding: 0 0 0 35px;
  }

  #oresto-pizza-why-best .oresto-features-left .oresto-feature-box,
  #oresto-pizza-why-best .oresto-features-right .oresto-feature-box {
    margin-bottom: 0;
  }
}

/* Mobile Devices (640px and below) */
@media (max-width: 640px) {
  #oresto-pizza-why-best {
    padding: 60px 15px;
  }

  #oresto-pizza-why-best .oresto-pizza-header {
    margin-bottom: 30px;
  }

  #oresto-pizza-why-best .oresto-pizza-subtitle {
    font-size: 22px;
    line-height: 28px;
  }

  #oresto-pizza-why-best .oresto-pizza-title {
    font-size: 30px;
    line-height: 40px;
  }

  #oresto-pizza-why-best .oresto-pizza-center {
    width: min(320px, calc(100vw - 32px));
    height: min(320px, calc(100vw - 32px));
    flex: 0 0 auto;
    max-width: 100%;
  }

  #oresto-pizza-why-best .oresto-circle-box {
    width: 300px;
    height: 304px;
    max-width: 100%;
  }

  #oresto-pizza-why-best .oresto-circle-box::before {
    width: 270px;
    height: 270px;
    left: 15px;
    top: 17px;
  }

  #oresto-pizza-why-best .oresto-circle-box::after {
    width: 300px;
    height: 304px;
    max-width: 100%;
  }

  #oresto-pizza-why-best .oresto-pizza-slices-stack {
    transform: translateY(-50%) scale(0.68);
  }

  #oresto-pizza-why-best .oresto-features-left,
  #oresto-pizza-why-best .oresto-features-right {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  #oresto-pizza-why-best .oresto-features-left .oresto-feature-box,
  #oresto-pizza-why-best .oresto-features-right .oresto-feature-box {
    padding: 0;
  }

  #oresto-pizza-why-best .oresto-feature-number {
    font-size: 70px;
    top: -45px;
    right: 0;
  }

  #oresto-pizza-why-best .oresto-feature-title {
    font-size: 22px;
  }

  #oresto-pizza-why-best .oresto-bg-pattern-left,
  #oresto-pizza-why-best .oresto-bg-pattern-right {
    display: none;
  }
}

/* Small Mobile Devices (360px and below) */
@media (max-width: 360px) {
  #oresto-pizza-why-best {
    padding: 45px 10px;
  }

  #oresto-pizza-why-best .oresto-pizza-title {
    font-size: 26px;
    line-height: 34px;
  }

  #oresto-pizza-why-best .oresto-pizza-slices-stack {
    transform: translateY(-50%) scale(0.58);
  }

  #oresto-pizza-why-best .oresto-feature-number {
    font-size: 54px;
    top: -35px;
  }

  #oresto-pizza-why-best .oresto-feature-title {
    font-size: 19px;
  }
}
