/* ==========================================================================
   RT SECURE — universal stylesheet
   1. Tokens
   2. Base & typography
   3. Layout utilities
   4. Buttons
   5. Header & drawer navigation
   6. Hero
   7. Components (cards, figures, callout, accordion, forms)
   8. Footer
   9. Motion
   10. Responsive breakpoints
   ========================================================================== */

/* 1. TOKENS ================================================================ */
:root {
  /* Palette sampled from the RT Secure logo and vehicle livery */
  --ink:        #080a0d;
  --steel:      #0e1318;
  --panel:      #141b22;
  --panel-hi:   #1b242d;
  --line:       #232d37;
  --line-soft:  #1a222a;
  --silver:     #97a3b0;
  --chrome:     #e3e8ed;
  --mist:       #f4f6f9;
  --mist-line:  #e2e7ed;
  --white:      #ffffff;
  --red:        #d4111f;
  --red-hi:     #f0242f;
  --red-dark:   #8f0b15;

  /* Type */
  --display: "Saira", "Eurostile", "Arial Narrow", system-ui, sans-serif;
  --label:   "Saira Condensed", "Saira", "Arial Narrow", sans-serif;
  --body:    "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-xxl: clamp(2.5rem, 6.2vw, 4.5rem);
  --fs-xl:  clamp(1.9rem, 3.8vw, 2.85rem);
  --fs-lg:  clamp(1.3rem, 2.2vw, 1.7rem);
  --fs-md:  1.0625rem;
  --fs-sm:  0.94rem;
  --fs-xs:  0.76rem;

  /* Space & shape */
  --gap:    1.25rem;
  --pad-section: clamp(4rem, 9vw, 7.5rem);
  --wrap:   1220px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  --t:      220ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 2. BASE & TYPOGRAPHY ===================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--silver);
  font-family: var(--body);
  font-size: var(--fs-md);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--chrome);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin: 0 0 0.55em;
  font-weight: 800;
  text-wrap: balance;
}
h1 { font-size: var(--fs-xxl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); font-weight: 700; letter-spacing: -0.005em; }
h4 { font-size: 1.02rem; font-weight: 700; letter-spacing: 0.01em; }

p { margin: 0 0 1.05em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--white); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--red-hi); }

img { max-width: 100%; height: auto; display: block; }
ul { margin: 0 0 1.05em; padding-left: 1.1rem; }
strong { color: var(--chrome); font-weight: 600; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--red);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 999;
  font-family: var(--label);
  text-transform: uppercase;
}
.skip-link:focus { left: 0; color: var(--white); }

.eyebrow {
  font-family: var(--label);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--red-hi);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--red), rgba(212, 17, 31, 0.15));
  transform: skewX(-24deg);
  flex: none;
}

.lead { font-size: 1.15rem; color: var(--chrome); }

