/* Import Fonts */
@font-face {
  font-family: 'Alina W00';
  src: url('../fonts/AlinaW00-Regular.woff2') format('woff2'),
       url('../fonts/AlinaW00-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  background-color: #efe7dd;
  color: #65452a;
}

/* Sticky Header */
header.sticky {
  position: sticky;
  top: 0;
  background: #f5e6de;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 2rem;
  z-index: 999;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Logo */
.logo img {
  height: 180px;
}

/* Navigation */
nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  font-weight: bold;
  color: #65452a;
  transition: color 0.3s;
}

nav a:hover {
  color: #f16f8f;
}

/* Hero Section */
.hero {
  background: url('../images/hero-bakery-background.jpg') no-repeat center center/cover;
  height: 40vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  color: white;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.6);
}

.hero h1 {
  font-family: 'Alina W00', serif;
  font-size: 3rem;
}

.btn {
  margin-top: 20px;
  padding: 12px 30px;
  background-color: #f16f8f;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.3s;
}

.btn-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}


.btn:hover {
  background-color: #dfc56e;
}

/* Sections */
section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Section Headings */
h2 {
  font-family: 'Alina W00', serif;
  text-align: center;
  font-size: 3rem;
  margin-bottom: 3rem;
}

/* Story Section */
#story p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* About Section */
.about-content {
  display: flex;
  align-items:flex-start;
  flex-wrap: wrap;
  gap: 2rem;
 /* align-items: center; */
  justify-content: center;
}

.about-image {
  max-width: 400px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.about-text {
  flex: 1 1 400px;
}

.about-text p {
  margin-bottom: 1.5rem;
}

.highlight {
  font-size: 1.4rem;
  font-weight: bold;
  color: #65452a;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Masonry?style layout via CSS columns */
.gallery-grid.masonry {
  column-gap: 1rem;
  /* start with one column on narrow screens */
  column-count: 1;
}

@media (min-width: 600px) {
  .gallery-grid.masonry {
    column-count: 2;
  }
}

@media (min-width: 900px) {
  .gallery-grid.masonry {
    column-count: 3;
  }
}

/* Each item flows into the columns like a puzzle piece */
.gallery-grid.masonry .gallery-item {
  display: inline-block;       /* necessary for CSS columns */
  width: 100%;                 /* fill column width */
  margin-bottom: 1rem;         /* vertical gutter */
  break-inside: avoid;         /* prevent awkward splits */
}

/* Images keep natural height, fit width */
.gallery-grid.masonry .gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}
/* Order Form */
.order-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.order-item label {
  flex: 1;
  font-weight: bold;
}

.order-item .price {
  flex: 0 0 80px;
  text-align: right;
}

.qty-dropdown {
  flex: 0 0 80px;
}

/* Totals */
.totals {
  text-align: right;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Footer */
footer {
  background-color: #cae8de;
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  margin-top: 4rem;
}
/* Footer Layout */
footer {
  background-color: #cae8de;
  padding: 2rem;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  font-size: 1rem;
}

.footer-phone {
  font-weight: bold;
  color: #65452a;
}

.social-icons a {
  display: inline-block;
}

.social-icons img {
  width: 24px; /* Smaller icons */
  height: 24px;
}

.footer-heart {
  font-size: 0.9rem;
  color: #65452a;
}

/* Fade-in animations */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInSection 1s forwards;
}

@keyframes fadeInSection {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Lightbox overlay */
#lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.5s;
}

#lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}
/* ── Lightbox Container ── */
.lightbox-container {
  display: flex;
  flex-direction: column;
  align-items: center;           /* center image and caption */
  max-width: 90%;
  max-height: 90vh;              /* contain both image & caption */
  overflow: hidden;              /* crop any overflow */
  background: transparent;       /* caption has its own white bg */
  padding: 0;                    /* caption handles its own padding */
}

/* ── Lightbox Image ── */
.lightbox-container img {
  max-width: 100%;
  max-height: 60vh;              /* leave room for caption below */
  object-fit: contain;           /* maintain aspect ratio */
  border-radius: 0;              /* remove any rounding */
}

/* ── Lightbox Caption Card ── */
.lightbox-caption {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1rem;
  width: calc(100% - 2rem);
  max-width: 600px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  text-align: center;
  align-self: center;            /* center under the image */
}

}

/* Ensure the modal itself stays transparent behind the caption card */
.lightbox-container {
  background: transparent;  /* let the caption card show */
  padding: 0;               /* remove extra padding */
}

