/*
Theme Name: EatPizza Theme
Theme URI: https://eatpizza.com.ph
Author: Chez
Author URI: https://eatpizza.com.ph
Description: Custom theme for EatPizza landing page and homepage.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eatpizza-theme
*/

/* ESA MARU */
@font-face {
    font-family: 'Esa Maru';
    src: url('fonts/EsaMaru-Light.ttf') format('truetype');
    font-weight: 300;
}

@font-face {
    font-family: 'Esa Maru';
    src: url('fonts/EsaMaru-Medium.ttf') format('truetype');
    font-weight: 500;
}

@font-face {
    font-family: 'Esa Maru';
    src: url('fonts/EsaMaru-Bold.ttf') format('truetype');
    font-weight: 700;
}

/* GMARKET SANS */
@font-face {
    font-family: 'Gmarket Sans';
    src: url('fonts/GmarketSans-Light.ttf') format('truetype');
    font-weight: 300;
}

@font-face {
    font-family: 'Gmarket Sans';
    src: url('fonts/GmarketSans-Medium.ttf') format('truetype');
    font-weight: 500;
}

@font-face {
    font-family: 'Gmarket Sans';
    src: url('fonts/GmarketSans-Bold.ttf') format('truetype');
    font-weight: 700;
}


html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Gmarket Sans', sans-serif;
    background: url('images/swirl-bg.jpg') center top repeat-y;
    background-size: 100% auto;
}

/* Center the loader in the middle of the screen */
.loader-body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ffffff;  /* changed from #000 to white */
  overflow: hidden;
}

/* Loader container */
.loader-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ffffff; /* changed to white */
}

/* Small centered video */
.loader-wrapper video {
  width: 200px;   /* adjust as needed */
  height: auto;
  object-fit: contain;
  border-radius: 10px; /* optional */
}

.landing-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.landing-bg {
    position: relative;
    width: 100%;
}

.landing-bg img {
  margin-top: 85px;
    width: 100%;
    height: auto;
    display: block;
    z-index: 1;
}

.order-btn-landing {
    position: absolute;
    left: 8%;
    top: 67%;
    z-index: 20;
    display: block;
    width: 500px;         
    height: auto;
    position: absolute;
}

.order-btn-landing img {
    width: 500px;
    height: auto;
    position: absolute;   
    top: 0;
    left: 0;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.order-btn-landing img.normal {
    opacity: 1;
    z-index: 1;
}

.order-btn-landing img.hover {
    opacity: 0;
    z-index: 2; 
}

.order-btn-landing:hover img.normal {
    opacity: 0;
}

.order-btn-landing:hover img.hover {
    opacity: 1;
}

.landing-socials {
    position: absolute;
    left: 8%;
    bottom: 20px;
    display: flex;
    gap: 15px;
    z-index: 30;
}

.landing-socials img {
    height: 35px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.landing-socials img:hover {
    opacity: 0.7;
}


/* ==========================
   NAVBAR
========================== */
.navbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
}

.navbar-left,
.navbar-right {
  display: flex;
  align-items: center;
}

.navbar-right {
  display: flex;
  justify-content: flex-end;
  margin-right: 20px;
}

.navbar-left .logo {
  height: 30px;
  margin-left: 20px;
}

.navbar-center {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.navbar-center li a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  transition: color 0.2s;
  font-family: 'Esa Maru', sans-serif;
}

.navbar-center li a:hover {
  color: #eb3f42;
}

.order-btn {
  position: relative;
  padding: 1rem 2rem;
  background-color: #55c4d5;
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: bold;
  font-family: 'Esa Maru', sans-serif;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-right: 50px;
  text-decoration: none; /* because <a> tag */
}

.order-btn::before {
  content: '';
  position: absolute;
  width: 0;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.1);
  transition: width 0.3s ease;
  z-index: 0;
}

.order-btn span {
  position: relative;
  z-index: 1;
}

.order-btn:hover::before {
  width: 100%;
}

