/* styles.css for Fidian Cakes and More */

/* Reset default browser styles */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}
:root {
  --scroll-offset: 140px;
}

/* section styling */
section{
    padding: 60px 20px;
    max-width: 1000px;
    margin: auto;
    scroll-margin-top: var(--scroll-offset);
}

body{
    background-color: #f1f1f1;
    color: #141313;
    line-height: 1.6;
}

/* herder styling */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  color: #fff;
  padding: 60px 20px;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* Dark overlay */
  z-index: -1;
}

header {
  background: url('img/logo/islamic_ramadan.png') center/cover no-repeat;
}

.header-wrapper {
  position: relative;
  z-index: 1;
}

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Logo stays on the left */
.logo {
  flex-shrink: 0;
}

.logo img {
  height: 100px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Group title and nav */
.title-nav {
  flex-grow: 1;
  text-align: center;
}

.title-nav h1 {
  margin: 0;
  font-size: 30px;
}

/* Navigation */
nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 10px;
}
nav ul {
  list-style: none; /* removes the dot */
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* optional spacing or styling 
nav li {
  
}
*/

nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #adadad;
}

/* hero styling */
.hero{
    background: url('img/logo/Nigeria_jollof_rice.jpg') center/cover;
    color: #ffffff;
    text-align: center;
    padding: 170px 20px;
    position: relative;
}
.hero h1{
    font-size: 3em;
    margin-bottom: 10px;
}
.hero p{
    font-size: 1.3em;
    margin-bottom: 20px;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 0;
}
.hero > .container {
    position: relative;
    z-index: 1;
}


/* btn styling */
.btn{
    display: inline-block;
    background-color: #030303;
    color: #BC8C40;
    padding: 12px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}
.btn:hover{
    background-color: #0e0d0d;
}

/* Intro Section Styling */
.intro-section {
  background-color: #e6e5e5;
  padding: 60px 20px;
  text-align: center;
  color: #0f0f0f;
}

.intro-section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #BC8C40; /* brand red */
}

.intro-section p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 30px auto;
  line-height: 1.6;
}

.menu-btn {
  display: inline-block;
  background-color: #050505;
  color: #BC8C40;
  padding: 12px 25px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.menu-btn:hover {
  background-color: #0e0d0d;
}


/* menu section styling */
.menu h2,
.about h2,
.contact h2,
.hours h2,
#testimonials h2{
    text-align: center;
    color: #BC8C40;
    margin-bottom: 20px;
}
.menu-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.menu-item{
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s;
    background-color: #fafafa;
}
.menu-item:hover{
    transform: scale(1.05);
}
.menu-item img{
    width: 100%;
    border-radius: 10px;
    max-height: 180px;
    object-fit: fill;
    margin-bottom: 10px;
}

/*menu-intro styling*/
.menu-intro h2 {
  font-size: 28px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 10px;
}

.menu-intro p {
  font-size: 18px;
  color: #131212;
  max-width: 600px;
  text-align: center;
  margin: 0 auto 30px;
}

/* Modal Style */
.menu-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0,0,0,0.7);
  backdrop-filter: blur(5px);
  z-index: 9999;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  padding: 60px 20px;
  box-sizing: border-box;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 10px;
  max-width: 800px;
  width: 100%;
  margin: auto;
  animation: fadeIn 0.3s ease-in-out;
}

.modal-content h3{
  padding: 20px;
  color: #BC8C40;
  font-size: 20px;
  font-weight: 800;
}

.menu-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.menu-card {
  width: 250px;
  background: #f9f9f9;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding: 10px;
}

.menu-card img {
  height: 150px;
  object-fit: fill;
  border-radius: 10px;
  width: 100%;
}

.menu-info h4 {
  margin: 10px 0 5px;
}

.menu-info p {
  color: #333;
  margin-bottom: 10px;
}

.close {
  font-size: 28px;
  float: right;
  cursor: pointer;
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* menu-break-title */
.menu-break-title {
  width: 100%;
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;
  margin: 25px 0 10px;
  color: #BC8C40; /* or any highlight color */
}


/* about p, contact p styling */ /* open hours styling */
.about p,
.contact p, a,
.hours p{
    max-width: 700px;
    margin: auto;
    font-size: 1.1em;
    text-align: center;
}

.contact a{
    display: block;
    background-color: #050505;
    text-align: center;
    text-decoration: none;
    margin-top: 10px;
    color: #BC8C40;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 20px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}
.contact a:hover{
    background-color: #0f0f0f;
}

/* cotact-form styling */
.contact-form {
  max-width: 500px;
  margin: 30px auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1em;
  font-family: inherit;
}
.contact-form button {
  background-color: #050505;
  color: #BC8C40;
  border: none;
  cursor: pointer;
}
.contact-form button:hover {
  background-color: #111111;
}

/*map styling */
.map-section {
  padding: 40px 20px;
  background-color: rgba(214, 213, 213, 0.4);
  text-align: center;
}

.map-section h2 {
  font-size: 28px;
  margin-bottom: 10px;
  color: #BC8C40;
}

.map-section p {
  font-size: 16px;
  margin-bottom: 20px;
  color: #030303;
}

.map-container {
  max-width: 800px;
  margin: 0 auto;
}

/* Notification Styling */
.notification {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #4caf50;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  font-size: 14px;
  z-index: 9999;
  transition: opacity 0.5s ease-in-out;
}


/* footer styling 
footer{
    background-color: #000;
    color: #fff;
    padding: 20px 10px;
    text-align: center;
    font-size: 0.9em;
}*/

/* order-now add-to-order-Styling */
.button-wrap {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center; /* or space-between if you like */
}
.order-now-btn,
.add-btn {
  background: linear-gradient(135deg, #BC8C40, #E7CE74);
  color: white;
  border: none;
  padding: 10px 16px;
  margin: 6px 0;
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: 0.3s ease;
}

.order-now-btn:hover,
.add-btn:hover {
  opacity: 0.9;
  transform: scale(1.03);
}


/* Entire order section styling */
  #order-section {
    background-color: #fff;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 20px auto;
  }

  #order-section h3 {
    font-size: 18px;
    margin-bottom: 12px;
    text-align: center;
  }

  /* Remove bullet and style order items */
  #orderItems {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
  }

  #orderItems li {
    background-color: #f0f0f0;
    padding: 10px 12px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-size: 15px;
    gap: 8px;
    display: flex;
     flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
  }

  li {
  word-break: break-word;
  white-space: normal;
  overflow-wrap: break-word;
}


