/* Global reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Inter", sans-serif;
  background-color: #fefaf7;
  color: #3b2e2e;
  line-height: 1.7;
}

h1,
h2,
h3,
.hero h1,
.section-title {
  font-family: "Playfair Display", serif !important;
  font-weight: 700;
  color: #2a1d14;
}

/* Cute border around whole site */
.site-border {
  border: 2px solid #d9c2b0;
  border-radius: 18px;
  padding: 20px;
  margin: 20px;
  background-color: #fff;
}

/* Navbar */
/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 50px;
  background-color: #fff;
  border-bottom: 2px solid #e9dcd4;
  font-family: "Inter", sans-serif;
}

.cafe-logo {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  font-weight: 700;
  color: #a47551;
  letter-spacing: 1px;
}

.nav-links a {
  margin-left: 30px;
  text-decoration: none;
  font-size: 1rem;
  color: #5a4b3c;
  transition: all 0.3s ease;
}
.nav-links a:hover {
  color: #c89f80;
  font-weight: 600;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #b2856b;
}
nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #4a3d3d;
}
nav a:hover {
  color: #b2856b;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  padding: 80px 60px;
  gap: 50px;
  background-color: #fffaf6;
}

.hero-image {
  flex: 1;
  max-width: 400px; /* Limit image width */
  height: auto;
  align-self: center;
  padding: 1rem;
}

.hero-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  object-fit: cover;
}

.hero-text {
  flex: 1;
  max-width: 600px;
  text-align: left; /* ✅ Enforce left alignment */
}
.hero-text h1 {
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  color: #4e3b2c;
  margin-bottom: 15px;
}
.hero-text p {
  font-size: 1.2rem;
  color: #6e5b4d;
  margin-bottom: 25px;
}
.hero-btn {
  padding: 12px 24px;
  background-color: #c8a27e;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}
.hero-btn:hover {
  background-color: #a4795a;
}

.story {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
  padding: 120px 80px;
  background-color: #fef8f4;
  border-top: 1px dashed #e6dcd4;
  border-bottom: 1px dashed #e6dcd4;
}

.story-text {
  flex: 1;
  max-width: 600px;
  text-align: left;
}

.story-text h2 {
  font-family: "Playfair Display", serif;
  font-size: 2.8rem;
  color: #4d392f;
  margin-bottom: 25px;
  position: relative;
}

.story-text .main-para {
  font-size: 1.15rem;
  line-height: 2;
  font-family: "Inter", sans-serif;
  color: #6a5347;
  margin-bottom: 35px;
}

.signature {
  font-family: "Dancing Script", cursive;
  font-size: 1rem;
  color: #b3896b;
  line-height: 1.6;
}

.signature span {
  font-size: 1rem;
  color: #a07055;
  display: inline-block;
  margin-top: 8px;
  letter-spacing: 1px;
}

.story-image {
  max-width: 300px;
  padding: 1rem;
  align-self: center;
}

.story-image img {
  border: 2px solid rgb(156, 81, 19);
  width: 100%;
  height: auto;
  object-fit: cover;
  border-top-left-radius: 20%;
  border-top-right-radius: 16px;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 20%;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
}

.menu-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
  background: #fffdfc;
  border: 3px dashed #e7dcd2;
  border-radius: 20px;
  font-family: "Cormorant Garamond", serif;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.menu-heading {
  font-size: 2.8rem;
  text-align: center;
  color: #5e4033;
  margin-bottom: 0.3rem;
  letter-spacing: 1px;
}

.menu-subtext {
  font-size: 1.1rem;
  text-align: center;
  color: #8d7569;
  margin-bottom: 3rem;
}

.menu-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 3rem 4rem;
  margin-bottom: 3rem;
}

.menu-cat h3 {
  font-size: 1.6rem;
  color: #674e40;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #e4d6c6;
}

.menu-cat ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-cat li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.8rem;
  color: #44332b;
  border-bottom: 1px dashed #e8ded7;
  border-radius: 8px;
  font-size: 1.1rem;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.menu-cat li span {
  margin-left: auto;
  font-weight: 600;
  color: #6e4a3c;
  min-width: 60px;
  text-align: right;
}
.menu-cat li:hover {
  background: #fdf5f0;
  box-shadow: 0 4px 14px rgba(255, 214, 197, 0.5);
  cursor: pointer;
  transform: translateY(-2px);
}

