* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.6;
  background-color: #f5f1e8; /* elegant beige */
  color: #2b251f;
}

/* Ensure page always scrolls */
.page-wrapper {
  min-height: 80vh; /* taller than viewport for scrolling */
}

/* extra space blocks */
.vertical-spacer {
  height: 40px;
}

/* Header */
.main-header {
  background: linear-gradient(
    135deg,
    black,
    #a5facd
  ); /* deep brown to muted gold */
  color: #c78708;
  text-align: center;
  padding: 30px 15px;
}

.main-header h1 {
  font-size: 4rem;
  margin-bottom: 10px;
  font-family: "Times New Roman", Times, serif;
}

.main-header h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.main-header .tagline {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* Top Navigation */
/* Premium Navigation Bar */
.top-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #332018 0%, #4a3324 100%);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(200, 165, 105, 0.3);
  padding: 12px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 100;
  font-family: "Georgia", "Times New Roman", serif; /* elegant serif */
}

.top-nav a {
  color: #fdfaf4;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  font-style: italic;
  letter-spacing: 0.03em;
  padding: 12px 24px;
  border-radius: 25px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(200, 165, 105, 0.2),
    rgba(196, 107, 41, 0.1)
  );
  border: 1px solid rgba(200, 165, 105, 0.3);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hover glow effect */
