/* Self-hosted fonts — same files as the main site (index/phase1/welcome) */
@font-face{font-family:'Libre Baskerville';src:url('LibreBaskerville-Regular.woff2') format('woff2'),url('LibreBaskerville-Regular.woff') format('woff');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Libre Baskerville';src:url('LibreBaskerville-Bold.woff2') format('woff2'),url('LibreBaskerville-Bold.woff') format('woff');font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:'Libre Baskerville';src:url('LibreBaskerville-Italic.woff2') format('woff2'),url('LibreBaskerville-Italic.woff') format('woff');font-weight:400;font-style:italic;font-display:swap}

/* PHUDARA sale page — palette standardised to the main site (index/phase1/welcome) */
:root {
  --charcoal: #525254;      /* brand --dark */
  --ink: #3e3a3a;           /* brand --ink */
  --stone: #3e3a3a;
  --slate: #859295;
  --cream: #f4f4f3;         /* brand --bg (page background) */
  --sand: #ffffff;          /* brand --paper (alternate sections) */
  --white: #ffffff;
  --gold: #eb9942;          /* brand --gold */
  --gold-soft: #c97a28;     /* brand --gold-deep (accent text on light) */
  --gold-pale: #f7e2c9;     /* brand --gold-pale */
  --orange: #eb9942;        /* brand --gold */
  --orange-deep: #c97a28;   /* brand --gold-deep */
  --line: rgba(62, 58, 58, 0.12);
  --line-light: rgba(255, 255, 255, 0.18);
  --error: #b3261e;

  --serif: 'Libre Baskerville', 'Noto Serif Thai', Georgia, 'Times New Roman', serif;
  /* match index/phase1/welcome: one elegant serif throughout (Thai keeps a serif face) */
  --sans: 'Libre Baskerville', 'Noto Serif Thai', Georgia, 'Times New Roman', serif;

  --radius: 4px;
  --header-h: 72px;
}

/* fonts per language: the Latin/Thai web fonts have no Cyrillic or Chinese glyphs */
html[lang='ru'] {
  --serif: Georgia, 'Times New Roman', 'Noto Serif', serif;
  --sans: Georgia, 'Times New Roman', 'Noto Serif', serif;
}
html[lang^='zh'] {
  --serif: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', 'Noto Sans CJK SC', sans-serif;
  --sans: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', 'Noto Sans CJK SC', sans-serif;
}
html[lang^='zh'] .eyebrow, html[lang^='zh'] .nav-links a, html[lang^='zh'] .hero-note-inner, html[lang^='zh'] .footer { letter-spacing: 0.12em; }
html[lang='th'] .eyebrow, html[lang='th'] .nav-links a, html[lang='th'] .hero-note-inner, html[lang='th'] .footer { letter-spacing: 0.04em; }

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 0.9em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.25; margin: 0 0 0.6em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }
.center { text-align: center; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--orange); color: var(--ink); padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