/* Button tweaks so they stand out on the white card */
.lightbox-caption .btn-order,
.lightbox-caption .btn-back-gallery {
  display: inline-block;
  margin: 0.5rem 0.25rem;
  min-width: 140px;         /* consistent button width */
}


@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 1rem;
  }
  .about-content {
    flex-direction: column;
  }
}
/* Contact Form Styling */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 500px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contact-form input,
.contact-form textarea {
  padding: 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  background-color: #fff;
  width: 100%;
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #f16f8f;
  box-shadow: 0 0 6px rgba(241, 111, 143, 0.5);
  outline: none;
}

.contact-form button {
  align-self: center;
  background-color: #f16f8f;
  color: white;
  padding: 14px 30px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background-color: #dfc56e;
}
/* Gallery Grid Styling */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.gallery-item {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
}

.gallery-item img {
  width: 100%;
  height: auto; /* Let images keep natural height */
  border-radius: 8px;
  display: block;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* ── Gallery Section ── */
#gallery {
  background: transparent;    /* remove any white bg */
  padding: 2rem 1rem;
}

/* ── Masonry via CSS Columns ── */
.gallery-grid.masonry {
  column-count: 1;
  column-gap: 4px;            /* gutter between columns */
}

@media (min-width: 600px) {
  .gallery-grid.masonry {
    column-count: 2;
  }
}

@media (min-width: 900px) {
  .gallery-grid.masonry {
    column-count: 3;
  }
}

/* ── Individual Items ── */
.gallery-item {
  display: inline-block;
  width: 100%;
  margin: 0 0 4px;            /* gutter below each image */
  break-inside: avoid;        /* keep images intact */
}

/* ── Images ── */
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;           /* no rounding */
}

/* Optional: ensure body/page bg shows through */
body, #main-content {
  background: #efe7dd;        /* or whatever your page bg is */
}


/* ── Force vertical flex & scrolling inside lightbox ── */
.lightbox-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90%;
  max-height: 90vh;
  overflow-y: auto;      /* allow caption to scroll into view */
  background: transparent; 
  padding: 0; 
}

/* ── Shrink image so caption always fits below ── */
.lightbox-container img {
  max-width: 100%;
  max-height: 50vh;      /* leave ~40vh for the caption card */
  object-fit: contain;
}

/* ── Always present the white caption card ── */
.lightbox-caption {
  display: block; 
  width: calc(100% - 2rem);
  max-width: 600px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  padding: 1.5rem;
  margin: 1rem 0;         /* vertical space from image */
  text-align: center;
  align-self: center;     /* center within the flex column */
  z-index: 1;
}

/* ── Make sure your buttons stand out on the white card ── */
.lightbox-caption .btn-order,
.lightbox-caption .btn-back-gallery {
  background: #f16f8f;
  color: #fff;
  border: none;
  margin: 0.5rem 0.25rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}
.lightbox-caption .btn-back-gallery {
  background: transparent;
  border: 1px solid #65452a;
  color: #65452a;
}
.lightbox-caption .btn-order:hover,
.lightbox-caption .btn-back-gallery:hover {
  background: #dfc56e;
  color: #fff;
}
/* Improve readability of hero text */
.hero-text {
  position: relative;
  z-index: 1;
  display: inline-block;               /* shrink to text width */
  background: rgba(0, 0, 0, 0.4);       /* dark overlay at 40% opacity */
  padding: 1rem 2rem;                   /* give some breathing room */
  border-radius: 8px;                   /* match your site’s rounding */
}

/* If you want a full‐width overlay behind everything in the hero */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);       /* subtle darken over entire image */
  z-index: 0;
}

.hero, .hero-text {
  position: relative;                   /* ensure stacking context */
}
/* ── Mosaic‐style Gallery Overrides ── */
#gallery {
  background: transparent !important;
  padding: 2rem 1rem;
}

/* Target your masonry container */
#gallery .gallery-grid.masonry {
  column-count: 1 !important;
  column-gap: 4px !important;    /* tiny gutter */
  background: transparent !important;
}

/* Breakpoints for more columns */
@media (min-width: 600px) {
  #gallery .gallery-grid.masonry {
    column-count: 2 !important;
  }
}
@media (min-width: 900px) {
  #gallery .gallery-grid.masonry {
    column-count: 3 !important;
  }
}