/* 3. LAYOUT UTILITIES ====================================================== */
.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.section { padding: var(--pad-section) 0; }
.section--steel {
  background:
    radial-gradient(1100px 480px at 12% -10%, rgba(212, 17, 31, 0.07), transparent 60%),
    var(--steel);
}
.section--light { background: var(--mist); color: #4a5560; }
.section--light h1,
.section--light h2,
.section--light h3,
.section--light h4 { color: #0d1216; }
.section--light .lead { color: #2b333b; }
.section--light strong { color: #0d1216; }
.section--light a { color: var(--red-dark); }

.section-head { max-width: 60ch; margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.split--top { align-items: start; }
.stack > * + * { margin-top: 1.25rem; }
.center { text-align: center; }
.narrow { max-width: 900px; margin-inline: auto; }

/* Livery slash — the diagonal stripe device from the vehicle wraps */
.livery {
  height: 6px;
  background:
    linear-gradient(100deg, var(--red) 0 26%, rgba(212, 17, 31, 0) 26.5%),
    linear-gradient(100deg, transparent 28%, var(--line) 28.5% 30%, transparent 30.5%),
    linear-gradient(100deg, transparent 58%, var(--line-soft) 58.5% 100%);
  background-color: var(--ink);
}

/* 4. BUTTONS =============================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.84rem;
  padding: 0.9rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t),
              transform var(--t), box-shadow var(--t);
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: linear-gradient(180deg, var(--red-hi), var(--red));
  color: var(--white);
  box-shadow: 0 10px 24px -12px rgba(212, 17, 31, 0.9);
}
.btn--primary:hover {
  background: linear-gradient(180deg, #ff3540, var(--red-hi));
  color: var(--white);
  box-shadow: 0 16px 30px -12px rgba(212, 17, 31, 0.95);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.02);
  color: var(--chrome);
  border-color: var(--line);
}
.btn--secondary:hover {
  border-color: var(--red);
  color: var(--white);
  background: rgba(212, 17, 31, 0.08);
}

.section--light .btn--secondary { color: #0d1216; border-color: #cdd6de; background: var(--white); }
.section--light .btn--secondary:hover { border-color: var(--red); color: var(--red-dark); }

.btn--ghost {
  padding: 0;
  background: none;
  color: var(--red-hi);
  border: 0;
  border-radius: 0;
}
.btn--ghost:hover { color: var(--white); transform: translateX(3px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* 5. HEADER & DRAWER NAVIGATION ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(8, 10, 13, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background var(--t), box-shadow var(--t);
}
.site-header[data-stuck="true"] {
  background: rgba(8, 10, 13, 0.93);
  box-shadow: 0 18px 40px -30px rgba(0, 0, 0, 1);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand img { width: 46px; transition: transform var(--t); }
.brand:hover img { transform: scale(1.05); }
.brand-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1;
}
.brand-tag {
  display: block;
  font-family: var(--label);
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  color: var(--silver);
  margin-top: 0.3rem;
  font-weight: 500;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  font-family: var(--label);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--chrome);
  padding-block: 0.35rem;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--red);
  transform: skewX(-24deg);
  transition: width var(--t);
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { width: 100%; }
.nav a[aria-current="page"] { color: var(--white); }
.nav .btn { color: var(--white); }
.nav .btn::after { display: none; }

/* Hamburger toggle — becomes an X while the drawer is open */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 90;
  width: 46px;
  height: 42px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--chrome);
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  background: currentColor;
  transform: translateX(-50%);
  transition: transform var(--t), opacity var(--t), top var(--t);
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav-toggle[aria-expanded="true"] { border-color: var(--red); color: var(--white); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: translateX(-50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 20px; transform: translateX(-50%) rotate(-45deg); }

/* Backdrop behind the drawer */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(4, 6, 8, 0.62);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t), visibility var(--t);
  border: 0;
  padding: 0;
}
.nav-backdrop[data-open="true"] { opacity: 1; visibility: visible; }

/* 6. HERO ================================================================== */
.hero {
  position: relative;
  min-height: clamp(540px, 84vh, 800px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media video,
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(96deg, rgba(5, 7, 10, 0.96) 0 38%, rgba(5, 7, 10, 0.55) 74%, rgba(5, 7, 10, 0.7)),
    linear-gradient(to top, var(--ink), transparent 48%);
}
.hero__inner { max-width: 42rem; padding-block: 4.5rem; }
.hero h1 { color: var(--white); }
.hero h1 em {
  font-style: normal;
  display: block;
  background: linear-gradient(92deg, var(--red-hi), #ff6058);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p { font-size: 1.12rem; max-width: 34rem; }
.hero .btn-row { margin-top: 2.1rem; }

.hero--page { min-height: clamp(340px, 52vh, 520px); }

/* Keeps a subject that sits low or right in frame inside the hero crop */
.hero__media--fit img { object-position: 50% 62%; }
.hero--page .hero__inner { padding-block: 3rem; }

/* Capability strip beneath the hero */
.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--steel);
  border-bottom: 1px solid var(--line-soft);
  margin: 0;
}
.strip div {
  padding: 1.7rem 1.5rem;
  border-right: 1px solid var(--line-soft);
  transition: background var(--t);
}
.strip div:hover { background: var(--panel); }
.strip div:last-child { border-right: 0; }
.strip dt {
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.01em;
}
.strip dd {
  margin: 0.5rem 0 0;
  font-family: var(--label);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: var(--silver);
}

/* 7. COMPONENTS ============================================================ */
.card {
  background: linear-gradient(180deg, var(--panel), #111820);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
  overflow: hidden;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 62px; height: 3px;
  background: var(--red);
  transform: skewX(-24deg) translateX(-6px);
  transition: width var(--t);
}
.card:hover {
  border-color: #35424e;
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.card:hover::before { width: 120px; }
.card h3 { margin-bottom: 0; }
.card p { color: var(--silver); font-size: var(--fs-sm); }
.card .btn { margin-top: auto; align-self: flex-start; }

/* Full-width card — used where a service needs more room than a grid cell */
.card--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.35fr 1fr auto;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: 2rem 1.9rem;
}
.card--wide .card__body { display: grid; gap: 0.7rem; justify-items: start; }
.card--wide .btn { margin-top: 0; align-self: center; }

.card__tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.card__tags li {
  font-family: var(--label);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.68rem;
  color: var(--silver);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  background: rgba(255, 255, 255, 0.02);
}
.section--light .card__tags li { border-color: var(--mist-line); color: #5b6672; background: #fbfcfd; }

.section--light .card {
  background: var(--white);
  border-color: var(--mist-line);
  box-shadow: 0 1px 2px rgba(16, 24, 32, 0.04);
}
.section--light .card:hover { border-color: #c2ccd6; box-shadow: 0 24px 50px -30px rgba(16, 24, 32, 0.55); }
.section--light .card p { color: #5b6672; }

/* Image / video panels */
.figure {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.figure img,
.figure video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.figure--tall img,
.figure--tall video { aspect-ratio: 3 / 4; }
.figure--low img { object-position: 50% 72%; }
.figure figcaption {
  position: absolute;
  left: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(5, 7, 10, 0.92), rgba(5, 7, 10, 0.6));
  color: var(--chrome);
  font-family: var(--label);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.68rem;
  padding: 0.65rem 1.05rem;
  border-top: 2px solid var(--red);
}

.value-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.value-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.95rem;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.value-list li::before {
  content: "";
  width: 13px; height: 13px;
  margin-top: 0.5rem;
  background: var(--red);
  transform: skewX(-24deg);
  border-radius: 1px;
}
.section--light .value-list li { border-color: var(--mist-line); }

.callout {
  position: relative;
  overflow: hidden;
  background: linear-gradient(105deg, #6d0810, var(--red) 58%, #a30e19);
  color: var(--white);
  padding: clamp(2.25rem, 5vw, 3.5rem);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  box-shadow: 0 30px 60px -35px rgba(212, 17, 31, 0.9);
}
.callout::after {
  content: "";
  position: absolute;
  top: -40%; right: -6%;
  width: 300px; height: 220%;
  background: rgba(255, 255, 255, 0.06);
  transform: skewX(-24deg);
  pointer-events: none;
}
.callout > * { position: relative; z-index: 1; }
.callout h2, .callout p { color: var(--white); margin: 0; }
.callout p { opacity: 0.92; margin-top: 0.6rem; max-width: 46ch; }
.callout .btn--primary { background: var(--white); color: var(--red-dark); box-shadow: none; }
.callout .btn--primary:hover { background: var(--ink); color: var(--white); }
.callout .btn--secondary { color: var(--white); border-color: rgba(255, 255, 255, 0.5); background: transparent; }
.callout .btn--secondary:hover { border-color: var(--white); background: rgba(0, 0, 0, 0.16); }

/* Accordion (FAQ) */
.accordion { border-top: 1px solid var(--line); }
.section--light .accordion { border-color: var(--mist-line); }

.accordion details { border-bottom: 1px solid var(--line); }
.section--light .accordion details { border-color: var(--mist-line); }

.accordion summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.02rem;
  text-transform: uppercase;
  color: var(--chrome);
  transition: color var(--t);
}
.section--light .accordion summary { color: #0d1216; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { color: var(--red-hi); }
.section--light .accordion summary:hover { color: var(--red-dark); }
.accordion summary .plus {
  position: relative;
  flex: none;
  width: 30px; height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background var(--t), border-color var(--t), transform var(--t);
}
.section--light .accordion summary .plus { border-color: #c9d2db; }
.accordion summary .plus::before,
.accordion summary .plus::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 11px; height: 2px;
  background: var(--red);
  transform: translate(-50%, -50%);
  transition: transform var(--t), background var(--t);
}
.accordion summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.accordion details[open] summary .plus { background: var(--red); border-color: var(--red); }
.accordion details[open] summary .plus::before,
.accordion details[open] summary .plus::after { background: var(--white); }
.accordion details[open] summary .plus::after { transform: translate(-50%, -50%) rotate(0deg); }

.accordion .answer { padding: 0 0 1.5rem; max-width: 72ch; }
.accordion details[open] .answer { animation: fade-up 320ms ease both; }

/* Contact blocks */
.contact-card {
  background: linear-gradient(180deg, var(--panel), #111820);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: border-color var(--t), transform var(--t);
}
.contact-card:hover { border-color: #35424e; transform: translateY(-3px); }
.contact-card h3 { font-size: 1.05rem; display: flex; align-items: center; }
.contact-card--priority {
  border-color: rgba(212, 17, 31, 0.55);
  background: linear-gradient(180deg, rgba(212, 17, 31, 0.14), #111820);
}
.contact-card--priority:hover { border-color: var(--red); }
.contact-card a { color: var(--chrome); }
.contact-card a:hover { color: var(--red-hi); }
.section--light .contact-card { background: var(--white); border-color: var(--mist-line); }
.section--light .contact-card a { color: #0d1216; }
.section--light .contact-card a:hover { color: var(--red-dark); }

/* Forms */
.form { display: grid; gap: 1.05rem; }
.field { display: grid; gap: 0.4rem; }
.field label {
  font-family: var(--label);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--chrome);
}
.section--light .field label { color: #0d1216; }
.field input,
.field select,
.field textarea {
  font-family: var(--body);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--white);
  width: 100%;
  transition: border-color var(--t), box-shadow var(--t);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(212, 17, 31, 0.16);
}
.section--light .field input,
.section--light .field select,
.section--light .field textarea {
  background: var(--white);
  border-color: #cfd8e0;
  color: #0d1216;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #7b8794; }
.form-note { font-size: var(--fs-sm); }
.form-note--ok { color: #157a4a; }
.form-note--error { color: var(--red-dark); }
.section--light .form-note--ok { color: #10693f; }

/* Honeypot — hidden from people, visible to bots */
.field--hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn[aria-busy="true"] { opacity: 0.7; pointer-events: none; }

.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td {
  text-align: left;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm);
}
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours th { font-family: var(--label); text-transform: uppercase; letter-spacing: 0.12em; color: var(--chrome); font-weight: 600; }
.hours td { color: var(--silver); text-align: right; }
.section--light .hours th { color: #0d1216; }
.section--light .hours td { color: #5b6672; }
.section--light .hours th, .section--light .hours td { border-color: var(--mist-line); }

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


/* Icons — inline SVG sprite, stroked with currentColor */
.sprite { display: none; }

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.18em;
}
.icon--inline {
  color: var(--red-hi);
  margin-right: 0.55rem;
  width: 1.1em;
  height: 1.1em;
}
.section--light .icon--inline { color: var(--red); }

.card__icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(212, 17, 31, 0.16), rgba(212, 17, 31, 0.04));
  color: var(--red-hi);
  margin-bottom: 0.35rem;
  transition: background var(--t), border-color var(--t), color var(--t), transform var(--t);
}
.card__icon .icon { width: 24px; height: 24px; vertical-align: 0; }
.card:hover .card__icon {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  transform: translateY(-2px);
}
.section--light .card__icon { border-color: var(--mist-line); color: var(--red); }

/* 8. FOOTER ================================================================ */
.site-footer {
  background: #05070a;
  border-top: 1px solid var(--line-soft);
  padding-top: clamp(3.25rem, 6vw, 5rem);
  font-size: var(--fs-sm);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
}
.site-footer h4 {
  font-family: var(--label);
  letter-spacing: 0.22em;
  font-size: 0.74rem;
  color: var(--chrome);
  margin-bottom: 1.1rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.site-footer li { display: flex; align-items: flex-start; gap: 0.6rem; }
.site-footer li .icon { color: var(--red-hi); margin-top: 0.32em; width: 1em; height: 1em; }
.site-footer a { color: var(--silver); }
.site-footer a:hover { color: var(--white); }

.socials { display: flex; gap: 0.6rem; margin-top: 1.25rem; }
.socials a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--chrome);
  transition: background var(--t), border-color var(--t), color var(--t), transform var(--t);
}
.socials a:hover { background: var(--red); border-color: var(--red); color: var(--white); transform: translateY(-2px); }
.socials svg { width: 17px; height: 17px; fill: currentColor; }

.footer-bottom {
  margin-top: 3rem;
  border-top: 1px solid var(--line-soft);
  padding-block: 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--label);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  color: #6c7783;
}
.footer-bottom p { margin: 0; }
.credit a { color: #8b96a2; }
.credit a:hover { color: var(--white); }

/* 9. MOTION ================================================================ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms ease, transform 620ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* 10. RESPONSIVE =========================================================== */
@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .strip div:nth-child(2) { border-right: 0; }
  .strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
}

@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .card--wide { grid-template-columns: 1fr; align-items: start; gap: 1.4rem; }
  .card--wide .btn { align-self: flex-start; }

  .nav-toggle { display: block; }

  /* Full-height drawer sliding in from the right */
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(92vw, 420px);
    height: 100vh;
    height: 100dvh;
    z-index: 80;
    background: linear-gradient(180deg, #0a0d11 0%, #05070a 100%);
    border-left: 1px solid var(--line);
    box-shadow: -30px 0 60px -30px rgba(0, 0, 0, 0.9);
    transform: translateX(102%);
    transition: transform 340ms cubic-bezier(0.22, 0.61, 0.36, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 5.5rem 1.75rem 2.5rem;
  }
  .nav[data-open="true"] { transform: translateX(0); }

  .nav::before {
    content: "Menu";
    position: absolute;
    top: 2rem;
    left: 1.75rem;
    font-family: var(--label);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.68rem;
    color: var(--red-hi);
  }

  .nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  .nav li { border-bottom: 1px solid var(--line-soft); }
  .nav li:last-child { border-bottom: 0; padding-top: 1.5rem; }
  .nav a {
    display: block;
    padding: 1.15rem 0;
    font-size: 1.05rem;
    letter-spacing: 0.16em;
  }
  .nav a::after { bottom: 0.7rem; }
  .nav .btn {
    display: flex;
    width: 100%;
    justify-content: center;
    padding: 1.05rem 1.6rem;
    font-size: 0.88rem;
  }

  /* Contact block inside the drawer */
  .nav-meta {
    margin-top: auto;
    padding-top: 2rem;
    display: grid;
    gap: 0.5rem;
    font-family: var(--label);
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-size: 0.74rem;
    color: var(--silver);
  }
  .nav-meta a { color: var(--chrome); padding: 0; font-family: inherit; font-size: inherit; display: inline; }
  .nav-meta a::after { display: none; }
}

@media (min-width: 901px) {
  .nav-meta { display: none; }
  .nav-backdrop { display: none; }
}

@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .callout { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; }
  .btn--ghost { width: auto; }
  .brand-tag { display: none; }
  .footer-bottom { justify-content: flex-start; }
  .hours th, .hours td { display: block; text-align: left; }
  .hours th { border-bottom: 0; padding-bottom: 0.15rem; }
  .accordion summary { font-size: 0.96rem; gap: 1rem; }
  .card--wide { grid-template-columns: 1fr; }
  .card--wide .btn { align-self: stretch; }
  .card__tags { gap: 0.4rem; }
  .card__tags li { font-size: 0.62rem; padding: 0.35rem 0.7rem; letter-spacing: 0.1em; }

  /* Drawer takes the full viewport on phones */
  .nav {
    width: 100%;
    max-width: none;
    border-left: 0;
    padding: 5.25rem 1.5rem 2rem;
  }
  .nav-meta { padding-top: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