/* ---------- eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px; text-decoration: none;
}
.eyebrow::before { content: ''; width: 34px; height: 1px; background: currentColor; }
.center .eyebrow::after { content: ''; width: 34px; height: 1px; background: currentColor; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 50px; padding: 12px 28px;
  border: 1px solid transparent; border-radius: 999px;
  font-family: var(--sans); font-size: 1rem; font-weight: 600; line-height: 1.3; text-decoration: none;
  cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--orange); color: var(--ink); box-shadow: 0 6px 18px rgba(235, 153, 66, 0.35); }
.btn-accent:hover { background: var(--orange-deep); }
.btn-dark { background: var(--charcoal); color: var(--cream); }
.btn-dark:hover { background: var(--ink); }
.btn-outline { border-color: var(--charcoal); color: var(--charcoal); }
.btn-outline:hover { background: var(--charcoal); color: var(--cream); }
.btn-light { background: var(--cream); color: var(--charcoal); }
.btn-outline-light { border-color: var(--line-light); color: var(--cream); }
.btn-outline-light:hover { border-color: var(--cream); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.cta-row.center { justify-content: center; }

/* ---------- header ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--charcoal); color: var(--cream); border-bottom: 1px solid var(--line-light); }
.nav { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; text-decoration: none; line-height: 1; margin-right: auto; }
.brand .brand-logo { height: 40px; width: auto; display: block; }
.brand strong { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; letter-spacing: 0.22em; }
.brand span { font-size: 0.66rem; letter-spacing: 0.36em; text-transform: uppercase; color: var(--gold-soft); margin-top: 4px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { text-decoration: none; font-family: var(--serif); font-size: 0.86rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 8px 0; border-bottom: 1px solid transparent; }
.nav-links a:hover { border-bottom-color: var(--gold-soft); }
.lang-select {
  min-height: 38px; padding: 6px 30px 6px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-light); background-color: rgba(255, 253, 246, 0.1); color: var(--cream);
  font: inherit; font-size: 0.86rem; font-weight: 600; letter-spacing: 0.06em;
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--cream) 50%), linear-gradient(135deg, var(--cream) 50%, transparent 50%);
  background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%; background-size: 5px 5px; background-repeat: no-repeat;
}
.lang-select option { color: var(--ink); background: var(--cream); }
.nav-cta { min-height: 42px; padding: 8px 22px; font-size: 0.92rem; box-shadow: none; white-space: nowrap; }

/* ---------- hero video ---------- */
.hero { background: var(--charcoal); color: var(--cream); padding-top: 28px; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line-light); overflow: hidden; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-fallback { margin: 12px 0 0; padding-bottom: 20px; font-size: 0.88rem; text-align: center; color: rgba(255, 253, 246, 0.72); }
.video-fallback a { color: var(--gold-soft); }
.hero-note { background: var(--stone); border-top: 1px solid var(--line-light); }
.hero-note-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; padding-top: 14px; padding-bottom: 14px; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; }
.hero-note-inner b { font-weight: 600; color: var(--gold-soft); }

/* ---------- intro ---------- */
.intro { padding: 76px 0 84px; }
.lead { font-size: 1.15rem; margin-bottom: 0.5em; }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); margin: 48px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metric { display: flex; flex-direction: column-reverse; justify-content: flex-end; text-align: center; padding: 30px 14px; border-left: 1px solid var(--line); }
.metric:first-child { border-left: 0; }
.metric dd { margin: 0 0 6px; font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--charcoal); }
.metric dt { font-size: 0.86rem; letter-spacing: 0.04em; color: rgba(42, 40, 40, 0.7); }

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section.tint { background: var(--sand); }
.section.dark { background: var(--charcoal); color: var(--cream); }
.section.dark .eyebrow { color: var(--gold-soft); }
.section-head { margin: 0 auto 40px; }
.section-head p:last-child { margin-bottom: 0; }

.two-col { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: stretch; }
.panel { background: var(--cream); border: 1px solid var(--line); border-top: 3px solid var(--gold-soft); padding: 40px 38px; }

.checklist { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--line); }
.checklist li { position: relative; padding: 12px 0 12px 30px; border-bottom: 1px solid var(--line); }
.checklist li::before { content: ''; position: absolute; left: 4px; top: 1.15em; width: 12px; height: 6px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }

/* ---------- master plan ---------- */
.masterplan { margin: 0; }
.masterplan img { width: 100%; background: var(--white); border: 1px solid var(--line); }
.masterplan figcaption { margin-top: 16px; font-size: 0.86rem; line-height: 1.6; color: rgba(42, 40, 40, 0.72); text-align: center; }