.order-btn:hover {
  background-color: #4ba5b3;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}


/* ============================
   HOME HERO SECTION
============================ */

.home-hero {
  width: 100%;
  height: 100vh;
  background: url('images/eatpizza-homebg.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
}

/* Soft dark overlay */
.home-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.35); 
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  flex-direction: column; 
  display: flex;
  align-items: center; 
  justify-content: center;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

/* Outline text */
.hero-outline {
  font-size: 70px;
  font-family: 'Esa Maru', sans-serif;
  color: transparent;
  -webkit-text-stroke: 2px #fff;  
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Solid text */
.hero-solid {
  font-size: 120px; 
  font-family: 'Esa Maru', sans-serif;
  color: #eb3f42; 
  margin-top: -30px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* =============== VIDEO SECTIONS =============== */

.home-section {
  position: relative;
  width: 100%;
  height: 100vh;       
  overflow: hidden;
}

/* Background video */
.bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}

section.home-section {
  margin: 0;
  padding: 0;
  border: 0;
}

.icons-section,
.text-section {
    scroll-snap-align: start;
}


/* ============================
   SECTION 2 — DOUGH IMAGES
============================ */
.section-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;      
  align-items: center;         
  justify-content: center;    
  gap: 40px;                   
  text-align: center;
  color: #fff;
  padding: 2rem;
}

.dough-images {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  position: relative;
  z-index: 2;
}

.dough-img {
  width: 250px;
  height: auto;
  border-radius: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dough-left {
  transform: rotate(-4deg) translateY(20px);
  box-shadow: -10px 10px 0px rgba(0,0,0,0.18);
}

.dough-left:hover {
  transform: rotate(-4deg) translateY(15px) scale(1.03);
  box-shadow: -14px 14px 0px rgba(0,0,0,0.22);
}


.dough-right {
  transform: rotate(4deg) translateY(-20px);
  box-shadow: 10px 10px 0px rgba(0,0,0,0.18);
}

.dough-right:hover {
  transform: rotate(4deg) translateY(-15px) scale(1.03);
  box-shadow: 14px 14px 0px rgba(0,0,0,0.22);
}

.dough-tagline {
  max-width: 800px;
  text-align: center;
}

.dough-tagline h2 {
  font-family: 'Esa Maru', sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 25px;
}

.dough-tagline .red {
  color: #eb3f42;
}

.dough-tagline p {
  font-family: 'Gmarket Sans', sans-serif;
  font-size: 18px;
  color: #f2f2f2;
  line-height: 1.50;
  margin: 0 auto;
  max-width: 700px;
  margin-bottom: 30px;
}

/* ============================
   SECTION 3 — PIZZA DISPLAY
============================ */

.fresh-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;  
  text-align: center;
  z-index: 2;
}

/* Pizza Image */
.fresh-image-wrapper {
  position: relative;
  z-index: 2;
}

.fresh-image {
  width: 700px;
  max-width: 90%;
  border-radius: 30px;

  /* Tilt left & elevate slightly */
  transform: rotate(-3deg) translateY(15px);

  /* Shadow adjusted for left tilt */
  box-shadow: -20px 20px 0 rgba(0,0,0,0.18);

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


/* Hover Effect (optional, matches dough hover style) */
.fresh-image:hover {
  transform: scale(1.03) translateY(-5px);
  box-shadow: 10px 10px 0 rgba(0,0,0,0.22);
}

/* Tagline */
.fresh-tagline {
  max-width: 800px;
  text-align: center;
  z-index: 2;
}

.fresh-tagline h2 {
  font-family: "Esa Maru", sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-top: 10px;
  margin-bottom: 25px;
}

.fresh-tagline .red {
  color: #eb3f42;
}

.fresh-tagline p {
  font-family: "Gmarket Sans", sans-serif;
  font-size: 18px;
  color: #f2f2f2;
  line-height: 1.50;
  max-width: 700px;
  margin-bottom: 30px;
}


/* ================================
   SECTION 4 — Anytime, Anywhere
================================ */
.anytime-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.swirl-bg {
  background: url('images/swirl-bg.jpg') center/cover no-repeat;
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.6; 
}

/* Top PNG background — show FULL image */
.anytime-bg {
  position: absolute;
  inset: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.anytime-bg img {
  width: 100%;
  height: 100%;
  right: 0;
  object-fit: contain; 
  object-position: right center;
  transform: scale(1.05);
  z-index: 5;
}

/* Content above both backgrounds */
.anytime-content {
  position: relative;
  z-index: 5;
  width: 100%;
  height: 100%;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.anytime-left {
  position: absolute;
  left: 8%;
  top: 40%;
  transform: translateY(-50%);
  z-index: 5;
  text-align: left;
}

.enjoy {
  font-family: 'Esa Maru', sans-serif;
  font-size: 100px;
  font-weight: 700;
  color: transparent;                
  -webkit-text-stroke: 3px #55c4d5;  
  text-shadow: none;                  
  margin: 0;
  margin-top: -200px;
  line-height: 0.9;     
}

.anytime-animate {
  position: relative;
  display: inline-block;
  font-family: 'Esa Maru', sans-serif;
  font-size: 80px;
  font-weight: 700;
  color: #eb3f42;
  overflow: hidden;
  margin-top: -10px;
}

/* Sliding block */
.anytime-animate::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #eb3f42;
  z-index: 2;
  transform: translateX(100%);
}

/* Animation is applied to the pseudo-element */
.anytime-animate.block-swipe::before {
  animation: blockSwipeLeft 0.45s ease forwards;
}

/* LEFTWARD block swipe */
@keyframes blockSwipeLeft {
  0%   { transform: translateX(100%); }  /* block enters from right */
  50%  { transform: translateX(0); }     /* covers text */
  100% { transform: translateX(-100%); } /* exits to the left */
}

/* NEW TEAL BOX POSITIONING */
.teal-box {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 300px;
    background: #14b5c7;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 50px 60px;
    border-radius: 0;
}

.motor-wrapper {
    position: absolute;
    top: calc(50% - -48px);
    left: -180px;
    width: 160px;
    z-index: 9999;
    animation: motorRide 6s linear infinite;
}

.motor {
    width: 160px;
}

/* SMOKE FOLLOWING the motor */
.motor-wrapper::after {
    content: "";
    position: absolute;
    left: -25px;
    top: 60%;
    width: 18px;
    height: 18px;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    filter: blur(2px);
    animation: smoke 0.8s linear infinite;
    pointer-events: none;
    z-index: 1;
}

/* Motor forward movement */
@keyframes motorRide {
    0%   { transform: translateX(0); }
    100% { transform: translateX(140vw); }
}

/* Smoke puff animation */
@keyframes smoke {
    0% {
        opacity: 0.9;
        transform: translateX(0) scale(1);
    }
    50% {
        opacity: 0.5;
        transform: translateX(-15px) translateY(-10px) scale(1.4);
    }
    100% {
        opacity: 0;
        transform: translateX(-30px) translateY(-20px) scale(1.9);
    }
}

/* ORDER VIA TITLE */
.order-via {
    font-family: 'Esa Maru', sans-serif;
    font-size: 35px;
    margin-top: 50px;
    margin-left: 100px;
    letter-spacing: 1px;
    color: #fff;
    font-weight: bold;
}

/* BUTTON ROW */
.delivery-options {
    display: flex;
    gap: 25px;
    justify-content: flex-start;
    margin-top: 40px;
    margin-left: 100px;
}

.delivery-btn {
    padding: 15px 40px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -50px;
}

.grab-btn { 
  border: 3px solid #00B14F; 
  background: #00B14F;
}

.fp-btn   { 
  border: 3px solid #FF2B85; 
  background: #FF2B85;
}

.delivery-btn img {
    width: 100px;
    height: auto;
}



/* ============================
   MENU PAGE
============================ */
.menu-hero {
    text-align: center;
    margin-top: 80px;
}

.pizza-box-wrapper {
    position: relative;
    width: 100%;
    max-width: 1600px;            
    margin: 0 auto;
    height: 360px;              
    display: flex;
    justify-content: center;      
    align-items: center;
}

.pizza-inside {
    position: relative;
    width: auto;          
    height: 360px;        
    overflow: visible;    
    display: flex;
    justify-content: center; 
    align-items: center;
    z-index: 1;
}

.pizza-inside img {
    height: 100%;         
    width: auto;        
    object-fit: contain;  
    object-position: center center;
    display: block;
}

.pizza-box-lid {
    position: absolute;
    top: 0;
    left: 50%;               
    transform: translateX(-50%);
    width: 1000px;              
    height: 360px;   

    will-change: transform;           
    transform-origin: center center; 
    backface-visibility: hidden;
    perspective: 1000px;

    transition: transform 0.55s cubic-bezier(.25, .9, .25, 1);
    z-index: 5;
}

.pizza-box-lid.lid-open {
    transform: translateX(-90%); 
}
.pizza-box-lid.lid-close {
    transform: translateX(-50%);   
}

.menu-names-top {
    margin-top: 40px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.nameSwiper {
    width: 100%;
    max-width: 1600px;   
    overflow: visible;
}

.swiper-wrapper {
    align-items: center;
}

.pizzaNameSlide,
.swiper-slide {
    width: 300px !important;     
    text-align: center;
    font-family: "Esa Maru", sans-serif;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.35s ease;
    opacity: 0.5;
    font-size: 60px;
    color: transparent;
    -webkit-text-stroke: 2px #29c8d5;
}

.pizzaNameSlide {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
}

.center-slide {
    font-size: 100px !important;
    color: #eb3f42 !important;
    -webkit-text-stroke: 0 !important;
    opacity: 1 !important;
    align-items: center;
    text-align: center;
    justify-content: center;
}

.side-slide {
    opacity: 0.7 !important;
    font-size: 50px !important;    
    color: transparent !important;
    -webkit-text-stroke: 2px #29c8d5 !important;
}

.swiper-slide {
    width: 380px !important;
}

