/* ============================================================
   Идэрбаялаг ХХК — brand site
   Palette: sunlit ivory, butcher paper, brand signal red
   Type: Yeseva One (display) / Manrope (body)
   ============================================================ */

:root {
  --cream: #fdf8f0;         /* main ground — sunlit ivory */
  --white: #fffdf9;         /* raised cards / alternate sections */
  --paper: #f5e9d8;         /* butcher paper sections */
  --paper-deep: #e9d8c2;    /* borders & rules on paper */
  --red: #d8232a;           /* brand signal red */
  --red-bright: #e6353c;    /* hover red */
  --oxblood: #8c1a1e;       /* deep red for large surfaces & display accents */
  --amber: #c9853f;         /* smoked-fat amber, small highlights */
  --ink: #33241c;           /* primary text */
  --muted: #7d6a5a;         /* secondary text */
  --bone: #f7f0e6;          /* text on red surfaces */

  --font-display: 'Yeseva One', 'Times New Roman', serif;
  --font-body: 'Manrope', 'Helvetica Neue', Arial, sans-serif;

  --wrap: 1140px;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
  background: color-mix(in srgb, var(--cream) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--paper-deep);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand-mark { width: 52px; height: 40px; color: var(--red); }

.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.site-nav {
  display: flex;
  gap: clamp(0.8rem, 2vw, 1.6rem);
  margin-left: auto;
}

.site-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  color: var(--muted);
  transition: color 0.2s;
}

.site-nav a:hover { color: var(--red); }

.lang-switch {
  display: flex;
  gap: 0.25rem;
  border: 1px solid var(--paper-deep);
  border-radius: 999px;
  padding: 0.2rem;
  background: var(--white);
}

.lang-switch button {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: none;
  border: none;
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lang-switch button:hover { color: var(--ink); }

.lang-switch button.is-active {
  background: var(--red);
  color: #fff;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: 2rem;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(1.8rem, 5vh, 3rem) clamp(1rem, 4vw, 2.5rem) clamp(1.5rem, 4vh, 2.5rem);
  min-height: 40vh;
}

/* warm morning wash behind hero */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 20% 15%, rgba(201, 133, 63, 0.10), transparent 70%),
    radial-gradient(50% 60% at 85% 80%, rgba(216, 35, 42, 0.06), transparent 70%);
  pointer-events: none;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.8rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.2vw, 3.8rem);
  line-height: 1.04;
  font-weight: 400;
  letter-spacing: 0.005em;
  color: var(--ink);
}

.hero-accent { color: var(--red); }

.hero-sub {
  margin-top: 0.9rem;
  max-width: 34rem;
  font-size: 1rem;
  color: var(--muted);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.3rem;
}

.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  transition: transform 0.15s, background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 6px 18px rgba(216, 35, 42, 0.25);
}

.btn-primary:hover { background: var(--red-bright); }

.btn-ghost {
  border: 1.5px solid rgba(51, 36, 28, 0.3);
  color: var(--ink);
}

.btn-ghost:hover { border-color: var(--ink); }

.hero-stamp {
  position: relative;
  color: var(--red);
  transform: rotate(-7deg);
  opacity: 0.96;
  max-width: 290px;
  justify-self: center;
  filter: drop-shadow(0 16px 32px rgba(140, 26, 30, 0.18));
}

.hero-stamp svg { width: 100%; height: auto; }

/* ---------- ticker (awning stripe, not caution tape) ---------- */

.ticker {
  overflow: hidden;
  background: var(--paper);
  color: var(--oxblood);
  border-block: 2px solid var(--red);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 48s linear infinite;
}

.ticker-seq {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0.7rem 0;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- sections ---------- */

.section { padding: clamp(3.5rem, 9vh, 6.5rem) 0; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

.wrap-narrow { max-width: 780px; }

.section-paper {
  background: var(--paper);
  color: var(--ink);
}

.section-paper .eyebrow { color: var(--oxblood); }

/* formerly the charred sections — now bright ivory */
.section-dark {
  background: var(--white);
  color: var(--ink);
}

.section-red {
  background: var(--oxblood);
  color: var(--bone);
  background-image: radial-gradient(70% 90% at 80% 10%, rgba(0, 0, 0, 0.16), transparent 60%);
}

.section-red .eyebrow { color: var(--paper); }

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1.18;
  max-width: 24ch;
}

.section-lede {
  margin-top: 1rem;
  max-width: 36rem;
  font-size: 1.02rem;
  color: var(--muted);
}

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.about-body p + p { margin-top: 1rem; }
.about-body { color: var(--muted); font-size: 1.02rem; }

.stat-band {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: clamp(2.5rem, 6vh, 4rem);
  background: var(--paper-deep);
  border: 1px solid var(--paper-deep);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat {
  background: var(--white);
  padding: 1.6rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  color: var(--red);
  line-height: 1;
}

.stat-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
}

/* ---------- products ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem;
  margin-top: 2.5rem;
}

.product-card {
  background: var(--cream);
  border: 1px solid var(--paper-deep);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(216, 35, 42, 0.45);
  box-shadow: 0 14px 30px rgba(140, 26, 30, 0.10);
}

.product-icon {
  width: 52px;
  height: 52px;
  color: var(--amber);
  margin-bottom: 1.1rem;
}

.product-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.22rem;
  margin-bottom: 0.55rem;
  color: var(--ink);
}

.product-card p {
  font-size: 0.92rem;
  color: var(--muted);
}

.product-note {
  margin-top: 2rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  border-left: 3px solid var(--red);
  padding-left: 1rem;
}

/* ---------- quality ---------- */

.quality-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.facility-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.8rem;
}

