/* ================================================
   DESIGN TOKENS
   Inspired by golde.co — warm, minimal, cozy
================================================ */
:root {
  /* Colors */
  --bg: #fffbf7;
  /* Main warm cream background */
  --bg-white: #fffbf7;
  /* Cards + alternating sections */
  --accent: #C1272D;
  /* Brand red (from logo) */
  --accent-dark: #921c21;
  --accent-light: #faeaea;
  --text: #2c1810;
  /* Warm dark brown */
  --text-2: #8a6a5a;
  /* Muted body text */
  --border: rgba(44, 24, 16, 0.10);

  /* FONT TODO: Replace with final brand font when selected. */
  --font: 'Noto Serif Thai', 'Noto Serif', Georgia, serif;

  /* Spacing */
  --section-py: 5rem;
  --max-w: 1200px;
  --px: clamp(1.25rem, 3.5vw, 2.25rem);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-pill: 9999px;
  --shadow: 0 2px 20px rgba(44, 24, 16, 0.07);
  --shadow-hover: 0 8px 32px rgba(44, 24, 16, 0.12);
  --ease: 0.22s ease;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ================================================
   TYPOGRAPHY UTILITIES
================================================ */
.eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.sec-head {
  text-align: center;
  margin-bottom: 3rem;
}

.sec-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.sec-title {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.sec-title--left {
  text-align: left;
}

.sec-desc {
  font-size: 0.97rem;
  color: var(--text-2);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.75;
}


.body-text {
  font-size: 0.97rem;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 1.1rem;
}

/* ================================================
   BUTTONS
================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--ease);
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1.5px solid var(--accent);
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(193, 39, 45, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--text);
  transform: translateY(-1px);
}

/* ================================================
   IMAGE PLACEHOLDER BLOCKS
================================================ */
.img-ph {
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: #e8e0d5;
  color: #a89080;
  text-align: center;
  padding: 1.5rem;
  border-radius: inherit;
}

.img-ph svg {
  opacity: 0.4;
}

.img-ph p {
  font-size: 0.75rem;
  line-height: 1.45;
  opacity: 0.6;
  max-width: 140px;
}

.img-ph--tall {
  min-height: 420px;
}

/* ================================================
   HEADER
================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.header.scrolled {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}

/* Nav + actions: white on hero, dark after scroll */
.header-nav a,
.cart-btn,
.hamburger span {
  color: rgba(255, 255, 255, 0.88);
}

.header.scrolled .header-nav a,
.header.scrolled .cart-btn {
  color: var(--text-2);
}

.header.scrolled .hamburger span {
  background: var(--text-2);
}

/* Logo: invert on transparent, normal on white */
.header-logo img {
  filter: brightness(0) invert(1);
}

.header.scrolled .header-logo img {
  filter: none;
}


/* Desktop: [nav] [logo] [actions] — Mobile: [hamburger] [logo] [cart] */
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: "nav logo actions";
  align-items: center;
  height: var(--header-h);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.5rem var(--px) 0;
}

.hamburger        { grid-area: nav; display: none; justify-self: start; }
.header-nav       { grid-area: nav; }
.header-logo      { grid-area: logo; }
.header-actions   { grid-area: actions; }

/* ── Nav (left) ── */
.header-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.header-nav a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  position: relative;
  transition: color var(--ease);
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease);
}

.header-nav a:hover {
  color: var(--text);
}

.header-nav a:hover::after {
  transform: scaleX(1);
}

/* ── Logo (center) ── */
.header-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* LOGO: Replace /assets/logo.png with the final logo file if needed */
.header-logo img {
  height: 50px;
  width: auto;
  /* Logo has cream bg → blends naturally with white header */
}

.logo-fallback {
  display: none;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--accent);
}

/* ── Actions (right) ── */
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text-2);
  transition: color var(--ease), background var(--ease);
}

.cart-btn:hover {
  color: var(--text);
  background: var(--bg);
}

.cart-count {
  position: absolute;
  top: 3px;
  right: 3px;
  background: var(--accent);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, sans-serif;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
  padding: 3px 0;
}

.hamburger span {
  display: block;
  height: 1.5px;
  background: var(--text-2);
  border-radius: 2px;
  transition: all var(--ease);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(44, 24, 16, 0.08);
  z-index: 199;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  padding: 1rem var(--px);
  border-bottom: 1px solid var(--border);
  transition: color var(--ease), background var(--ease);
}

.nav-mobile a:last-child {
  border-bottom: none;
}

.nav-mobile a:hover {
  color: var(--text);
  background: var(--bg);
}

/* ================================================
   SECTION UTILITY
================================================ */
.section {
  padding: var(--section-py) 0;
  background: var(--bg);
}

.section--white {
  background: var(--bg-white);
}

/* ================================================
   HERO — Full-viewport, centered content (VAHDAM style)
================================================ */
.hero {
  position: relative;
  height: 93svh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;

  background-image: url('assets/mountain.PNG');
  background-size: cover;
  background-position: center;
}

