/* ==========================================================================
   Logiverse — Corporate stylesheet
   Brand: #b52e30 (logo red) + warm charcoal. Edit :root to re-skin globally.
   ========================================================================== */

:root {
  /* Brand */
  --brand:        #b52e30;   /* exact logo red */
  --brand-600:    #9c2527;   /* hover / pressed */
  --brand-700:    #7f1d1f;
  --brand-bright: #e2595b;   /* for text on dark surfaces */
  --brand-tint:   #fbeded;   /* icon backgrounds */
  --brand-tint-2: #f6e0e0;

  /* Dark surfaces (warm charcoal, tuned to the logo's black) */
  --dark-900: #0a0807;
  --dark-800: #141010;
  --dark-700: #211a1a;
  --dark-600: #332827;

  /* Neutrals */
  --ink:        #16110f;
  --body:       #55494a;
  --muted:      #7d7170;
  --line:       #e8e2e1;
  --line-soft:  #f2eeed;
  --surface:    #ffffff;
  --surface-alt:#faf7f6;

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Space & shape */
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(22, 17, 15, .06), 0 2px 8px rgba(22, 17, 15, .05);
  --shadow-md: 0 4px 12px rgba(22, 17, 15, .09), 0 12px 32px rgba(22, 17, 15, .08);
  --wrap: 1160px;
  --header-h: 96px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-700); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.35rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }
ul { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .45em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.section { padding: 84px 0; }
.section--tight { padding: 8px 0 84px; }
.section--alt { background: var(--surface-alt); border-block: 1px solid var(--line-soft); }
.center { text-align: center; }
.lead { font-size: 1.14rem; color: var(--body); }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand); margin-bottom: .85rem;
}
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--dark-800); color: #fff;
  padding: 12px 18px; z-index: 200; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em; justify-content: center;
  font-weight: 600; font-size: .97rem; padding: 13px 26px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer; transition: all .18s ease; text-align: center;
}
.btn--primary, .btn--amber { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover, .btn--amber:hover { background: var(--brand-600); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.38); }
.btn--ghost:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.75); }
.btn--outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.95);
  backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.brand { display: flex; align-items: center; flex: none; }
.brand__logo { height: 46px; width: auto; }
.site-footer .brand__logo { height: 52px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 14px; border-radius: 8px; color: var(--ink); font-weight: 500; font-size: .96rem;
}
.nav a:hover { background: var(--brand-tint); color: var(--brand); }
.nav a[aria-current="page"] { color: var(--brand); font-weight: 600; }
.nav .btn { margin-left: 10px; padding: 10px 20px; }
.nav .btn:hover { background: var(--brand-600); color: #fff; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  width: 44px; height: 42px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #d8cecd;
  background:
    radial-gradient(880px 520px at 84% 6%, rgba(181,46,48,.42), transparent 62%),
    radial-gradient(680px 460px at 4% 96%, rgba(181,46,48,.16), transparent 62%),
    linear-gradient(155deg, var(--dark-900) 0%, var(--dark-800) 48%, var(--dark-700) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 85%);
}
.hero .wrap { position: relative; z-index: 1; }

