/* mcnunited.ro — one stylesheet, no framework, no web fonts.
 *
 * Paper and ink for the company; each product keeps its own colour where it appears
 * (ResidenceVertical's green, Tracto's amber). Light and dark follow the visitor's system.
 * System fonts on purpose: nothing is loaded from another origin (see docker/headers.conf),
 * and the page draws at once instead of waiting for a font.
 */

:root {
  --paper: #f7f5f0;
  --surface: #ffffff;
  --surface-2: #efebe2;
  --ink: #15161a;
  --ink-2: #33353b;
  --muted: #5d5f66;
  --line: #e2ddd2;
  --line-strong: #cfc8ba;

  --amber: #ed9421;
  --amber-ink: #8e4e05;
  --amber-soft: #fbecd5;
  --green: #0e2d1b;
  --green-ink: #047857;
  --green-soft: #ddf2e6;

  --focus: #1d4ed8;
  --radius: 20px;
  --radius-small: 12px;
  --shadow: 0 1px 2px rgb(21 22 26 / 0.05), 0 12px 32px -12px rgb(21 22 26 / 0.18);
  --shadow-lifted: 0 2px 4px rgb(21 22 26 / 0.06), 0 24px 48px -16px rgb(21 22 26 / 0.28);

  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(72px, 10vw, 128px);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1012;
    --surface: #17181b;
    --surface-2: #1c1e22;
    --ink: #ece8dd;
    --ink-2: #cfcabe;
    --muted: #9c998f;
    --line: #2a2c31;
    --line-strong: #3a3d43;

    --amber-ink: #f5b55c;
    --amber-soft: #2b2012;
    --green-ink: #6ee7b7;
    --green-soft: #0f2a1e;

    --focus: #93b4ff;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 12px 32px -12px rgb(0 0 0 / 0.6);
    --shadow-lifted: 0 2px 4px rgb(0 0 0 / 0.4), 0 24px 48px -16px rgb(0 0 0 / 0.7);
  }
}

/* --- base ------------------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }
p, ul, ol, dl, figure { margin: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute; left: 16px; top: -64px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.lead { font-size: clamp(1.0625rem, 0.6vw + 0.95rem, 1.25rem); color: var(--ink-2); max-width: 62ch; }

/* --- buttons ---------------------------------------------------------------------------- */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4em;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button.primary { background: var(--ink); color: var(--paper); box-shadow: var(--shadow); }
.button.primary:hover { box-shadow: var(--shadow-lifted); }
.button.ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.button.ghost:hover { border-color: var(--ink); }
.button.inverse { background: var(--paper); color: var(--ink); }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.header-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; letter-spacing: -0.02em; }
.brand .mark { width: 34px; height: 34px; flex: none; }
.brand-name { font-size: 1.125rem; }
.brand.small .mark { width: 28px; height: 28px; }
.brand.small .brand-name { font-size: 1rem; }

.nav { margin-left: auto; }
.nav ul, .menu ul { list-style: none; padding: 0; display: flex; gap: 4px; }
.nav a, .menu a {
  display: block; padding: 8px 12px; border-radius: 999px;
  font-size: 0.9375rem; font-weight: 550; color: var(--ink-2); text-decoration: none;
}
.nav a:hover, .menu a:hover { background: var(--surface-2); color: var(--ink); }

.lang { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.lang a {
  min-width: 40px; padding: 5px 10px; border-radius: 999px; text-align: center;
  font-family: var(--mono); font-size: 0.8125rem; font-weight: 650; text-decoration: none; color: var(--muted);
}
.lang a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.lang a:not([aria-current]):hover { color: var(--ink); }

.menu { display: none; position: relative; }
.menu summary {
  list-style: none; cursor: pointer;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line);
}
.menu summary::-webkit-details-marker { display: none; }
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); content: "";
}
.menu-icon { position: relative; }
.menu-icon::before { position: absolute; top: -6px; }
.menu-icon::after { position: absolute; top: 6px; }
.menu[open] .menu-icon { background: transparent; }
.menu[open] .menu-icon::before { top: 0; transform: rotate(45deg); }
.menu[open] .menu-icon::after { top: 0; transform: rotate(-45deg); }
.menu nav {
  position: absolute; right: 0; top: calc(100% + 10px);
  min-width: 220px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lifted);
}
.menu ul { flex-direction: column; }
.menu a { padding: 12px 14px; font-size: 1rem; border-radius: 10px; }

@media (max-width: 860px) {
  .nav { display: none; }
  .header-row .lang { margin-left: auto; }
  .menu { display: block; }
}

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

