/* ============================================================
   CAPTAIN QUINT'S FAMILY — Main Stylesheet
   ============================================================ */

/* Fonts loaded via <link> in HTML for better Core Web Vitals */

/* === CSS VARIABLES === */
:root {
  --gold: #EDC14F;
  --gold-dark: #c9a33a;
  --gold-light: #f5d98a;
  --teal: #2A9EB8;
  --cyan: #04B1B8;
  --sage: #8DC0BC;
  --orange: #FD6800;
  --dark: #0d1117;
  --dark-2: #161b22;
  --dark-3: #1c2433;
  --text: #2c2c2c;
  --text-light: #666;
  --text-muted: #999;
  --white: #ffffff;
  --bg-light: #f9f7f2;
  --bg-section: #f5f3ee;

  --font-heading: 'Playfair Display', serif;
  --font-body: 'Sarabun', sans-serif;

  --navbar-h: 80px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 40px rgba(0,0,0,0.14);
  --shadow-lg: 0 16px 60px rgba(0,0,0,0.2);
  --transition: all 0.35s ease;

  --max-w: 1200px;
  --section-py: 90px;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }

/* === TYPOGRAPHY === */
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }
p { font-size: 1.05rem; }

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--dark);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 50px;
  line-height: 1.8;
}

.text-center { text-align: center; }
.text-gold { color: var(--gold); }

/* === LAYOUT === */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: var(--section-py) 0; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--dark);
  box-shadow: 0 4px 20px rgba(237, 193, 79, 0.4);
}
.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(237, 193, 79, 0.5);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--dark);
  transform: translateY(-3px);
}

.btn-dark {
  background: var(--dark);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--dark-2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.9rem;
}

.btn-teal {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(42, 158, 184, 0.35);
}
.btn-teal:hover {
  background: #228aa0;
  transform: translateY(-3px);
}

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--navbar-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.navbar.scrolled {
  background: rgba(13, 17, 23, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.navbar-brand img {
  height: 52px;
  width: auto;
  transition: var(--transition);
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.navbar-menu li { position: relative; }

.navbar-menu a {
  display: block;
  padding: 8px 16px;
  color: rgba(255,255,255,0.88);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.navbar-menu a:hover,
.navbar-menu a.active {
  color: var(--gold);
  background: rgba(237, 193, 79, 0.08);
}

/* Dropdown */
.has-dropdown { position: relative; }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  background: var(--dark-2);
  border: 1px solid rgba(237, 193, 79, 0.15);
  border-radius: var(--radius);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(10px);
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: rgba(255,255,255,0.8);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.dropdown-menu a img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 4px;
}

.dropdown-menu a:hover {
  background: rgba(237, 193, 79, 0.1);
  color: var(--gold);
}

.dropdown-arrow {
  font-size: 0.7rem;
  margin-left: 4px;
  transition: transform 0.3s;
}

.has-dropdown:hover .dropdown-arrow { transform: rotate(180deg); }

.navbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile hamburger */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.navbar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.navbar-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.navbar-toggle.active span:nth-child(2) { opacity: 0; }
.navbar-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* === HERO — MAIN (index.html) === */
.hero-main {
  min-height: 100vh;
  background: linear-gradient(135deg, #0d1117 0%, #0f2030 40%, #0a3040 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-main::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(237,193,79,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 30%, rgba(4,177,184,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-particles span {
  position: absolute;
  display: block;
  width: 4px;
  height: 4px;
  background: rgba(237,193,79,0.3);
  border-radius: 50%;
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100px) scale(1); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 24px 80px;
  max-width: 800px;
  margin: 0 auto;
}

.hero-logo {
  width: 140px;
  height: auto;
  margin: 0 auto 32px;
  animation: fadeInDown 0.8s ease;
  filter: drop-shadow(0 8px 30px rgba(237,193,79,0.3));
}

.hero-main h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  margin-bottom: 16px;
  animation: fadeInUp 0.9s ease 0.1s both;
}

.hero-main h1 span { color: var(--gold); }

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255,255,255,0.75);
  margin-bottom: 40px;
  line-height: 1.7;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.35s both;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  text-align: center;
  animation: bounce 2s infinite;
  z-index: 2;
}

.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.3);
  margin: 8px auto 0;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-6px); }
}

/* === HERO — PAGE (inner pages) === */
.hero-page {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, #0d1117 0%, #0f2030 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 70%, rgba(237,193,79,0.08) 0%, transparent 65%);
}

.hero-page .container { position: relative; z-index: 1; }

.hero-page h1 {
  color: var(--white);
  margin-bottom: 16px;
}

