/* ================= ROOT ================= */
:root{
  --bg:#0b0b0d;
  --black:#0b0b0d;
  --red:#b0161a;
  --red2:#e04b4f;
  --muted:#cfcfcf;
  --shadow:0 14px 30px rgba(0,0,0,0.22);
  --softShadow:0 10px 20px rgba(0,0,0,.18);
}

*{ box-sizing:border-box; }

html,body{
  margin:0;
  padding:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:
    radial-gradient(1200px 600px at 50% 0%, rgba(255,255,255,0.06), transparent 60%),
    linear-gradient(180deg,#0b0b0d 0%,#121218 40%,#0b0b0d 100%);
  color:rgba(255,255,255,0.92);
}

a{ color:inherit; text-decoration:none; }
img{ display:block; }

/* ================= LAYOUT ================= */
.container{
  width:min(1100px,92vw);
  margin:0 auto;
}

main.container{
  margin:26px auto 60px;
}

/* ================= HEADER ================= */
.site-header{
  position:sticky;
  top:0;
  z-index:999;
  background:var(--black);
  border-bottom:3px solid var(--red);
}
.footer-grid{
  width: min(1100px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* equal columns */
  gap: 24px;
  text-align: center; /* center text */
  align-items: start;
}
.topbar{
  width:min(1200px,96vw);
  margin:0 auto;
  height:96px;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
}

.topbar-left,
.topbar-right{
  display:flex;
  gap:14px;
  align-items:center;
}

.topbar-left{ justify-content:flex-start; }
.topbar-right{ justify-content:flex-end; }

/* Left links */
.toplink{
  font-weight:800;
  padding:10px;
  border-radius:10px;
  color:#fff;
}

.toplink:hover{
  background:rgba(255,255,255,0.08);
}

/* Right link (Services & Contact Us) */
.topbtn{
  background: transparent !important;
  color: #ffffff !important; /* ✅ fixed missing semicolon from your paste */
  border: none !important;
  border-radius: 10px !important;
  padding: 10px 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.2px !important;
}

.topbtn:hover{
  background: rgba(255,255,255,0.08) !important;
  transform: none !important;
}

.topbtn.active{
  color: #fff !important;
  background: rgba(255,255,255,0.10) !important;
  outline: 1px solid rgba(255,255,255,0.12) !important;
  border: none !important;
}

/* Center logo */
.logo{
  height: 108px;
  max-width: 420px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,.35));
}

/* ================= PAGE HEAD (About/Services/Contact) ================= */
.page-head{
  margin: 8px 0 14px;
}

.page-head h1{
  margin: 0 0 6px;
  font-size: clamp(26px, 3vw, 38px);
}

.page-head .muted{
  margin: 0;
  color: rgba(255,255,255,.78);
}

/* ================= HERO ================= */
.hero{
  border-radius:16px;
  overflow:hidden;
  background:linear-gradient(90deg,rgba(176,22,26,.96),rgba(176,22,26,.86));
  box-shadow:var(--shadow);
}

.hero-card{ padding:34px 22px; }

.badge-row{
  display:flex;
  gap:10px;
  margin-bottom:12px;
  flex-wrap:wrap;
}

.badge{
  padding:7px 10px;
  border-radius:999px;
  font-weight:900;
  font-size:12px;
  background:rgba(0,0,0,.25);
  border:1px solid rgba(255,255,255,.3);
}

h1{
  font-size:clamp(28px,3.4vw,44px);
  margin:0 0 10px;
}

.lead{
  max-width:70ch;
  margin:0 0 18px;
  color: rgba(255,255,255,.92);
}

.cta-row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

/* Buttons used in hero */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:10px 14px;
  border-radius:12px;
  font-weight:900;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(0,0,0,.25);
  color:#fff;
  transition:transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover{
  background:rgba(0,0,0,.35);
  transform:translateY(-2px);
  box-shadow: 0 14px 28px rgba(0,0,0,.25);
}

/* ================= SECTION HEAD ================= */
.section-head{
  margin:18px 0 12px;
}

.section-head h2{
  margin:0 0 6px;
  font-size: clamp(22px, 2.4vw, 30px);
}

.muted{
  color:rgba(255,255,255,.75);
}

