/* ==========================================================================
   DS Corporation - V4 Split-Hero Corporate Design
   Hero: full-width BG image + left cream fade via CSS gradient
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@300;400;600;700;900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

:root {
  /* V4 Color Palette */
  --primary-dark:  #1a3a1a;
  --primary-green: #2d5a1b;
  --accent-gold:   #b8860b;
  --accent-gold-light: #c9960d;
  --cream:         #f5f3eb;   /* hero left fade color */
  --cream-2:       #f0eddf;
  --text-heading:  #1e3a0e;
  --text-body:     #383838;
  --text-muted:    #666666;
  --text-light:    #ffffff;
  --bg-color:      #ffffff;
  --bg-secondary:  #f4f7f4;
  --border-color:  #dde8dd;
  --shadow:        0 4px 20px rgba(0,0,0,0.09);
  --shadow-hover:  0 10px 32px rgba(0,0,0,0.16);
  --transition:    all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

  /* backward-compat vars used by inner pages */
  --primary-color: #1a4a2b;
  --primary-light: #2b7a48;
  --card-bg:       #ffffff;
  --glass-border:  1px solid #e0e8e2;
}

/* ==================== RESET ==================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-color);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* index-page locks the whole page to viewport height */
.index-page {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.text-center { text-align: center; }

/* ==================== NAVBAR ==================== */
.navbar {
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  position: sticky; top: 0; width: 100%; z-index: 1000;
  box-shadow: 0 1px 10px rgba(0,0,0,0.05);
  flex-shrink: 0;
  /* needed so mobile dropdowns are positioned relative to navbar */
  position: sticky;
}

/* Nav container — tight horizontal padding, full width feel */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 76px;
  padding: 0 7rem;
  max-width: 100%;
}

.nav-brand {
  display: flex; align-items: center; gap: 14px;
  flex-shrink: 0;
}
.nav-brand img { height: 54px; border-radius: 0; }
.nav-brand span {
  font-family: 'Playfair Display', serif;
  font-size: 1.65rem; font-weight: 800;
  color: var(--text-heading); letter-spacing: 0.3px;
}

.nav-links {
  display: flex; align-items: center; gap: 42px;
}
.nav-link {
  font-weight: 500; font-size: 1rem;
  color: var(--text-body); position: relative; padding-bottom: 3px;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--primary-dark);
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--text-heading); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* ---- Dropdown ---- */
.nav-dropdown { position: relative; }

.dropdown-arrow {
  display: none;
}

.dropdown-menu {
  position: absolute;
  top: 100%;          /* flush — no gap to lose hover over */
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: var(--shadow-hover);
  min-width: 160px;
  padding: 10px 0 6px; /* top padding replaces the old gap */
  margin-top: 8px;     /* visual spacing via margin, not position */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1100;
}
/* Invisible bridge so the hover doesn't break when crossing into the menu */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}
.nav-dropdown:hover > .dropdown-menu,
.nav-dropdown.open > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown-item {
  display: block;
  padding: 0.55rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-body);
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.dropdown-item:hover {
  background: var(--bg-secondary);
  color: var(--primary-dark);
}

/* ---- Sub-dropdown (fly-out) ---- */
.dropdown-submenu { position: relative; }

.submenu-arrow { display: none; }

.dropdown-submenu > .submenu {
  position: absolute;
  top: -6px;
  left: 100%;
  transform: translateX(6px);
  min-width: 140px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: var(--shadow-hover);
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1200;
}

.dropdown-submenu:hover > .submenu,
.dropdown-submenu.open > .submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.nav-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

/* Burger hidden on desktop, shown only on mobile */
.nav-toggle { display: none !important; font-size: 1.5rem; cursor: pointer; color: var(--text-heading); }


/* Navbar buttons — pill shaped, matching image */
.btn-support {
  padding: 0.6rem 1.7rem;
  border-radius: 50px;
  border: 1.5px solid #1a3a1a !important;  /* !important overrides .btn { border: none } */
  color: #1a3a1a;
  background: transparent;
  font-size: 0.85rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  cursor: pointer; transition: var(--transition);
  display: inline-block;
}
.btn-support:hover { background: #1a3a1a; color: #fff; }

.btn-email {
  padding: 0.65rem 1.8rem;
  border-radius: 50px;
  background: #1a3a1a;
  color: #ffffff;
  font-size: 0.85rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  cursor: pointer; transition: var(--transition);
  display: inline-block; border: none;
}
.btn-email:hover { background: var(--primary-green); transform: translateY(-1px); }

/* ==================== HERO ==================== */
.hero {
  flex: 1;
  position: relative;
  overflow: hidden;
  /*
    auto 100%  = image fills full height, width is natural (no crop, no zoom).
    right center = image anchors to right edge so full right side is always visible.
    #fff fills any remaining gap on the left.
  */
  background-color:var(--cream);
  background-image: url('assets/hero-bg.png');
  background-size: auto 100%;
  background-position: right center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
}

/* Gradient overlay: solid WHITE on left → transparent on right */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    #ffffff   0%,
    #ffffff   32%,
    rgba(255,255,255, 0.90) 42%,
    rgba(255,255,255, 0.60) 52%,
    rgba(255,255,255, 0.15) 62%,
    transparent    70%
  );
  z-index: 1;
  pointer-events: none;
}