.top-nav a:hover {
  color: #2b1a11;
  background: linear-gradient(135deg, #c8a569, #f1c876);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(200, 165, 105, 0.4),
    0 0 0 1px rgba(200, 165, 105, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Active/current page state */
.top-nav a[href="#products"] {
  background: linear-gradient(135deg, #c46b29, #b4925a);
  color: #fdfaf4;
  padding: 15px;
}

/* Responsive */
/* h1 ALWAYS dominates - every breakpoint */
.main-header h1 {
  font-size: clamp(1.8rem, 5vw, 2.4rem) !important;
}

.section h2 {
  font-size: clamp(1.4rem, 4vw, 1.8rem);
}

.card-front h1 {
  font-size: clamp(1.6rem, 6vw, 2rem);
}

@media (max-width: 768px) {
  .top-nav {
    gap: 10px;

    padding: 12px;
  }

  .top-nav a {
    font-size: 0.9rem;
    padding: 12px 18px;
  }
}

@media (max-width: 430px) {
  .top-nav {
    padding: 12px;
  }
  .top-nav a[href="#products"] {
    padding: 15px;
  }
}
/* General Sections */
.section {
  padding: 30px 10%;
}

.section h2 {
  margin-bottom: 12px;
  color: #463126;
  border-bottom: 2px solid #c8a569;
  display: inline-block;
  padding-bottom: 4px;
}

.section-intro {
  font-size: 0.9rem;
  color: #5a4a3b;
  margin-bottom: 10px;
}

/* Cards Layout */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 10px;
}

/* Hide the checkbox */
.card-toggle {
  display: none;
}

/* Card base */
.card {
  flex: 1 1 260px;
  perspective: 1000px; /* for subtle 3D effect */
}

/* Card inner wrapper */
.card-inner {
  display: block;
  position: relative;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  cursor: pointer;
  min-height: 170px;
  padding: 16px 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* front & back content */
.card-front,
.card-back {
  transition: opacity 0.2s ease;
}

.card-back {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

/* default state: show front, hide back */
.card-back {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

/* hint text */
.hint {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.8rem;
  color: #8a7a68;
}

/* hover effect (desktop) */
.card-inner:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

/* reveal details on hover for larger screens */
@media (hover: hover) and (pointer: fine) {
  .card-inner:hover .card-back {
    max-height: 400px;
    opacity: 1;
  }
}

/* reveal on click/tap using checkbox (works on all devices) */
.card-toggle:checked + .card-inner .card-back {
  max-height: 400px;
  opacity: 1;
}

/* Titles and text inside cards */
.card h3 {
  margin-bottom: 6px;
  color: #7a542f;
}

.card p {
  margin-bottom: 6px;
  color: #3a3027;
}

.product-list {
  list-style: decimal;
  margin-left: 18px;
  margin-bottom: 6px;
  padding-left: 8px;
}

.note {
  font-size: 0.85rem;
  color: #7b6b5b;
}

/* Details blocks */
.details-block p {
  margin-bottom: 8px;
}

/* Bottom Banner */
.bottom-banner {
  position: sticky;
  bottom: 0;
  width: 100%;
  background-color: #332018;
  padding: 10px 5%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  z-index: 5;
}

.bottom-banner a {
  color: #fdfaf4;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid #c8a569;
}

.bottom-banner a:hover {
  background-color: #c8a569;
  color: #2b1a11;
}

/* Footer */
.main-footer {
  text-align: center;
  background-color: #20130e;
  color: #fdfaf4;
  padding: 10px 5px;
  font-size: 0.85rem;
}

/* Responsive */
/* h1 ALWAYS dominates - every breakpoint */
.main-header h1 {
  font-size: clamp(2rem, 5vw, 3rem) !important;
}

.section h2 {
  font-size: clamp(1.4rem, 4vw, 1.8rem) !important;
}

@media (max-width: 768px) {
  .main-header h1 {
    font-size: 5rem; /* keep same size as desktop */
    line-height: 1.2;
  }
  .section {
    padding: 24px 6%;
  }

  .main-header h1 {
    font-size: 3rem;
  }

  .card-container {
    flex-direction: column;
  }
}
@media (min-width: 600px) {
  .main-header h1 {
    font-size: 4rem; /* keep same size as desktop */
    line-height: 1.2;
  }
  .page-wrapper {
    min-height: 60vh;
  }
}
.card-inner {
  display: flex;
  flex-direction: column;
  justify-content: center; /* center vertically */
  align-items: center; /* center horizontally */
  text-align: center;
  position: relative;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  cursor: pointer;
  min-height: 190px;
  padding: 16px 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* make front and back full width */
.card-front,
.card-back {
  width: 100%;
}
/* when details are visible, let content occupy natural height */
.card-toggle:checked + .card-inner,
@media (hover: hover) and (pointer: fine) {
  .card-inner:hover {
    justify-content: flex-start; /* heading at top, details below */
  }
}
/* Smooth transitions for front and back */
.card-front,
.card-back {
  width: 100%;
  transition: opacity 0.2s ease;
}

/* Default state: front visible, back hidden */
.card-front {
  opacity: 1;
}
.card-back {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

/* DESKTOP: on hover show back, hide front */
@media (hover: hover) and (pointer: fine) {
  .card-inner:hover .card-back {
    max-height: 400px;
    opacity: 0;
    margin-top: 0;
    border-top: none;
    padding-top: 0;
  }

  .card-inner:hover .card-front {
    opacity: 0;
  }
}

/* ALL DEVICES: on click/tap (checkbox checked) show back, hide front */
.card-toggle:checked + .card-inner .card-back {
  max-height: 400px;
  opacity: 1;
  margin-top: 0;
  padding-top: 0;
}

.card-toggle:checked + .card-inner .card-front {
  opacity: 0;
}
/* base state: front centered, back hidden */
.card-inner {
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertical */
  align-items: center; /* horizontal */
  text-align: center;
  position: relative;
  background-color: #ffffff;
  border: none;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  cursor: pointer;
  min-height: 190px;
  padding: 16px 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-front,
.card-back {
  width: 100%;
  transition: opacity 0.2s ease;
  background-color: #ffffff;
}

/* default: show front only */
.card-front {
  opacity: 1;
}
.card-back {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

/* DESKTOP: when hovered, show ONLY back and center it */
@media (hover: hover) and (pointer: fine) {
  .card-inner:hover {
    justify-content: center; /* keep center on active state */
    align-items: center;
  }

  .card-inner:hover .card-front {
    opacity: 0; /* hide front */
  }

  .card-inner:hover .card-back {
    max-height: 400px;
    opacity: 1;
  }
}

/* ALL DEVICES: when clicked/tapped (checkbox checked), same centering */
.card-toggle:checked + .card-inner {
  justify-content: center;
  align-items: center;
}

.card-toggle:checked + .card-inner .card-front {
  opacity: 0;
}

.card-toggle:checked + .card-inner .card-back {
  max-height: 400px;
  opacity: 1;
}

/* Info cards for Company Details and Contact Us */
.info-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  padding: 18px 20px;
  margin-top: 15px;
  border-left: 4px solid #c8a569;
  font-family: "Comic Sans MS", "Comic Sans"; /* Comic Sans only here */
}

.info-card p {
  margin-bottom: 8px;
  color: #3a3027;
}

.info-card a {
  color: #7a542f;
  text-decoration: none;
}

.info-card a:hover {
  text-decoration: underline;
}

/* Header */
.main-header {
  background: linear-gradient(135deg, #4a3324, #b4925a);
  background-size: 200% 200%;
  color: #fdfaf4;
  text-align: center;
  padding: 30px 15px;
  /* remove old headerFadeIn if you had it, keep gradient move + new fade-left-right */
  animation: headerGradientMove 18s ease-in-out infinite alternate,
    headerFadeLeftRight 6s ease-in-out infinite;
}

/* subtle gradient motion (keep this from before) */
@keyframes headerGradientMove {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

/* fade in/out from left to right */
@keyframes headerFadeLeftRight {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  25% {
    opacity: 1;
    transform: translateX(0);
  }
  75% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(20px);
  }
}
.card-back {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}
@media (hover: hover) and (pointer: fine) {
  .card-inner:hover .card-back {
    max-height: 800px; /* was 400px */
    opacity: 1;
    margin-top: 10px;
    border-top: 1px solid #eee0cf;
    padding-top: 8px;
  }

  .card-inner:hover .card-front {
    opacity: 0;
  }
}
.card-toggle:checked + .card-inner .card-back {
  max-height: 800px; /* was 400px */
  opacity: 1;
  margin-top: 10px;
  border-top: 1px solid #eee0cf;
  padding-top: 8px;
}

.card-toggle:checked + .card-inner .card-front {
  opacity: 0;
}

/* PNG Background - behind content only */
main.page-wrapper {
  position: relative;
  background-image: url("./background.png"); /* replace with your PNG filename */
  background-size: cover; /* or 400px 600px for tiling */
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 50vh;
}

/* Transparent overlay sections so PNG shows through */
.section {
  background: rgba(255, 255, 255, 0); /* 88% white - image visible */
  backdrop-filter: blur(10px);
  border-radius: 16px;
  margin: 0 5% 20px;
  padding: 30px 8%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Transparent cards */
.card-inner {
  background: rgba(255, 255, 255, 0.92); /* cards let image through */
  backdrop-filter: blur(15px);
  /* keep all other card styles */
}

/* Transparent info cards */
.info-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  /* keep other styles */
}

/* Bottom banner and footer stay solid */
.main-footer {
  position: relative;
  margin-top: -10px; /* Pull up to eliminate gap */
}

/* Fix bottom banner positioning on mobile */
.bottom-banner {
  position: relative; /* Change from sticky to relative on mobile */
  margin-top: 20px;
}

@media (min-width: 430px) {
  .page-wrapper {
    min-height: 100vh;
    padding-bottom: 60px;
  }

  .bottom-banner {
    position: relative !important;
    margin-top: 10px;
    margin-bottom: 0;
  }

  .main-footer {
    margin-top: 0;
    padding-top: 8px;
  }

  /* Remove extra vertical spacers on mobile */
  .vertical-spacer {
    display: none;
  }
}
