/* ===== Base Styles ===== */
:root {
  --primary-dark: #1A3A3A;
  --secondary: #5A7D7C;
  --accent: #C4A86F;
  --neutral-light: #FFFFFF;
  --neutral-dark: #1A1A1A;
}

body, h1, h2, h3, p, ul, li, form, input, textarea, button {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Lora', serif;
}

body {
  background: var(--neutral-light);
  color: var(--neutral-dark);
  line-height: 1.7;
}

p {
  font-size: 1.2rem;
  line-height: 1.8;
}

.container p {
  font-size: 1.25rem;
}

h1, h2, h3 {
  font-family: 'Cinzel Decorative', serif;
  letter-spacing: 0.05em;
}

a {
  color: var(--neutral-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

/* ===== Header ===== */
header {
  background: linear-gradient(rgba(26,58,58,0.6), rgba(26,58,58,0.6)), url('/images/wood-bg-1920x1080.webp') center/cover;
  color: var(--neutral-light);
  padding: 4rem 0;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

header h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.1em;
}

/* ===== Navigation ===== */
nav {
  background: var(--primary-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
  min-height: 60px;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--neutral-light);
  font-size: 1.8rem;
  padding: 1rem;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 10px;
  z-index: 1001;
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 1rem 0;
}

nav li {
  margin: 0 1.5rem;
}

nav a {
  padding: 0.5rem 1rem;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: var(--accent);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* ===== Main Content ===== */
.container {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 2rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 1.8rem;
  color: var(--primary-dark);
}

/* ===== Products ===== */
.product {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--secondary);
}

.product-images {
  display: grid;
  gap: 1rem;
}

.product-main-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 8px;
  border-bottom: 3px solid var(--accent);
  transition: box-shadow 0.3s ease;
}

.product-main-image:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.product h3 {
  color: var(--primary-dark);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.product p {
  font-family: 'Open Sans', sans-serif;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.product-button {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: 'Open Sans', sans-serif;
}

.product-button:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

.product-button:active {
  transform: scale(0.95);
}

/* ===== Gallery ===== */
.gallery {
  margin-top: 2rem;
  text-align: center;
}

#galleryCarousel .carousel-inner {
  max-width: 800px;
  margin: 0 auto;
  height: auto;
}

#galleryCarousel .carousel-item img {
  width: 100%;
  height: 600px;
  object-fit: contain;
  max-height: 90vh;
  box-shadow: none; /* Explicit default */
  transition: box-shadow 0.3s ease;
}

#galleryCarousel .carousel-item img:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.2) !important; /* Increased specificity with !important */
}

.gallery-cta {
  margin-top: 1.5rem;
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: 'Open Sans', sans-serif;
}

.gallery-cta:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

.gallery-cta:active {
  transform: scale(0.95);
}

/* ===== Contact Form ===== */
form {
  max-width: 600px;
  margin: 0 auto;
}

form label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  transition: color 0.3s ease;
}

input:focus + label,
textarea:focus + label {
  color: var(--primary-dark);
}

input, textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #ddd;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
  border-color: var(--accent);
  outline: none;
}

button[type="submit"] {
  background: var(--accent);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  border: none;
  font-family: 'Open Sans', sans-serif;
}

button[type="submit"]:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

button[type="submit"]:active {
  transform: scale(0.95);
}

button[type="submit"]:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* ===== Footer ===== */
footer {
  background: var(--primary-dark);
  color: var(--neutral-light);
  padding: 2rem 0;
  margin-top: 4rem;
  text-align: center;
}

footer p {
  font-family: 'Open Sans', sans-serif;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

footer p:hover {
  color: var(--accent);
}

/* ===== Carousel Customizations ===== */
.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-image: none !important;
  width: 30px;
  height: 30px;
  position: relative;
}

.carousel-control-prev-icon::before,
.carousel-control-next-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  border: solid var(--accent);
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 3px;
}

.carousel-control-prev-icon::before {
  transform: translate(-50%, -50%) rotate(135deg);
}

.carousel-control-next-icon::before {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.carousel-control-prev:hover .carousel-control-prev-icon::before,
.carousel-control-next:hover .carousel-control-next-icon::before {
  border-color: var(--primary-dark);
}

/* ===== Responsive Styles ===== */
@media (max-width: 768px) {
  p {
    font-size: 1.1rem;
  }

  header {
    padding: 1.5rem 0 !important;
  }

  header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.2rem;
  }

  header p {
    font-size: 1.1rem;
    padding: 0 1rem;
  }

  nav {
    min-height: 50px;
  }

  .hamburger {
    display: block;
    font-size: 1.5rem;
    padding: 0.8rem;
    top: 5px;
  }

  nav ul {
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    z-index: 1000;
  }

  nav ul.active {
    max-height: 500px;
    padding: 1rem 0;
  }

  nav ul:not(.active) {
    display: none;
  }

  nav li {
    margin: 0;
    text-align: center;
  }

  nav a {
    padding: 1rem;
    display: block;
  }

  .product {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.5rem 0;
  }

  .product-images {
    order: -1;
    gap: 0.8rem;
  }

  .product-main-image {
    height: 400px;
  }

  .product p {
    margin-bottom: 1rem;
    line-height: 1.6;
  }

  form {
    padding: 0 1rem;
  }

  input, textarea {
    margin-bottom: 1rem;
  }

  .container {
    margin: 1.5rem auto;
    padding: 1.2rem;
  }

  h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
  }

  #galleryCarousel .carousel-item img {
    height: 450px;
  }

  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 25px;
    height: 25px;
  }

  .carousel-control-prev-icon::before,
  .carousel-control-next-icon::before {
    width: 15px;
    height: 15px;
  }
}

@media (max-width: 480px) {
  .product-main-image {
    height: 360px;
  }

  header {
    padding: 1rem 0 !important;
  }

  nav {
    min-height: 50px;
    padding: 0;
  }

  .hamburger {
    top: 50%;
    transform: translateY(-50%);
    right: 15px;
    padding: 0.8rem;
    font-size: 1.7rem;
  }

  h1 {
    font-size: 2rem !important;
  }

  h2 {
    font-size: 1.5rem;
  }

  nav {
    min-height: 45px;
  }

  nav ul {
    padding: 0;
  }

  .product button,
  button[type="submit"] {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }

  footer {
    padding: 1.5rem 0;
    margin-top: 2rem;
  }

  #galleryCarousel .carousel-item img {
    height: 300px;
  }

  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 20px;
    height: 20px;
  }

  .carousel-control-prev-icon::before,
  .carousel-control-next-icon::before {
    width: 12px;
    height: 12px;
  }
}

/* ===== Scroll Behavior ===== */
html {
  scroll-padding-top: 100px;
  scroll-behavior: smooth;
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 60px;
  }
}

@media (max-width: 480px) {
  html {
    scroll-padding-top: 50px;
  }
}