/* ================= LISTS ================= */
.list{
  margin: 0;
  padding-left: 18px;
}

.list li{
  margin: 6px 0;
}

/* ================= RED INFO CARDS ================= */
.card{
  background:linear-gradient(90deg,rgba(176,22,26,.95),rgba(176,22,26,.82));
  border-radius:16px;
  padding:20px;
  box-shadow:var(--shadow);
  border:1px solid rgba(255,255,255,.14);
}

.card h2{ margin:0 0 10px; }

.card .muted,
.card .list,
.card .list li{
  color:rgba(255,255,255,.9);
}

.divider{
  height:2px;
  margin:14px 0;
  background:linear-gradient(90deg,var(--red),transparent);
}

/* ================= GRID (Contact split boxes) ================= */
.grid-2{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:16px;
  align-items:stretch;
}

@media(max-width:860px){
  .grid-2{ grid-template-columns:1fr; }
}

/* ================= SERVICES BANNER (hamburger rectangle) ================= */
.service-banner{
  margin-top: 14px;
  display:flex;
  justify-content:space-between;
  gap:18px;
  padding:20px;
  border-radius:16px;
  background:linear-gradient(90deg,rgba(176,22,26,.95),rgba(176,22,26,.82));
  box-shadow:var(--shadow);
  border:1px solid rgba(255,255,255,.14);
}

.service-banner-left{
  flex: 1 1 auto;
  min-width: 260px;
}

.service-banner-right{
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:flex-end;
  justify-content:flex-start;
  flex: 0 0 auto;
}

.service-title{
  font-weight: 1000;
  font-size: 20px;
  margin-bottom: 6px;
}

.service-sub{
  margin-bottom: 12px;
  color: rgba(255,255,255,.88);
}

.service-list{
  margin: 0;
  padding-left: 18px;
  color: rgba(255,255,255,.92);
}

.service-list li{
  margin: 6px 0;
  font-weight: 800;
}

.service-note{
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.92);
  font-weight: 800;
}

.callout-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.16);
  color:#fff;
  font-weight: 900;
  white-space: nowrap;
}

/* Mobile stack for service banner */
@media(max-width:860px){
  .service-banner{
    flex-direction:column;
    align-items:flex-start;
  }
  .service-banner-right{
    align-items:flex-start;
  }
}

/* ================= TILE GRIDS ================= */
.six-grid,
.product-grid{
  margin-top:14px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}

@media(max-width:900px){
  .six-grid,
  .product-grid{ grid-template-columns:repeat(2,1fr); }
}
@media(max-width:520px){
  .six-grid,
  .product-grid{ grid-template-columns:1fr; }
}

/* ================= SHARED TILE BASE ================= */
.tile,
.ptile{
  position:relative;
  height:190px;
  border-radius:16px;
  overflow:hidden;
  background:#111;
  box-shadow:var(--softShadow);
  border:1px solid rgba(255,255,255,.06);
}

/* 🔴 red accent bar */
.tile::before,
.ptile::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  height:6px;
  width:100%;
  background:var(--red);
  z-index:2;
}

.tile img,
.ptile img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}

/* dark gradient */
.tile::after,
.ptile::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,.15),rgba(0,0,0,.75));
  z-index:1;
}

/* ================= TEXT OVERLAY ================= */
.tile-label,
.ptile-body{
  position:absolute;
  inset:0;
  padding:16px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  z-index:3;
  text-shadow:0 6px 16px rgba(0,0,0,.6);
}

/* Titles */
.ptile-title{
  font-weight:1000;
  font-size:14px;
  letter-spacing:.3px;
}

/* Home tile label: title + sub line */
.tile-label{
  font-weight: 1000;
}

.tile-label .tile-title{
  font-weight: 1000;
  font-size: 16px;
  line-height: 1.05;
}

.tile-sub,
.ptile-sub{
  margin-top:4px;
  font-size:13px;
  font-weight:700;
  opacity:.85;
  text-transform:none;
}

