/* ============================================================
   Manaco Landing Page — Premium Coconut Brand
   ============================================================ */

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

:root {
  --manaco:       #1a5c8a;
  --manaco-dark:  #0e3d5e;
  --manaco-light: #e6f1fb;
  --manaco-rule:  #a8c8e8;
  --green-dark:   #1a3a2a;
  --green-mid:    #2d5a3d;
  --green-light:  #4a8c5c;
  --cream:        #faf8f5;
  --tan:          #e8dfc8;
  --text:         #1a1a1a;
  --text-muted:   #5a6370;
  --white:        #ffffff;
  --nav-height:   72px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--manaco); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--manaco-dark); }

.container {
  width: min(1200px, 90%);
  margin: 0 auto;
}

.lao {
  font-family: 'Noto Sans Lao', 'Phetsarath OT', sans-serif;
  line-height: 1.75;
}

/* ─── NAVIGATION ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}

.nav.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 12px rgba(0,0,0,0.08);
}

.nav-inner {
  width: min(1200px, 90%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.nav-logo {
  height: 44px;
  width: auto;
}

.nav-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  color: var(--white);
  letter-spacing: 0.04em;
  transition: color 0.3s;
}

.nav.scrolled .nav-name { color: var(--manaco); }

.nav-links {
  display: flex;
  gap: 1.8rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--manaco);
  transition: width 0.25s;
}

.nav-links a:hover::after { width: 100%; }

.nav.scrolled .nav-links a { color: var(--text-muted); }
.nav.scrolled .nav-links a:hover { color: var(--manaco); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-cta {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1.3rem;
  border-radius: 6px;
  background: var(--white);
  color: var(--manaco) !important;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  background: var(--manaco-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26,92,138,0.2);
}

.nav.scrolled .nav-cta {
  background: var(--manaco);
  color: var(--white) !important;
}

.nav.scrolled .nav-cta:hover {
  background: var(--manaco-dark);
}

/* Language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.lang-toggle:hover {
  background: rgba(255,255,255,0.25);
}

.nav.scrolled .lang-toggle {
  background: rgba(26,92,138,0.06);
  border-color: var(--manaco-rule);
}

.nav.scrolled .lang-toggle:hover {
  background: rgba(26,92,138,0.12);
}

.lang-opt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.lang-opt.active {
  color: var(--white);
}

.nav.scrolled .lang-opt {
  color: rgba(26,92,138,0.4);
}

.nav.scrolled .lang-opt.active {
  color: var(--manaco);
}

.lang-sep {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
}

.nav.scrolled .lang-sep {
  color: rgba(26,92,138,0.25);
}

/* Lao body font override */
body.lang-lo {
  font-family: 'Noto Sans Lao', 'Phetsarath OT', sans-serif;
}

body.lang-lo h1,
body.lang-lo h2,
body.lang-lo h3,
body.lang-lo h4 {
  font-family: 'Noto Serif Lao', 'DM Serif Display', serif;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav.scrolled .nav-toggle span { background: var(--text); }

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--manaco);
  color: var(--white) !important;
  border-color: var(--manaco);
}

.btn-primary:hover {
  background: var(--manaco-dark);
  border-color: var(--manaco-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,92,138,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white) !important;
  border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

.btn-outline-dark {
  background: transparent;
  color: var(--manaco) !important;
  border-color: var(--manaco-rule);
}

.btn-outline-dark:hover {
  background: var(--manaco-light);
  border-color: var(--manaco);
}

.btn-full { width: 100%; text-align: center; }

/* WhatsApp button icon */
.btn-wa {
  gap: 0.5rem;
}

.wa-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    url('https://images.unsplash.com/photo-1600298882525-10b9a88e8746?w=1600&h=1000&fit=crop&q=80')
    center / cover no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(14,61,94,0.92) 0%,
    rgba(26,92,138,0.78) 40%,
    rgba(26,58,42,0.72) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 780px;
  padding: calc(var(--nav-height) + 1rem) 1.5rem 4rem;
}

/* ── Hero logo — big brand centrepiece ── */
.hero-logo-wrap {
  margin-bottom: 1.5rem;
}

.hero-logo {
  width: clamp(160px, 22vw, 260px);
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.25));
  animation: heroLogoIn 0.8s ease-out both;
}

