:root {
  --primary-green: #0c8a44;
  --primary-red: #ed1c24;
  --accent-yellow: #ffef61;
  --light-yellow-bg: #ffef61;
  /* UPDATED to main accent yellow */

  --text-dark: #263238;
  --text-medium: #546e7a;
  --text-light: #ffffff;

  --bg-light: #f5f5f7;
  --bg-white: #ffffff;
  --bg-dark-card: #37474f;

  --border-color: #e0e0e0;
  --input-border-color: #cfd8dc;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-sticky: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-md-dark: 0 5px 15px rgba(0, 0, 0, 0.25);

  --texture-pizza-light-scattered: url("data:image/svg+xml,%3Csvg width='70' height='70' viewBox='0 0 70 70' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 5 L5 25 Q15 31 25 25 Z' fill='%23FFFFFF' opacity='0.15' transform='rotate(15 15 15)'/%3E%3Cpath d='M40 15 L30 35 Q40 41 50 35 Z' fill='%23FFFFFF' opacity='0.14' transform='rotate(-10 40 25)'/%3E%3Cpath d='M20 50 L10 70 Q20 76 30 70 Z' fill='%23FFFFFF' opacity='0.2' transform='rotate(5 20 60)'/%3E%3Cpath d='M55 45 L45 65 Q55 71 65 65 Z' fill='%23FFFFFF' opacity='0.12' transform='rotate(-20 55 55)'/%3E%3C/svg%3E");
  --texture-pizza-yellow-on-dark-scattered: url("data:image/svg+xml,%3Csvg width='70' height='70' viewBox='0 0 70 70' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 5 L5 25 Q15 31 25 25 Z' fill='%23ffcb08' opacity='0.1' transform='rotate(15 15 15)'/%3E%3Cpath d='M40 15 L30 35 Q40 41 50 35 Z' fill='%23ffcb08' opacity='0.08' transform='rotate(-10 40 25)'/%3E%3Cpath d='M20 50 L10 70 Q20 76 30 70 Z' fill='%23ffcb08' opacity='0.09' transform='rotate(5 20 60)'/%3E%3Cpath d='M55 45 L45 65 Q55 71 65 65 Z' fill='%23ffcb08' opacity='0.07' transform='rotate(-20 55 55)'/%3E%3C/svg%3E");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: "Poppins", Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 90%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

header {
  background-color: white;
  /* background-color: var(--accent-yellow); */
  /* background-image: var(--texture-pizza-light-scattered); */
  /* UPDATED TEXTURE */
  padding: 0.5rem 0;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.main-content-padded {
  padding-top: 70px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Custom rotate-40 utility for Tailwind banner */
.rotate-40 {
  transform: rotate(-40deg);
}
/* Small diagonal Proudly Canadian ribbon */
/* Spacious diagonal Proudly Canadian ribbon, top-left */
.canadian-ribbon {
  position: absolute;
  top: 2.5rem;
  left: -3.5rem;
  z-index: 20;
  background: #ed1c24;
  color: #ffef61;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.7rem 2.8rem;
  transform: rotate(-30deg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  border-radius: 8px;
  letter-spacing: 2px;
  width: max-content;
}
.canadian-ribbon-text {
  color: #ffef61;
  font-weight: 700;
}
main#main-content {
  position: relative;
}
/* Diagonal Proudly Canadian Banner */
.canadian-banner {
  width: 100%;
  background: linear-gradient(120deg, #ed1c24 60%, #ed1c24 100%);
  transform: skewY(-5deg);
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  position: relative;
  z-index: 10;
}
.canadian-banner-text {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  padding: 0.7rem 0;
  letter-spacing: 2px;
  transform: skewY(5deg);
}

.logo {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--accent-yellow);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.logo:hover {
  color: var(--primary-red);
}

.sticky-active .logo {
  color: var(--accent-yellow);
}

.sticky-active .logo:hover {
  color: var(--primary-red);
}

.nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
}

.nav-links li {
  margin-left: 25px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-green);
}

.sticky-active .nav-links a {
  color: var(--text-light);
}

.sticky-active .nav-links a:hover,
.sticky-active .nav-links a.active {
  color: var(--accent-yellow);
}

.nav-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
}

.sticky-active .nav-toggle {
  color: var(--text-light);
}

.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    url("https://via.placeholder.com/1600x900.png?text=Crisp+Bae+Deluxe+Pizza")
      no-repeat center center/cover;
  color: var(--text-light);
  padding: 120px 0;
  text-align: center;
}