.item-name {
  font-weight: bold;
  color: black;
}

.item-qty {
  color: #BC8C40;
}

.item-unit-price {
  color: green;
}

.item-total {
  font-weight: bold;
  color: #000;
}


  /* Undo button */
  .undo-btn {
    background-color: #030303;
    border: none;
    color: #BC8C40;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    margin-left: 10px;
    transition: background-color 0.2s ease;
  }

  .undo-btn:hover {
    background-color: #1f1f1e;
  }

  #totalAmount {
  font-weight: bold;
  font-size: 25px;
  margin-top: 10px;
  margin-bottom: 10px;
  text-align: left;
  color: #2e7d32; /* Dark green or pick a brand color */
}


  /* WhatsApp Button */
.whatsapp-btn {
  background-color: #020202;
  color: #BC8C40;
  text-decoration: none;
  font-weight: bold;
  padding: 12px 24px;
  border: none;
  border-radius: 30px;
  font-size: 15px;
  float: right;
  margin-top: 16px;
  display: block;
  transition: 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.whatsapp-btn:hover {
  background-color: #1d1c1c;
  transform: scale(1.05);
}

/* WhatsApp Button 
  .whatsapp-btn {
    display: block;
    text-align: center;
    background-color: #c8102e;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
  }

  .whatsapp-btn:hover {
    background-color: #1ebe5d;
  }*/


/* add to order and order now styling 
.menu-item {
  padding: 15px;
  margin: 10px auto;
  max-width: 350px;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  text-align: center;
}*/


/*Social styling */
.social-footer {
  text-align: center;
  background: #0c0c0c;
  padding: 20px 0;
  color: #BC8C40;
}

.social-icons {
  margin-top: 10px;
  display: inline-flex;
  justify-content: center;
  gap: 20px;
}

.social-icons a {
  font-size: 24px;
  color: #ffffff;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #adadad;
}

/* WhatsApp floating button */
.whatsapp-float{
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #030303;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    z-index: 100;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.3s;
}
.whatsapp-float:hover{
    background-color: #1b1b1a;
}

/* testimonial styling */
.info-box {
    padding: 40px 20px;
    background-color: rgba(255, 255, 255, 0.4);
    color: #020202;
    
    text-align: center;
}

.testimonial-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.testimonial-container {
  width: 300px;
  overflow: hidden;
}

.testimonial {
  display: none;
  text-align: center;
  padding: 10px;
}

.testimonial.active {
  display: block;
}

button.prev, button.next {
  background: #020202;
  color: #BC8C40;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 10px;
}
button.prev:hover{
    background-color: #292928;
    transform: scale(1.05);
}

button.next:hover{
    background-color: #292927;
    transform: scale(1.05);
}

/*smooth fade */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-in-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* mobile Responsiveness */
@media screen and (max-width: 768px) {
  
  :root {
    --scroll-offset: 250px;
  }
  .header-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .logo img {
    height: 100px;
    margin-bottom: 10px;
  }

  .title-nav h1 {
    font-size: 25px;
  }

  
  nav {
        flex-direction: column;
        gap: 10px;
    }

    .hero {
        padding: 60px 20px;
    }

    .hero h1 {
        font-size: 2em;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .intro-section h2 {
    font-size: 2rem; /* Slightly smaller heading on tablets and phones */
  }

  .intro-section p {
    font-size: 1rem; /* Comfortable reading size */
    padding: 0 10px;
  }

  .menu-btn {
    padding: 10px 20px;
    font-size: 1rem;
  }

  #menu.fade-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  header {
    min-height: 180px;
    padding: 40px 15px;
  }

  .logo img {
    height: 70px;
  }

  .title-nav h1 {
    font-size: 22px;
  }
}

/* Responsive text sizing */
@media (max-width: 600px) {
  .menu-item h3 {
    font-size: 16px;
  }

  .menu-item p {
    font-size: 14px;
  }

  .button-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .button-wrap .order-now-btn,
  .button-wrap .add-btn {
    width: 100%;
  }


  .whatsapp-order-btn {
    font-size: 14px;
    padding: 10px 16px;
  }

  /* order-section total styling */
  #order-section {
    align-items: center;
  }

  #totalAmount {
    text-align: center;
  }

  .whatsapp-btn {
    width: 100%;
    text-align: center;
    font-size: 13px;
  }
  
}

@media (max-width: 480px) {
  
  header {
    padding: 10px 0;
  }

  .intro-section h2 {
    font-size: 1.6rem; /* For small phones */
  }

  .intro-section p {
    font-size: 0.95rem;
  }

  .menu-btn {
    padding: 8px 18px;
    font-size: 0.95rem;
  }

  #order-section {
      width: 90%;
      margin: 16px auto;
    }

    .contact a{
      font-size: 15px;
      max-width: 500px;
      font-weight: bold;
    }

    .whatsapp-btn {
    width: 100%;
    text-align: center;
    font-size: 10px;
  }
}