/* Each item flows into the next column */
#gallery .gallery-item {
  display: inline-block !important;
  width: 100% !important;
  margin: 0 0 4px !important;    /* gutter below */
  break-inside: avoid !important;
  background: transparent !important;
}

/* Images fill their container, no rounding */
#gallery .gallery-item img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  border-radius: 0 !important;
  background: transparent !important;
}
/* ── Truly Mosaic Gallery Overrides ── */
#gallery,
.gallery-grid.masonry {
  background: transparent !important;
  padding: 0 !important;
}

/* Force block‐level container for columns */
.gallery-grid.masonry {
  display: block !important;
  column-count: 1 !important;
  column-gap: 4px !important;      /* tiny gutter */
}

@media (min-width: 600px) {
  .gallery-grid.masonry {
    column-count: 2 !important;
  }
}
@media (min-width: 900px) {
  .gallery-grid.masonry {
    column-count: 3 !important;
  }
}

/* Items flow in columns, no card styling */
.gallery-item {
  display: inline-block !important;
  width: 100% !important;
  margin: 0 0 4px !important;      /* gutter below each image */
  break-inside: avoid !important;  /* keep each image intact */
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Images fill their container, square corners */
.gallery-item img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  object-fit: cover !important;
  border-radius: 0 !important;
}

/* ── Filter Controls as Elegant Pills ── */
.filter-controls {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 1.5rem 0;
  padding: 0;
}

.filter-controls li {
  margin: 0;
}

.filter-controls button[role="tab"] {
  background: #dfc56e;                 /* your warm secondary */
  color: #65452a;                      /* deep accent */
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 9999px;               /* pill shape */
  font-family: 'Alina W00', serif;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.filter-controls button[role="tab"]:hover {
  background: #f16f8f;                 /* your CTA pink */
  color: #ffffff;
}

.filter-controls button[role="tab"].active {
  background: #65452a;                 /* dark accent for “selected” */
  color: #ffffff;
}
/* ── Filter Controls: Updated Colors & Size ── */
.filter-controls button[role="tab"] {
  background: #dfc56e;            /* accent */
  color: #65452a;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-family: 'Alina W00', serif;
  font-size: 1.25rem;             /* larger text */
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.filter-controls button[role="tab"]:hover {
  background: #65452a;            /* hover */
  color: #ffffff;
}

.filter-controls button[role="tab"].active {
  background: #f16f8f;            /* secondary */
  color: #ffffff;
}



/* Responsive adjustments */
@media (max-width: 768px) {
  .order-form-wrapper {
    padding: 10px;
  }

  .order-item {
    display: flex;
    flex-direction: column;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  }

  .item-info {
    text-align: left;
  }

  .item-price,
  .item-quantity {
    margin-top: 10px;
    text-align: left;
  }
}

/* Make input labels readable */
label {
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
  color: #444;
}

/* Improve form input aesthetics */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"],
select {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 16px;
}

/* Add slight animation to buttons */
button, input[type="submit"] {
  transition: background 0.3s ease;
}

button:hover,
input[type="submit"]:hover {
  background-color: #7a3d65;
  color: #fff;
}

/* ─────────────────────────────
   MOBILE-ONLY ORDER FORM FIXES
────────────────────────────── */
@media (max-width: 768px) {
  .order-form {
    padding: 1rem;
  }

  .order-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  }

  .order-item img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 0.5rem;
  }

  .order-item label,
  .order-item .price,
  .order-item .qty-dropdown {
    width: 100%;
    text-align: left;
  }

  .scroll-hint {
    text-align: center;
    font-size: 0.9rem;
    color: #777;
    margin-top: 1rem;
    animation: bounce 2s infinite;
  }

  @keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
  }
}

/* Ensure images are responsive and display correctly */
.item-img {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  margin: 0 auto 10px;
  border-radius: 8px;
}

/* Keep quantity box compact */
.item-qty input[type="number"] {
  width: 60px;
  padding: 6px 8px;
  font-size: 1rem;
  height: auto;
  margin-top: 4px;
}

/* Reduce spacing between name and price, and price to quantity */
.item-details h3 {
  margin-bottom: 4px;
  font-size: 1.1rem;
}

.item-details .item-price {
  margin-bottom: 6px;
  font-size: 1rem;
}

/* Improve mobile stacking and spacing */
@media (max-width: 600px) {
  .item-card {
    padding: 8px;
    margin: 10px auto;
  }

  .item-details {
    padding: 4px 0;
  }

  .item-qty {
    margin-top: 4px;
  }
}
