/* ============================================================
   ZILLI Landing — styles
   Converted from the Claude Design .dc.html reactive component.
   Responsive: 3 tiers matching the design
     - phone   : max-width 600px
     - tablet  : 601px – 1024px
     - desktop : >= 1025px
   Typography: matches the original design sizes (no +20% bump).
   Header & footer logo +20% (matches updated design).
   ============================================================ */

:root {
  /* palette */
  --navy: #081F2C;
  --gold: #AA7F2E;
  --muted: #6B6558;
  --muted-dark: #A9B4BD;
  --border-light: #ECE8E0;
  --sand-bg: #F7F5F1;

  /* responsive scale — DESKTOP defaults */
  --header-h: 66px;
  --header-pad: 0 40px;
  --header-logo-h: 55px;   /* was 46 → +20% */
  --hero-logo-h: 210px;
  --hero-aspect: 16 / 10;
  --veil-logo-top: 31.25vw;   /* half of hero height at 16/10 */
  --intro-pad: 56px 40px 0;
  --intro-size: 16px;
  --section-pad-top: 110px;
  --section-pad-x: 100px;
  --story-intro-gap: 70px;
  --wide-img-gap: 90px;
  --h2-size: 40px;
  --h3-size: 23px;
  --prose-max: 1000px;   /* centered text blocks — widened per design, type unchanged */
}

/* TABLET 601–1024 */
@media (min-width: 601px) and (max-width: 1024px) {
  :root {
    --header-h: 60px;
    --header-pad: 0 28px;
    --header-logo-h: 46px;
    --hero-logo-h: 150px;
    --hero-aspect: 4 / 3;
    --veil-logo-top: 37.5vw;
    --intro-pad: 68px 88px 0;
    --intro-max: 945px;
    --intro-size: 16px;
    --section-pad-top: 88px;
    --section-pad-x: 48px;
    --story-intro-gap: 56px;
    --wide-img-gap: 72px;
    --h2-size: 34px;
    --h3-size: 21px;
  }
}

/* PHONE ≤600 */
@media (max-width: 600px) {
  :root {
    --header-h: 56px;
    --header-pad: 0 18px;
    --header-logo-h: 38px; /* was 32 → +20% */
    --hero-logo-h: 108px;
    --hero-aspect: 5 / 6;
    --veil-logo-top: 60vw;
    --intro-pad: 40px 24px 0;
    --intro-size: 15px;
    --section-pad-top: 72px;
    --section-pad-x: 24px;
    --story-intro-gap: 48px;
    --wide-img-gap: 60px;
    --h2-size: 30px;
    --h3-size: 20px;
  }
}

