/* ============================================================
   Baan Khanitha — Global Design System & Variables
   ============================================================ */

:root {
  /* Brand Colors */
  --color-primary: #272B64;        /* Requested Button & Brand Navy */
  --color-primary-hover: #1b1e48;
  --color-gold: #D48C2B;           /* Luxury Gold Accent */
  --color-gold-light: #F4E8D1;
  --color-gold-hover: #b87b28;
  
  /* Text Colors */
  --color-text-main: #000000;      /* Requested Black for Menu/Headings */
  --color-text-dark: #1a1a1a;
  --color-text-muted: #555555;
  --color-text-light: #777777;
  --color-text-white: #ffffff;

  /* Backgrounds */
  --color-bg-light: #FAF8F5;
  --color-bg-white: #ffffff;
  --color-bg-dark: #121C2E;
  --color-border: #E8E2D9;
  
  /* Typography */
  --font-serif: 'EB Garamond', 'Sarabun', Georgia, serif;
  --font-body: 'Prompt', 'Sarabun', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-thai: 'Sarabun', 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Layout & Spacing */
  --container-max: 1280px;
  --header-height: 86px;
  --header-height-scrolled: 70px;
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-subtle: 0 2px 10px rgba(0, 0, 0, 0.04);
  --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-dropdown: 0 10px 30px rgba(0, 0, 0, 0.12);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-pill: 50px;
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

/* Thai Language Typography Override */
html[lang="th"],
html[lang="th"] body {
  font-family: 'Prompt', 'Sarabun', -apple-system, BlinkMacSystemFont, sans-serif;
}


body {
  font-family: var(--font-body);
  color: var(--color-text-dark);
  background-color: var(--color-bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6, .font-serif {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--color-text-main);
  letter-spacing: 0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Demo / Showcase Body Section */
.hero-preview {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)); 
  color: #ffffff;
  padding: 120px 24px 80px;
}

.hero-content {
  max-width: 780px;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #F7D59A;
  margin-bottom: 16px;
  display: inline-block;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 24px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
  font-weight: 300;
}

.demo-section {
  padding: 80px 0;
  background-color: var(--color-bg-white);
}

.demo-section:nth-child(even) {
  background-color: var(--color-bg-light);
}

.section-badge {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 12px;
  font-weight: 600;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--color-text-main);
  margin-bottom: 20px;
}
