/* GS Traders - luxury theme CSS
   Place at: assets/css/style.css
*/

/* -------------------------
   Root variables (light/dark)
   ------------------------- */
:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #6b6b6b;
  --gold: #b88b2f;
  --gold-dark: #caa95a;
  --card: #ffffff;
  --glass: rgba(255, 255, 255, 0.6);
  --shadow: 0 8px 30px rgba(16, 24, 40, 0.08);
  --transition: 300ms cubic-bezier(.2, .9, .3, 1);
  --nav-height: 76px;
}

/* dark theme overrides */
html[data-theme="dark"] {
  --bg: #0f0f10;
  --text: #e9e9e9;
  --muted: #bdbdbd;
  --gold: #d7b86b;
  --card: #121212;
  --glass: rgba(255, 255, 255, 0.04);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

/* -------------------------
   Base
   ------------------------- */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* -------------------------
   Utility
   ------------------------- */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* -------------------------
   Luxury Navbar
   ------------------------- */
.navbar {
  height: var(--nav-height);
  transition: background var(--transition), box-shadow var(--transition), color var(--transition);
  font-family: "Noto Serif", "Times New Roman", serif;
  background: #fff;
  box-shadow: var(--shadow);
}

.navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: "Noto Serif", "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
  color: var(--text);
}

.logo {
  height: 56px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* nav links */
.navbar .nav-link {
  color: #333 !important;
  font-weight: 500;
  margin: 0 .6rem;
  font-size: 1.1rem;
  position: relative;
  padding: .45rem .5rem;
  transition: color var(--transition);
}

.navbar .nav-link:hover {
  color: var(--gold) !important;
}

/* underline hover effect */
.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  bottom: -6px;
  height: 2px;
  width: 40%;
  background: var(--gold);
  border-radius: 4px;
  transition: transform var(--transition);
  transform-origin: center;
}

.navbar .nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* dark mode navbar */
html[data-theme="dark"] .navbar {
  background-color: #111 !important;
}

html[data-theme="dark"] .navbar .nav-link {
  color: #f1f1f1 !important;
}

html[data-theme="dark"] .navbar .nav-link:hover {
  color: var(--gold) !important;
}

html[data-theme="dark"] .navbar .navbar-brand,
html[data-theme="dark"] .navbar .brand-text {
  color: #fff !important;
}

/* mobile toggler */
.navbar-toggler {
  border: 0;
}

/* -------------------------
   Hero slider
   ------------------------- */
#hero {
  position: relative;
  height: calc(100vh - var(--nav-height));
  margin-top: var(--nav-height);
  overflow: hidden;
  display: block;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 700ms ease, transform 900ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.20) 0%, rgba(0, 0, 0, 0.45) 60%);
  pointer-events: none;
}

/* hero content */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  color: #fff;
  text-align: center;
}

.hero-content h1 {
  font-family: "Noto Serif", "Times New Roman", serif;
  font-size: clamp(2.1rem, 4.8vw, 4.2rem);
  line-height: 1.02;
  margin-bottom: .6rem;
  letter-spacing: -0.6px;
}

.hero-content p {
  font-family: "Poppins", sans-serif;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  margin-bottom: 1.25rem;
  opacity: 0.95;
}

/* gold button */
.btn-gold {
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  color: #fff;
  border: none;
  padding: .85rem 1.6rem;
  border-radius: 40px;
  font-weight: 600;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms;
}

.btn-gold:hover {
  transform: translateY(-3px);
  opacity: 0.95;
}

/* -------------------------
   Categories interactive grid
   ------------------------- */
.section-title {
  font-family: "Noto Serif", serif;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
}

.category-box {
  background: var(--card);
  border-radius: 14px;
  padding: 1.5rem;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow);
  position: relative;
  overflow: visible;
}

.category-box h4 {
  margin: 0;
  font-family: "Noto Serif", serif;
  font-size: 1.05rem;
  color: var(--text);
}

.category-box:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

/* expanded sample list (hidden on desktop unless hovered) */
.category-box .sample {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(110%);
  min-width: 220px;
  background: var(--card);
  border-radius: 10px;
  padding: .6rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  display: none;
  z-index: 20;
}

.category-box:hover .sample {
  display: block;
}

/* sample links */
.sample a {
  display: block;
  padding: .45rem .6rem;
  color: var(--text);
  text-decoration: none;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}

.sample a:hover {
  background: var(--glass);
  color: var(--gold);
}

/* -------------------------
   Health benefits
   ------------------------- */
#benefits .fas {
  color: var(--gold);
  margin-bottom: .5rem;
}

#benefits p {
  margin: 0;
  font-weight: 600;
  color: var(--text);
}

/* -------------------------
   Heritage / About preview
   ------------------------- */
.heritage {
  padding: 6rem 1rem;
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.95), rgba(30, 30, 30, 0.9));
  color: #fff;
  text-align: center;
}

.heritage h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  margin-bottom: 1rem;
}

.heritage p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* -------------------------
   Product highlights
   ------------------------- */
.product-grid img {
  border-radius: 12px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.product-grid img:hover {
  transform: translateY(-6px) scale(1.02);
}

/* -------------------------
   Footer
   ------------------------- */
.luxury-footer {
  background: linear-gradient(90deg, #0b0b0b, #141214);
  color: #e6e0d6;
  padding: 2.4rem 1rem;
}

.luxury-footer h5 {
  color: var(--gold);
  font-family: "Noto Serif", serif;
  font-weight: 600;
}

.luxury-footer a {
  color: rgba(230, 224, 214, 0.9);
  transition: color .2s;
}

.luxury-footer a:hover {
  color: var(--gold);
  transform: translateY(-2px);
}

/* back to top */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: transform .18s ease, opacity .18s;
  z-index: 1200;
}

.back-to-top:hover {
  transform: translateY(-4px);
}

/* -------------------------
   Responsive
   ------------------------- */
@media (max-width:991px) {
  .hero-content h1 {
    font-size: clamp(1.8rem, 6vw, 2.6rem)
  }

  .hero-content p {
    font-size: 1rem
  }

  .category-box {
    height: 140px;
  }

  .category-box .sample {
    left: 10%;
    transform: translateX(0) translateY(110%);
    min-width: 180px;
  }
}

@media (max-width:576px) {
  .navbar .nav-link {
    font-size: .95rem;
    padding: .4rem;
  }

  .logo {
    height: 48px
  }

  .hero-content h1 {
    font-size: 1.8rem
  }

  #hero {
    height: 60vh;
    margin-top: var(--nav-height);
  }
}

/* --------- Inline styles from index.html --------- */

body {
  font-family: 'Noto Serif', serif;
}

.navbar {
  font-size: 1.1rem;
  font-weight: 600;
}

.navbar-brand img {
  height: 50px;
}

.hero-carousel img {
  object-fit: cover;
  height: 80vh;
}

.hero-text {
  background: rgba(0, 0, 0, 0.4);
  padding: 20px;
  border-radius: 12px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
}

.category-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.2);
}

footer {
  background: #111;
  color: #bbb;
}

footer a {
  color: #ddd;
  text-decoration: none;
}

footer a:hover {
  color: #f0c040;
}