/* Text sits on the left, above the overlay */
.hero-content {
  position: relative;
  z-index: 2;
  width: 50%;
  max-width: 620px;
  padding: 0 0 0 11rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

/* "Importing" label */
.hero-importing {
  font-family: 'Outfit', sans-serif;
  font-size: 2.3rem; font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 4px;
  letter-spacing: 0.3px;
}

/* Main headline */
.hero-headline {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  margin-bottom: 0.7rem;
}
.hero-dark {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(3rem, 5.2vw, 5.8rem);
  font-weight: 900;
  color: var(--text-heading);
  letter-spacing: -2px;
}
.hero-gold {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(3rem, 5.2vw, 5.8rem);
  font-weight: 900;
  color: var(--accent-gold);
  letter-spacing: -2px;
}

/* Tagline row with decorative lines */
.hero-tagline {
  display: flex; flex-direction: column; align-items: center;
  align-self: flex-start;
  margin: 0.3rem 0 1.2rem;
}
.tagline-leaf { 
  font-size: 1.15rem; 
  color: var(--accent-gold);
  margin-bottom: 2px;
}
.tagline-text-row {
  display: flex; align-items: center; gap: 12px;
}
.tagline-line {
  height: 1.5px; width: 45px; flex-shrink: 0;
  background: var(--accent-gold);
  opacity: 0.6;
}
.tagline-text {
  font-size: 1.05rem; font-weight: 700;
  color: var(--primary-dark);
  white-space: nowrap;
}

/* Description */
.hero-description {
  font-size: 1rem; color: var(--text-body);
  line-height: 1.7; margin-bottom: 1.4rem;
}

/* Badge icons row */
.hero-badges {
  display: flex; align-items: center; margin-bottom: 1.8rem; flex-wrap: nowrap;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  padding-right: 1rem;
}
.hero-badges::-webkit-scrollbar { display: none; } /* Chrome/Safari */
.hero-badge {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center;
  padding: 0 1.2rem;
  border-right: 1.5px solid rgba(26, 58, 26, 0.25);
}
.hero-badge:first-child {
  padding-left: 0;
}
.hero-badge:last-child {
  border-right: none;
  padding-right: 0.5rem;
}
.badge-icon {
  color: var(--primary-dark);
  font-size: 2rem;
  display: flex; align-items: center; justify-content: center;
}
.hero-badge span {
  font-size: 0.7rem; font-weight: 800;
  color: var(--primary-dark); letter-spacing: 1px;
  text-transform: uppercase; line-height: 1.3;
}

/* CTA buttons */
.hero-cta { display: flex; gap: 0.9rem; align-items: center; flex-wrap: wrap; }

.btn-explore {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary-dark); color: #fff;
  border-radius: 50px; padding: 0.85rem 1.9rem;
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase;
  border: none; cursor: pointer; transition: var(--transition);
}
.btn-explore:hover {
  background: var(--primary-green);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26,58,26,0.3);
}

.btn-story {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text-heading);
  border-radius: 50px; padding: 0.85rem 1.9rem;
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase;
  border: 1.5px solid rgba(30,58,14,0.4) !important; /* overrides .btn { border: none; } */
  cursor: pointer; transition: var(--transition);
}
.btn-story:hover {
  border-color: var(--primary-dark);
  background: rgba(26,58,26,0.06);
}

/* ==================== HERO FOOTER BAR ==================== */
.hero-footer {
  position: relative; 
  z-index: 2;
  background-color: #434a40; 
  /* background-color: #434a40d1; Use this if you want to keep the blur effect visible (82% opacity) */
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.85);
  padding: 0.6rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  flex-shrink: 0;
}
.hero-footer-left { font-weight: 400; }
.hero-footer-right { font-weight: 400; }
.hero-footer-right strong { color: #fff; font-weight: 700; }

/* ==================== SHARED UTILITY ==================== */
.container { width: 92%; max-width: 1240px; margin: 0 auto; }
.section { padding: 7rem 0; }
.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.6rem; font-weight: 800; color: var(--text-heading);
  margin-bottom: 3rem; text-align: center; position: relative;
  letter-spacing: -0.5px;
}
.section-title::after {
  content: ''; display: block; width: 60px; height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  margin: 10px auto 0; border-radius: 2px;
}

