/* ===================== Utility-style (reefers) Design Tokens ===================== */
:root{
  /* Surfaces & text */
  --bg: #ffffff;
  --panel: #ffffff;
  --panel-2: #f5f6f7;              /* light gray bands / subnav */
  --border: rgba(0,0,0,.10);       /* crisper than .08 for stronger dividers */
  --text: #1a1a1a;
  --muted: #4b5563;

  /* Brand (Utility crimson) */
  --brand: #E51636;                /* primary crimson */
  --brand-2:#B50F28;               /* hover/darker */
  --link:  var(--brand);
  --link-hover: var(--brand-2);

  /* Layout */
  --maxw: 1200px;
  --radius: 12px;

  /* Spacing */
  --space-1: .375rem;
  --space-2: .75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;

  /* Shadows */
  --shadow-1: 0 1px 6px rgba(0,0,0,.06);
  --shadow-2: 0 8px 24px rgba(0,0,0,.10);
}

* { box-sizing: border-box; }
html, body { margin:0; padding:0; }
body{
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans";
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img{ max-width:100%; height:auto; display:block; }

/* Utilities */
.container{
  width:100%;
  max-width: var(--maxw);
  margin-inline:auto;
  padding-inline: var(--space-3);
}
.section{ padding: var(--space-6) 0; }
.prose p { margin: 0 0 1em; color: var(--muted); }
.prose h1, .prose h2, .prose h3 { color: var(--text); margin: 0 0 .6em; font-weight: 800; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }

/* Slim section rule like Utility pages */
hr, .rule {
  border: 0; height: 1px; background: var(--border);
  margin: var(--space-5) 0 var(--space-4);
}

/* ====================== Header / Primary Nav ====================== */
.site-header{
  position: sticky; top:0; z-index: 50;
  background: #fff;
  backdrop-filter: saturate(140%) blur(3px);
  border-bottom: 1px solid var(--border);
}
.header-inner{
  display:flex; align-items:center; gap: var(--space-4);
  padding: .75rem 0;
}
.brand{ display:flex; align-items:center; gap: var(--space-3); color: var(--text); text-decoration:none; }
.brand img{ width:64px; height:auto; }
.brand-text{ font-weight: 800; font-size: clamp(1.1rem, 1.2vw + .8rem, 1.6rem); letter-spacing:.2px; }

/* Mobile nav toggle */
.nav-toggle{
  margin-left:auto;
  background: transparent; border: 1px solid var(--border); color: var(--text);
  padding: .5rem .6rem; border-radius: 10px; cursor:pointer; display:flex; flex-direction:column; gap:4px;
}
.nav-toggle-bar{ width:22px; height:2px; background:#222; display:block; }
.nav-toggle:focus{ outline: 2px solid var(--brand); outline-offset: 2px; }

/* Primary nav menu */
.site-nav{
  margin-left:auto;
  display:none;
  background: var(--panel);
  position:absolute; top:100%; right: .75rem; box-shadow: var(--shadow-2);
  border: 1px solid var(--border);
  padding: .5rem; border-radius: 12px;
}
.site-nav.open{ display:block; }
.site-nav ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; min-width: 260px; }
.site-nav a{
  display:block; padding: .70rem .9rem; border-radius: 8px; color: var(--text);
  text-transform: uppercase; font-weight: 800; letter-spacing: .02em;
  position: relative;
}
.site-nav a:hover{ background: var(--panel-2); color: var(--brand); }
.site-nav a.is-active, .site-nav a[aria-current="page"]{
  color: var(--brand);
}
.site-nav a.is-active::after, .site-nav a[aria-current="page"]::after{
  content:""; position:absolute; left:.9rem; right:.9rem; bottom:.35rem;
  height:3px; background: var(--brand); border-radius: 2px;
}

/* Desktop nav */
@media (min-width: 900px){
  .nav-toggle{ display:none; }
  .site-nav{
    position: static; display:block; background: transparent; box-shadow:none; border:none; padding:0;
  }
  .site-nav ul{ flex-direction:row; gap:.25rem; min-width:auto; }
  .site-nav a{ padding: .8rem .9rem; border-radius: 6px; }
  .site-nav a::after{ bottom: .4rem; }
}

/* ====================== Hero / Media ====================== */
.hero{ background: linear-gradient(180deg, rgba(229,22,54,.06), rgba(255,255,255,0)); }
.hero-media{
  max-height: 520px; overflow:hidden;
  border-bottom: 1px solid var(--border);
}
.hero img{ width:100%; height: 100%; object-fit: cover; }

/* Optional title card overlay for hero (matches their big headline box vibe) */
.carousel-overlay, .hero .overlay {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
}
.carousel-card, .hero .card {
  pointer-events: auto;
  width: min(780px, 92%); background: rgba(255,255,255,.92);
  border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-2);
  padding: 1.25rem 1.5rem;
}
.carousel-card h1, .hero .card h1 { margin: 0 0 .35rem; font-weight: 900; }
.carousel-card p, .hero .card p { margin: 0; color: var(--muted); }

