/* ============================================================
   Yilai Meisen — static styles (no framework, no build)
   Drop-in for a Blade app. Colors from brand palette.
   ============================================================ */

:root {
  --red: #D22630;
  --red-dark: #b71e28;
  --ink: #111113;
  --bg: #ffffff;
  --muted: #f5f5f7;
  --gray: #56565b;
  --line: rgba(0, 0, 0, 0.07);
  --maxw: 1200px;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html[lang="zh"] { --font: "Noto Sans SC", "Helvetica Neue", Helvetica, Arial, sans-serif; }
html[lang="fa"] { --font: "Vazirmatn", "Helvetica Neue", Helvetica, Arial, sans-serif; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--red); color: #fff; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
}

/* ---------- Reveal animation (progressive enhancement) ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22, .61, .36, 1),
              transform .7s cubic-bezier(.22, .61, .36, 1);
}
html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease;
}
.nav.is-scrolled { box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06); }
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand__mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .02em;
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.brand__word { font-weight: 700; font-size: 14px; letter-spacing: .14em; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 30px);
}
.nav__menu > a {
  font-size: 15px;
  opacity: .82;
  transition: color .2s, opacity .2s;
}
.nav__menu > a:hover { color: var(--red); opacity: 1; }
.nav__menu > a.is-active { color: var(--red); opacity: 1; }
.nav__sep { width: 1px; height: 18px; background: rgba(0, 0, 0, 0.12); }

.langs { display: flex; align-items: center; gap: 12px; }
.langs button {
  border: none; background: none; cursor: pointer; padding: 0;
  font-family: inherit; font-size: 13px; color: var(--ink);
  opacity: .5; font-weight: 500; transition: color .2s, opacity .2s;
}
.langs button:hover { opacity: .85; }
.langs button.is-lang-active { color: var(--red); opacity: 1; font-weight: 700; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 14px 30px;
  border-radius: 980px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--red); }
.btn--ghost { background: transparent; color: var(--ink); padding: 14px 18px; }
.btn--ghost:hover { color: var(--red); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); }
.btn__arrow { font-size: 18px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .22em;
  color: var(--red); margin: 0 0 22px;
}
.section { padding: clamp(90px, 12vh, 140px) 0; }
.section--muted { background: var(--muted); }
.section--ink { background: var(--ink); color: #fff; }
.section-head { max-width: 720px; margin: 0 auto clamp(48px, 6vh, 72px); text-align: center; }
.section-head h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05; letter-spacing: -0.02em; font-weight: 800;
}
.section-head p {
  margin: 22px auto 0;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.5; color: var(--gray);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(90px, 14vh, 150px) clamp(20px, 5vw, 40px) clamp(60px, 8vh, 90px);
}
.hero__glow {
  position: absolute; top: -180px; left: 50%;
  transform: translateX(-50%);
  width: min(760px, 120vw); height: 700px;
  background: radial-gradient(circle at center, rgba(210, 38, 48, 0.16), rgba(210, 38, 48, 0) 68%);
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 1000px; margin: 0 auto; text-align: center; }
.hero h1 {
  margin: 0;
  font-size: clamp(44px, 8.5vw, 112px);
  line-height: .98; letter-spacing: -0.03em; font-weight: 800;
}
.hero h1 .accent { color: var(--red); }
.hero__sub {
  margin: 30px auto 0; max-width: 620px;
  font-size: clamp(17px, 2.1vw, 21px); line-height: 1.5; color: #4a4a4f;
}
.hero__actions {
  display: flex; flex-wrap: wrap; gap: 14px;
  justify-content: center; margin-top: 40px;
}
.hero__media {
  position: relative;
  max-width: var(--maxw);
  margin: clamp(56px, 7vh, 90px) auto 0;
  height: clamp(280px, 44vh, 520px);
  border-radius: 28px;
}

/* Page hero (inner pages) — smaller */
.pagehead { padding: clamp(80px, 12vh, 130px) 0 clamp(30px, 4vh, 50px); }
.pagehead .eyebrow { text-align: center; }
.pagehead h1 {
  margin: 0 auto;
  max-width: 900px; text-align: center;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02; letter-spacing: -0.025em; font-weight: 800;
}
.pagehead p {
  margin: 24px auto 0; max-width: 640px; text-align: center;
  font-size: clamp(16px, 2vw, 20px); line-height: 1.5; color: var(--gray);
}

