:root {
  --brand: #E01B24;       /* main red from logo */
  --brand-dark: #A60F17;  /* darker red for hover */
  --ink: #111216;         /* default text */
  --muted: #6B7280;       /* muted grey text */
  --panel: #FFFFFF;       /* cards background */
  --stroke: #E5E7EB;      /* borders */
  --hero1: #0B0B0B;       /* dark background start */
  --hero2: #1F1F1F;       /* dark background end */
  --glow: 0 0 24px rgba(224,27,36,.35), 0 0 90px rgba(224,27,36,.15);
}

/* Reset */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial;
  color: var(--ink);
  background: #fff;
}
h1, h2, h3, .brand-word {
  font-family: Cinzel, serif;
  letter-spacing: .02em;
}
.display { font-size: clamp(28px, 4vw, 48px); margin: 0; line-height: 1.1; }
.section-title { font-size: clamp(22px, 3vw, 28px); margin: 0 0 .25rem 0; font-weight: 700; }

/* Links */
a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.85; }

/* Layout */
.container { max-width: 1120px; margin: 0 auto; padding: 0 1rem; }

/* Topbar */
.topbar {
  background: linear-gradient(90deg, #0B0B0B, #171717);
  color: #E5E7EB;
  font-size: .9rem;
}
.topbar a { color: #fff; text-decoration: underline; }
.topbar .container { padding: .5rem 1rem; }

/* Header/Nav */
.site-header {
  border-bottom: 1px solid var(--stroke);
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 40;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0;
}
.brand { display: flex; align-items: center; gap: .75rem; }
.brand img { margin-left: .5rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-word { font-weight: 700; font-size: 20px; color: var(--brand); text-shadow: 0 0 6px rgba(224,27,36,.3); }
.brand-sub { font-weight: 700; font-size: 12px; letter-spacing: .18em; color: #343A40; }
.brand-sub-light { font-weight: 700; font-size: 12px; letter-spacing: .18em; color: #ffffff; }

/* Inline links (desktop default) + hamburger hidden by default */
.links {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: nowrap;           /* keep items on one line */
}
.links > * { flex: 0 0 auto; } /* don’t let items shrink into wrapping */
.links a {
  font-weight: 600;
  color: #000;
  white-space: nowrap;         /* prevent wrapping like “Our Services” */
}
.links a.active { color: var(--brand); }

/* Prevent button text wrapping */
.links .btn,
.links .btn-primary { white-space: nowrap; }

.nav-toggle {
  border: none; background: transparent; cursor: pointer;
  display: none;                 /* hidden by default on wide screens */
  flex-direction: column; justify-content: center; gap: 5px;
  padding: .5rem; z-index: 110;
}
.hamburger { width: 24px; height: 3px; background: var(--ink); border-radius: 2px; display: block; }

/* COMPACT MODE (added by JS when links don't fit) */
.site-header.compact .nav-toggle { display: flex; }
.site-header.compact .links { display: none; }

/* MOBILE BASELINE (drawer UI for small screens) */
@media (max-width: 1420px) {
  .site-header .nav-toggle { display: flex; }
  .site-header .links { display: none; }
}

/* Drawer (shared by compact-mode and small screens) */
#nav-links {
  display: none;
  flex-direction: column;            /* drawer = vertical list */
  gap: 1.5rem;
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: 75%; max-width: 320px;
  background: #fff;
  box-shadow: -2px 0 12px rgba(0,0,0,.18);
  padding: 4rem 2rem;
  z-index: 100;
}
#nav-links.open { display: flex; }

/* Ensure desktop layout restores inline links / no drawer chrome */
@media (min-width: 1400px) {
  .site-header:not(.compact) .nav-toggle { display: none; }
  .site-header:not(.compact) #nav-links {
    position: static;
    height: auto;              /* fix: was inherit */
    width: auto;               /* fix: was invalid flex */
    display: flex;
    flex-direction: row;       /* horizontal on desktop */
    align-items: center;
    gap: 1rem;
    padding: 0;
    background: transparent;
    box-shadow: none;
    flex-wrap: nowrap;         /* keep items on one line */
  }
  .site-header:not(.compact) #nav-links.open { display: flex; }
}

/* Hero Sections */
.hero {
  background: radial-gradient(1200px 280px at 20% 20%, rgba(224,27,36,.15), transparent 65%),
              linear-gradient(var(--hero1), var(--hero2));
  color: #f3f4f6;
  padding: 3.5rem 0;
}
.hero .lead { color: #cfd6dd; max-width: 640px; }

.hero-lite {
  background: linear-gradient(180deg, #0b0b0b, #1d1d1d);
  color: #f3f4f6;
  border-bottom: 1px solid #1f2937;
}
.hero-lite .muted { color: #cbd5e1; }

/* Stats grid (index page) */
.stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; margin-top: 1.25rem; max-width: 520px; }
.stat { border: 1px solid rgba(255,255,255,.2); border-radius: 12px; padding: .75rem; text-align: center; background: rgba(17,24,39,.45); }
.stat .k { font-weight: 900; }
.stat .s { color: #d1d5db; font-size: .85rem; }

/* Sections & grids */
.section { padding: 3rem 0; }
.bg { background: #fafafa; border-top: 1px solid var(--stroke); border-bottom: 1px solid var(--stroke); }

.grid-1, .grid-2, .grid-3, .grid-4 { display: grid; gap: 1.25rem; }
@media(min-width:768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Cards */
.card {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
  height: 100%;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(224,27,36,.12);
  color: var(--brand);
  padding: .35rem .6rem;
  border-radius: 10px;
  font-weight: 800;
  font-size: .78rem;
}
.feature-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }

/* Pricing */
.price .tag { text-transform: uppercase; color: #6b7280; font-weight: 800; font-size: .8rem; }
.price .price-num { font-weight: 900; font-size: 2rem; margin: .25rem 0; }
.price .price-num span { font-size: .9rem; color: #6b7280; font-weight: 600; }
.price.featured { border-color: var(--brand); box-shadow: var(--glow); }

/* Lists */
.muted { color: var(--muted); }
.h6 { font-size: 1.1rem; font-weight: 800; margin: 0 0 .5rem 0; }
.small { font-size: .92rem; }
.list { list-style: none; padding: 0; margin: .25rem 0; }
.list li { margin: .25rem 0; }
.check { list-style: none; padding: 0; margin: 0; }
.check li { display: flex; gap: .5rem; margin: .4rem 0; }
.check li:before { content: '✔'; color: var(--brand); font-weight: 900; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  border-radius: 12px;
  padding: .7rem 1rem;
  font-weight: 700;
  border: 1px solid var(--stroke);
  background: #fff;
}
.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: var(--glow);
}
.btn-primary:hover { filter: brightness(.95); }
.btn-ghost { background: transparent; border-color: #2b2b2b; color: var(--brand); }
.btn-ghost:hover { background: #f3f4f6; }

/* Forms */
.form label { font-weight: 800; display: block; margin-bottom: .4rem; }
.form input, .form textarea {
  width: 100%;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: .65rem .75rem;
  font-family: Inter, ui-sans-serif;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.form .actions { display: flex; gap: .75rem; align-items: center; margin-top: .75rem; }
.note {
  border-radius: 12px;
  padding: 1rem;
  background: #fff4f4;
  border: 1px solid #fde2e2;
  color: #991b1b;
  margin-top: 1rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--stroke);
  background: #0b0b0b;
  color: #e5e7eb;
}
.site-footer a { color: #fff; text-decoration: underline; }
.site-footer .container { padding: 2rem 1rem; }
.footer-brand { display: flex; gap: .75rem; align-items: center; }
.footer-brand img { filter: drop-shadow(0 0 12px rgba(224,27,36,.25)); }
.copy {
  border-top: 1px solid #1f2937;
  text-align: center;
  padding: 1rem 0;
  color: #cbd5e1;
  font-size: .85rem;
}

/* Utilities */
.gap { gap: 1rem; }
.span-2 { grid-column: 1/-1; }
.w-100 { width: 100%; }
