:root {
  --teal: #6fa5a5;
  --mustard: #d4a547;
  --mustard-dark: #b88722; /* Added for gradient and hover */
  --cream: #faf8f5;
  --dark-charcoal: #2f2f2f;
  --rustic-copper: #b87333;
  --border-gray: #d9d9d9;
  --shadow-light: rgba(111, 165, 165, 0.1);
  --shadow-strong: rgba(111, 165, 165, 0.15);
  --text-muted: rgba(47, 47, 47, 0.6);
  --text-muted-light: rgba(47, 47, 47, 0.4);
}

/* Box sizing and global border styling */
*,
*::before,
*::after {
  box-sizing: border-box;
  /* Remove forced borders and shadows */
  border: none;
  box-shadow: none;
  border-radius: 0.75rem; /* global rounded corners */
}

body {
  margin: 0;
  font-family: "Playfair Display", serif;
  background: linear-gradient(
      135deg,
      rgba(139, 115, 85, 0.15),
      rgba(172, 143, 110, 0.1)
    ),
    url("https://www.transparenttextures.com/patterns/paper-fibers.png");
  background-repeat: repeat;
  background-size: auto, cover;
  background-blend-mode: overlay;
  color: var(--dark-charcoal);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 0.75rem;
  object-fit: cover;
  transition: transform 0.3s ease;
}
img:hover,
img:focus {
  transform: scale(1.05);
  outline: none;
}

a {
  color: var(--mustard);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s ease;
  font-family: inherit;
}
a:hover,
a:focus {
  color: var(--rustic-copper);
  outline: none;
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--dark-charcoal);
  margin-top: 0;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

/* Make all paragraphs bolder and larger */
p {
  font-family: inherit;
  font-weight: 600; /* Semi-bold for stronger text */
  font-size: 1.15rem; /* Slightly larger */
  color: var(--dark-charcoal); /* Fully opaque */
  line-height: 1.7;
  transition: color 0.3s ease;
}

/* Containers with soft background and shadows */
header,
article.product-card,
#recommendations,
#recommendation-list article,
#about > div,
#market .images-grid > div {
  background: rgba(250, 248, 245, 0.85);
  box-shadow: 0 4px 12px var(--shadow-light);
  border: none;
  border-radius: 0.75rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  font-family: inherit;
}

header {
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: saturate(180%) blur(12px);
  background: linear-gradient(
    135deg,
    rgba(137, 183, 183, 0.2),
    /* more subtle teal */ rgba(172, 143, 110, 0.05) /* more subtle warm tone */
  );
  border-radius: 0;
  box-shadow: inset 0 -2px 6px rgba(137, 183, 183, 0.15); /* lighter shadow */
  border: none;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

header.scrolled {
  background: linear-gradient(
    135deg,
    rgba(137, 183, 183, 0.2),
    rgba(172, 143, 110, 0.05)
  );
  box-shadow: inset 0 -2px 6px rgba(137, 183, 183, 0.15);
}

/* Hover and focus effects for containers */
header.scrolled,
article.product-card:hover,
article.product-card:focus-within,
#recommendation-list article:hover,
#recommendation-list article:focus-within,
#about > div:hover,
#about > div:focus-within,
#market .images-grid > div:hover,
#market .images-grid > div:focus-visible {
  box-shadow: 0 12px 36px var(--shadow-strong);
  transform: translateY(-4px);
  outline: none;
}

/* Navigation */
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-title img {
  height: 56px;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px var(--shadow-light);
  transition: transform 0.3s ease;
}
.logo-title img:hover {
  transform: scale(1.05);
}

.site-title {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--dark-charcoal);
  user-select: none;
  font-family: inherit;
}

nav.desktop-nav {
  display: flex;
  gap: 2rem;
  font-weight: 700;
  font-size: 1rem;
  font-family: inherit;
}

nav.desktop-nav a {
  position: relative;
  padding: 0.25rem 0;
  color: var(--dark-charcoal);
  transition: color 0.3s ease;
  font-family: inherit;
}
nav.desktop-nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--mustard);
  transition: width 0.3s ease;
  border-radius: 2px;
}
nav.desktop-nav a:hover,
nav.desktop-nav a:focus {
  color: var(--mustard);
}
nav.desktop-nav a:hover::after,
nav.desktop-nav a:focus::after {
  width: 100%;
}

/* Mobile menu button */
#mobile-menu-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  display: none; /* Hidden on desktop */
  align-items: center;
  font-family: inherit;
}
#mobile-menu-button svg {
  stroke: var(--dark-charcoal);
  width: 2rem;
  height: 2rem;
  transition: stroke 0.3s ease;
}
#mobile-menu-button:focus-visible {
  outline: 2px solid var(--mustard);
  outline-offset: 2px;
}