.menu-cat li::after {
  content: "";
  opacity: 0;
  margin-left: 10px;
  transition: opacity 0.3s ease;
}

.menu-cat li:hover::after {
  content: " ✧";
  opacity: 1;
}
.bestsellers-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
  text-align: center;
  background: #fffaf8;
}

.bestsellers-heading {
  font-size: 2.5rem;
  color: #5e4033;
  margin-bottom: 0.5rem;
  font-family: "Cormorant Garamond", serif;
}

.bestsellers-subtext {
  color: #8d7569;
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.bestsellers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.bestseller-card {
  background: #fffdfc;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 20px rgba(235, 214, 201, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.bestseller-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(235, 214, 201, 0.6);
}

.bestseller-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.bestseller-card h3 {
  font-size: 1.4rem;
  color: #4b362e;
  margin-bottom: 0.5rem;
  font-family: "Cormorant Garamond", serif;
}

.bestseller-card p {
  font-size: 1rem;
  color: #6e574d;
}

.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #fceae0;
  color: #a25935;
  font-size: 0.85rem;
  padding: 0.3rem 0.6rem;
  border-radius: 12px;
  font-weight: 600;
}
.pinterest-gallery {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
  background: #fffaf7;
  font-family: "Cormorant Garamond", serif;
}

.gallery-title {
  font-size: 2.8rem;
  text-align: center;
  color: #4d392f;
  margin-bottom: 0.4rem;
  letter-spacing: 1px;
}

.gallery-subtext {
  font-size: 1.1rem;
  text-align: center;
  color: #9e8475;
  margin-bottom: 3rem;
  font-style: italic;
}

.gallery-pins {
  column-count: 3;
  column-gap: 1.5rem;
}

.gallery-pins img {
  border: solid 2px rgb(156, 81, 19);
  width: 100%;
  margin-bottom: 1.5rem;
  border-radius: 18px;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
  break-inside: avoid;
}

.gallery-pins img:hover {
  transform: scale(1.03);
  filter: brightness(1.05) saturate(1.05);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}
.testimonial-section {
  padding: 5rem 2rem;
  background: #fffdfb;
  text-align: center;
  font-family: "Cormorant Garamond", serif;
}

.testimonial-title {
  font-size: 2.5rem;
  color: #4e382d;
  margin-bottom: 0.4rem;
}

