* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Noto Sans Thai", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

.section-title,
.feature-card h3,
.service-card h3,
.person-card h3 {
  font-family: Fraunces, Georgia, "Times New Roman", serif;
}

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

.site-header.is-scrolled,
.site-header.is-open {
  color: #2B2018;
  background: rgba(255, 250, 240, 0.9);
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
  box-shadow: 0 16px 45px rgba(43, 32, 24, 0.12);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled .site-nav,
.site-header.is-open .site-nav {
  border-color: rgba(20, 20, 20, 0.08);
  background: rgba(255, 255, 255, 0.78);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border-radius: 999px;
  padding: 0 16px;
  color: inherit;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.site-header.is-scrolled .nav-link:hover,
.site-header.is-open .nav-link:hover {
  color: #6E4327;
  background: #F0E0CF;
}

.nav-link.login-btn:hover {
  background: rgba(168, 107, 60, 0.08) !important;
  color: #8A5430 !important;
  border-color: #8A5430 !important;
  transform: translateY(-1px);
}

.eyebrow {
  margin: 0;
  color: #A86B3C;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  color: inherit;
  font-size: clamp(2.25rem, 5.8vw, 4.8rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.96;
  overflow-wrap: anywhere;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 950;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #A86B3C, #C68A4A);
  box-shadow: 0 18px 44px rgba(168, 107, 60, 0.3);
}

.btn-primary:hover,
.btn-ghost:hover {
  transform: translateY(-2px);
}

.btn-ghost {
  color: currentColor;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.feature-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  border: 1px solid rgba(20, 20, 20, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
  padding: 22px;
  box-shadow: 0 18px 52px rgba(43, 32, 24, 0.08);
  backdrop-filter: blur(12px);
}

.feature-number {
  display: grid;
  height: 42px;
  width: 42px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: #2B2018;
  font-weight: 950;
}

.feature-card h3,
.service-card h3,
.person-card h3 {
  margin: 0;
  color: #6E4327;
  font-size: 1.2rem;
  font-weight: 950;
  line-height: 1.15;
}

.feature-card p,
.service-card p,
.person-card p,
.strategy-card p {
  margin: 8px 0 0;
  color: #6B5F55;
}

.mission-chip {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  padding: 18px 20px;
  font-weight: 950;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.service-card {
  overflow: hidden;
  border: 1px solid rgba(20, 20, 20, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 52px rgba(43, 32, 24, 0.1);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.service-card:hover,
.person-card:hover,
.strategy-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 80px rgba(168, 107, 60, 0.18);
}

.service-card img {
  height: 255px;
  width: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}

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

.service-card div {
  padding: 22px;
}

.service-card span {
  display: inline-flex;
  margin-bottom: 12px;
  border-radius: 999px;
  background: #F0E0CF;
  padding: 5px 10px;
  color: #8A5430;
  font-size: 0.75rem;
  font-weight: 950;
}

.metric-card,
.strategy-card {
  border: 1px solid rgba(20, 20, 20, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  padding: 22px;
  box-shadow: 0 18px 52px rgba(43, 32, 24, 0.08);
}

.metric-card strong {
  display: block;
  color: #A86B3C;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 950;
  line-height: 1;
}

.metric-card span {
  display: block;
  margin-top: 10px;
  color: #6B5F55;
  font-size: 0.95rem;
}

.strategy-card {
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.strategy-card span {
  color: #6E4327;
  font-weight: 950;
}

.person-card {
  overflow: hidden;
  border: 1px solid rgba(20, 20, 20, 0.08);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 18px 52px rgba(43, 32, 24, 0.1);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.person-card img {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.person-card div {
  padding: 22px;
}

.floating-cta {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 45;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 20px;
  color: #fff;
  background: linear-gradient(135deg, #A86B3C, #C68A4A);
  box-shadow: 0 18px 52px rgba(43, 32, 24, 0.28);
  font-weight: 950;
  text-decoration: none;
}

body.js-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms ease, transform 620ms ease;
}

body.js-ready .reveal.is-visible,
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 767px) {
  /* Slide-out drawer container */
  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 280px;
    max-width: 85vw;
    height: 100dvh;
    background: #2B2018 !important; /* solid deep dark background for optimal contrast */
    border: none !important;
    border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0px !important; /* overrides rounded-full */
    padding: 80px 24px 24px 24px !important;
    color: #FBF6EF !important; /* light color for text */
    z-index: 100;
    transform: translateX(100%);
    transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.4);
  }

  /* Slide-out drawer when open */
  .site-header.is-open .site-nav {
    transform: translateX(0);
  }

  /* Full screen dark backdrop overlay with blur */
  .site-header::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(15, 10, 8, 0.65); /* dark semi-transparent mask */
    backdrop-filter: blur(5px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease;
    z-index: 99;
  }
  .site-header.is-open::before {
    opacity: 1;
    pointer-events: auto;
  }

  /* Keep toggle button above drawer and transform to X */
  .nav-toggle {
    position: relative;
    z-index: 101;
    transition: background-color 0.2s ease;
  }
  
  .nav-toggle span {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  }

  .site-header.is-open .nav-toggle span:first-child {
    transform: translateY(3px) rotate(45deg);
  }
  
  .site-header.is-open .nav-toggle span:last-child {
    transform: translateY(-3px) rotate(-45deg);
  }

  /* Ensure links inside drawer are left-aligned with clean padding and space-between for icon */
  .nav-link {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: space-between !important; /* text left, icon far right */
    padding: 0 16px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #FBF6EF !important; /* high-contrast light text */
    text-align: left;
    background: transparent;
  }

  /* SVG chevron right icon pushed to the far right of each row */
  .nav-link::after {
    content: "" !important;
    display: block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C2B2A2' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") !important;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 180ms ease;
  }

  .nav-link:hover::after,
  .nav-link:active::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A86B3C' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") !important;
    transform: translateX(3px);
  }

  .nav-link:hover,
  .nav-link:active {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    transform: none;
  }

  .nav-link[href*="/app/login"] {
    margin-top: 16px;
    justify-content: center;
    background: transparent !important;
    border: 1.5px solid #A86B3C !important;
    color: #A86B3C !important;
    font-weight: 700;
  }

  .nav-link[href*="/app/login"]::after {
    content: none !important;
  }

  .nav-link[href*="/app/login"]:hover,
  .nav-link[href*="/app/login"]:active {
    background: rgba(168, 107, 60, 0.12) !important;
    color: #ffffff !important;
    border-color: #A86B3C !important;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
  }
}

@media (min-width: 768px) {
  .site-nav {
    display: flex !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