/* ---------- gallery carousel ---------- */
.carousel { margin-top: 8px; }
.carousel-track {
  list-style: none; margin: 0; display: flex; gap: 24px;
  padding: 4px max(24px, calc((100vw - 1132px) / 2)) 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scroll-padding-inline: max(24px, calc((100vw - 1132px) / 2));
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 min(84vw, 560px); scroll-snap-align: start; }
.slide figure { margin: 0; }
.slide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line-light); }
.slide img.focus-top { object-position: 50% 12%; }
.slide figcaption { padding-top: 16px; }
.slide h3 { margin-bottom: 4px; color: var(--gold-soft); }
.slide p { margin: 0; font-size: 0.95rem; color: rgba(255, 253, 246, 0.8); }
.carousel-ui { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; }
.dots { display: flex; flex-wrap: wrap; gap: 4px; }
.dot { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.dot::before { content: ''; width: 18px; height: 2px; background: rgba(255, 253, 246, 0.32); transition: background-color 0.2s, width 0.2s; }
.dot[aria-current='true']::before { background: var(--orange); width: 26px; }
.carousel-buttons { display: flex; gap: 10px; }
.round { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-light); background: transparent; color: var(--cream); font-size: 1.5rem; line-height: 1; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.round:hover { background: var(--cream); color: var(--charcoal); }

/* ---------- official website band ---------- */
.band { background: var(--stone); color: var(--cream); }
.band-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.eyebrow-link { color: var(--gold-soft); }
.eyebrow-link:hover { color: var(--cream); }
.band-actions { display: flex; flex-direction: column; gap: 12px; }

/* ---------- form ---------- */
.form-card { background: var(--cream); border: 1px solid var(--line); border-top: 3px solid var(--orange); padding: 48px 44px; }
.form-card .section-head { margin-bottom: 30px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.field.full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; }
.field label { font-size: 0.92rem; font-weight: 600; margin-bottom: 6px; flex: 1; display: flex; align-items: flex-end; }
.req { color: var(--error); margin-left: 4px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 11px 14px;
  font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid rgba(53, 53, 53, 0.32); border-radius: var(--radius);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(42, 40, 40, 0.48); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(235, 153, 66, 0.45); outline-offset: 0; border-color: var(--orange-deep); }
.field [aria-invalid='true'] { border-color: var(--error); }
.field-error { margin: 6px 0 0; font-size: 0.86rem; color: var(--error); }
.field-error:empty { display: none; }
.form-status { margin: 20px 0 0; padding: 12px 16px; border-left: 3px solid var(--error); background: #fbeceb; color: var(--error); font-size: 0.95rem; }
.form-status:empty { display: none; }
#submitBtn { margin-top: 22px; }
.disclaimer { margin: 22px 0 0; font-size: 0.84rem; line-height: 1.65; color: rgba(42, 40, 40, 0.7); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: rgba(255, 253, 246, 0.7); text-align: center; padding: 28px 0; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- thank-you page ---------- */
.thanks { min-height: calc(100vh - var(--header-h) - 82px); display: grid; place-items: center; padding: 72px 0; }
.thanks .form-card { text-align: center; }
.thanks .cta-row { justify-content: center; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .two-col, .band-inner { grid-template-columns: 1fr; }
  .band-inner { gap: 28px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(3) { border-left: 0; }
  .metric:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .brand strong { font-size: 1.2rem; }
  .brand span { font-size: 0.56rem; letter-spacing: 0.28em; }
  .nav { gap: 10px; }
  .lang-select { padding-left: 10px; padding-right: 26px; font-size: 0.8rem; }
  .nav-cta { padding: 8px 16px; font-size: 0.86rem; }
  .hero { padding-top: 16px; }
  .intro { padding: 52px 0 60px; }
  .section { padding: 60px 0; }
  .panel, .form-card { padding: 30px 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; }
  .carousel-track { gap: 14px; padding-inline: 16px; scroll-padding-inline: 16px; }
  .hero-note-inner { font-size: 0.72rem; letter-spacing: 0.1em; }
}

@media (prefers-reduced-motion: reduce) {
  html, .carousel-track { scroll-behavior: auto; }
  .btn, .round, .dot::before { transition: none; }
}

@media (max-width: 480px) {
  .brand strong { font-size: 1.02rem; letter-spacing: 0.14em; }
  .brand span { display: none; }
  .nav { gap: 8px; }
  .lang-select { min-height: 36px; padding: 4px 22px 4px 9px; font-size: 0.76rem; background-position: calc(100% - 13px) 52%, calc(100% - 8px) 52%; }
  .nav-cta { min-height: 38px; padding: 6px 12px; font-size: 0.78rem; }
}