.chip {
  display: inline-flex;
  gap: 0.45rem;
  align-items: baseline;
  border: 1.5px dashed var(--oxblood);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.9rem;
  color: var(--muted);
  background: var(--white);
}

.chip strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--oxblood);
}

.quality-list {
  list-style: none;
  display: grid;
  gap: 0;
}

.quality-list li {
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--paper-deep);
}

.quality-list li:first-child { padding-top: 0.4rem; }

.quality-list h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.quality-list p {
  font-size: 0.94rem;
  color: var(--muted);
}

/* ---------- timeline ---------- */

.timeline {
  list-style: none;
  margin-top: 2.8rem;
  border-left: 2px solid rgba(216, 35, 42, 0.45);
  padding-left: clamp(1.2rem, 3vw, 2.2rem);
  display: grid;
  gap: 1.6rem;
  max-width: 640px;
}

.timeline li { position: relative; }

.timeline li::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(1.2rem, 3vw, 2.2rem) - 7px);
  top: 0.55rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--red);
}

.tl-year {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--oxblood);
  display: block;
  line-height: 1.2;
}

.timeline p {
  font-size: 0.96rem;
  color: var(--muted);
  max-width: 52ch;
}

/* ---------- team ---------- */

.ceo-quote { margin-top: 0.5rem; }

.ceo-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.35;
  color: var(--ink);
}

.ceo-quote figcaption {
  margin-top: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.ceo-quote figcaption strong { font-size: 1.05rem; }

.ceo-quote figcaption span {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oxblood);
}

.ceo-bio {
  margin-top: 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--paper-deep);
  font-size: 0.96rem;
  color: var(--muted);
  max-width: 60ch;
}

/* ---------- vision ---------- */

.vision-list {
  list-style: none;
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.9rem;
}

.vision-list li {
  background: rgba(0, 0, 0, 0.20);
  border: 1px solid rgba(247, 240, 230, 0.22);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem 1.1rem 2.7rem;
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
}

.vision-list li::before {
  content: "✓";
  position: absolute;
  left: 1.1rem;
  top: 1.05rem;
  font-weight: 800;
  color: var(--paper);
}

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.contact-card {
  font-style: normal;
  background: var(--cream);
  border: 1px solid var(--paper-deep);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: grid;
  gap: 1.05rem;
  box-shadow: 0 12px 28px rgba(140, 26, 30, 0.07);
}

.contact-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  align-items: baseline;
}

.contact-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}

.contact-row a {
  text-decoration: none;
  font-weight: 600;
}

.contact-row a:hover { color: var(--red); }

/* ---------- footer ---------- */

.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--paper-deep);
  text-align: center;
  padding: 3.2rem 1rem 2.6rem;
}

.footer-mark {
  width: 96px;
  height: 74px;
  color: var(--red);
  margin: 0 auto 1rem;
  display: block;
}

.footer-line {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
}

.footer-copy {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-stamp { max-width: 320px; margin: 0 auto; }
  .about-grid, .quality-grid, .contact-grid { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
  .site-header { flex-wrap: wrap; gap: 0.6rem 1rem; padding-block: 0.6rem; }
  .brand-mark { width: 42px; height: 32px; }
  .brand-name { font-size: 1.1rem; }
  .site-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    margin-left: 0;
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { white-space: nowrap; font-size: 0.86rem; }
  .lang-switch { margin-left: auto; }
}

@media (max-width: 480px) {
  .stat-band { grid-template-columns: 1fr 1fr; }
  .contact-row { grid-template-columns: 1fr; gap: 0.15rem; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .product-card:hover { transform: none; }
}
