/*
Theme Name: myfood-online
Author: AnSE
Version: 0.1 Beta
*/

/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}
/*-------------global----------------------*/
img {
  width: 100%;
}

body {
  font-family: "Oswald", sans-serif;
  font-size: 1rem;
}
/*-------------navbar---------------------*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Wrapper handles the sticky + spacing */
.navbar-wrapper {
  position: absolute;
  width: 100%;
  top: 20px; /* space from top */
  z-index: 999; /* horizontal spacing */
  margin-top: 20px; /* initial top spacing */
  display: flex;
  justify-content: center;
}

/* Navbar just handles visual style */
.navbar {
  background: rgb(38 38 38 / 45%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 100px;
  box-shadow:
    0 4px 30px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  position: fixed;
  width: 90vw;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1vh 5vw;
  max-width: 95vw;
  margin: 0 auto;
}

.nav-logo {
  width: 10vh;
  height: auto;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2vw;
}

.nav-menu a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: all 0.3s;
  font-size: 1.5rem;
}

.nav-menu a:hover {
  color: #ff9a03;
  font-weight: 600;
  font-size: 1.7rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: #333;
  border-radius: 3px;
  transition: all 0.3s;
}

/* Hamburger active animation */
.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 65px;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li a {
    display: block;
    padding: 14px 24px;
    border-bottom: 1px solid #eee;
  }
}

/*-------------main coptent---------------------*/
.main-content {
  width: 100vw;
}

/*-------------hero---------------------*/
.hero-main {
  background: url("/wp-content/themes/mulyafood-online/img/hero-image.webp")
    no-repeat center top;
  background-size: cover;
  height: 80vh;
  position: relative;
}
.hero-text {
  position: absolute;
  top: 30%;
  left: 10%;
  width: 24vw;
}

/*-------------news---------------------*/
.hero-news {
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news {
  height: 60%;
  width: 60%;
  font-size: 4rem;
  color: #333;
}

.news-span {
  font-size: 5rem;
  color: #ff9a03;
  font-weight: bold;
  text-decoration: underline;
}

.social-media > .social-icon > button {
  border: 2px solid #ff9a03;
  border-radius: 100px;
  padding: 25px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.3);
  background: #fff;
  color: #ff9a03;
  transition: all 0.5s;
}

.social-media > .social-icon > button:hover {
  background: #ff9a03;
  color: #fff;
  box-shadow: inset 0 4px 4px rgba(0, 0, 0, 0.4);
}

.social-media {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/*-------------profile---------------------*/
.hero-profile {
  background: url("/wp-content/themes/mulyafood-online/img/toko.webp") no-repeat
    center top;
  background-size: cover;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile {
  width: 60%;
  display: grid;
  grid:
    "profile-title   ."
    ".               ." 5vh
    "profile-content ."
    ".               ." 6vh
    "more-button     ."
    /1fr 1fr;
}

.profile > .profile-title {
  grid-area: profile-title;
}
.profile > .profile-content {
  grid-area: profile-content;
}
.profile > .more-button {
  grid-area: more-button;
}

.profile-title {
  font-size: 3rem;
  color: #fff;
}
.profile-content {
  font-size: 1.5rem;
  color: #fff;
  line-height: 1.5;
}
.more-button > button {
  background: #fff;
  font-size: 1.5rem;
  color: #ff9a03;
  border: 2px solid #ff9a03;
  border-radius: 10px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.3);
  padding: 10px 20px;
  transition: all 0.5s;
}
.more-button > button:hover {
  background: #ff9a03;
  color: #fff;
  box-shadow: inset 0 4px 4px rgba(0, 0, 0, 0.4);
}
/*-------------shop---------------------*/
.hero-shop {
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.shop {
  width: 60%;
  font-size: 4rem;
  color: #333;
  margin-bottom: 5vh;
}

.product-card {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2vw;
}

.product {
  border: 2px solid #ff9a03;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.3);
}
.product-name {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 1vw;
  line-height: 1.2;
}
.product-image {
  width: 10vw;
  margin-bottom: 1vw;
}
.product-button > a > button {
  background: #fff;
  font-size: 1.5rem;
  color: #ff9a03;
  border: 2px solid #ff9a03;
  border-radius: 10px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.3);
  padding: 10px 20px;
  transition: all 0.5s;
  width: 100%;
}
.product-button > a > button:hover {
  background: #ff9a03;
  color: #fff;
  box-shadow: inset 0 4px 4px rgba(0, 0, 0, 0.4);
}

footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 20px;
  font-size: 1.2rem;
}
.footer {
  display: flex;
  gap: 5vw;
  justify-content: center;
  margin-top: 10px;
}

.contact > table > tbody > tr > td {
  padding: 20px;
  text-align: left;
}

.contact > table > tbody > tr > td > a {
  color: #fff !important;
  text-decoration: none !important;
}

.copyright {
  margin-top: 1vw;
  font-size: 0.5rem;
  color: #eee;
}

/*-------------about---------------------*/
.about-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20vh 0;
  flex-direction: column;
}
.about-title {
  font-size: 4rem;
  color: #333;
  width: 60%;
}

.profile-table {
  width: 40%;
  margin-top: 5vh;
}

/*----------------shop------------------*/
.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #444;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