/* Mobile menu */
/* Mobile menu */
#mobile-menu {
  text-align: center;
  font-size: 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  background: linear-gradient(
    135deg,
    rgba(139, 115, 85, 0.5),
    /* increased from 0.20 to 0.50 */ rgba(172, 143, 110, 0.4)
      /* increased from 0.15 to 0.40 */
  );
  backdrop-filter: saturate(180%) blur(12px);
  border-radius: 0; /* match header */
  box-shadow: inset 0 -2px 8px rgba(111, 165, 165, 0.12);
  border: none;
  display: none;
  flex-direction: column;
  gap: 1rem;
  font-weight: 700;
  font-family: inherit;
  transition: box-shadow 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

#mobile-menu.show {
  display: flex;
  background: linear-gradient(
    135deg,
    rgba(137, 183, 183, 0.2),
    /* more subtle teal */ rgba(172, 143, 110, 0.05) /* more subtle warm tone */
  );
  box-shadow: inset 0 -2px 8px rgba(111, 165, 165, 0.18),
    0 4px 18px rgba(111, 165, 165, 0.18);
}

#mobile-menu a {
  color: black; /* black text */
  text-decoration: none; /* remove underline */
  padding: 0.5rem 0;
  border-bottom: none; /* no border by default */
  font-weight: 700;
  font-size: 1.25rem;
  transition: color 0.3s ease, transform 0.2s ease, text-shadow 0.2s ease;
  font-family: inherit;
}

#mobile-menu a:hover,
#mobile-menu a:focus {
  color: black; /* mustard on hover */
  outline: none;
  border-bottom: none; /* no underline or border */
  transform: scale(1.05); /* slight pop scale */
  text-shadow: 0 0 1px black; /* subtle glow effect */
}

/* Hero Section */
#hero {
  position: relative;
  background-color: transparent;
  padding: 4rem 2rem; /* add vertical padding instead of fixed height */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--dark-charcoal);
  font-family: "Playfair Display", serif;
  user-select: none;
}

#hero h2 {
  font-size: 3rem; /* increased from 2rem */
  margin-bottom: 0.5rem; /* slightly larger bottom margin */
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

#hero p {
  font-size: 1.25rem; /* increased from 1rem */
  max-width: 600px;
  font-weight: 300;
  margin: 0 auto 1.5rem auto;
  line-height: 1.6;
  color: var(--text-muted);
  padding: 0 1rem;
  text-align: center;
  font-family: inherit;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

#hero .hero-image {
  width: 100%;
  height: auto;   /* maintain aspect ratio */
  max-height: 500px; /* optional max height */
  border-radius: 1.5rem;
  box-shadow: 0 12px 36px var(--shadow-strong);
}

#hero .hero-image:hover,
#hero .hero-image:focus {
  transform: scale(1.04);
  outline: none;
}
#hero blockquote {
  max-width: 540px;
  background: rgba(212, 165, 71, 0.12);
  color: var(--rustic-copper);
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1.5rem;
  padding: 1rem 2rem;
  border-radius: 1.25rem;
  box-shadow: 0 4px 20px rgba(212, 165, 71, 0.15);
  user-select: none;
  letter-spacing: 0.05em;
  margin: 2rem 0 0 0;
}
div[tabindex="0"] .hero-image {
  height: 100px;
  border-radius: 1rem;
  box-shadow: 0 8px 24px var(--shadow-strong);
  transition: transform 0.3s ease;
}
div[tabindex="0"] .hero-image:hover,
div[tabindex="0"] .hero-image:focus {
  transform: scale(1.05);
  outline: none;
}