@font-face {
  font-family: 'Jeko';
  src: url('assets/fonts/JekoVariable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: #FFFFFF;
}

::selection {
  background: var(--gold);
  color: #FFFFFF;
}

a { color: inherit; }
input, textarea, button, select { font-family: inherit; }

.page {
  font-family: 'Jeko', sans-serif;
  background: #FFFFFF;
  color: var(--navy);
  width: 100%;
  position: relative;
  overflow-x: hidden;
}

/* Vietnamese copy is set in Montserrat (Jeko has limited VN glyphs) */
.page.lang-vi {
  font-family: 'Montserrat', sans-serif;
  font-size-adjust: 0.5;
  font-size-adjust: ex-height 0.5;
}

.section,
.contact-inner { scroll-margin-top: calc(var(--header-h) + 16px); }

/* gold-foil text (eyebrows) */
.gold-foil {
  background: linear-gradient(115deg, #7A5A1E 0%, #D4AF6A 30%, #F4E2B8 48%, #AA7F2E 65%, #8C6423 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* placeholder tiles (design mockup blocks) */
.ph {
  background: repeating-linear-gradient(135deg, #EDE9E0, #EDE9E0 11px, #F5F2EA 11px, #F5F2EA 22px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.ph.wide { aspect-ratio: 21 / 9; }
.ph.tall { aspect-ratio: 4 / 5; }
.ph--sand {
  background: repeating-linear-gradient(135deg, #E3DDD1, #E3DDD1 11px, #EDE8DE 11px, #EDE8DE 22px);
}
.ph span {
  font-family: 'Jeko', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #A39C8C;
}

/* lang-dependent styling (was {{ caps }} / {{ eyebrowWeight }} in the original) */
.lang-en .caps { text-transform: uppercase; }
.lang-vi .caps { text-transform: none; }
.lang-en .eyebrow { font-weight: 800; }
.lang-vi .eyebrow { font-weight: 700; }

/* language switch — soft dissolve (fade + whisper of blur) */
[data-i18n],
[data-i18n-placeholder] {
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.lang-swapping [data-i18n],
.lang-swapping [data-i18n-placeholder] {
  opacity: 0;
  filter: blur(4px);
  transition-duration: 0.4s;
}
@media (prefers-reduced-motion: reduce) {
  [data-i18n],
  [data-i18n-placeholder] { transition: none; }
}

/* ---------------- INTRO VEIL (page-load reveal) ---------------- */
#z-veil {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #0A0A0A;
  pointer-events: none;
  animation: zVeil 2.6s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
#z-veil img {
  position: absolute;
  top: min(var(--veil-logo-top), calc(100vh - var(--hero-logo-h)));
  left: 50%;
  transform: translate(-50%, -50%);
  height: var(--hero-logo-h);
  filter: brightness(0) invert(1) drop-shadow(0 2px 24px rgba(0,0,0,0.25));
  animation: zMark 2.6s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}
#z-veil .z-veil-line {
  position: absolute;
  top: calc(min(var(--veil-logo-top), calc(100vh - var(--hero-logo-h))) + var(--hero-logo-h) * 0.63);
  left: 50%;
  width: calc(var(--hero-logo-h) * 0.86);
  margin-left: calc(var(--hero-logo-h) * -0.43);
  height: 1px;
  background: linear-gradient(90deg, transparent, #D4AF6A 50%, transparent);
  transform-origin: center;
  animation: zLine 2.6s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}
@keyframes zVeil {
  0%, 42% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}
@keyframes zMark {
  0% { opacity: 0; }
  38%, 100% { opacity: 1; }
}
@keyframes zLine {
  0% { transform: scaleX(0); }
  55% { transform: scaleX(1); }
  100% { transform: scaleX(1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  #z-veil { display: none; }
}

/* ---------------- HEADER ---------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: var(--header-pad);
  height: var(--header-h);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}
.site-header.revealed {
  transform: translateY(0);
  opacity: 1;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  grid-column: 1;
}

.nav {
  display: flex;
  gap: 28px;
}
.nav a {
  text-decoration: none;
  color: var(--navy);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--gold); }

.logo-center,
.logo-mobile { align-items: center; }
.logo-center { display: flex; justify-content: center; grid-column: 2; }
.logo-mobile { display: none; }
.site-header img { height: var(--header-logo-h); display: block; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 26px; height: 26px;
  border: none; background: transparent; padding: 0;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 22px; height: 1px;
  background: var(--navy);
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.lang-switch {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  grid-column: 3;
}
.lang-btn {
  border: none; background: transparent;
  color: #B9B2A2;
  font-size: 12px; font-weight: 400;
  letter-spacing: 1px;
  padding: 6px 8px;
  cursor: pointer;
}
.lang-btn.is-active { color: var(--navy); font-weight: 600; }
.lang-sep { color: #D8D2C6; font-size: 12px; }

/* ---------------- MOBILE MENU ---------------- */
.mobile-menu {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0; bottom: 0;
  z-index: 998;
  background: #FFFFFF;
  display: none;
  flex-direction: column;
  padding: 40px 24px;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  text-decoration: none;
  color: var(--navy);
  font-size: 26px;
  font-weight: 600;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
}

/* ---------------- HERO ---------------- */
.hero {
  position: relative;
  aspect-ratio: var(--hero-aspect);
  overflow: hidden;
  background: #0A0A0A;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}
.hero-slide.is-active { opacity: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.45) 100%);
}
.hero-logo {
  position: relative;
  text-align: center;
  will-change: transform, opacity;
}
.hero-logo img {
  height: var(--hero-logo-h);
  display: block;
  margin: 0 auto;
  filter: brightness(0) invert(1) drop-shadow(0 2px 24px rgba(0,0,0,0.25));
}
.hero-dots {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 12px;
  z-index: 2;
}
.hero-dot {
  width: 34px; height: 3px;
  border: none; padding: 0; cursor: pointer;
  background: rgba(255,255,255,0.4);
  transition: background 0.4s ease;
}
.hero-dot.is-active { background: #FFFFFF; }

/* ---------------- INTRO ---------------- */
.intro {
  max-width: 1070px;
  margin: 0 auto;
  padding: var(--intro-pad);
}
.intro p {
  font-size: var(--intro-size);
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
  font-weight: 300;
  text-align: center;
}

/* ---------------- SECTIONS ---------------- */
.section { padding: var(--section-pad-top) var(--section-pad-x) 0; }
.section--dark {
  background: var(--navy);
  color: #FFFFFF;
  padding: var(--section-pad-top) 0 0;
}
.section--sand {
  background: var(--sand-bg);
  padding: var(--section-pad-top) var(--section-pad-x);
}

.section-head {
  max-width: var(--prose-max);
  margin: 0 auto var(--story-intro-gap);
  text-align: center;
}
.section--dark .section-head {
  max-width: var(--prose-max);
  padding: 0 24px;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.section-head h2,
.contact-inner h2 {
  font-weight: 700;
  font-size: var(--h2-size);
  line-height: 1.2;
  margin: 0 0 26px;
}
.section-head p {
  font-size: 15px;
  line-height: 2;
  color: var(--muted);
  font-weight: 300;
  margin: 0;
}
.section--dark .section-head p { line-height: 1.9; color: var(--muted-dark); }
@media (max-width: 600px) {
  .section--dark .section-head p { text-wrap: balance; }
}

/* brand story: title block + body split so the image can sit between them on mobile */
.section-head.brand-head { margin-bottom: 0; }
.brand-body {
  max-width: var(--prose-max);
  margin: 0 auto 22px;
  text-align: center;
  font-size: 15px;
  line-height: 2;
  color: var(--muted);
  font-weight: 300;
}
.brand-body:last-of-type { margin-bottom: var(--story-intro-gap); }

/* ---------------- BRAND STORY ---------------- */
.storyrow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
  margin-bottom: 110px;
}
.story-text { text-align: center; }
.story-text h3 {
  white-space: pre-line;
  font-weight: 700;
  font-size: var(--h3-size);
  letter-spacing: 0.9px;
  line-height: 1.3;
  margin: 0 0 18px;
  text-transform: uppercase;
}
.rule {
  width: 40px; height: 1px;
  background: var(--gold);
  margin: 0 auto 26px;
}
.story-text p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
  font-weight: 300;
  margin: 0;
}

@media (min-width: 1020px) {
  .story-text p { text-wrap: balance; }
}

.imgcol {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.imgcol img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.imgwide {
  aspect-ratio: 21 / 9;
  overflow: hidden;
}
.imgwide img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.imgwide--figure img { object-position: center top; }

/* ---------------- SOCIAL ---------------- */
.socialgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--section-pad-x) var(--section-pad-top);
}
.social-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 34px 26px;
  border: 1px solid #23425A;
  text-decoration: none;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.social-card:hover { border-color: var(--gold); background: #0C2632; }
.social-num {
  font-size: 12px;
  letter-spacing: 2px;
  color: #6E828F;
}
.social-name { font-size: 20px; font-weight: 600; }
.social-desc {
  font-size: 13px;
  color: var(--muted-dark);
  font-weight: 300;
  margin-top: auto;
}

/* ---------------- CONTACT ---------------- */
.contact-inner {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}
.contact-inner h2 { margin-bottom: 40px; }
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  text-align: left;
}
.contact-form input,
.contact-form textarea {
  border: none;
  border-bottom: 1px solid var(--navy);
  background: transparent;
  padding: 12px 4px;
  font-size: 16px;
  color: var(--navy);
  outline: none;
}
.contact-form textarea { resize: none; }
.submit-btn {
  margin-top: 8px;
  background: #000000;
  color: #FFFFFF;
  border: none;
  padding: 16px;
  font-size: 13px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: background 0.25s ease;
}
.submit-btn:hover { background: var(--navy); }
.submit-btn:disabled { opacity: 0.55; cursor: default; }

/* form validation */
.contact-form .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field-error {
  font-size: 12px;
  letter-spacing: 0.3px;
  color: #B4433B;
  min-height: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.field-error.show { opacity: 1; }
.contact-form input.invalid,
.contact-form textarea.invalid { border-bottom-color: #B4433B; }

.toast {
  position: fixed;
  font-family: 'Jeko', sans-serif;
  left: 50%;
  bottom: 40px;
  transform: translate(-50%, 16px);
  z-index: 1000;
  max-width: calc(100% - 48px);
  padding: 18px 30px;
  background: var(--navy);
  color: #FFFFFF;
  border-top: 2px solid var(--gold);
  box-shadow: 0 18px 50px rgba(8, 31, 44, 0.28);
  font-size: 13px;
  letter-spacing: 0.5px;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast.error { border-top-color: #B4433B; }
html[lang="vi"] .toast { font-family: 'Montserrat', sans-serif; }
@media (prefers-reduced-motion: reduce) {
  .toast { transition: opacity 0.2s ease; }
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ---------------- FOOTER ---------------- */
.site-footer {
  background: #000000;
  color: #FFFFFF;
  padding: 56px var(--section-pad-x);
  text-align: center;
}
.site-footer img {
  height: 62px;
  display: inline-block;
  filter: brightness(0) invert(1);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 80px;
  align-items: center;
  text-align: left;
  max-width: 1080px;
  margin: 40px auto 0;
}
.footer-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-info p {
  font-size: 15px;
  font-weight: 300;
  color: #D8D3C8;
  letter-spacing: 0.3px;
  margin: 0;
}
.footer-address {
  line-height: 1.7;
  white-space: pre-line;
}
.footer-map {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid #23425A;
}
.footer-map iframe {
  width: 100%; height: 100%;
  border: none;
  display: block;
  filter: invert(0.92) hue-rotate(185deg) saturate(0.55) sepia(0.28) brightness(0.95) contrast(1.05);
  pointer-events: none;
}
.footer-distrib {
  font-size: 15px;
  font-weight: 300;
  color: #8A8578;
  letter-spacing: 0.3px;
  margin: 42px 0 0;
}
.footer-copy {
  font-size: 13px;
  font-weight: 300;
  color: #6B6558;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 30px 0 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* TABLET 601–1024 */
@media (min-width: 601px) and (max-width: 1024px) {
  .storyrow { gap: 48px; margin-bottom: 84px; }
  .footer-grid { gap: 44px; }
  .socialgrid { gap: 18px; }
}

/* PHONE ≤600 */
@media (max-width: 600px) {
  .nav { display: none; }
  .burger { display: flex; }
  .logo-center { display: none; }
  .logo-mobile { display: flex; }
  .mobile-menu { display: flex; }

  .hero-slide[data-slide="0"] { object-position: 70% center; }
  .hero-slide[data-slide="1"] { object-position: 72% center; }
  .hero-slide[data-slide="2"] { object-position: 20% 120%; }

  /* mobile: show the atelier image right under the title, above the body text */
  .brand-intro { display: flex; flex-direction: column; }
  .brand-intro .imgwide--figure { order: 1; }
  .brand-intro .brand-body { order: 2; }

  .storyrow {
    grid-template-columns: 1fr;
    gap: 34px;
    margin-bottom: 72px;
  }
  .storyrow .imgcol { order: -1; }

  .socialgrid { grid-template-columns: 1fr; gap: 16px; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
    margin-top: 34px;
  }
  .footer-info { gap: 12px; }
  .footer-address { white-space: normal; }
  .footer-info p,
  .footer-distrib { font-size: 14px; }
  .footer-distrib { margin-top: 30px; }

  .contact-form input,
  .contact-form textarea { border-bottom-width: 0.5px; }
}

@media (min-width: 1025px) {
  .brand-body { max-width: 1040px; }
}