/* =====================
   BRAND VARIABLES
===================== */
:root {
  --warm-clay: #A18D75;
  --deep-bark: #42362A;
  --soft-sand: #D3CCBA;
  --toasted-maple: #5E442B;
  --paper-white: #EAEAEA;

  --bg-main: var(--paper-white);
  --bg-soft: var(--soft-sand);
  --text-main: var(--deep-bark);
  --text-muted: rgba(66, 54, 42, 0.65);
  --accent: var(--toasted-maple);
}

/* =====================
   BASE
===================== */
* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Noto Sans Thai", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.7;
  font-size: 16px;
}

/* =====================
   ANIMATION
===================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade {
  opacity: 0;
  animation: fadeUp 0.9s ease forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

/* =====================
   HERO
===================== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-soft);
}

.hero-media {
  background: linear-gradient(135deg, var(--soft-sand), var(--warm-clay));
}
.hero-media {
  position: relative;
  overflow: hidden;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(66, 54, 42, 0.25),
    rgba(66, 54, 42, 0.35)
  );
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-content {
  padding: clamp(32px, 8vw, 96px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  letter-spacing: 0.15em;
  margin-bottom: 18px;
  opacity: 0.7;
}

.hero h1 {
  font-family: "Outfit", sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.1;
  margin: 0 0 16px;
  font-weight: 500;
}

.hero p {
  max-width: 440px;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.logo {
  margin-bottom: 24px;
}

.logo img {
  height: 40px;          /* desktop size */
  width: auto;
  display: block;
}

/* Mobile (Thailand optimization) */
@media (max-width: 900px) {
  .logo img {
    height: 32px;
  }
}
/* =====================
   HERO SLIDESHOW
===================== */

.slideshow {
  position: relative;
  width: 100%;
  height: 100%;
}

.slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: slideshowFade 36s infinite;
}

/* Stagger each image */
.slideshow img:nth-child(1) { animation-delay: 0s; }
.slideshow img:nth-child(2) { animation-delay: 6s; }
.slideshow img:nth-child(3) { animation-delay: 12s; }
.slideshow img:nth-child(4) { animation-delay: 18s; }
.slideshow img:nth-child(5) { animation-delay: 24s; }
.slideshow img:nth-child(6) { animation-delay: 30s; }

@keyframes slideshowFade {
  0% { opacity: 0; }
  5% { opacity: 1; }
  20% { opacity: 1; }
  25% { opacity: 0; }
  100% { opacity: 0; }
}


/* =====================
   BUTTONS
===================== */
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--deep-bark);
  color: var(--paper-white);
  padding: 14px 28px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 500;
}

.btn-secondary {
  border: 1px solid var(--deep-bark);
  color: var(--deep-bark);
  padding: 14px 28px;
  border-radius: 14px;
  text-decoration: none;
}

/* =====================
   SECTIONS
===================== */
.section {
  padding: 120px 32px;
  text-align: center;
}

.section h2 {
  font-family: "Outfit", sans-serif;
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.section-sub {
  max-width: 520px;
  margin: 0 auto;
  color: var(--text-muted);
}

.cta {
  padding: 120px 32px;
  text-align: center;
  background: var(--soft-sand);
}

.footer {
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* =====================
   MOBILE (TH)
===================== */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 46vh;
  }

  .hero-content {
    padding: 32px 24px;
  }

  body {
    font-size: 15px;
  }
}
  .slideshow img {
    animation-duration: 42s;
  }
