/* =========================
   GLOBAL
========================= */

body {
  margin: 0;
  font-family: "Cookie", cursive;
  scroll-behavior: smooth;
  background: #f8e3b6;
  color: rgba(53, 37, 4, 0.811);
  text-align: center;
}

/* =========================
   HEADER & NAV
========================= */

header {
  background: #f5e3be;
  color: #f8e3b6;
  padding: 10px 40px;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  box-sizing: border-box;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0 1rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

nav a {
  position: relative;
  color: #927220;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.4px;

  /* metallic depth */
  text-shadow:
    0 1px 1px rgba(255, 240, 200, 0.6),
    0 2px 2px rgba(109, 59, 3, 0.35);
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: #e0b076; /* soft gold */
  transition: width 0.35s ease;
}

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

nav a:hover {
  opacity: 0.88;
  text-shadow:
    0 1px 1px rgba(237, 208, 163, 0.9),
    0 3px 3px rgba(41, 23, 1, 0.45);
}

/* Hamburger button */
#hamburger {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
}

/* =========================
   SECTIONS
========================= */

section {
  padding: 120px 20px;
  /*  min-height: 100vh;forces every section to be at least one full screen tall, even if there’s very little content.*/
}

/* =========================
   HERO
========================= */

.hero {
  background: #f5e3be;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* =========================
   TITLE FIX
========================= */

h1 {
  display: inline-block;
  padding: 0 40px;
  font-family: 'Kuenstler Script W02 Medium', cursive;
  font-size: 130px; /* desktop size */
  color: #f1ecda;

  /* Gradient for metallic gold/light brown effect */
  background-image: linear-gradient(45deg, #eda864, #724907, #653c13, #9f5519);
  background-repeat: no-repeat;
  background-size: 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-background-clip: text; /* Chrome/Safari */
  -webkit-text-fill-color: transparent;

  /* 3D shadow effect for depth */
  text-shadow: 2px 2px 2px #f9e7c1, 4px 4px 5px rgba(0,0,0,0.4);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-align: center;
}

/* =========================
   PRODUCTS
========================= */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.product-card {
  background: rgba(83, 45, 9, 0.811);;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(86, 3, 3, 0);
}

.product-card img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Desktop logo size */
.logo {
  height: 120px;
  width: auto;
  margin-bottom: 0.5px;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

  /* Shrink the logo */
  .logo {
    height: 80px;
    width: auto;
    margin-bottom: 10px;
  }
/* Adjust nav layout */
  nav {
    flex-direction: column;
    gap: 10px;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  h1 {
    font-size: 72px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  /* Show hamburger button on mobile */
  #hamburger {
    display: block;
  }

  /* Hide nav links initially */
  #nav-links {
  display: flex;
  flex-direction: column;
  gap: 10px;

  margin-top: -5px; /* keeps spacing below hamburger */

  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;

  transition: opacity 0.35s ease, transform 0.35s ease;
}

  /* soft gold text colour*/
  #nav-links a {
  color: #f8d8b6; /* soft gold  #f8e3b6 */
  font-size: 18px;
}

  /* Show nav links when active */
  #nav-links.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

  /* Subtle spacing for elegance */
#nav-links a {
  padding: 4px 0;
}

/* Refined hover effect */
#nav-links a:hover {
  opacity: 0.85;
}
}

/* Header starts slightly LOWER than its real position */
.hidden-header {
  transform: translateY(80px);
  opacity: 0;
  transition: transform 3s ease, opacity 1s ease;
}

/* Header slides UP into its normal place */
.show-header {
  transform: translateY(0px);
  opacity: 1;
}



/* =========================
   HERO TITLE MIGRATION
========================= */

/* Hero title starting state (big on homepage) */
.hero-title {
  display: inline-block;
  padding: 0 40px;
  font-family: 'Kuenstler Script W02 Medium', cursive;
  font-size: 130px;
  margin-bottom: 20px;

  /* Metallic gradient (same vibe as your h1) */
  background-image: linear-gradient(45deg, #eda864, #724907, #653c13, #9f5519);
  background-repeat: no-repeat;
  background-size: 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  text-shadow: 2px 2px 2px #f9e7c1, 4px 4px 5px rgba(0,0,0,0.4);
  font-weight: 700;
  letter-spacing: 0.5px;

  position: relative;
  transition:
    transform 1.5s ease,
    font-size 1.5s ease,
    opacity 1.2s ease;
}

/* When migrating upward into the header */
.hero-title.migrate {
  transform: translateY(-260px) scale(0.55);
  opacity: 0;
}

/* Final title styling inside the header */
.header-title {
  font-family: 'Kuenstler Script W02 Medium', cursive;
  font-size: 36px;

  background-image: linear-gradient(45deg, #eda864, #724907, #653c13, #9f5519);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  text-shadow: 1px 1px 1px #f9e7c1, 2px 2px 3px rgba(0,0,0,0.35);
  font-weight: 700;
  letter-spacing: 0.5px;

  margin: 0 20px;
  white-space: nowrap;
}