/* ================= HOVER GLOW ================= */
.tile,
.ptile,
.card,
.logo-banner{
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.tile:hover,
.ptile:hover,
.logo-banner:hover{
  transform:translateY(-6px) scale(1.02);
  box-shadow:
    0 22px 48px rgba(0,0,0,.34),
    0 0 0 1px rgba(176,22,26,.35);
}

.card:hover{
  transform:translateY(-4px) scale(1.01);
  box-shadow:
    0 18px 38px rgba(0,0,0,.28),
    0 0 0 1px rgba(176,22,26,.25);
}

/* ================= HOME LOGO RAIL LAYOUT ================= */
.home-rail-layout{
  display:grid;
  grid-template-columns: 140px 1fr 140px; /* left rail | tiles | right rail */
  gap:14px;
  align-items:start;
}

/* ✅ This is what makes them "slide down as you scroll" */
.logo-rail{
  display:flex;
  flex-direction:column;
  gap:14px;
  position:sticky;
  top:96px; /* sits below header */
}

/* The banner tiles on each side */
.logo-banner{
  height:190px; /* match tile height */
  border-radius:16px;
  overflow:hidden;
  background:#111;
  border:1px solid rgba(255,255,255,.06);
  box-shadow:var(--softShadow);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:12px;
  position:relative;
}

.logo-banner::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  height:6px;
  width:100%;
  background:var(--red);
  z-index:2;
}

/* Prevent any oversized logo from escaping the banner */
.logo-banner img{
  max-width:100%;
  max-height:100%;
  width:auto;
  height:auto;
  object-fit:contain;
  filter:drop-shadow(0 8px 16px rgba(0,0,0,.45));
}
/* ================= MOBILE FIX: SHOW LOGO BANNERS ================= */
@media (max-width: 1000px){
  .home-rail-layout{
    grid-template-columns: 1fr; /* collapse rails on mobile */
  }

  .logo-rail{
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;   /* ✅ center rail contents */
    align-items: center;
  }

  .logo-banner{
    flex: 1 1 220px;
    height: 120px;
    max-width: 320px;
  }
}

/* ================= MOBILE FIX (PHONE): VERTICAL STACK + PANELS VISIBLE ================= */
@media (max-width: 768px){

  /* Stack homepage layout vertically */
  .home-rail-layout{
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  /* Rails visible + centered */
  .logo-rail{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0;
  }

  .logo-banner{
    height: 120px;
    flex: 1 1 45%;
    max-width: 45%;
  }

  .logo-banner img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,.45));
  }

  /* Put logos ABOVE the tiles (best UX) */
  .logo-rail.left{ order: 1; }
  .six-grid,
  .product-grid{ order: 2; }
  .logo-rail.right{ order: 3; }

  /* ✅ KEEP PANELS ON PORTRAIT */
  .six-grid,
  .product-grid{
    display: grid;
    grid-template-columns: 1fr;  /* single column on portrait phones */
    gap: 14px;
    width: 100%;
  }

  .tile,
  .ptile{
    height: 190px; /* keep consistent tile height */
  }

  /* Header stacks clean */
  .topbar{
    height: auto;
    padding: 10px 0 12px;
    grid-template-columns: 1fr;
    row-gap: 10px;
  }

  .topbar-left,
  .topbar-right{
    justify-content: center;
    flex-wrap: wrap;
  }

  .topbar-center{
    justify-content: center;
  }

  /* Center logo when vertical */
  .logo{
    display: block;
    margin: 0 auto;
    max-width: 85vw;
    height: 88px; /* keeps it from overflowing */
  }
}
/* ================= MOBILE HEADER LAYOUT FIX ================= */
@media (max-width: 768px){

  /* Keep 3-column structure on mobile */
  .topbar{
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: auto;
    padding: 12px 0;
  }

  /* Left links */
  .topbar-left{
    justify-content: flex-start;
  }

  /* Right links */
  .topbar-right{
    justify-content: flex-end;
  }

  /* Center logo */
  .topbar-center{
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* Logo sizing + centering */
  .logo{
    height: 78px;        /* balanced for mobile */
    max-width: 80vw;
    margin: 0 auto;
  }

  /* Prevent wrapping that breaks layout */
  .topbar-left,
  .topbar-right{
    flex-wrap: nowrap;
  }

  /* Reduce tap target spacing slightly */
  .toplink,
  .topbtn{
    padding: 8px 8px;
    font-size: 14px;
  }
}