.hero-page h1 span { color: var(--gold); }

.hero-page p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.breadcrumb a { color: var(--gold); }
.breadcrumb span { color: rgba(255,255,255,0.3); }

/* === BUSINESSES GRID === */
.businesses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 50px;
}

.business-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(237,193,79,0.1);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.business-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.35s ease;
  transform-origin: left;
}

.business-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(237,193,79,0.3);
}

.business-card:hover::before { transform: scaleX(1); }

.card-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin: 0 auto 20px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.1));
  transition: transform 0.35s ease;
}

.business-card:hover .card-logo { transform: scale(1.08); }

.business-card h3 {
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 12px;
}

.business-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 24px;
}

.card-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.tag-gold { background: rgba(237,193,79,0.12); color: var(--gold-dark); }
.tag-teal { background: rgba(42,158,184,0.12); color: var(--teal); }
.tag-cyan { background: rgba(4,177,184,0.12); color: var(--cyan); }
.tag-orange { background: rgba(253,104,0,0.12); color: var(--orange); }

/* === STATS SECTION === */
.stats-section {
  background: var(--dark);
  color: var(--white);
  padding: var(--section-py) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-top: 50px;
}

.stat-card {
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  transition: var(--transition);
}

.stat-card:hover {
  background: rgba(237,193,79,0.06);
  border-color: rgba(237,193,79,0.2);
  transform: translateY(-4px);
}

.stat-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
  display: block;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
}

.stat-platform {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin-top: 4px;
}

/* === WHY CHOOSE US === */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 50px;
}

.why-card {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.why-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(237,193,79,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.why-card:hover .why-icon {
  background: var(--gold);
  transform: scale(1.1);
}

.why-card h4 {
  font-size: 1.05rem;
  color: var(--dark);
  margin-bottom: 6px;
}

.why-card p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* === CTA SECTION === */
.cta-section {
  background: linear-gradient(135deg, #0d1117 0%, #0f2030 100%);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(237,193,79,0.08) 0%, transparent 65%);
}

.cta-section .container { position: relative; z-index: 1; }

.cta-section h2 { color: var(--white); margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.65); margin-bottom: 36px; font-size: 1.1rem; }

/* === ABOUT PAGE === */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.story-text .section-label { margin-bottom: 12px; }
.story-text h2 { margin-bottom: 20px; }
.story-text p { color: var(--text-light); margin-bottom: 16px; line-height: 1.8; }

.story-visual {
  position: relative;
  height: 440px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--dark-3) 0%, var(--dark-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-visual-logo {
  width: 220px;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.35));
}

.story-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 200px;
  height: 200px;
  border: 3px solid var(--gold);
  border-radius: var(--radius-lg);
  opacity: 0.2;
  z-index: -1;
}

/* Vision Mission */
.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 50px;
}

.vm-card {
  padding: 40px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.vm-card.vision {
  background: var(--dark);
  color: var(--white);
}

.vm-card.mission {
  background: rgba(237,193,79,0.06);
  border: 2px solid rgba(237,193,79,0.2);
}

.vm-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: block;
}

.vm-card h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: var(--gold);
}

.vm-card p {
  line-height: 1.8;
  opacity: 0.85;
}

/* Timeline */
.timeline {
  position: relative;
  padding: 40px 0;
  margin-top: 20px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 0;
  margin-bottom: 40px;
  align-items: center;
}

.timeline-content {
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(237,193,79,0.1);
}

.timeline-item:nth-child(odd) .timeline-content { margin-right: 20px; text-align: right; }
.timeline-item:nth-child(even) .timeline-content { margin-left: 20px; grid-column: 3; }
.timeline-item:nth-child(even) .timeline-dot { grid-column: 2; }
.timeline-item:nth-child(even) .timeline-empty { grid-column: 1; grid-row: 1; }

.timeline-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--dark);
  z-index: 1;
  box-shadow: 0 0 0 6px rgba(237,193,79,0.15);
}

.timeline-year {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.timeline-content h4 { font-size: 1rem; margin-bottom: 6px; }
.timeline-content p { font-size: 0.88rem; color: var(--text-light); }

/* === SOCIAL MEDIA SECTION === */
.social-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 50px;
}

.social-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.06);
  transition: var(--transition);
}