.carousel {
  position: relative;
  max-width: 700px; /* width of your carousel */
  margin: 0 auto 2rem auto;
  overflow: hidden; /* important to hide overflow */
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-track-container {
  overflow: hidden; /* hides overflow */
  width: 700px; /* match carousel width */
  margin: 0 auto;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
  padding: 0;
  margin: 0;
  list-style: none;
  flex-wrap: nowrap;
}

.carousel-slide {
  width: 700px; /* slide width same as container */
  height: 500px; /* increased height */
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  border-radius: 0.5rem;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* scales and crops nicely */
  display: block;
}

.carousel-button {
  position: absolute;
  top: 50%;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  padding: 0.5rem 1rem;
  font-size: 2rem;
  cursor: pointer;
  transform: translateY(-50%);
  border-radius: 0.5rem;
  user-select: none;
  z-index: 10;
}

.carousel-button.prev {
  left: 10px;
}

.carousel-button.next {
  right: 10px;
}

/* Sections */
section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  font-family: inherit;
  border-radius: 0.75rem;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Products Grid */
#products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  align-items: stretch;
}
article.product-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 2rem;
  font-family: inherit;
  background: linear-gradient(
    135deg,
    rgba(250, 248, 245, 0.1),
    rgba(230, 220, 200, 0.1)
  );
  box-shadow: 0 4px 12px var(--shadow-light);
  border-radius: 0.75rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  cursor: default;
}
article.product-card:hover,
article.product-card:focus-within {
  box-shadow: 0 12px 36px var(--shadow-strong);
  transform: translateY(-4px);
  outline: none;
}
article.product-card h3 {
  margin: 0 0 0.75rem 0;
}
article.product-card p {
  flex-grow: 1;
  margin-bottom: 1rem;
  font-family: inherit;
}
article.product-card ul {
  margin-bottom: 1rem;
  font-family: inherit;
}
article.product-card img {
  max-height: 200px;
  width: 100%;
  object-fit: cover;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}

/* Recommendations */
#recommendations {
  background: var(--cream);
  border-radius: 1rem;
  padding: 2rem;
  margin-top: 3rem;
  box-shadow: 0 4px 20px var(--shadow-light);
  font-family: inherit;
}
#recommendations h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--dark-charcoal);
  font-weight: 700;
  letter-spacing: 0.15em;
  font-family: inherit;
}
#recommendation-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  font-family: inherit;
}
#recommendation-list article {
  background: var(--cream);
  border-radius: 0.75rem;
  box-shadow: 0 3px 12px var(--shadow-light);
  padding: 1rem 1.25rem;
  transition: box-shadow 0.3s ease;
  cursor: pointer;
  font-family: inherit;
}
#recommendation-list article:hover,
#recommendation-list article:focus-within {
  box-shadow: 0 8px 28px var(--shadow-strong);
  outline: none;
}
#recommendation-list img {
  width: 100%;
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
  max-height: 140px;
  object-fit: cover;
}
#recommendation-list h4 {
  margin: 0 0 0.25rem 0;
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark-charcoal);
  font-family: inherit;
}
#recommendation-list p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-family: inherit;
}

/* About Section */
#about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  font-family: inherit;
}

#about > div {
  box-shadow: 0 4px 20px var(--shadow-light);
  padding: 3rem 2.5rem;
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(250, 248, 245, 0.1),
    rgba(230, 220, 200, 0.1)
  );
  border-radius: 0.75rem;
  font-family: inherit;
}

#about h3 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--dark-charcoal);
  user-select: none;
  font-family: inherit;
}
#about p {
  margin-bottom: 1rem;
  font-family: inherit;
}
#about .portrait {
  max-width: 180px;
  border-radius: 1rem;
  box-shadow: 0 6px 20px var(--shadow-strong);
  margin-bottom: 1.5rem;
  user-select: none;
}
#about .accent-text {
  font-weight: 700;
  font-style: italic;
  color: var(--mustard);
  user-select: none;
  font-family: inherit;
}

/* Market Section */
#market {
  padding-bottom: 6rem;
  font-family: inherit;
}
#market article {
  background: linear-gradient(
    135deg,
    rgba(250, 248, 245, 0.1),
    rgba(230, 220, 200, 0.1)
  );
  border-radius: 0.75rem;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px var(--shadow-light);
  color: var(--dark-charcoal);
  font-family: inherit;
}
#market article h4 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  text-transform: uppercase;
  color: var(--dark-charcoal);
}
#market .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  font-family: inherit;
}
#market .gallery-grid img {
  width: 100%;
  border-radius: 0.75rem;
  box-shadow: 0 8px 24px var(--shadow-strong);
  object-fit: cover;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  transition: transform 0.3s ease;
}
#market .gallery-grid img:hover,
#market .gallery-grid img:focus {
  transform: scale(1.05);
  outline: none;
}
#market h3 {
  font-size: 2.5rem;
  color: var(--dark-charcoal);
  margin-bottom: 1rem;
  text-align: center;
  letter-spacing: 0.15em;
  user-select: none;
  font-family: inherit;
}
#market p {
  max-width: 700px;
  margin: 0 auto 1rem auto;
  font-weight: 300;
  font-size: 1.1rem;
  text-align: center;
  color: black;
  user-select: none;
  font-family: inherit;
}
#market a {
  font-weight: 700;
  color: var(--mustard);
  font-family: inherit;
}
#market a:hover,
#market a:focus {
  color: var(--rustic-copper);
}
#market .images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  font-family: inherit;
}
#market .images-grid > div {
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  outline-offset: 2px;
  font-family: inherit;
}
#market .images-grid > div:hover,
#market .images-grid > div:focus-visible {
  transform: scale(1.05);
  box-shadow: 0 12px 36px var(--shadow-strong);
  outline: none;
}

