/* ====================================================================
   STYLES.CSS — Main Stylesheet for In It for the Dough Website
   
   SECTIONS:
   1. BASE STYLES - Body, typography, layout
   2. BUTTONS - Reusable button styling (.btn, .btn.secondary, .btn.large)
   3. HERO SECTION - Home page hero layout
   4. ITEM CARDS - Menu category cards on items.html
   5. CONTACT FORM - Contact page form styling
   6. NAVBAR - Header and navigation styling
   7. SOCIAL BUTTONS - Instagram/Facebook buttons
   8. ITEM DETAIL PAGE - Product detail page styling
   9. FEATURED IMAGE SCROLLER - Home page carousel
   10. GALLERY & LIGHTBOX - Gallery page and image modal
   11. FOOTER - Footer styling
   12. RESPONSIVE DESIGN - Mobile/tablet breakpoints
   
   COLOR SCHEME:
   - Primary brown: #8b5e3c (main buttons)
   - Secondary brown: #c08a5b (secondary buttons)
   - Light background: #fff7f2 (warm white)
   - Text: #333, #6b6b6b (muted)
   
   TO EDIT:
   - Find the section you want to edit using CTRL+F
   - Each section is clearly marked with comments
   - Mobile responsive styles are at the bottom of each section
==================================================================== */

/* ====================================================================
   1. BASE STYLES — Page Layout and Typography
==================================================================== */
body {
  font-size: 1.1rem; /* Base font size */
  line-height: 1.6; /* Spacing between lines */
  max-width: 1100px; /* Max page width */
  margin: 0 auto; /* Center page */
  padding: 1rem; /* Space around edges */
}


/* ====================================================================
   HERO SECTION — Home Page Hero with Two Columns
==================================================================== */
/* Desktop layout: text on left, buttons on right */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 320px; /* 2 columns: text (wide) and buttons (narrow) */
  gap: 2rem;
  align-items: center;
  padding: 3rem;
}

/* Right column: button container (center-aligned) */
.hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* Mobile responsive: stack columns vertically */
@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr; /* Single column on mobile */
    padding: 3rem 2rem;
    text-align: center;
  }

  .hero-right {
    flex-direction: row; /* Buttons in a row */
    justify-content: center;
  }

  .btn.large {
    width: auto; /* Don't force full width on mobile */
  }
}


/* ====================================================================
   2. BUTTONS — Reusable Button Styles
   ====================================================================
   
   USAGE:
   - <a class="btn">Primary button</a>
   - <a class="btn secondary">Secondary button</a>
   - <a class="btn large">Full-width button</a>
   - Combine classes: class="btn secondary large"
==================================================================== */
.btn {
  background: #8b5e3c; /* Primary brown color */
  color: white;
  padding: 0.75rem 1.5rem; /* Size padding */
  text-decoration: none; /* Remove link underline */
  border-radius: 8px; /* Rounded corners */
  font-weight: bold;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

/* Secondary button variant - lighter brown */
.btn.secondary {
  background: #c08a5b; /* Lighter brown */
}

/* Large button - full width */
.btn.large {
  width: 100%;
  text-align: center;
  font-size: 1.1rem;
}

/* Hover/focus states - lift up and add shadow */
.btn:hover,
.btn:focus {
  transform: translateY(-4px); /* Move up slightly */
  box-shadow: 0 8px 22px rgba(0,0,0,0.12); /* Add shadow */
}


/* ====================================================================
   3. ITEM CARDS — Menu Category Cards (items.html)
==================================================================== */
/* Grid layout for item cards */
.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive columns */
  gap: 1.5rem;
}

/* Individual item card styling */
.item-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: #8b5e3c; /* Primary brown */
  color: #fff;
  padding: 1.25rem;
  text-align: center;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  min-height: 120px;
}

/* Secondary item card - lighter brown */
.item-card.secondary {
  background: #c08a5b;
}

/* Hover/focus states */
.item-card:hover,
.item-card:focus {
  transform: translateY(-4px); /* Move up */
  box-shadow: 0 8px 22px rgba(0,0,0,0.12); /* Add shadow */
}