.social-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.social-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.social-card h3 {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 8px;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.social-count {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}

.social-suffix {
  color: var(--gold);
  font-size: 1.8rem;
}

.social-desc {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 8px 0 20px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
  transition: var(--transition);
}

.social-link:hover { color: var(--gold); gap: 10px; }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.service-card {
  padding: 32px 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.05);
  text-align: center;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(237,193,79,0.2);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.service-card h4 {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* === PET SHOP — Paradise === */
.paradise-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.paradise-feature {
  text-align: center;
  padding: 28px 16px;
  background: var(--bg-light);
  border-radius: var(--radius);
  transition: var(--transition);
}

.paradise-feature:hover {
  background: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.paradise-feature .icon {
  font-size: 2.8rem;
  margin-bottom: 12px;
  display: block;
}

.paradise-feature h4 {
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 6px;
}

.paradise-feature p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Info box */
.info-box {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 32px 40px;
  border-left: 4px solid var(--gold);
}

.info-box h4 {
  font-size: 1rem;
  color: var(--gold-dark);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--text);
}

.info-row:last-child { margin-bottom: 0; }

.info-icon { color: var(--gold); font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }

/* === PRODUCTS — QUINTSURF === */
.product-section { padding: 60px 0; }
.product-section:nth-child(even) { background: var(--bg-section); }

.product-section-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 36px;
}

.product-section-line {
  flex: 1;
  height: 1px;
  background: rgba(237,193,79,0.25);
}

.product-section-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--dark);
  white-space: nowrap;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.06);
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-img-wrap {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-section);
  cursor: pointer;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.product-card:hover .product-img-wrap img { transform: scale(1.06); }

.product-body {
  padding: 20px;
}

.product-body h4 {
  font-size: 1.05rem;
  color: var(--dark);
  margin-bottom: 6px;
}

.product-body p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 14px;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.product-tag {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(237,193,79,0.1);
  color: var(--gold-dark);
}

.product-buy-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.buy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition);
}

.buy-btn.tiktok { background: #010101; color: var(--white); }
.buy-btn.shopee { background: #ee4d2d; color: var(--white); }
.buy-btn.lazada { background: #0f146b; color: var(--white); }
.buy-btn:hover { opacity: 0.85; transform: translateY(-2px); }

/* Feature badges */
.brand-features {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 40px;
  justify-content: center;
}

.feature-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 32px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(237,193,79,0.15);
  transition: var(--transition);
  min-width: 140px;
  text-align: center;
}

.feature-badge:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}

.feature-badge .icon { font-size: 2rem; }
.feature-badge span { font-size: 0.9rem; font-weight: 600; color: var(--dark); }

/* Channel buttons */
.channel-section {
  background: var(--dark);
  padding: 80px 0;
  text-align: center;
}

.channel-section h2 { color: var(--white); margin-bottom: 12px; }
.channel-section p { color: rgba(255,255,255,0.6); margin-bottom: 36px; }

.channel-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.channel-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  transition: var(--transition);
}

.channel-btn.tiktok { background: #010101; color: var(--white); border: 1px solid #333; }
.channel-btn.shopee { background: #ee4d2d; color: var(--white); }
.channel-btn.lazada { background: #0f146b; color: var(--white); }
.channel-btn:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* === KUMFI / IMPORT === */
.brand-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 50px;
}

.brand-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.06);
  transition: var(--transition);
}

.brand-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(237,193,79,0.2);
}

.brand-item img {
  height: 80px;
  width: auto;
  object-fit: contain;
  margin: 0 auto 24px;
}

.brand-item h3 { font-size: 1.5rem; margin-bottom: 12px; }
.brand-item p { color: var(--text-light); line-height: 1.7; }

/* === CONTACT PAGE === */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.4rem;
  margin-bottom: 24px;
  color: var(--dark);
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.contact-item:last-child { border-bottom: none; }

.contact-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(237,193,79,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-item-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold-dark);
  margin-bottom: 4px;
}

.contact-item-value {
  font-size: 0.98rem;
  color: var(--text);
  line-height: 1.5;
}

.contact-item-value a {
  color: var(--teal);
  font-weight: 500;
}

.contact-item-value a:hover { color: var(--gold); }

/* Contact Form */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(237,193,79,0.1);
}

.contact-form h3 {
  font-size: 1.5rem;
  margin-bottom: 28px;
  color: var(--dark);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid rgba(0,0,0,0.09);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-light);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(237,193,79,0.12);
  background: var(--white);
}

.form-group textarea {
  height: 130px;
  resize: vertical;
  min-height: 90px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-success, .form-error {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  margin-top: 16px;
  display: none;
}

.form-success { background: rgba(4,177,184,0.1); color: var(--cyan); border: 1px solid rgba(4,177,184,0.2); }
.form-error { background: rgba(253,104,0,0.1); color: var(--orange); border: 1px solid rgba(253,104,0,0.2); }
.form-success.show, .form-error.show { display: block; }

/* === FOOTER === */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand img {
  height: 52px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(1.1);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  max-width: 280px;
}

.footer-col h5 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--gold);
}