@keyframes heroLogoIn {
  from { opacity: 0; transform: translateY(16px) scale(0.92); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-divider {
  width: 48px;
  height: 2px;
  background: rgba(255,255,255,0.35);
  margin: 0 auto 1.25rem;
  border-radius: 1px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.75rem;
}

.hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.65;
}

.hero-sub.lao {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  margin-top: 0.75rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 1;
}

.hero-scroll span {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ─── SHARED SECTION STYLES ─── */
.section {
  padding: 6rem 0;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--manaco);
  margin-bottom: 0.75rem;
}

.eyebrow-light { color: rgba(255,255,255,0.7); }

h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--green-dark);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.heading-light { color: var(--white); }

.section-header-text {
  max-width: 600px;
  margin-bottom: 3rem;
}

.section-header-text.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ─── ABOUT ─── */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  position: relative;
}

.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  pointer-events: none;
}

.about-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.about-text p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.about-text .lao {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 2rem;
}

.stats-row {
  display: flex;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #e8e8e8;
}

.stat-num {
  display: block;
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  color: var(--manaco);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ─── PRODUCTS ─── */
.section-dark {
  background: var(--green-dark);
  color: var(--white);
}

.section-dark .section-desc {
  color: rgba(255,255,255,0.65);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.product-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  border-color: rgba(255,255,255,0.2);
}

.product-img {
  height: 200px;
  overflow: hidden;
}

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

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

.product-info {
  padding: 1.25rem 1.5rem 1.5rem;
}

.product-info h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.product-info p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.55;
}

.products-more {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
}

.products-more a {
  color: var(--manaco-rule);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.products-more a:hover {
  color: var(--white);
}

/* ─── PROCESS ─── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.process-step {
  position: relative;
}

.process-num {
  font-family: 'DM Serif Display', serif;
  font-size: 2.5rem;
  color: var(--manaco-light);
  line-height: 1;
  margin-bottom: 0.75rem;
  font-weight: 400;
}

.process-img {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.process-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.4s;
}

.process-step:hover .process-img img {
  transform: scale(1.05);
}

.process-step h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.15rem;
  color: var(--green-dark);
  margin-bottom: 0.4rem;
}

.process-step p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ─── TRACEABILITY ─── */
.section-accent {
  background: var(--manaco);
  color: var(--white);
}

.trace-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.trace-text p {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.lao-light {
  color: rgba(255,255,255,0.55) !important;
}

.trace-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.trace-feat {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
}

.trace-feat svg {
  color: rgba(255,255,255,0.7);
  flex-shrink: 0;
}

.trace-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.trace-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

/* ─── CONTACT ─── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.contact-card {
  background: var(--white);
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 2rem;
  transition: box-shadow 0.3s;
}

.contact-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

.contact-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--manaco-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--manaco);
  margin-bottom: 1.25rem;
}

.contact-card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  color: var(--green-dark);
  margin-bottom: 0.75rem;
}

.contact-card address {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.contact-map {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e8e8e8;
}

.contact-list {
  list-style: none;
}

.contact-list li {
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
}

.contact-list li strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.contact-list li a {
  color: var(--manaco);
  font-weight: 500;
}

.contact-cta-card {
  background: linear-gradient(135deg, var(--manaco-light) 0%, #f0f7fd 100%);
  border-color: var(--manaco-rule);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-cta-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.contact-cta-card .btn {
  margin-bottom: 0.75rem;
}

.contact-cta-card .btn:last-child {
  margin-bottom: 0;
}

/* ─── FOOTER ─── */
.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  height: 48px;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-links h4 {
  font-family: 'DM Serif Display', serif;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-links a {
  display: block;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.65rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--white); }

.footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ─── ANIMATIONS ─── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

@media (max-width: 850px) {
  :root { --nav-height: 64px; }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem 2rem 2rem;
    gap: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    color: var(--text) !important;
    padding: 0.75rem 0;
    font-size: 1rem;
    border-bottom: 1px solid #f0f0f0;
  }

  .nav-links a::after { display: none; }

  .nav-right { gap: 0.6rem; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .section { padding: 4rem 0; }

  .hero-title { font-size: clamp(2rem, 7vw, 2.8rem); }
  .hero-content { padding-top: calc(var(--nav-height) + 1.5rem); }
  .hero-scroll { display: none; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image { order: -1; }

  .about-image img { height: 300px; }

  .stats-row {
    gap: 1.5rem;
    flex-wrap: wrap;
  }

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

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

  .trace-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .trace-image img { height: 300px; }

  .trace-features { grid-template-columns: 1fr; }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 540px) {
  .process-grid { grid-template-columns: 1fr; }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn { width: 100%; max-width: 280px; }

  h2 { font-size: 1.6rem; }
}