/* Shared button base */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.8rem 1.8rem; font-weight: 700; cursor: pointer;
  transition: var(--transition); text-align: center; font-size: 0.875rem;
  letter-spacing: 1px; text-transform: uppercase;
  font-family: 'Inter', sans-serif; border: none;
}
.btn-primary {
  background: var(--primary-color); color: var(--text-light); border-radius: 4px;
}
.btn-primary:hover {
  background: var(--primary-light); transform: translateY(-2px); box-shadow: var(--shadow);
}
.btn-outline {
  background: transparent; border: 1.5px solid var(--primary-color);
  color: var(--primary-color); border-radius: 4px;
}
.btn-outline:hover { background: var(--primary-color); color: var(--text-light); }

/* ==================== ABOUT (V2 STYLE) ==================== */
.page-header {
  padding: 6rem 0 3rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}
.page-header h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem; color: var(--text-heading);
  font-weight: 800; margin-bottom: 0.5rem;
}
.page-header p { font-size: 1.1rem; color: var(--text-muted); }

/* V1 style dark header for products / gallery */
.page-header-v1 {
  padding: 10rem 0 5rem;
  background: url('assets/hero-bg.png') center/cover fixed;
  position: relative; text-align: center; border-bottom: none;
}
.page-header-v1::before {
  content: ''; position: absolute; inset: 0; background: rgba(5,18,9,0.82);
}
.page-header-v1 .container { position: relative; z-index: 10; }
.page-header-v1 h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 4rem; color: #fff !important; font-weight: 900; margin-bottom: 1rem;
}
.page-header-v1 p { font-size: 1.2rem; color: rgba(255,255,255,0.7) !important; max-width: 600px; margin: 0 auto; }

.about-content { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: center; }
.about-text h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem; color: var(--text-heading); margin-bottom: 1rem; font-weight: 700;
}
.about-text p { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.7; }
.about-image img { box-shadow: var(--shadow-hover); border-radius: 12px; width: 100%; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin-top: 3rem; }
.team-card { text-align: center; }
.team-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; margin-bottom: 1rem; border: 4px solid #fff; box-shadow: var(--shadow); }
.team-info h3 { font-family: 'Outfit', sans-serif; color: var(--text-heading); font-size: 1.2rem; margin-bottom: 0.3rem; }
.team-info p { color: var(--primary-color); font-weight: 500; font-size: 0.9rem; }

/* ==================== PRODUCTS (V1 STYLE) ==================== */
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; }
.product-card {
  background: var(--card-bg); border: var(--glass-border); border-radius: 16px;
  overflow: hidden; box-shadow: var(--shadow); transition: var(--transition);
  position: relative; top: 0;
}
.product-card:nth-child(even) { top: 24px; }
.product-card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: rgba(185,135,11,0.4);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12); z-index: 2;
}
.product-img { height: 220px; width: 100%; object-fit: contain; border-radius: 0; transition: transform 0.7s ease; }
.product-card:hover .product-img { transform: scale(1.08); }
.product-info { padding: 1.8rem; background: #fff; }
.product-info h3 { font-family: 'Outfit', sans-serif; color: var(--primary-color); font-size: 1.5rem; margin-bottom: 0.6rem; }
.product-info p { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 0.8rem; }

/* ==================== FAQ (V1 STYLE) ==================== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--card-bg); border: var(--glass-border);
  margin-bottom: 1.2rem; border-radius: 12px; box-shadow: var(--shadow); overflow: hidden;
}
.faq-question {
  padding: 1.5rem 1.6rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; color: var(--text-heading); font-size: 1.05rem;
}
.faq-question i { color: var(--accent-gold); transition: transform 0.35s ease; }
.faq-question.active i { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; background: var(--bg-secondary); }
.faq-answer p { padding: 0 1.6rem 1.6rem; color: var(--text-muted); }

/* ==================== GALLERY (V1 STYLE) ==================== */
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-auto-rows: 240px; gap: 1.4rem; margin-bottom: 3rem;
}
.gallery-item { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); position: relative; }
.gallery-item:nth-child(3n) { grid-row: span 2; }
.gallery-item:nth-child(7n) { grid-column: span 2; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 0;
  transition: transform 0.6s ease, filter 0.6s ease; filter: brightness(0.85);
}
.gallery-item:hover img { transform: scale(1.06); filter: brightness(1.05); }
.gallery-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(transparent, rgba(185,135,11,0.2));
  opacity: 0; transition: var(--transition);
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item.hidden { display: none; }