.footer-links a {
  display: block;
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  margin-bottom: 10px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--gold);
  padding-left: 6px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  text-decoration: none;
  transition: var(--transition);
}

.social-ico:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-3px);
}

.footer-contact-info {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
}

.footer-contact-info span {
  display: block;
  margin-bottom: 8px;
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.35);
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* === DIVIDER === */
.divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 16px auto 0;
}

.divider.left { margin-left: 0; }

/* === UTILS === */
.bg-light { background: var(--bg-light); }
.bg-section { background: var(--bg-section); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0 !important; }

/* === MOBILE RESPONSIVE === */
@media (max-width: 1024px) {
  :root { --section-py: 70px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .story-grid { grid-template-columns: 1fr; gap: 40px; }
  .story-visual { height: 300px; }
  .vm-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .brand-showcase { grid-template-columns: 1fr; }
  .timeline::before { left: 28px; }
  .timeline-item { grid-template-columns: 60px 1fr; grid-template-rows: auto; }
  .timeline-item:nth-child(odd) .timeline-content { margin-right: 0; text-align: left; grid-column: 2; }
  .timeline-item:nth-child(even) .timeline-content { margin-left: 0; grid-column: 2; }
  .timeline-item:nth-child(even) .timeline-empty { display: none; }
  .timeline-dot { grid-column: 1; grid-row: 1; }
}

/* -------- 768px: Mobile nav + layout -------- */
@media (max-width: 768px) {
  :root { --section-py: 60px; --navbar-h: 64px; }

  /* --- NAVBAR MOBILE FIX --- */
  .navbar-menu {
    /* Positioning */
    position: fixed;
    top: var(--navbar-h);
    left: 0;
    right: 0;

    /* CRITICAL: z-index must be explicit so the panel sits above hero/sections */
    z-index: 998;

    /* Layout */
    display: flex;          /* explicit — don't rely on inheritance */
    flex-direction: column;
    align-items: stretch;
    gap: 0;

    /* Appearance */
    padding: 8px 16px 28px;
    background: #0d1117;    /* solid colour — backdrop-filter causes bugs on Android */
    border-bottom: 2px solid rgba(237, 193, 79, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);

    /* Scroll safety for very small screens */
    max-height: calc(100dvh - var(--navbar-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;

    /* Hide/show — opacity+visibility is more reliable than translateY(-110%) */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition:
      opacity      0.25s ease,
      transform    0.25s ease,
      visibility   0s   linear 0.25s; /* delay visibility so it doesn't capture clicks while fading */
  }

  .navbar-menu.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition:
      opacity      0.25s ease,
      transform    0.25s ease,
      visibility   0s   linear 0s;   /* no delay when opening */
  }

  .navbar-menu > li > a {
    padding: 14px 16px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .navbar-menu > li:last-child > a { border-bottom: none; }

  .navbar-toggle { display: flex; }

  /* Mobile dropdown: static, accordion-style */
  .dropdown-menu {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.04);
    border: none;
    border-radius: var(--radius-sm);
    margin: 4px 0 8px;
    padding: 4px;
    display: none;
  }

  .has-dropdown.open .dropdown-menu { display: block; }

  /* --- LAYOUT FIXES --- */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .social-stats { grid-template-columns: 1fr 1fr; }
  .hero-logo { width: 100px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .businesses-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .vm-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .brand-showcase { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }

  /* Touch-friendly tap targets */
  .btn { padding: 13px 26px; min-height: 48px; }
  .btn-sm { padding: 11px 20px; min-height: 44px; }
  .buy-btn { min-height: 40px; padding: 9px 14px; }

  /* Typography scale-down */
  h2 { font-size: clamp(1.5rem, 5vw, 2.2rem); }
}

/* -------- 480px: Small phone -------- */
@media (max-width: 480px) {
  :root { --section-py: 48px; }

  .social-stats { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .paradise-features { grid-template-columns: 1fr 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 20px 16px; }
  .brand-features { gap: 10px; }
  .feature-badge { min-width: 100px; padding: 14px 16px; }
  .channel-btns { flex-direction: column; align-items: stretch; }
  .channel-btn { justify-content: center; }
  .vm-card { padding: 28px 20px; }
  .hero-content { padding: 100px 16px 60px; }
  .section-subtitle { font-size: 1rem; }
  .footer-grid { gap: 24px; }
  .footer-social { flex-wrap: wrap; }

  /* Reduce animation for low-end devices */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  }
}
