/* product.css */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background: url('./img.png') no-repeat center center;
  background-size: cover;
  color: #2b2b2b;
  max-width: 100vw;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

header {
  background-color: #1f2a38;
  color: #f0e6d2;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  z-index: 10;
}

main {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

h2 {
  color: #b8860b;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid #b8860b;
  padding-bottom: 6px;
}

ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 2rem;
}

li {
  background: #eaeaea;
  margin-bottom: 0.6rem;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  font-weight: 600;
  color: #222;
  transition: box-shadow 0.3s ease, transform 0.25s ease;
  cursor: default;
}

li:hover {
  box-shadow: 0 8px 20px rgba(184, 134, 11, 0.5);
  transform: translateY(-3px);
}

.back-button {
  display: inline-block;
  margin: 2rem 0;
  padding: 0.6rem 1.3rem;
  background: #1f4e79;
  color: #fdf9f1;
  font-weight: 700;
  border-radius: 25px;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(31, 78, 121, 0.5);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
}

.back-button:hover,
.back-button:focus {
  background-color: #17405a;
  box-shadow: 0 8px 20px rgba(23, 64, 90, 0.7);
  outline: none;
}

/* New styles for product toggle buttons and descriptions */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  overflow-x: hidden;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: #2b2b2b;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.service-button {
  display: inline-block;
  text-align: center;
  background-color: #b8860b;        /* your gold accent color */
  color: #fdf9f1;                   /* light cream text */
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 25px;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(184, 134, 11, 0.5);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease, filter 0.3s ease;
  user-select: none;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;               /* For pseudo-element positioning */
  overflow: hidden;                 /* To hide the pseudo-element overflow */
}

.service-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;                     /* Make it larger than the button */
  height: 300%;                    /* Make it larger than the button */
  background: rgba(255, 255, 255, 0.2); /* Light overlay */
  border-radius: 50%;              /* Circular shape */
  transform: translate(-50%, -50%) scale(0); /* Start scaled down */
  transition: transform 0.5s ease; /* Smooth transition */
  z-index: 0;                      /* Behind the text */
}

.service-button:hover::before,
.service-button:focus::before {
  transform: translate(-50%, -50%) scale(1); /* Scale up on hover */
}

.service-button:hover,
.service-button:focus {
  background-color: #996c02;  /* slightly darker gold for hover */
  box-shadow: 0 8px 20px rgba(153, 108, 2, 0.7);
  outline: none;
  transform: translateY(-2px) rotate(2deg); /* Slight rotation for effect */
  filter: brightness(1.1); /* Slightly brighten on hover */
  z-index: 1; /* Bring the button text above the overlay */
}



.service-card {
  background: #eaeaea;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.4s ease, transform 0.3s ease;
  cursor: pointer;
  border: 1px solid transparent;
  color: #222;
  overflow: hidden;
  margin-bottom: 1rem;
  padding: 0;
}

/* Header part of the card */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  cursor: pointer;
  gap: 1rem; /* optional spacing between icon and heading */
}

.card-header h3 {
  flex: 1;          /* take remaining space */
  margin: 0;        /* remove all margins */
  font-size: 1.2rem;
  font-weight: 600; /* optional */
  text-align: left; /* make sure text is left aligned */
}

.service-icon {
  color: #1f4e79;
  flex-shrink: 0;
  width: 50px; /* fixed width so all icons take same space */
  margin-right: 0; /* remove right margin */
  text-align: center; /* center icon inside fixed width */
  transition: color 0.3s ease;
}

/* Dropdown toggle button */
.toggle-btn {
  background: none;
  border: none;
  color: #1f4e79;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.toggle-btn[aria-expanded="true"] i {
  transform: rotate(180deg);
}

/* Card content */
.card-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  transition: max-height 0.5s ease, padding 0.5s ease;
}

.card-content.open {
  max-height: 500px; /* large enough to accommodate any content */
  padding-bottom: 1.5rem;
}

/* Hover/focus styles */
.service-card:hover .service-icon,
.service-card:focus-within .service-icon {
  color: #b8860b;
}

.service-card:hover,
.service-card:focus-within {
  box-shadow: 0 12px 24px rgba(184, 134, 11, 0.5);
  transform: translateY(-5px);
  border-color: #b8860b;
}

.product-item {
  background: #fdf9f1;
  margin-bottom: 1rem;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(184, 134, 11, 0.2);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.product-toggle {
  width: 100%;
  background: #b8860b;
  color: #fdf9f1;
  border: none;
  padding: 12px 20px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  user-select: none;
}

.product-toggle:hover,
.product-toggle.active {
  background-color: #996c02;
}

.arrow {
  transition: transform 0.4s ease;
  font-weight: 900;
  font-size: 1.3rem;
}

.product-toggle.active .arrow {
  transform: rotate(180deg);
}

.description {
  max-height: 0;
  overflow: hidden;
  background: #fff8dc;
  color: #6b4d00;
  padding: 0 20px;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0 0 8px 8px;
  box-shadow: inset 0 2px 5px rgba(184, 134, 11, 0.15);
  transition: max-height 0.5s ease, padding 0.5s ease;
}

.description.open {
  padding: 15px 20px;
  max-height: 150px; /* adjust as needed */
}