.hero { padding-block: clamp(56px, 9vw, 112px) clamp(56px, 8vw, 96px); position: relative; }
.hero::before {
  /* A soft wash of both product colours behind the headline. */
  content: ""; position: absolute; inset: -20% 0 auto 0; height: 120%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 85% 20%, color-mix(in srgb, var(--amber) 16%, transparent), transparent 70%),
    radial-gradient(35% 45% at 70% 70%, color-mix(in srgb, #34d399 12%, transparent), transparent 70%);
}

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero-copy .eyebrow { margin-bottom: 20px; }
.hero h1 { font-size: clamp(2.5rem, 4.6vw + 1rem, 4.5rem); line-height: 1.03; letter-spacing: -0.035em; font-weight: 780; max-width: 15ch; }
.hero .lead { margin-top: 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.glance { display: grid; gap: 14px; }
.glance-card {
  display: grid; gap: 14px; padding: 22px 22px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.glance-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lifted); }
.glance-card.rv:hover { border-color: color-mix(in srgb, var(--green-ink) 45%, var(--line)); }
.glance-card.tracto:hover { border-color: color-mix(in srgb, var(--amber) 55%, var(--line)); }
.glance-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.glance-logo { width: 170px; }
.glance-line { font-size: 1.125rem; font-weight: 650; letter-spacing: -0.01em; }
.glance-proof { font-size: 0.9375rem; color: var(--muted); padding-inline: 4px; }

.status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 0.8125rem; font-weight: 650; white-space: nowrap;
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.live { background: var(--green-soft); color: var(--green-ink); }
.status.live::before { box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 25%, transparent); }
.status.soon { background: var(--amber-soft); color: var(--amber-ink); }

.tracto-lockup { display: inline-flex; align-items: center; gap: 10px; }
.tracto-lockup img { width: 40px; height: 40px; border-radius: 10px; }
.tracto-word { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; color: var(--amber-ink); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 18ch; }
}

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

.section { padding-block: var(--section); }
.section.alt { background: var(--surface-2); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(40px, 6vw, 72px); max-width: 760px; }
.section-head h2 { font-size: clamp(2rem, 2.6vw + 1rem, 3.25rem); letter-spacing: -0.03em; line-height: 1.06; }

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

.product {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center;
  padding: clamp(24px, 4vw, 56px);
  background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 8px);
  box-shadow: var(--shadow);
}
.product + .product { margin-top: clamp(24px, 4vw, 40px); }
.product.tracto .product-copy { order: 2; }
.product.tracto .product-visual { order: 1; }

.product-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.product-name { font-size: 1rem; }
.product-logo { width: 220px; }
.product.tracto .tracto-lockup img { width: 48px; height: 48px; border-radius: 12px; }
.product.tracto .tracto-word { font-size: 2rem; }

.tagline { margin-top: 24px; font-size: clamp(1.375rem, 1.2vw + 1rem, 1.875rem); font-weight: 720; letter-spacing: -0.025em; line-height: 1.15; }
.product.rv .tagline { color: var(--green-ink); }
.product.tracto .tagline { color: var(--amber-ink); }
.summary { margin-top: 14px; color: var(--ink-2); }

.features-title {
  margin-top: 28px; font-family: var(--mono); font-size: 0.75rem; font-weight: 650;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.features { list-style: none; padding: 0; margin-top: 12px; display: grid; gap: 10px; }
.features li { position: relative; padding-left: 30px; color: var(--ink-2); font-size: 0.98rem; line-height: 1.5; }
.features li::before {
  content: ""; position: absolute; left: 0; top: 0.2em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--green-soft);
}
.features li::after {
  content: ""; position: absolute; left: 6px; top: calc(0.2em + 4px);
  width: 4px; height: 8px; border: solid var(--green-ink); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.product.tracto .features li::before { background: var(--amber-soft); }
.product.tracto .features li::after { border-color: var(--amber-ink); }

.facts { list-style: none; padding: 0; margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 0.875rem; font-weight: 600; color: var(--ink-2); }
.platforms { margin-top: 20px; font-size: 0.9375rem; color: var(--muted); }
.rv-link { margin-top: 28px; }

.browser-frame {
  border-radius: 16px; overflow: hidden; border: 1px solid var(--line);
  background: var(--surface); box-shadow: var(--shadow-lifted);
}
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.browser-bar span:not(.url) { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.browser-bar .url {
  margin-left: 10px; padding: 3px 12px; border-radius: 999px; background: var(--surface);
  font-family: var(--mono); font-size: 0.75rem; color: var(--muted);
}

.phones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 28px); align-items: start; }
.phone {
  padding: 8px; border-radius: 34px; background: #111214;
  box-shadow: var(--shadow-lifted), inset 0 0 0 1px rgb(255 255 255 / 0.08);
}
.phone img { border-radius: 27px; }
.phones .phone:nth-child(2) { margin-top: clamp(28px, 6vw, 72px); }
.phones figcaption { grid-column: 1 / -1; font-size: 0.875rem; color: var(--muted); text-align: center; }

@media (max-width: 900px) {
  .product { grid-template-columns: 1fr; }
  .product.tracto .product-copy { order: 1; }
  .product.tracto .product-visual { order: 2; }
  .phones { max-width: 520px; margin-inline: auto; width: 100%; }
}

