/* ============================================================
   KOKI KOI FARM — Shared Stylesheet
   Japanese Premium Aesthetic · White/Cream + Red/Black/Indigo
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@200;300;400;700;900&family=Cinzel:wght@400;600;700&family=Sarabun:wght@200;300;400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@100..900&display=swap');
:root {
  /* Core palette */
  --white:       #FFFFFF;
  --off-white:   #FDFCF8;
  --cream:       #F5F0E8;
  --cream-deep:  #EDE5D4;

  --red:         #C0392B;
  --red-deep:    #8B1A1A;
  --red-mid:     #D44333;

  --black:       #0E0E0E;
  --ink:         #1A1612;
  --ink-soft:    #2E2420;
  --ink-light:   #5C4F45;

  --indigo:      #1B2A5E;
  --indigo-mid:  #2C3E8A;
  --indigo-light:#3D5A9B;
  --navy:        #0D1B3E;

  --gold:        #C9A84C;
  --gold-light:  #E8C96A;

  --border-light: rgba(26,22,18,0.08);
  --border-red:   rgba(192,57,43,0.2);
  --border-gold:  rgba(201,168,76,0.22);

  /* Typography scale */
  --fs-xxs:  11px;
  --fs-xs:   11px;
  --fs-sm:   13px;
  --fs-base: 15px;
  --fs-md:   18px;
  --fs-lg:   24px;
  --fs-xl:   32px;
  --fs-2xl:  44px;
  --fs-3xl:  60px;
  --fs-hero: clamp(48px, 7vw, 96px);

  /* Spacing */
  --section-py: 120px;
  --section-px: 80px;
  --nav-h:      80px;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 
    'Noto Sans Thai',       /* ภาษาไทยใช้ตัวนี้ก่อนเลย – สวย ทันสมัย Loopless */
    'Sarabun',              /* fallback ไทยถ้า Noto Sans Thai โหลดไม่ทัน */
    'Noto Serif JP',        /* ตัวอักษรญี่ปุ่น/คันจิ */
    'Cinzel', serif;        /* latin/อังกฤษ fallback สุดท้าย */
  background: var(--white);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── CUSTOM CURSOR ── */
/* .cursor {
  width: 10px; height: 10px;
  background: var(--red); border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  mix-blend-mode: multiply;
  transition: transform 0.12s ease;
}
.cursor-ring {
  width: 38px; height: 38px;
  border: 1.5px solid var(--red); border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  transition: transform 0.36s cubic-bezier(0.175,0.885,0.32,1.275), opacity 0.25s;
} */

/* ── NAVIGATION ── */
.main-nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--section-px);
  transition: background 0.4s, box-shadow 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.main-nav.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border-light);
  box-shadow: 0 1px 24px rgba(26,22,18,0.05);
}

/* Logo */
.nav-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nav-logo-badge {
  width: 46px; height: 46px;
  border: 2px solid var(--red); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Noto Serif JP', serif;
  font-size: 20px; color: var(--red);
  position: relative; overflow: hidden;
  transition: color 0.3s;
}
.nav-logo-badge::after {
  content: ''; position: absolute; inset: 0;
  background: var(--red);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.35s cubic-bezier(0.76,0,0.24,1);
}
.nav-logo-badge:hover::after { transform: scaleY(1); }
.nav-logo-badge span { position: relative; z-index: 1; transition: color 0.3s; }
.nav-logo:hover .nav-logo-badge span { color: var(--white); }

.nav-brand { display: flex; flex-direction: column; gap: 1px; }
.nav-brand-en {
  font-family: 'Cinzel', serif;
  font-size: var(--fs-sm); font-weight: 700;
  color: var(--ink); letter-spacing: 0.22em;
  text-transform: uppercase;
}
.nav-brand-jp {
  font-family: 'Noto Serif JP', serif;
  font-size: 10px; color: var(--red); letter-spacing: 0.18em;
}

/* Nav links */
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-family: 'Cinzel', serif;
  font-size: var(--fs-xxs); font-weight: 400;
  letter-spacing: 0.24em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
  position: relative; padding-bottom: 4px;
  transition: color 0.3s;
}
.nav-links a::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; width: 0; height: 1px;
  background: var(--red); transition: width 0.35s ease;
}
.nav-links a:hover { color: var(--red); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--red); }

/* Nav CTA */
.nav-cta {
  font-family: 'Cinzel', serif;
  font-size: var(--fs-xxs); letter-spacing: 0.22em;
  text-transform: uppercase; text-decoration: none;
  color: var(--white); background: var(--red);
  padding: 11px 26px; cursor: none;
  display: flex; align-items: center; gap: 8px;
  transition: background 0.3s;
}
.nav-cta:hover { background: var(--red-deep); }

/* ── SECTION LABELS (shared) ── */
.sec-label {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 16px;
}
.sec-label-line { width: 36px; height: 1px; background: var(--red); flex-shrink: 0; }
.sec-label-text {
  font-weight: bold;
  font-size: 16px;  
 color: var(--red);
}

.sec-title-jp {
  font-family: 'Noto Serif JP', serif;
  font-size: var(--fs-sm); font-weight: 300;
  /* color: var(--indigo); letter-spacing: 0.28em; */
  margin-bottom: 10px;
}
.sec-title {
  font-family: 'Noto Sans Thai', 'Sarabun', 'Cinzel', sans-serif;
  font-size: clamp(28px, 3.2vw, 44px); font-weight: 700;
  color: var(--ink); line-height: 1.25;
  letter-spacing: 0.01em; margin-bottom: 28px;
}
.sec-title-center { text-align: center; }

/* ── BUTTONS (shared) ── */
.btn-red {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--red); color: var(--white);
  font-size: 16px; 
  padding: 15px 38px; text-decoration: none;
  position: relative; overflow: hidden; cursor: none;

}
.btn-red::before {
  content: ''; position: absolute; inset: 0;
  background: var(--red-deep);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.btn-red:hover::before { transform: scaleX(1); }
.btn-red span { position: relative; z-index: 1; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'Cinzel', serif;
  font-size: var(--fs-xxs); letter-spacing: 0.25em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 3px; cursor: none;
  transition: color 0.3s, border-color 0.3s, gap 0.3s;
}
.btn-ghost:hover { color: var(--red); border-color: var(--red); gap: 18px; }
.btn-arrow {
  width: 28px; height: 1px; background: currentColor;
  position: relative; flex-shrink: 0;
}
.btn-arrow::after {
  content: ''; position: absolute;
  right: 0; top: -3px; width: 6px; height: 6px;
  border-right: 1px solid currentColor;
  border-top: 1px solid currentColor;
  transform: rotate(45deg);
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.rd1 { transition-delay: 0.08s; }
.rd2 { transition-delay: 0.18s; }
.rd3 { transition-delay: 0.28s; }
.rd4 { transition-delay: 0.38s; }

/* ── FOOTER STYLES ──
   All footer styles live in footer.php <style> block for encapsulation.
   This rule ensures the white background is set even before that block loads. */
.site-footer { background: #fff; position: relative; overflow: hidden; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  :root {
    --section-px: 32px;
    --section-py: 80px;
  }
  .main-nav { padding: 0 32px; }
  .nav-links { display: none; }
}
