/* ============================================================
   TM — TREND MAKER BRAND
   Shared design system for all language landing pages
   ============================================================ */

:root {
  --bg: #0A0A0A;
  --bg-alt: #111110;
  --surface: #161615;
  --ink: #F5F3EC;
  --ink-dim: #B9B6AC;
  --muted: #7C7A72;
  --gold: #C9A227;
  --gold-light: #E8CC6B;
  --gold-dim: #6E5B18;
  --hairline: rgba(201, 162, 39, 0.22);
  --hairline-strong: rgba(201, 162, 39, 0.45);

  --serif: 'Playfair Display', 'Noto Serif SC', serif;
  --sans: 'Inter', 'Noto Sans SC', sans-serif;

  --container: 1180px;
  --gutter: clamp(24px, 5vw, 72px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 1.5px solid var(--gold-light);
  outline-offset: 4px;
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px var(--gutter);
  background: linear-gradient(to bottom, rgba(10,10,10,0.92) 40%, transparent);
  backdrop-filter: blur(2px);
}

.nav__brand {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.nav__brand .nav__name {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 0.08em;
  color: var(--ink);
  font-weight: 600;
}
.nav__brand .nav__name span { color: var(--gold); }
.nav__brand .nav__tagline {
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-top: 5px;
}

.nav__links {
  display: flex;
  gap: clamp(18px, 3vw, 40px);
  align-items: center;
}

.nav__links a {
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color 0.25s ease;
  white-space: nowrap;
}
.nav__links a:hover { color: var(--gold-light); }

.nav__right {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 30px);
}

.nav__langrow {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav__langrow a {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  border: 1px solid var(--hairline);
  padding: 5px 8px;
  border-radius: 2px;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.nav__langrow a.is-current { color: var(--gold-light); border-color: var(--gold); }
.nav__langrow a:hover { border-color: var(--gold); color: var(--gold-light); }

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__brand .nav__tagline { display: none; }
}
@media (max-width: 560px) {
  .nav__langrow a { padding: 4px 6px; font-size: 9.5px; }
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 140px var(--gutter) 100px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 20%, rgba(201,162,39,0.10), transparent 70%),
    var(--bg);
}

.hero__eyebrow {
  font-size: 12.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.15s forwards;
}

.hero__headline {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(38px, 6.4vw, 84px);
  line-height: 1.08;
  max-width: 16ch;
  color: var(--ink);
  opacity: 0;
  animation: fadeUp 1s ease 0.35s forwards;
}

.hero__rule {
  width: 0;
  height: 1px;
  background: var(--gold);
  margin: 34px auto;
  animation: drawLine 1.1s ease 1s forwards;
}

.hero__sub {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--ink-dim);
  max-width: 46ch;
  line-height: 1.75;
  opacity: 0;
  animation: fadeUp 1s ease 0.55s forwards;
}

.hero__cta {
  margin-top: 44px;
  opacity: 0;
  animation: fadeUp 1s ease 0.75s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes drawLine {
  from { width: 0; }
  to   { width: 64px; }
}

.btn {
  display: inline-block;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid var(--hairline-strong);
  padding: 16px 36px;
  border-radius: 2px;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.btn:hover {
  background: var(--gold);
  color: #0A0A0A;
  border-color: var(--gold);
}

/* ---------- MARQUEE ---------- */
.marquee {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
  padding: 22px 0;
  background: var(--bg-alt);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: scroll 26s linear infinite;
}
.marquee__track span {
  font-family: var(--serif);
  font-size: clamp(18px, 2.4vw, 26px);
  color: var(--gold-dim);
  padding-inline: 28px;
  white-space: nowrap;
  letter-spacing: 0.04em;
}
.marquee__track span:nth-child(odd) { color: var(--gold); }

@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
[dir="rtl"] .marquee__track { animation-direction: reverse; }

/* ---------- SECTION SHELL ---------- */
section { position: relative; }
.section {
  padding: clamp(80px, 12vw, 150px) 0;
}
.section__eyebrow {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  display: block;
}
.section__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 44px);
  max-width: 20ch;
  margin-bottom: 20px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- SERVICES ---------- */
.services__head { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.services__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
@media (max-width: 780px) {
  .services__grid { grid-template-columns: 1fr; }
}

.service {
  background: var(--bg);
  padding: 48px 44px;
  transition: background 0.35s ease;
}
.service:hover { background: var(--bg-alt); }

.service__label {
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 22px;
}
.service__title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 30px);
  color: var(--gold-light);
  margin-bottom: 16px;
}
.service__desc {
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.75;
  max-width: 42ch;
}

