/* ============================================================
   RAVACO INDUSTRIES — corrugated packaging unit, Noida NCR
   Design system: paper / kraft board / printing ink / stencil red
   Type: Barlow Condensed (display) · Barlow (body) · IBM Plex Mono (specs)
   · Saira Stencil One (stencil tags only)
   Built by Vikrama Studio
   ============================================================ */

:root {
  --paper: #EBDFC7;
  --paper-deep: #E0D0B2;
  --board: #B08A56;
  --board-deep: #8F6B3E;
  --ink: #23201C;
  --ink-soft: #4A443C;
  --steel: #39414A;
  --steel-deep: #2C333B;
  --stencil: #BE3A24;
  --line: rgba(35, 32, 28, 0.22);
  --line-light: rgba(235, 223, 199, 0.25);

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
  --font-stencil: "Saira Stencil One", var(--font-display);

  --w-max: 1160px;
  --pad-x: clamp(20px, 5vw, 48px);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.wrap {
  max-width: var(--w-max);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* ---------- stencil tag (signature element) ---------- */
.tag {
  display: inline-block;
  font-family: var(--font-stencil);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stencil);
  border: 2px solid var(--stencil);
  padding: 4px 12px 3px;
  margin-bottom: 18px;
  transform: rotate(-1deg);
}
.tag--light { color: var(--paper); border-color: var(--paper); }

/* this-way-up arrows */
.arrows {
  font-family: var(--font-mono);
  color: var(--stencil);
  letter-spacing: 0.35em;
  font-size: 15px;
  user-select: none;
}

/* ---------- type scale ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.01em;
  font-weight: 700;
}
h1 { font-size: clamp(44px, 7.5vw, 88px); }
h2 { font-size: clamp(32px, 4.5vw, 52px); margin-bottom: 16px; }
h3 { font-size: clamp(21px, 2.4vw, 26px); font-weight: 600; }

.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  max-width: 62ch;
  color: var(--ink-soft);
}

.mono {
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.04em;
}

/* ---------- header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 23px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.brand .arrows { font-size: 12px; letter-spacing: 0.2em; }

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav a {
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--board-deep); }
.nav a.is-current { border-bottom-color: var(--stencil); }
.nav a:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--stencil);
  outline-offset: 3px;
}

.nav .btn { border-bottom: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 17px;
  text-decoration: none;
  padding: 13px 26px 12px;
  border: 2px solid var(--ink);
  transition: background 0.15s ease, color 0.15s ease;
}
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--stencil); border-color: var(--stencil); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--paper { border-color: var(--paper); color: var(--paper); }
.btn--paper:hover { background: var(--paper); color: var(--ink); }
.btn--wa { background: var(--stencil); border-color: var(--stencil); color: var(--paper); }
.btn--wa:hover { background: var(--ink); border-color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---------- hero ---------- */
.hero { padding: clamp(56px, 9vw, 110px) 0 0; }
.hero h1 { max-width: 12ch; margin: 6px 0 20px; }
.hero .lede { max-width: 56ch; }

.flute {
  margin-top: clamp(40px, 6vw, 72px);
  height: 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='26' viewBox='0 0 40 26'%3E%3Cpath d='M0 13 Q10 0 20 13 T40 13' fill='none' stroke='%238F6B3E' stroke-width='2.5'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 40px 26px;
}

/* ---------- spec line ---------- */
.specline {
  background: var(--ink);
  color: var(--paper);
  padding: 14px 0;
}
.specline .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 34px;
  justify-content: space-between;
}
.specline span { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; }
.specline b { color: #E8B98A; font-weight: 500; }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--steel { background: var(--steel); color: var(--paper); }
.section--steel .lede { color: rgba(235, 223, 199, 0.78); }
.section--kraft { background: var(--board); }
.section--paperdeep { background: var(--paper-deep); }

.section-head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 720px; }

/* ---------- product cards ---------- */
.grid-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.card {
  background: var(--paper);
  border: 2px solid var(--ink);
  display: flex;
  flex-direction: column;
}
.card figure { border-bottom: 2px solid var(--ink); }
.card figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { line-height: 1.05; }
.card-body p { font-size: 15.5px; color: var(--ink-soft); flex: 1; }
.card-link {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--stencil);
}
.card-link:hover { text-decoration: underline; }

/* ---------- split (text + image) ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.split img { border: 2px solid currentColor; width: 100%; }
.section--steel .split img { border-color: var(--paper); }

/* ---------- machine / spec tables ---------- */
.spectable { width: 100%; border-collapse: collapse; margin-top: 22px; }
.spectable th, .spectable td {
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.03em;
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--line);
  vertical-align: top;
}
.section--steel .spectable th, .section--steel .spectable td { border-color: var(--line-light); }
.spectable th {
  font-weight: 500;
  text-transform: uppercase;
  background: rgba(35, 32, 28, 0.06);
  white-space: nowrap;
}
.section--steel .spectable th { background: rgba(235, 223, 199, 0.08); }

/* ---------- stat trio ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 22px;
  margin-top: 34px;
}
.stat { border-left: 3px solid var(--stencil); padding-left: 18px; }
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  line-height: 1;
}
.stat span { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- why columns ---------- */
.cols3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(22px, 3vw, 40px);
}
.cols3 h3 { margin-bottom: 8px; }
.cols3 p { font-size: 15.5px; color: var(--ink-soft); }
.section--steel .cols3 p { color: rgba(235, 223, 199, 0.78); }

/* ---------- CTA band ---------- */
.cta-band { text-align: left; }
.cta-band h2 { max-width: 18ch; }
.cta-band .lede { color: rgba(35, 32, 28, 0.8); }

/* ---------- product detail sections ---------- */
.product-block {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(36px, 5vw, 56px) 0;
  border-top: 2px solid var(--ink);
  align-items: start;
}
.product-block:first-of-type { border-top: none; }
.product-block img { border: 2px solid var(--ink); width: 100%; }

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.contact-card {
  border: 2px solid var(--ink);
  background: var(--paper);
  padding: 26px;
}
.contact-card + .contact-card { margin-top: 22px; }
.contact-card h3 { margin-bottom: 10px; }
.contact-card .mono { display: block; margin-top: 4px; }
.contact-card a { color: var(--stencil); }

/* ---------- footer ---------- */
.site-foot {
  background: var(--steel-deep);
  color: rgba(235, 223, 199, 0.85);
  padding: 48px 0 34px;
  border-top: 4px solid var(--stencil);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
.site-foot .brand { color: var(--paper); font-size: 20px; margin-bottom: 10px; }
.site-foot p, .site-foot a { font-size: 14.5px; }
.site-foot a { color: rgba(235, 223, 199, 0.85); }
.site-foot a:hover { color: #fff; }
.foot-links { display: flex; flex-direction: column; gap: 8px; }
.foot-note {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line-light);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
}
.foot-note a { color: #E8B98A; text-decoration: none; }
.foot-note a:hover { text-decoration: underline; }

/* ---------- floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  background: var(--stencil);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 15px;
  text-decoration: none;
  padding: 12px 18px;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
.wa-float:hover { background: var(--ink); }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: clamp(48px, 7vw, 84px) 0 clamp(28px, 4vw, 48px); }
.page-hero h1 { font-size: clamp(38px, 6vw, 68px); max-width: 16ch; margin: 6px 0 16px; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .split, .contact-grid, .product-block { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 760px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 2px solid var(--ink);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 0 16px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px var(--pad-x); width: 100%; }
  .nav .btn { margin: 10px var(--pad-x) 0; width: auto; }
  .nav-toggle { display: block; }
}