/* ---------- Placeholder (imagery to be supplied) ---------- */
.ph {
  border-radius: 16px;
  background: repeating-linear-gradient(135deg, #ececef, #ececef 12px, #f5f5f7 12px, #f5f5f7 24px);
  display: flex; align-items: center; justify-content: center;
}
.ph--lg { border-radius: 28px; }
.ph__label {
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #9a9aa1;
  padding: 8px 12px; text-align: center;
}

/* ---------- Grids & cards ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }

.card {
  background: #fff;
  border-radius: 28px;
  padding: clamp(28px, 3vw, 44px);
  display: flex; flex-direction: column;
}
.card--muted { background: var(--muted); }
.card--bordered { border: 1px solid var(--line); }
.card__index { font-size: 15px; font-weight: 800; color: var(--red); letter-spacing: .04em; }
.card h3 { margin: 14px 0 0; font-size: clamp(22px, 2.6vw, 32px); font-weight: 700; letter-spacing: -0.01em; }
.card p { margin: 14px 0 0; font-size: 16px; line-height: 1.55; color: var(--gray); }
.card .ph { margin-top: auto; height: 168px; }
.card__link {
  margin-top: 22px; font-size: 15px; font-weight: 600; color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px; transition: color .2s;
}
.card__link:hover { color: var(--red); }

.tags { display: flex; flex-wrap: wrap; gap: 9px; margin: 22px 0 0; }
.tag {
  display: inline-flex; padding: 7px 14px; border-radius: 980px;
  background: #f2f2f4; color: #33333a; font-size: 13px; font-weight: 500;
}
.card--muted .tag { background: #fff; }
.tags--spaced { margin-bottom: 26px; }

/* ---------- Stats ---------- */
.stats {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(24px, 5vw, 72px); margin-top: clamp(48px, 7vh, 80px);
}
.stat { min-width: 150px; text-align: center; }
.stat__num {
  font-size: clamp(38px, 5vw, 62px); font-weight: 800; color: var(--red);
  letter-spacing: -0.02em; line-height: 1;
}
.stat__label {
  margin-top: 12px; font-size: 13px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: #7a7a80;
}

/* ---------- About lead ---------- */
.lead {
  max-width: 940px; margin: 0 auto; text-align: center;
}
.lead__text {
  margin: 0;
  font-size: clamp(26px, 3.6vw, 46px); line-height: 1.18;
  letter-spacing: -0.02em; font-weight: 600;
}
.lead__body {
  margin: 28px auto 0; max-width: 720px;
  font-size: clamp(16px, 2vw, 20px); line-height: 1.6; color: var(--gray);
}

/* ---------- CTA band ---------- */
.ctaband { text-align: center; }
.ctaband h2 {
  margin: 0; font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.05; letter-spacing: -0.02em; font-weight: 800;
}
.ctaband p { margin: 18px auto 32px; max-width: 520px; font-size: clamp(16px, 2vw, 19px); color: var(--gray); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}
.contact-grid h2 {
  margin: 0; font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.05; letter-spacing: -0.02em; font-weight: 800;
}
.contact-grid .sub {
  margin: 22px 0 0; font-size: clamp(16px, 2vw, 19px);
  line-height: 1.55; color: rgba(255, 255, 255, 0.62); max-width: 420px;
}
.contact-info { margin-top: 40px; display: flex; flex-direction: column; gap: 22px; }
.contact-info__label {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}
.contact-info__value { font-size: 18px; font-weight: 500; }
a.contact-info__value:hover { color: var(--red); }

.form-card {
  background: #1b1b1f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: clamp(26px, 3vw, 40px);
}
.form { display: flex; flex-direction: column; gap: 16px; }
.form input, .form textarea {
  width: 100%; padding: 15px 16px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--ink); color: #fff;
  font-family: inherit; font-size: 15px; outline: none;
}
.form input:focus, .form textarea:focus { border-color: var(--red); }
.form textarea { resize: vertical; min-height: 110px; }
.form input::placeholder, .form textarea::placeholder { color: rgba(255, 255, 255, 0.42); }
.form button { margin-top: 4px; padding: 15px; border-radius: 12px; }
.form-sent {
  min-height: 320px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; gap: 16px;
}
.form-sent__check {
  width: 54px; height: 54px; border-radius: 50%; background: var(--red);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.form-sent p { margin: 0; font-size: 19px; font-weight: 500; max-width: 300px; line-height: 1.5; }
.hidden { display: none !important; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #fff; padding: clamp(48px, 7vh, 70px) 0; }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
}
.footer .brand__word { color: #fff; }
.footer__tag { font-size: 13px; color: rgba(255, 255, 255, 0.4); margin-inline-start: 6px; }
.footer__rights { font-size: 13px; color: rgba(255, 255, 255, 0.4); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .nav__toggle { display: flex; }
  .nav__menu {
    position: absolute;
    top: 60px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    padding: 22px clamp(20px, 5vw, 40px) 28px;
    display: none;
  }
  .nav.is-open .nav__menu { display: flex; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav__sep { display: none; }
  .langs { margin-top: 4px; }
}

/* Blade integration additions */
.brand__logo { width: 46px; height: 46px; display: block; }
.footer .brand__logo { width: 42px; height: 42px; }
.langs a { background: none; border: 1px solid var(--line); padding: 4px 10px; font-size: 12px; cursor: pointer; color: inherit; border-radius: 4px; }
.langs a.is-lang-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.langs a:hover { border-color: var(--red); color: var(--red); }
.langs a.is-lang-active:hover { color: #fff; }
.contact-info__value--sm { font-size: 14px; line-height: 1.6; }
html[dir="rtl"] .eyebrow { letter-spacing: 0; }
html[dir="rtl"] .btn__arrow { transform: scaleX(-1); display: inline-block; }

/* stock imagery inside placeholder frames */
.ph { position: relative; overflow: hidden; }
.ph__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