/* Buttons */
.order-now-btn {
  background-color: var(--mustard);
  background-image: linear-gradient(45deg, var(--mustard), var(--mustard-dark));
  color: var(--dark-charcoal);
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 0.75rem;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(212, 165, 71, 0.35);
  transition: background-color 0.3s ease, box-shadow 0.3s ease,
    transform 0.3s ease;
  margin: 1rem auto 0 auto;
  display: block;
  font-family: inherit;
}
.order-now-btn:hover,
.order-now-btn:focus {
  background-color: var(--rustic-copper);
  background-image: none;
  box-shadow: 0 8px 28px rgba(184, 115, 51, 0.5);
  transform: translateY(-2px);
  outline: none;
}

/* Order Modal */
#order-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(47, 47, 47, 0.7);
  backdrop-filter: blur(6px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  font-family: inherit;
}
#order-modal[aria-hidden="false"] {
  display: flex;
}
#order-form-container {
  background: var(--cream);
  padding: 2rem 3rem;
  border-radius: 1rem;
  box-shadow: 0 12px 36px var(--shadow-strong);
  max-width: 480px;
  width: 90vw;
  position: relative;
  font-family: inherit;
  #order-form-container {
    margin: 0; /* add this to override any default margin */
  }
}
#order-form-container h3 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--dark-charcoal);
  user-select: none;
}
#order-form-container label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: var(--dark-charcoal);
  font-family: inherit;
}
#order-form-container input[type="text"],
#order-form-container input[type="email"],
#order-form-container textarea,
#order-form-container select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  border: 1px solid var(--border-gray);
  border-radius: 0.5rem;
  font-family: inherit;
  font-weight: 400;
  color: var(--dark-charcoal);
  margin-bottom: 1.25rem;
  transition: border-color 0.3s ease;
}
#order-form-container input[type="text"]:focus,
#order-form-container input[type="email"]:focus,
#order-form-container textarea:focus,
#order-form-container select:focus {
  border-color: var(--mustard);
  outline: none;
}

/* Submit button inside modal */
#order-form-container button[type="submit"] {
  background-color: var(--mustard);
  background-image: linear-gradient(45deg, var(--mustard), var(--mustard-dark));
  color: var(--dark-charcoal);
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 0.75rem;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(212, 165, 71, 0.35);
  transition: background-color 0.3s ease, box-shadow 0.3s ease,
    transform 0.3s ease;
  font-family: inherit;
}
#order-form-container button[type="submit"]:hover,
#order-form-container button[type="submit"]:focus {
  background-color: var(--rustic-copper);
  background-image: none;
  box-shadow: 0 8px 28px rgba(184, 115, 51, 0.5);
  transform: translateY(-2px);
  outline: none;
}

footer {
  color: var(--cream);
  text-align: center;
  padding: 2rem 1.5rem;
  font-family: inherit;
  font-weight: 400;
  font-size: 1rem;
  user-select: none;
  min-height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  letter-spacing: 0.05em;
}

/* Media Queries for responsiveness */
@media (min-width: 1024px) {
  article.product-card {
    max-height: 700px; /* Adjust this value to your liking */
    overflow: hidden; /* Hide overflow content */
  }

  article.product-card {
    padding: 1.5rem 1.75rem; /* reduce padding inside cards for more room */
  }
}

@media (max-width: 768px) {
  nav.desktop-nav {
    display: none;
  }
  #mobile-menu-button {
    display: flex;
  }
  #hero h2 {
    font-size: 2.5rem;
  }
  #hero p {
    font-size: 1.1rem;
  }
  #about {
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
  }
  #products {
    grid-template-columns: 1fr;
  }
}

.hero-section {
  position: relative;
  width: 100%;
  text-align: center;
  padding: 0;
  overflow: visible; /* don't clip the image */
}

.hero-section .hero-image {
  width: 100%;       /* full browser width */
  height: auto;      /* maintain full aspect ratio */
  display: block;
  margin: 0 auto;
  border-radius: 1.5rem;
  box-shadow: 0 12px 36px var(--shadow-strong);
  transition: transform 0.3s ease;
}

.hero-section .hero-image:hover {
  transform: scale(1.02);
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.15); /* subtle glass effect */
  z-index: 1;
  pointer-events: none;
}

.hero-images {
  display: flex;
  flex-direction: column; /* stack vertically */
  gap: 1.5rem; /* space between images */
}