.testimonial-subtext {
  font-size: 1.1rem;
  color: #a08979;
  margin-bottom: 3rem;
  font-style: italic;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.testimonial-card {
  background: #fef9f5;
  border: 2px dashed #e7d9cc;
  border-radius: 18px;
  padding: 2rem 1.5rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.testimonial-text {
  font-size: 1.2rem;
  color: #5b4337;
  margin-bottom: 1.2rem;
  position: relative;
  line-height: 1.7;
}

.testimonial-text::before,
.testimonial-text::after {
  content: "❝";
  font-size: 1.4rem;
  color: #e5c8b5;
  position: absolute;
}

.testimonial-text::after {
  content: "❞";
  right: 0;
}

.testimonial-name {
  display: block;
  font-family: "Dancing Script", cursive;
  font-size: 1.3rem;
  color: #876f5f;
}
.contact-box {
  max-width: 1000px;
  margin: 0 auto;
  background: #fffaf7;
  border: 2px dashed #e2d3c6;
  border-radius: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 3rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03);
  text-align: left;
}

.contact-info {
  flex: 1 1 300px;
}

.contact-map {
  flex: 1 1 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-map img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 2px solid #d4c2b5;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}
.contact-title {
  font-size: 2.5rem;
  color: #4b3528;
  margin-bottom: 0.5rem;
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 1px;
  text-align: center;
}

.contact-subtext {
  font-size: 1.1rem;
  color: #a78d7b;
  margin-bottom: 3rem;
  font-style: italic;
  text-align: center;
}
/* Toggle Button */
.mode-toggle {
  position: fixed;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  margin-left: 20px;
  color: #5a4b3c;
  transition: color 0.3s ease;
}
.mode-toggle:hover {
  color: #a47551;
}

/* DARK MODE STYLES */
/* DARK MODE STYLES */
body.dark {
  background-color: #201713; /* Rich, deep brown */
  color: #ffe7d1; /* Warm cream for body text */
}

/* DISTINCT PARAGRAPH COLOR FOR DARK MODE */
body.dark p {
  color: #e3dafc; /* Soft light lavender for excellent readability */
  /* Try #f7e9d6 for a warm cream instead, if you prefer */
}

body.dark .site-border,
body.dark .hero,
body.dark .story,
body.dark .menu-wrapper,
body.dark .bestsellers-wrapper,
body.dark .pinterest-gallery,
body.dark .testimonial-section,
body.dark .contact-box {
  background-color: #2a1c16; /* Slightly lighter but still deep brown */
  border-color: #bfa084; /* Muted light gold */
  color: #f6dcc0; /* Gentle peachy text inside sections */
}

body.dark .navbar {
  background-color: #241912;
  border-bottom: 2px solid #bfa084;
}

body.dark h1,
body.dark .contact-title {
  color: #ffe9cc; /* Soft, bright cream for main headers */
}

body.dark h2,
body.dark .menu-heading,
body.dark .gallery-title,
body.dark .testimonial-title {
  color: #ffd6a0; /* Muted gold for section headings */
}

body.dark h3 {
  color: #ffbe76; /* Warm gold for subheadings */
}

body.dark .story-text,
body.dark .menu-subtext,
body.dark .gallery-subtext,
body.dark .bestsellers-subtext,
body.dark .testimonial-subtext,
body.dark .contact-subtext {
  color: #e2c2a2; /* Muted beige for secondary text */
}

body.dark .menu-cat li,
body.dark .bestseller-card,
body.dark .testimonial-card {
  background-color: #362320; /* Dark cocoa for cards */
  color: #ffe7d1; /* Creamy text */
  border-color: #a9825c; /* Golden brown border */
}

body.dark .menu-cat li span {
  color: #ffd6a0; /* Accent gold for prices */
}

body.dark .menu-cat li:hover,
body.dark .bestseller-card:hover,
body.dark .testimonial-card:hover {
  background-color: #54392e; /* Slightly lighter brown on hover */
  box-shadow: 0 10px 24px rgba(255, 218, 185, 0.18);
}

body.dark .badge {
  background: #65432e; /* Warm brown badge */
  color: #ffe1b9; /* Light gold text on badge */
}

body.dark .signature,
body.dark .testimonial-name {
  color: #ffbe76; /* Gold accent on script fonts */
}

body.dark .contact-map img {
  border-color: #bfa084; /* Light gold border */
}

/* Nav links: high contrast */
body.dark .nav-links a {
  color: #ffe1b9;
}
body.dark .nav-links a:hover {
  color: #ffbe76;
  font-weight: 600;
}

/* Toggle Button: high contrast and gold accent on hover */
body.dark .mode-toggle {
  color: #ffe9cc;
}
body.dark .mode-toggle:hover {
  color: #ffbe76;
}
/* Responsive Styles */

@media (max-width: 1200px) {
  .site-border,
  .hero,
  .story,
  .menu-wrapper,
  .bestsellers-wrapper,
  .pinterest-gallery,
  .testimonial-section,
  .contact-box {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .gallery-pins {
    column-count: 2;
    column-gap: 1.2rem;
  }
}

@media (max-width: 1024px) {
  .hero,
  .story {
    flex-direction: column;
    gap: 2.5rem;
    padding: 2rem 1rem;
    text-align: center;
  }
  .hero-text,
  .story-text {
    max-width: 100%;
    text-align: center;
  }
  .hero-image,
  .story-image {
    max-width: 320px;
    margin: 0 auto;
  }
  .menu-wrapper,
  .bestsellers-wrapper,
  .pinterest-gallery,
  .testimonial-section,
  .contact-box {
    padding: 0;
  }
}
@media (max-width: 600px) {
  .navbar {
    padding: 0;
    gap: 0.4rem;
  }
}

/* Responsive Gallery Columns */
@media (max-width: 1200px) {
  .gallery-pins {
    column-count: 2;
    column-gap: 1.2rem;
  }
}
@media (max-width: 768px) {
  .gallery-pins {
    column-count: 2;
    column-gap: 1rem;
    padding: 1.5rem 0.5rem;
  }
}
@media (max-width: 480px) {
  .gallery-pins {
    column-count: 1;
    column-gap: 0.5rem;
    padding: 0.5rem 0.1rem;
  }
}
@media (max-width: 900px) {
  .navbar {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 1.5rem 1rem 1rem 1rem;
    gap: 0;
  }

  .cafe-logo {
    order: 1;
    margin: 0 auto 1rem auto;
    text-align: center;
    font-size: 2rem;
    width: 100%;
  }

  .nav-links {
    order: 2;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    margin: 0 auto;
    padding-bottom: 0.3rem;
  }

  .nav-links a {
    margin: 0 12px;
    padding: 0.5rem 0.7rem;
    font-size: 1rem;
    border-radius: 6px;
    background: none;
  }
  .mode-toggle {
    font-size: 1.5rem;
    margin-left: 6px;
  }
}

/* Below 600px: logo centered, nav links horizontal, all centered, spacing reduced */
@media (max-width: 600px) {
  body {
    padding: 0;
    margin: 0;
  }
  .navbar {
    flex-direction: column;
    align-items: center;
    padding: 1rem 0.5rem 0.5rem 0.5rem;
    gap: 0;
  }

  .cafe-logo {
    font-size: 1.4rem;
    margin: 0 auto 0.7rem auto;
    text-align: center;
    width: 100%;
  }

  .nav-links {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
    width: 100%;
    margin: 0 auto;
  }

  .nav-links a {
    font-size: 0.9rem;
    margin: 0 6px;
    padding: 0.35rem 0.5rem;
    border-radius: 5px;
  }
  .mode-toggle {
    position: absolute;
    right: 10px;
    top: 12px;
    margin: 0;
    font-size: 1.4rem;
  }
}

/* Below 480px: logo centered, nav links horizontal below logo, all centered, tighter */
@media (max-width: 480px) {
  .navbar {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0.6rem 0.2rem 0.2rem 0.2rem;
    gap: 0;
  }

  .cafe-logo {
    font-size: 1.1rem;
    margin: 0 auto 0.4rem auto;
    text-align: center;
    width: 100%;
  }

  .nav-links {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.12rem;
    width: 100%;
    margin: 0 auto;
  }

  .nav-links a {
    font-size: 0.4rem;
    margin: 0 2px;
    padding: 0.22rem 0.3rem;
    border-radius: 4px;
  }
  .mode-toggle {
    right: 8px;
    top: 9px;
    font-size: 1.2rem;
  }
}
@media (max-width: 900px) {
  .gallery-pins {
    column-count: 2;
    column-gap: 1.2rem;
  }
}
@media (max-width: 768px) {
  .gallery-pins {
    column-count: 2; /* Still 2 columns on small screens */
    column-gap: 1rem;
    padding: 1.5rem 0.5rem;
  }
}
@media (max-width: 480px) {
  .gallery-pins {
    column-count: 1; /* Stack vertically for very small screens */
    column-gap: 0.5rem;
    padding: 0.5rem 0.1rem;
  }
}
@media (min-width: 400px) and (max-width: 479px) {
  .hero {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.5rem;
    padding: 1.2rem 0.6rem 2rem;
  }

  .hero-image img {
    width: 100%;
    max-width: 280px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .hero-text h1 {
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
  }

  .hero-text p {
    font-size: 0.95rem;
    padding: 0 0.5rem;
    line-height: 1.5;
    color: #4b352a;
  }

  .hero-btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background-color: #a47e6a;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s ease;
  }

  .hero-btn:hover {
    background-color: #8c6957;
  }

  /* Keep other site sections tidy */
  .site-border,
  .story,
  .menu-wrapper,
  .bestsellers-wrapper,
  .pinterest-gallery,
  .testimonial-section,
  .contact-box {
    padding: 0.8rem 0.5rem;
  }

  .nav-links a {
    font-size: 0.8rem;
    padding: 0.35rem 0.5rem;
  }

  .contact-title {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
  }

  .gallery-pins {
    column-count: 2;
    column-gap: 0.5rem;
    padding: 0.4rem 0.3rem;
  }

  .gallery-pins .pin {
    break-inside: avoid;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    overflow: hidden;
  }

  .gallery-pins .pin img {
    width: 100%;
    display: block;
    border-radius: 8px;
  }
  .contact-btn {
    padding: 0.5rem 1rem;
    background-color: #a47e6a;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
  }
  .testimonial-title {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
  }
}