/* Faint brand watermark in the open right-hand space */
.hero--page::before {
  content: ""; position: absolute; right: -60px; top: 50%; transform: translateY(-50%);
  width: 560px; height: 380px; pointer-events: none; opacity: .075;
  background: url("../img/mark.svg") center/contain no-repeat;
}
.hero--home { padding: 104px 0 96px; }
.hero--page { padding: 84px 0 74px; }
.hero h1 { color: #fff; max-width: 20ch; }
.hero--page h1 { max-width: 22ch; }
.hero p { color: #c4b8b7; font-size: 1.16rem; max-width: 58ch; }
.hero .eyebrow { color: var(--brand-bright); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }

/* Brand tagline */
.tagline {
  display: inline-flex; align-items: center; gap: .7em;
  font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand-bright); margin-bottom: 1rem;
}
.tagline::before {
  content: ""; width: 26px; height: 2px; background: var(--brand-bright); flex: none;
}
.tagline--light { color: var(--brand); }
.tagline--light::before { background: var(--brand); }

.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.13); border-radius: var(--radius-lg); overflow: hidden; }
.hero-stats div { background: rgba(12,9,9,.6); padding: 26px 22px; }
.hero-stats b { display: block; color: #fff; font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.hero-stats span { font-size: .87rem; color: #b7a9a8; }

.breadcrumb { font-size: .87rem; color: #a2938f; margin-bottom: 14px; }
.breadcrumb a { color: #a2938f; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 28px; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.card:hover { border-color: var(--brand-tint-2); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
.card ul { font-size: .95rem; margin-bottom: 0; padding-left: 1.1em; }
.card__icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--brand-tint); color: var(--brand);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.card__icon svg { width: 24px; height: 24px; }
.card--dark { background: var(--dark-800); border-color: var(--dark-700); color: #c4b8b7; }
.card--dark h3 { color: #fff; }
.card--dark:hover { border-color: var(--brand); }

.tag {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: var(--brand-tint); color: var(--brand); padding: 5px 11px; border-radius: 999px; margin-bottom: 14px;
}

/* Numbered process steps */
.steps { counter-reset: step; display: grid; gap: 26px; grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding-top: 20px; border-top: 3px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-size: .82rem; font-weight: 800; letter-spacing: .1em; color: var(--brand); margin-bottom: 10px;
}
.step h3 { font-size: 1.05rem; }
.step p { font-size: .95rem; margin-bottom: 0; }

/* Feature list with checkmarks */
.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 32px; margin-bottom: .7em; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b52e30' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* Split content block */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split--wide { grid-template-columns: 1.1fr .9fr; }
.panel {
  background: linear-gradient(150deg, var(--dark-800), var(--dark-600));
  border-radius: var(--radius-lg); padding: 40px 36px; color: #c4b8b7;
}
.panel h3 { color: #fff; }
.panel dl { margin: 0; display: grid; gap: 20px; }
.panel dt { color: #fff; font-weight: 700; font-size: 1rem; }
.panel dd { margin: 2px 0 0; font-size: .95rem; color: #b7a9a8; }

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden;
  background:
    radial-gradient(520px 300px at 88% 12%, rgba(181,46,48,.34), transparent 65%),
    linear-gradient(135deg, var(--dark-800), var(--dark-600));
  border-radius: var(--radius-lg); padding: 56px 48px; color: #c4b8b7;
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.cta::before {
  content: ""; position: absolute; right: -70px; bottom: -90px;
  width: 420px; height: 285px; pointer-events: none; opacity: .09;
  background: url("../img/mark.svg") center/contain no-repeat;
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; margin-bottom: .35em; }
.cta p { margin-bottom: 0; max-width: 52ch; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: 7px; }
.field .req { color: var(--brand); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .97rem; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(181,46,48,.15);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: -4px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line-soft); margin: 0; }
.contact-list li:last-child { border-bottom: 0; }
.contact-list svg { width: 20px; height: 20px; flex: none; color: var(--brand); margin-top: 4px; }
.contact-list b { display: block; color: var(--ink); font-size: .95rem; }
.contact-list span, .contact-list a { font-size: .95rem; }
.contact-list span + a { display: block; margin-top: 10px; font-weight: 600; font-size: .9rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark-900); color: #9c8e8d; padding: 68px 0 0; font-size: .94rem; }
.site-footer a { color: #9c8e8d; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .8fr 1.1fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .6em; }
.site-footer .brand { margin-bottom: 14px; }
.site-footer .tagline { margin-bottom: 16px; font-size: .74rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.09); padding: 22px 0 28px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .87rem; color: #7d6f6e;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid, .split, .split--wide, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid--4, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch;
    padding: 12px 24px 20px; gap: 2px; box-shadow: var(--shadow-md); display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 10px; }
  .nav .btn { margin: 8px 0 0; }
  .grid--3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --header-h: 78px; }
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .hero--home { padding: 72px 0 64px; }
  .grid--2, .grid--4, .steps, .field-row { grid-template-columns: 1fr; }
  .cta { padding: 40px 28px; }
  .card { padding: 26px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .brand__logo { height: 38px; }
  .site-footer .brand__logo { height: 44px; }
  .hero--page::before { display: none; }
  .cta::before { width: 300px; height: 204px; right: -60px; bottom: -70px; }
}

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