/* Image sizing inside cards */
.item-card img {
  width: 64px;
  height: auto;
  margin-bottom: 0.5rem;
}

/* Text label in cards */
.item-card span {
  display: block;
  color: inherit;
}


/* ====================================================================
   4. CONTACT FORM — Contact Page Form Styling
==================================================================== */
/* Form container - center and layout */
.contact-container form {
  max-width: 500px; /* Limit width */
  margin: auto; /* Center form */
  display: flex;
  flex-direction: column; /* Stack form fields vertically */
}

/* Form inputs and buttons */
input, textarea, button {
  margin: 0.5rem 0; /* Space between fields */
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 8px;
}

/* Submit button styling */
button {
  background: #8b5e3c; /* Primary brown */
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

button:hover {
  background: #7a4e2f; /* Darker brown on hover */
}

/* Status message - shown after form submission */
.form-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 700;
}


/* ====================================================================
   5. FOOTER — Footer Styling
==================================================================== */
footer {
  text-align: center;
  padding: 1rem;
  background: #f4f4f4; /* Light gray background */
  margin-top: 2rem;
}

footer p {
  color: #777; /* Muted text color */
  margin: 0;
}

footer a {
  color: #8b5e3c; /* Primary brown for links */
  text-decoration: none;
  font-weight: bold;
}

footer a:hover {
  text-decoration: underline;
}


/* ====================================================================
   6. NAVBAR — Site Header and Navigation
==================================================================== */
.navbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 1rem;
  background: #fff7f2; /* Warm white background */
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
}

/* Logo in navbar - keep it constrained */
.navbar .logo {
  max-width: 140px;
  width: auto;
  height: auto;
  display: block;
  margin-right: 1rem;
}

/* Navigation links container */
.navbar nav {
  display: flex;
  gap: 0.75rem;
  flex: 1 1 auto; /* Take remaining space */
  justify-content: center;
  align-items: center;
}

/* Navbar link styling - look like buttons */
.navbar a {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  background: #8b5e3c; /* Primary brown */
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Secondary navbar link variant */
.navbar a.secondary {
  background: #c08a5b;
}

/* Hover and focus states */
.navbar a:hover,
.navbar a:focus {
  transform: translateY(-2px); /* Lift up */
  box-shadow: 0 8px 20px rgba(0,0,0,0.10);
  outline: none;
}

/* Mobile responsive: stack navbar vertically on small screens */
@media (max-width: 700px) {
  .navbar {
    flex-direction: column;
    align-items: center;
    padding: 0.6rem;
    gap: 0.5rem;
  }

  .navbar .logo {
    max-width: 120px;
    margin-right: 0;
  }

  .navbar nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .navbar a {
    width: auto;
    padding: 0.5rem 0.9rem;
  }
}


/* ====================================================================
   7. SOCIAL BUTTONS — Social Media Icons (Contact Page)
==================================================================== */
.social-links {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin: 0.75rem 0;
  flex-wrap: wrap;
}

/* Individual social button */
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
  position: relative;
  line-height: 1;
  font-size: 0.9rem;
}

/* SVG icon inside button */
.social-btn svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: currentColor;
}

/* Focus state for accessibility */
.social-btn:focus {
  outline: 3px solid rgba(0,0,0,0.08);
  outline-offset: 3px;
}

/* Instagram gradient background */
.instagram {
  background: linear-gradient(45deg,#f58529 0%,#dd2a7b 50%,#8134af 100%);
}

/* Facebook color */
.facebook {
  background: #1877f2;
}

/* Hover state - lift and fade */
.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.10);
  opacity: 0.95;
}