/* --- services --------------------------------------------------------------------------- */

.services { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.service {
  display: grid; align-content: start; gap: 12px;
  padding: 28px 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.service svg { width: 36px; height: 36px; color: var(--ink); margin-bottom: 8px; }
.service h3 { font-size: 1.1875rem; }
.service p { color: var(--ink-2); font-size: 0.98rem; }

@media (max-width: 1040px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

/* --- approach --------------------------------------------------------------------------- */

.rules { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.rule {
  display: grid; grid-template-columns: auto 1fr; column-gap: 20px; row-gap: 8px; align-content: start;
  padding: 32px 32px 32px 0; border-bottom: 1px solid var(--line);
}
.rule:nth-child(odd) { border-right: 1px solid var(--line); }
.rule:nth-child(even) { padding-left: 32px; padding-right: 0; }
.rule-number { grid-row: span 2; font-family: var(--mono); font-size: 0.875rem; font-weight: 650; color: var(--amber-ink); padding-top: 4px; }
.rule h3 { font-size: 1.3125rem; }
.rule p { color: var(--ink-2); }

@media (max-width: 760px) {
  .rules { grid-template-columns: 1fr; }
  .rule, .rule:nth-child(even) { padding: 28px 0; border-right: 0; }
}

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

/* The section above already leaves its own space; the panel carries the rest. */
#contact { padding-top: 0; }

.contact-panel {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: end;
  padding: clamp(32px, 6vw, 72px);
  border-radius: calc(var(--radius) + 12px);
  background: #15161a; color: #f7f5f0;
  position: relative; overflow: hidden;
}
.contact-panel::after {
  content: ""; position: absolute; right: -80px; bottom: -120px; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgb(240 154 26 / 0.35), transparent 65%); pointer-events: none;
}
.contact-panel .eyebrow { color: #b9b5aa; }
.contact-panel h2 { margin-top: 16px; font-size: clamp(2rem, 3vw + 1rem, 3.5rem); letter-spacing: -0.035em; }
.contact-panel .lead { margin-top: 16px; color: #d7d3c8; }
.contact-panel .email { background: #f7f5f0; color: #15161a; margin-top: 32px; font-size: clamp(1rem, 1vw + 0.8rem, 1.25rem); min-height: 56px; padding-inline: 28px; }
.contact-panel :focus-visible { outline-color: #f5b55c; }

.company { position: relative; z-index: 1; display: grid; gap: 14px; font-size: 0.9375rem; }
.company div { display: grid; gap: 2px; }
.company dt { color: #9e9a90; font-size: 0.8125rem; }
.company dd { margin: 0; font-family: var(--mono); color: #f7f5f0; }
.company .company-name { font-family: var(--sans); font-weight: 700; font-size: 1.0625rem; }

@media (prefers-color-scheme: dark) {
  .contact-panel { background: var(--surface-2); border: 1px solid var(--line); }
}
@media (max-width: 860px) { .contact-panel { grid-template-columns: 1fr; align-items: start; } }

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

.site-footer { padding-block: 40px 48px; border-top: 1px solid var(--line); }
.footer-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-products { display: flex; gap: 20px; margin-left: auto; font-size: 0.9375rem; }
.footer-products a { color: var(--ink-2); text-decoration: none; }
.footer-products a:hover { color: var(--ink); text-decoration: underline; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 28px; font-size: 0.875rem; color: var(--muted); }

@media (max-width: 560px) {
  .footer-products { margin-left: 0; width: 100%; }
}

/* --- 404 -------------------------------------------------------------------------------- */

.notfound-main { min-height: 100vh; display: grid; align-content: center; gap: 40px; padding-block: 64px; }
.notfound-block { display: grid; gap: 14px; justify-items: start; max-width: 560px; }
.notfound-block h1, .notfound-block h2 { font-size: clamp(2rem, 3vw + 1rem, 3rem); letter-spacing: -0.03em; }
.notfound-block p { color: var(--ink-2); }
.notfound-block + .notfound-block { padding-top: 40px; border-top: 1px solid var(--line); }

/* --- small phones and forced colours --------------------------------------------------- */

@media (max-width: 359px) {
  .header-row { gap: 12px; }
  .brand .mark { width: 28px; height: 28px; }
  .brand-name { font-size: 1rem; white-space: nowrap; }
  .contact-panel .email { padding-inline: 18px; font-size: 0.9375rem; }
}

/* Windows High Contrast paints backgrounds as Canvas: the menu bars and the current
   language are drawn with backgrounds, so they are given system colours instead. */
@media (forced-colors: active) {
  .menu-icon, .menu-icon::before, .menu-icon::after { forced-color-adjust: none; background: CanvasText; }
  .menu[open] .menu-icon { background: transparent; }
  .lang a[aria-current="page"] { forced-color-adjust: none; background: Highlight; color: HighlightText; }
}