/* ====================== Secondary (Sales) Nav ====================== */
.subnav {
  background: var(--panel-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.subnav .container { display:flex; align-items:center; justify-content:center; }
.subnav ul { list-style:none; margin:0; padding:.5rem; display:flex; gap:.25rem; flex-wrap: wrap; }
.subnav a {
  display:block; padding:.55rem .9rem; border-radius:10px; color: var(--muted); text-decoration:none;
  font-weight: 800; text-transform: uppercase; letter-spacing: .02em;
}
.subnav a:hover { color: var(--text); background: #fdecef; } /* pale crimson hover */

/* ====================== Cards / Buckets ====================== */
.cards { display: grid; gap: var(--space-5); }
@media (min-width: 900px){ .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: var(--shadow-1);
}
.card h2 { margin: 0 0 .35rem; font-size: 1.25rem; color: var(--text); font-weight: 900; }
.card p { margin: 0; color: var(--muted); }
.card a.more {
  display:inline-block; margin-top:.75rem; color: var(--brand);
  border:1px solid rgba(229,22,54,.22); padding:.56rem .8rem; border-radius:8px; text-decoration:none; font-weight:800; text-transform: uppercase;
}
.card a.more:hover {
  background: #fdecef;
  border-color: rgba(229,22,54,.38);
  color: var(--brand-2);
}

/* ====================== Buttons (generic, for future use) ====================== */
.button, .btn, a.button {
  display:inline-block; background: var(--brand); color:#fff; border:1px solid var(--brand);
  border-radius: 8px; padding: .7rem 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: .02em;
  text-decoration:none;
}
.button:hover, .btn:hover, a.button:hover {
  background: var(--brand-2); border-color: var(--brand-2);
}

/* ====================== Tables & Lists (for spec sections) ====================== */
table{
  width:100%; border-collapse: collapse; margin: var(--space-4) 0; font-size: .98rem;
}
th, td{ padding: .75rem .75rem; border-bottom: 1px solid var(--border); text-align: left; }
th{ font-weight: 800; color: var(--text); }
ul { padding-left: 1.1rem; }
ul > li { margin: .35rem 0; }
ul.checklist { list-style: none; padding-left: 0; }
ul.checklist li::before{
  content:"—"; color: var(--brand); margin-right: .5rem; font-weight: 900;
}

/* ====================== Footer ====================== */
.site-footer{
  border-top:1px solid var(--border);
  background: #fff;
}
.footer-top{
  display:flex; align-items:center; justify-content:space-between; gap: var(--space-3);
  padding: var(--space-4) 0;
}
.footer-top .phone{ color: var(--text); text-decoration: none; font-weight: 800; }
.back-to-top{
  display:flex; align-items:center; gap:.4rem; color: var(--text);
  padding:.4rem .6rem; border:1px solid var(--border); border-radius: 10px; text-decoration:none; font-weight: 700;
}
.back-to-top:hover{ background: var(--panel-2); }
.back-to-top img{ width:16px; height:auto; }

.footer-grid{
  display:grid; gap: var(--space-5);
  grid-template-columns: 1.2fr 1fr auto;
  padding-bottom: var(--space-5);
}
.footer-nav ul, .footer-social ul{ list-style:none; margin:0; padding:0; }
.footer-nav a, .footer-social a, .footer-contact a{ color: var(--muted); text-decoration:none; font-weight: 800; text-transform: uppercase; letter-spacing:.02em; }
.footer-nav a:hover, .footer-social a:hover, .footer-contact a:hover{ color: var(--brand); }

.footer-bottom{
  display:flex; align-items:center; justify-content:space-between; gap: var(--space-3);
  padding: var(--space-4) 0;
  border-top:1px solid var(--border);
}
.footer-logos{ display:flex; align-items:center; gap: 12px; }
.footer-logos img{ display:block; }

@media (max-width: 900px){
  .footer-grid{ grid-template-columns: 1fr; }
  .footer-bottom{ flex-direction: column; align-items:flex-start; gap: var(--space-2); }
}

/* Accessible helper */
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}
/* Layout */
.topnav .menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.topnav .menu > li {
  position: relative; /* so the dropdown can position underneath */
}

.topnav a {
  text-decoration: none;
  display: inline-block;
  padding: 0.75rem 0.25rem;
}

/* Dropdown */
.topnav .dropdown {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 240px;
  list-style: none;
  margin: 0;
  padding: 0.25rem 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  border-radius: 8px;
  display: none;            /* hidden by default */
  z-index: 1000;
}

.topnav .dropdown li a {
  display: block;
  padding: 0.6rem 1rem;
  white-space: nowrap;
}

.topnav .dropdown li a:hover,
.topnav .dropdown li a:focus {
  background: rgba(0,0,0,.04);
}

/* Show on hover and keyboard focus */
.topnav .has-dropdown:hover > .dropdown,
.topnav .has-dropdown:focus-within > .dropdown {
  display: block;
}

/* Optional: underline / caret */
.topnav .has-dropdown > a::after {
  content: "▾";
  margin-left: .35rem;
  font-size: .8em;
  opacity: .7;
}

/* Mobile/touch fallback: menu usually collapses, so disable hover drop on small screens if needed */
@media (hover: none) {
  .topnav .dropdown { display: none; }
  .topnav .has-dropdown.open > .dropdown { display: block; }
}
/* Main layout */
.topnav .menu {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.topnav .menu > li {
  position: relative;
}

.topnav .menu > li > a {
  text-decoration: none;
  display: inline-block;
  padding: 0.75rem 0.5rem;
  color: #000; /* adjust to match your theme */
}

/* Dropdown styling */
.topnav .dropdown {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 220px;
  list-style: none;
  margin: 0;
  padding: 0.25rem 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  border-radius: 6px;
  display: none;
  z-index: 99;
}

.topnav .dropdown li a {
  display: block;
  padding: 0.6rem 1rem;
  color: #000;
  text-decoration: none;
}

.topnav .dropdown li a:hover {
  background: rgba(0,0,0,0.05);
}

/* Show dropdown on hover */
.topnav .has-dropdown:hover > .dropdown {
  display: block;
}

/* Optional small caret */
.topnav .has-dropdown > a::after {
  content: "▾";
  font-size: 0.7em;
  margin-left: 0.3rem;
}

