/* ==========================================================
   Donut / Coffee Shop Landing Page - CSS Scaffold
   Purpose: Layout, structure, and responsive flexbox foundation
   Author: Nicole Light
   ========================================================== */

/* ----------------------------------------------------------
   1. BASIC RESETS & GLOBAL SETTINGS
   ---------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth; /* editable */
}

body {
  font-family: sans-serif; /* editable */
  line-height: 1.6;
  color: #222;
  background-color: #fff;
}

/* Container utility class for consistent content width */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

section {
  scroll-margin-top: 700px; /* adjust this to your header’s height */
}

@media (max-width: 768px) {
  section {
    scroll-margin-top: 100px;
  }
}

.nav-links a.active {
  color: #ff4d88; /* highlight color */
  font-weight: 600;
  border-bottom: 2px solid #ff4d88;
  transition: all 0.3s ease;
}

/* ----------------------------------------------------------
   2. HEADER & NAVIGATION
   ---------------------------------------------------------- */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #fff;
  border-bottom: 1px solid #ddd;
}

/* Flexbox layout for navigation bar */
/* Navbar base */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #fff;
}

/* Logo container */
.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  font-size: 1.5rem;
  font-weight: bold;
}

/* Logo image */
.logo img {
  height: 110px; /* adjust to your design */
  width: auto;
  margin-right: 0.10rem;
  display: block;
}

/* Optional: hide text if image present
.logo span {
  font-size: 1.25rem;
  font-weight: 600;
} */

/* Nav links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 700;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #70b2d2; /* accent color */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .logo img {
    height: 40px;
  }
}

/* Mobile menu button (hamburger icon) */
.menu-toggle {
  display: none; /* Hidden on desktop, shown on mobile via media query */
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ----------------------------------------------------------
   3. HERO SECTION
   ---------------------------------------------------------- */
.hero {
  display: flex;
  flex-wrap: wrap;
  min-height: 80vh;
}

/* Left side: image */
.hero-image {
  flex: 1 1 70%;
  min-height: 80vh; /* 👈 ensure it has height */
  background-image: url('12assorted-glazed-donuts-copy-space.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Right side: text */
.hero-content {
  flex: 1 1 30%;
  background-color: #fcb5ce; /* your pink color */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 4rem;
  text-align: left;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.hero-content p {
  margin-bottom: 1.5rem;
  color: #444;
}

.hero-content .btn {
  background-color: #333;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
}

/* Responsive: stack on small screens */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
  }

  .hero-image,
  .hero-content {
    flex: 1 1 100%;
    min-height: 40vh;
  }

  .hero-content {
    align-items: center;
    text-align: center;
    padding: 2rem;
  }
}
/* ----------------------------------------------------------
   4. GENERIC SECTION STYLING
   ---------------------------------------------------------- */
.section {
  padding: 4rem 0;
  text-align: center;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

/* ----------------------------------------------------------
   6. SPECIALS SECTION
   ---------------------------------------------------------- */
/* === Specials Section === */
.section.specials {
  background: linear-gradient(135deg, #fcb5ce, #70b2d2);
  color: #000000;
  padding: 4rem 0;
  text-align: center;
}

.specials-carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 2rem;
}

.specials-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1rem;
  scrollbar-width: none; /* Firefox */
}

.specials-list::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.special-item {
  flex: 0 0 300px; /* fixed width cards for scrolling */
  height: 250px;
  border-radius: 12px;
  text-align: center;
  color: #000000;
  position: relative;
  background: rgb(252, 181, 206);
  backdrop-filter: blur(15px);
  border: 5px solid rgba(0, 0, 0, 0.565);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.special-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-btn {
  background: #fff;
  border: none;
  color: #333;
  font-size: 1.8rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: background 0.3s;
  z-index: 5; /* ✅ Keeps buttons on top of everything */
}

.carousel-btn.left {
  position: absolute;
  left: 0.5rem;
}

.carousel-btn.right {
  position: absolute;
  right: 0.5rem;
}
/* ----------------------------------------------------------
   5. MENU SECTION
   ---------------------------------------------------------- */
.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.cart {
  font-weight: 600;
  background: #333;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.menu-item {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.menu-item .price {
  display: block;
  font-weight: 600;
  margin: 0.5rem 0;
  color: #444;
}

.add-to-cart {
  background: #f8bcd0;
  border: none;
  color: #333;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.add-to-cart:hover {
  background: #ff80a0;
  color: white;
}

/* ----------------------------------------------------------
   7. LOCATION & CONTACT
   ---------------------------------------------------------- */
.location {
  background: linear-gradient(135deg, #4fa3f7, #1a73e8); /* 💙 Blue gradient */
  color: #fff;
  padding: 4rem 2rem;
}

.location h2 {
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: 2.2rem;
  color: #fff;
  letter-spacing: 1px;
}

.location-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
}

.location-details {
  flex: 1 1 300px;
  max-width: 350px;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #fefefe;
}

.map-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.map-container {
  flex: 1 1 400px;
  min-width: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.map-container iframe {
  width: 100%;
  height: 300px;
  border: 0;
  display: block;
}

/* 💙 Directions Button */
.directions-btn {
  display: inline-block;
  background-color: #fff;
  color: #e81a1a;
  text-decoration: none;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.directions-btn:hover {
  background-color: #e3f2fd;
  transform: translateY(-2px);
}

/* 📱 Responsive Adjustments */
@media (max-width: 768px) {
  .map-container iframe {
    height: 250px;
  }

  .location-details {
    text-align: center;
  }

  .directions-btn {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
  }
}

/* 📱 Responsive Adjustments */
@media (max-width: 768px) {
  .map-container iframe {
    height: 250px;
  }

  .location-details {
    text-align: center;
  }

  .directions-btn {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
  }
}

/* ----------------------------------------------------------
   8. FOOTER
   ---------------------------------------------------------- */
.footer {
  background-color: #111;
  color: #fff;
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.9rem;
}

/* ----------------------------------------------------------
   9. RESPONSIVE DESIGN
   ---------------------------------------------------------- */

/* Medium screens (tablets) */
@media (max-width: 768px) {
  .nav-links {
    display: none; /* Hidden until JS toggles it */
    flex-direction: column;
    gap: 1rem;
    background-color: #fff;
    position: absolute;
    top: 60px;
    right: 5%;
    padding: 1rem 2rem;
    border: 1px solid #ddd;
    border-radius: 8px;
  }

  /* Class to be toggled by JS later */
  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .menu-grid {
    flex-direction: column;
    align-items: center;
  }
}

/* Small screens (phones) */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .section h2 {
    font-size: 1.5rem;
  }

  .menu-item {
    width: 100%;
  }
}