/* Visually hidden text for screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}


/* ====================================================================
   8. ITEM DETAIL PAGE — Product Detail Page Styling (item-detail.html)
==================================================================== */
/* Container for detail page */
.detail-container {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

/* Main detail card */
.detail-card {
  background: #fff;
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* Hero section - image and title */
.detail-hero {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}

.detail-hero img {
  width: 120px;
  height: 120px;
}

.detail-hero h2 {
  margin-bottom: 0.5rem;
}

/* Pill-shaped tags */
.pill {
  display: inline-block;
  background: #f2e8dc;
  color: #6b4b2a;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-right: 0.5rem;
}

/* Action buttons */
.detail-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.detail-actions .btn.secondary {
  background: #eee;
  color: #333;
}

/* Mobile responsive */
@media (max-width: 600px) {
  .detail-hero {
    flex-direction: column;
    text-align: center;
  }
}

/* ====================================================================
   ITEM DETAIL: CATEGORY HEADER + PRODUCT CARDS
==================================================================== */
/* Detail header - category info */
.detail-header {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: #fff7f2; /* Warm background */
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
}

/* Goods section container */
.goods-section {
  margin-top: 1.5rem;
}

/* Grid of product cards */
.goods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* Responsive columns */
  gap: 1rem;
  margin-top: 1rem;
}

/* Individual product card */
.good-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Top section - product name */
.good-top h4 {
  margin: 0 0 0.25rem 0;
}

/* Content block inside card */
.good-block h5 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
}

/* Muted text styling */
.muted {
  color: #6b6b6b;
  margin: 0.25rem 0 0 0;
}

/* Container for badge chips (allergens, labels) */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0 0.75rem 0;
}

/* Individual badge/chip */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px; /* Full rounded */
  font-size: 0.9rem;
  font-weight: 700;
}

/* Allergen chip - gray background */
.chip.allergen {
  background: #f4f4f4;
  color: #333;
  border: 1px solid rgba(0,0,0,0.08);
}

/* Label/customization chip - brown background */
.chip.label {
  background: #8b5e3c;
  color: #fff;
}

/* Action buttons in product card */
.good-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

/* Price table in product card */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
}

.price-table th, .price-table td {
  text-align: left;
  padding: 0.5rem 0.4rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.price-table th {
  font-weight: 800;
}


/* ====================================================================
   9. FEATURED PHOTOS GRID — Home Page Featured Images
==================================================================== */
/* Featured section container */
.featured-strip {
  max-width: 1100px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}

/* Section header */
.section-head h2 {
  margin-bottom: 0.25rem;
}

/* Featured photos grid — responsive grid of static images */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); /* Responsive columns */
  gap: 1.5rem;
  margin-top: 1rem;
}

/* Images in featured grid */
.featured-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover; /* Crop to fit */
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover effect on images */
.featured-grid img:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* CTA below images */
.strip-cta {
  margin-top: 1.5rem;
}


/* ====================================================================
   10. GALLERY PAGE + LIGHTBOX — Gallery and Image Modal
==================================================================== */
/* Gallery page container */
.gallery-container {
  max-width: 1100px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}

/* Grid layout for gallery images */
.gallery-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Responsive columns */
  gap: 1rem;
}

/* Individual gallery item */
.gallery-item {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
  cursor: pointer; /* Show it's clickable */
}

/* Gallery item image */
.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* Gallery item caption */
.gallery-item figcaption {
  padding: 0.75rem 0.9rem;
  font-weight: 800;
}

/* ====================================================================
   LIGHTBOX MODAL — Full-Screen Image Preview
==================================================================== */
/* Lightbox overlay */
.lightbox {
  position: fixed;
  inset: 0; /* Cover entire screen */
  background: rgba(0,0,0,0.75); /* Dark overlay */
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 999;
}

/* Show lightbox */
.lightbox.is-open {
  display: flex;
}

/* Large image in lightbox */
.lightbox-img {
  max-width: min(900px, 95vw); /* Responsive width */
  max-height: 78vh; /* Responsive height */
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* Image caption below image */
.lightbox-caption {
  color: #fff;
  margin-top: 0.75rem;
  text-align: center;
  font-weight: 800;
}

/* Close button (X) */
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  border: none;
  border-radius: 999px;
  width: 44px;
  height: 44px;
  font-size: 18px;
  cursor: pointer;
  background: rgba(255,255,255,0.95);
}