.hero h1 {
  font-size: 3.2rem;
  margin-bottom: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero h1 .highlight-yellow {
  color: var(--accent-yellow);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  font-weight: 300;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  padding: 0.9rem 2rem;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.btn-primary-red {
  background-color: var(--primary-red);
  color: var(--text-light);
  box-shadow: 0 4px 10px rgba(229, 57, 53, 0.3);
}

.btn-primary-red:hover {
  background-color: #c62828;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(229, 57, 53, 0.4);
}

.btn-primary-green {
  background-color: var(--primary-green);
  color: var(--text-light);
  box-shadow: 0 4px 10px rgba(56, 142, 60, 0.3);
}

.btn-primary-green:hover {
  background-color: #2e7d32;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(56, 142, 60, 0.4);
}

.btn-accent-yellow {
  background-color: var(--accent-yellow);
  color: var(--text-dark);
  box-shadow: 0 4px 10px rgba(255, 203, 8, 0.3);
}

.btn-accent-yellow:hover {
  background-color: #e0a800;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(255, 203, 8, 0.4);
}

.navbar-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.order-btn-always {
  margin-left: 1rem;
  white-space: nowrap;
}

.btn-nav-cta {
  background-color: var(--primary-red);
  color: var(--text-light);
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  margin-left: 15px;
  box-shadow: 0 2px 6px rgba(211, 47, 47, 0.4);
}

.btn-nav-cta:hover {
  background-color: #c62828;
  box-shadow: 0 4px 10px rgba(211, 47, 47, 0.5);
  transform: translateY(-2px);
}

.sticky-active .btn-nav-cta {
  background-color: var(--primary-red);
}

.sticky-active .btn-nav-cta:hover {
  background-color: #c62828;
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.section-title .highlight-green {
  color: var(--primary-green);
}

.section-title .highlight-red {
  color: var(--primary-red);
}

.section-title .highlight-yellow {
  color: var(--accent-yellow);
}

.section-subtitle {
  text-align: center;
  font-size: 1.15rem;
  margin-bottom: 4rem;
  color: var(--text-medium);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Our Story Section (Bright Yellow Background) --- */
.section-our-story {
  background-color: var(--primary-green);
}

.section-our-story .section-title {
  color: var(--text-light);
}

.section-our-story .section-subtitle {
  color: var(--text-light);
  opacity: 0.85;
}

.our-story-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  align-items: stretch;
}

.story-item {
  background: var(--bg-white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.story-item h3 {
  font-size: 1.6rem;
  color: var(--primary-green);
  margin-top: 15px;
  margin-bottom: 10px;
}

.story-item img.icon {
  width: 64px;
  height: 64px;
  margin-bottom: 15px;
  object-fit: contain;
}

.story-item p {
  color: var(--text-medium);
  font-size: 0.95rem;
}

/* --- Menu Section (Dark Background) --- */
.section-menu {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.section-menu .section-title,
.section-menu .section-subtitle {
  color: var(--text-dark);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.menu-card {
  background-color: var(--bg-dark-card);
  border-radius: 12px;
  box-shadow: var(--shadow-md-dark);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.menu-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.menu-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.menu-card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.menu-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--primary-red);
  font-weight: 600;
}

.menu-card .price-tag {
  background-color: var(--accent-yellow);
  color: var(--text-dark);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 12px;
}

.menu-card p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  color: var(--bg-light);
  flex-grow: 1;
}

.menu-card .btn-primary-red {
  align-self: flex-start;
}

/* --- Why Us Section (Default Light Grey Background) --- */
.section-why-us {
  background-color: var(--light-yellow-bg);
}

.section-why-us .section-title {
  color: var(--text-dark);
}

.section-why-us .section-subtitle {
  color: var(--text-medium);
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.why-us-item {
  background: var(--bg-white);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  border-left: 6px solid var(--primary-green);
  box-shadow: var(--shadow-sm);
}

.why-us-item h4 {
  color: var(--primary-green);
  font-size: 1.25rem;
  margin-top: 0;
  font-weight: 600;
}

/* --- Location & Order Section (Green Background) --- */
.section-location-order {
  background-color: var(--primary-green);
  color: var(--text-light);
}

.section-location-order .section-title,
.section-location-order .section-subtitle {
  color: var(--text-light);
}

.section-location-order .section-title .highlight-yellow {
  color: var(--accent-yellow);
}

.location-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  text-align: center;
}

.location-content h3 {
  font-size: 1.7rem;
  margin-bottom: 15px;
  font-weight: 600;
  color: var(--text-light);
}

.location-content p,
.location-content a {
  color: var(--bg-light);
  text-decoration: none;
  font-size: 1.05rem;
}

.location-content a:hover {
  text-decoration: underline;
  color: var(--accent-yellow);
}

.order-buttons .btn {
  margin: 10px;
}

footer {
  background-color: var(--text-dark);
  background-image: var(--texture-pizza-yellow-on-dark-scattered);
  color: var(--bg-light);
  text-align: center;
  padding: 40px 0;
  margin-top: 0;
}

footer p {
  margin: 8px 0;
  font-size: 0.9rem;
  color: #bdbdbd;
}

.social-icons {
  margin-top: 15px;
}

.social-icons a {
  display: inline-block;
  margin: 0 10px;
}

.social-icons img {
  width: 28px;
  height: 28px;
  transition: opacity 0.3s ease, transform 0.3s ease;
  filter: brightness(0) invert(1) opacity(0.7);
}

.social-icons img:hover {
  filter: brightness(0) invert(1) opacity(1);
  transform: scale(1.1);
}

@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.8rem;
  }

  .hero p {
    font-size: 1.15rem;
  }

  .section-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--accent-yellow);
    flex-direction: column;
    align-items: stretch;
    padding-top: 0;
    /* Changed for collapse */
    padding-bottom: 0;
    /* Changed for collapse */
    padding-left: 0;
    padding-right: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding-top 0.3s ease-out,
      padding-bottom 0.3s ease-out;
    box-shadow: var(--shadow-md);
  }

  .sticky-active .nav-links {
    background-color: var(--text-dark);
  }

  .nav-links.nav-active {
    max-height: 350px;
    padding-top: 10px;
    /* Restore padding when active */
    padding-bottom: 10px;
    /* Restore padding when active */
  }

  .nav-links li {
    margin: 10px 20px;
    text-align: center;
  }

  .btn-nav-cta {
    margin: 10px auto;
    display: block;
    width: fit-content;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
    color: var(--primary-green);
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
  }

  .hero {
    padding: 80px 0;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    margin-bottom: 3rem;
  }

  .our-story-content,
  .menu-grid,
  .why-us-grid,
  .location-content {
    grid-template-columns: 1fr;
  }

  .location-content > div {
    margin-bottom: 30px;
  }

  .location-content > div:last-child {
    margin-bottom: 0;
  }

  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.85rem;
  }

  .main-content-padded {
    padding-top: 60px;
  }
}

.hero {
  background-image: url("./img/10.jpeg");
  /* Replace with your image */
  background-size: cover;
  /* Ensures full coverage */
  background-position: center;
  /* Centers the image */
  background-repeat: no-repeat;
  /* Prevents tiling */
}

.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("./img/10.jpeg") center/cover;
  color: white;
}

/* Base logo style */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* Logo image */
.logo-img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border-radius: 16px;
}

/* Logo text (hidden by default) */
.logo-text {
  display: none;
  font-size: 1.5rem;
  font-weight: 600;
  margin-left: 0.5rem;
  color: #000;
  /* Adjust to match your design */
  white-space: nowrap;
}

/* Show text on medium and larger screens */
@media (min-width: 768px) {
  .logo-text {
    display: inline;
    width: 200px;
    height: 80px;
    object-fit: contain;
  }
}

/* Optional: Adjust image size for very small screens */
@media (max-width: 400px) {
  .logo-img {
    width: 60px;
    height: 60px;
  }
}