/* Light scrim so text stays readable over any photo */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.18) 0%,
      rgba(0, 0, 0, 0.08) 45%,
      rgba(0, 0, 0, 0.22) 100%);
  z-index: 1;
}

/* Content centered */
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--px);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

.hero-content .eyebrow {
  color: var(--text-2);
  margin-bottom: 0.6rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.1;
  color: var(--accent);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.hero-desc {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 0;
  max-width: 360px;
}

/* ================================================
   TWO-COLUMN LAYOUT (Story + Spotlight)
================================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.two-col--reverse .two-col__text {
  order: 1;
}

.two-col--reverse .two-col__img {
  order: 2;
}

.two-col__img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1182 / 1330;
  background: #e8e0d5;
  box-shadow: var(--shadow);
}

/* Carousel: fixed height ทุก slide เท่ากัน */
.spotlight-carousel .two-col {
  align-items: stretch;
}

.spotlight-carousel .two-col__img {
  aspect-ratio: unset;
  height: 480px;
}

.two-col__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 75%;
  display: block;
}

.two-col__img .img-ph {
  border-radius: 0;
  min-height: unset;
  height: 100%;
}

.two-col__text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.two-col__text .sec-title--left {
  margin-bottom: 1.25rem;
}

.founder-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 1.5rem 0 2rem;
}

.founder-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #d4c8ba;
  flex-shrink: 0;
}

.founder-name {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.founder-meta {
  display: block;
  font-size: 0.78rem;
  color: var(--text-2);
}

/* ================================================
   BENEFITS GRID
================================================ */
.ben-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 0;
}

.ben-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  text-align: center;
  border: 1px solid var(--border);
  transition: transform var(--ease), box-shadow var(--ease);
}

.ben-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.ben-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  margin: 0 auto 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ben-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.ben-sub {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.ben-desc {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.68;
}

/* ================================================
   PRODUCT SPOTLIGHT CAROUSEL
================================================ */
.spotlight-carousel {
  position: relative;
  padding-bottom: 2.5rem;
  display: grid;
}

.spot-slide {
  grid-row: 1;
  grid-column: 1;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.spot-slide.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  animation: spotIn 0.38s ease;
  padding: 0 2.5rem;
}

@keyframes spotIn {
  from {
    opacity: 0;
    transform: translateX(16px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.spot-arrow {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: var(--text);
  opacity: 0.28;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity var(--ease);
  padding: 0;
}

.spot-arrow:hover {
  opacity: 0.85;
}

.spot-prev {
  left: -0.5rem;
}

.spot-next {
  right: -0.5rem;
}

.spot-dots {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.spot-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: var(--border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background var(--ease), width var(--ease);
}

.spot-dot.active {
  background: var(--accent);
  width: 20px;
}

/* ================================================
   PRODUCT TAGS
================================================ */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 2rem;
}

.tag {
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.73rem;
  font-weight: 600;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-pill);
}

/* ================================================
   FOOTER — Minimal centered layout
================================================ */
.footer {
  background: #1a0d0b;
  color: #c8b6ae;
  padding: 4rem 0 2.5rem;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

/* LOGO: Replace /assets/logo.png with the final logo file if needed */
.footer-logo img {
  height: 56px;
  width: auto;
  filter: brightness(0) invert(1) opacity(0.85);
  margin: 0 auto;
}

.footer-logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}

.footer-tagline {
  font-size: 0.86rem;
  opacity: 0.50;
  line-height: 1.6;
  letter-spacing: 0.03em;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.25rem;
}

.soc {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c8b6ae;
  transition: background var(--ease), color var(--ease), transform var(--ease);
}

.soc:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  width: 100%;
  font-size: 0.74rem;
  opacity: 0.35;
}

.footer-legal {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-legal a:hover {
  opacity: 1;
  color: #fff;
}

/* ================================================
   RESPONSIVE — Tablet
================================================ */

@media (max-width: 900px) {

  .two-col,
  .two-col--reverse {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .two-col--reverse .two-col__text {
    order: 2;
  }

  .two-col--reverse .two-col__img {
    order: 1;
  }

  .two-col__img {
    max-width: 440px;
    margin: 0 auto;
  }

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

/* ================================================
   RESPONSIVE — Mobile
================================================ */
@media (max-width: 768px) {
  :root {
    --header-h: 60px;
    --section-py: 3.5rem;
  }

  .header-inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "nav logo actions";
  }

  .hamburger {
    display: flex;
  }

  .header-nav {
    display: none;
  }

  .header-logo img {
    height: 42px;
  }

  .hero-content {
    padding: 0 var(--px) 3rem;
  }

  .ben-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }

  .spot-slide.active {
    padding: 0 44px;
  }

  .spotlight-carousel .two-col__img {
    height: 260px;
  }

  .spot-prev { left: 0; }
  .spot-next { right: 0; }

  .two-col__img {
    max-width: 100%;
  }
}