/* ---------- PHILOSOPHY ---------- */
.philosophy {
  background: var(--bg-alt);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.philosophy__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
@media (max-width: 860px) {
  .philosophy__grid { grid-template-columns: 1fr; }
}
.philosophy__quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.45;
  color: var(--ink);
}
.philosophy__quote::before { content: '\201C'; color: var(--gold); }
.philosophy__quote::after { content: '\201D'; color: var(--gold); }

.philosophy__body p {
  color: var(--ink-dim);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 34px;
}

.pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--hairline);
}
.pillars span {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 16px 22px 16px 0;
  border-bottom: 1px solid var(--hairline);
  flex: 1 1 auto;
}

.founder {
  margin-top: 28px;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.founder strong { color: var(--ink-dim); font-weight: 500; }

/* ---------- CONTACT ---------- */
.contact {
  text-align: center;
  padding: clamp(90px, 14vw, 160px) 0;
}
.contact__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 4.6vw, 52px);
  max-width: 18ch;
  margin: 0 auto 22px;
}
.contact__sub {
  color: var(--ink-dim);
  max-width: 48ch;
  margin: 0 auto 44px;
  font-size: 16px;
  line-height: 1.75;
}

.form {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}
[dir="rtl"] .form { text-align: right; }

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 560px) {
  .form__row { grid-template-columns: 1fr; }
}

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}
.field input,
.field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--hairline);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  padding: 13px 15px;
  border-radius: 2px;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: #1a1a18;
}
.field textarea { resize: vertical; min-height: 120px; }
.field--hidden { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form__submit {
  margin-top: 8px;
  width: 100%;
  background: transparent;
  cursor: pointer;
  font-family: var(--sans);
}
@media (min-width: 561px) {
  .form__submit { width: auto; }
}

.form__note {
  margin-top: 22px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.form__note a { color: var(--gold-light); border-bottom: 1px solid var(--hairline-strong); }

.banner {
  display: none;
  max-width: 560px;
  margin: 0 auto 28px;
  padding: 14px 18px;
  border: 1px solid var(--hairline-strong);
  border-radius: 2px;
  font-size: 14px;
  text-align: center;
}
.banner.is-visible { display: block; }
.banner--ok { color: var(--gold-light); border-color: var(--gold); }
.banner--err { color: #E8A0A0; border-color: rgba(232,160,160,0.5); }

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--hairline);
  padding: 44px var(--gutter) 40px;
}
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer__brand .l1 {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--ink);
  font-weight: 600;
}
.footer__brand .l2 {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gold);
}
.footer__brand .l3 {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.footer__langs {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.footer__langs a {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  border: 1px solid var(--hairline);
  padding: 5px 10px;
  border-radius: 2px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.footer__langs a.is-current { color: var(--gold-light); border-color: var(--gold); }
.footer__langs a:hover { color: var(--gold-light); border-color: var(--gold); }

.footer__copy {
  width: 100%;
  font-size: 12px;
  color: var(--muted);
  margin-top: 18px;
  letter-spacing: 0.02em;
}

/* ---------- ARABIC / RTL ADJUSTMENTS ---------- */
html[lang="ar"] { --serif: 'Amiri', 'Playfair Display', serif; --sans: 'Cairo', 'Inter', sans-serif; }
html[lang="ar"] .hero__headline,
html[lang="ar"] .section__title,
html[lang="ar"] .service__title,
html[lang="ar"] .contact__title { font-weight: 700; }
[dir="rtl"] .pillars span { padding: 16px 0 16px 22px; }
[dir="rtl"] .philosophy__quote::before { content: '\201D'; }
[dir="rtl"] .philosophy__quote::after { content: '\201C'; }

/* ---------- CHINESE ADJUSTMENTS ---------- */
html[lang="zh"] { --serif: 'Noto Serif SC', serif; --sans: 'Noto Sans SC', sans-serif; }
html[lang="zh"] .hero__eyebrow,
html[lang="zh"] .section__eyebrow,
html[lang="zh"] .service__label { letter-spacing: 0.18em; }

/* ---------- RUSSIAN (uses same Latin-capable fonts, no override needed) ---------- */