/* ==================== FOOTER (INNER PAGES) ==================== */
.footer { background: var(--primary-color); color: rgba(255,255,255,0.8); padding: 5rem 0 2rem; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 4rem; margin-bottom: 3.5rem; }
.footer-col h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem; margin-bottom: 1.6rem; color: #fff; font-weight: 700;
  position: relative; padding-bottom: 10px;
}
.footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 36px; height: 2px; background: var(--accent-gold); }
.footer-col p { font-size: 0.92rem; line-height: 1.7; }
.footer-links li { margin-bottom: 0.9rem; }
.footer-links a { opacity: 0.85; transition: var(--transition); }
.footer-links a:hover { color: #fff; padding-left: 7px; opacity: 1; }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.85rem; }
.footer .nav-brand img { height: 50px; filter: brightness(0) invert(1); border-radius: 0; }
.footer .nav-brand { margin-bottom: 1.5rem; display: flex; }

/* ==================== MODAL (V2 STYLE) ==================== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(5px);
  display: flex; justify-content: center; align-items: center; z-index: 2000;
  opacity: 0; visibility: hidden; transition: var(--transition);
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content {
  background: #ffffff; border-radius: 14px; padding: 2.5rem; width: 90%; max-width: 500px;
  position: relative; transform: translateY(-20px); transition: var(--transition);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}
.modal-overlay.active .modal-content { transform: translateY(0); }
.modal-close { position: absolute; top: 15px; right: 20px; font-size: 1.4rem; cursor: pointer; color: var(--text-muted); }
.modal-close:hover { color: var(--text-heading); }
.modal-title {
  font-family: 'Outfit', sans-serif;
  color: var(--text-heading); margin-bottom: 1.5rem; font-size: 1.8rem; font-weight: 700;
}
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; margin-bottom: 0.4rem; color: var(--text-heading); font-weight: 500; font-size: 0.88rem; }
.form-group input, .form-group textarea {
  width: 100%; padding: 0.75rem; border: 1px solid var(--border-color); border-radius: 6px;
  font-family: inherit; color: var(--text-body); transition: var(--transition); background: #fafafa;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(26,74,43,0.1); background: #fff;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  /* Navbar mobile */
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: block !important; }
  .nav-container { padding: 0 1.5rem; }
  .nav-links.active {
    display: flex; flex-direction: column; position: absolute; top: 76px; left: 0; width: 100%;
    background: rgba(255,255,255,0.98); padding: 1.2rem 0;
    border-bottom: 1px solid var(--border-color); gap: 8px; box-shadow: var(--shadow);
  }
  .nav-actions.active {
    display: flex; flex-direction: column; align-items: center; position: absolute; top: 280px; left: 0; width: 100%;
    background: rgba(255,255,255,0.98); padding: 0.8rem 0 1.2rem;
    border-bottom: 1px solid var(--border-color); box-shadow: var(--shadow); gap: 10px;
  }

  /* Hero mobile */
  .index-page { height: auto; overflow: visible; }
  .hero { min-height: 100vh; }
  /* .hero-overlay {
    background: linear-gradient(
      to bottom,
      var(--cream) 0%, var(--cream) 50%,
      rgba(245,243,235,0.85) 70%, rgba(245,243,235,0.3) 90%, transparent 100%
    );
  } */
  .hero-content { width: 90%; max-width: 100%; padding: 3rem 1.5rem 0; }
  .hero-footer { padding: 0.6rem 1.5rem; }

  /* Inner pages */
  .about-content { grid-template-columns: 1fr; gap: 2.5rem; }
  .page-header h1 { font-size: 2.4rem; }
  .page-header-v1 h1 { font-size: 2.8rem; }
  .gallery-item:nth-child(7n) { grid-column: span 1; }
  .product-card:nth-child(even) { top: 0; }
}

@media (max-width: 480px) {
  .hero-dark, .hero-gold { font-size: 2.8rem; }
  .hero-badges { gap: 0; }
  .hero-badge { padding: 0 0.75rem; flex-shrink: 0; }
  .badge-icon { width: 38px; height: 38px; font-size: 0.9rem; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .btn-explore, .btn-story { width: 100%; justify-content: center; }
  .hero-footer { flex-direction: column; gap: 4px; text-align: center; }
}
