/* ==========================================================
   STOP CRIM — Security Doors & Screens
   Brand: black / red / white
   ========================================================== */

:root {
  --red: #d7192a;
  --red-dark: #a8101e;
  --black: #111111;
  --charcoal: #1c1c1e;
  --steel: #2a2a2d;
  --grey: #6b6b70;
  --light: #f4f4f5;
  --white: #ffffff;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  --max: 1180px;
  --font-head: "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--red); }
a:hover { color: var(--red-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--red); color: var(--white); padding: 0.6rem 1rem; z-index: 200;
}
.skip-link:focus { left: 1rem; top: 1rem; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-head);
  font-size: 1.05rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em; text-decoration: none;
  border: 2px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); color: var(--white); }
.btn-outline { border-color: currentColor; color: var(--white); background: transparent; }
.btn-outline:hover { background: var(--white); color: var(--black); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--steel); color: var(--white); }

/* ---------- Top bar & header ---------- */
.topbar {
  background: var(--red); color: var(--white);
  font-size: 0.9rem; font-weight: 500;
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; padding-block: 0.45rem; flex-wrap: wrap;
}
.topbar a { color: var(--white); text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--black); color: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 0.7rem;
}

.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--white); }
.brand img { width: 40px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.75rem; letter-spacing: 0.02em; }
.brand-tag { font-family: var(--font-head); font-size: 0.72rem; letter-spacing: 0.14em; color: #ff5a66; text-transform: uppercase; margin-top: 0.25rem; }
.brand:hover { color: var(--white); }

.nav-toggle {
  display: none; background: none; border: 0; color: var(--white);
  padding: 0.5rem; cursor: pointer;
}
.nav-toggle svg { width: 28px; height: 28px; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.3rem; }
.main-nav a {
  display: block; padding: 0.55rem 0.9rem;
  font-family: var(--font-head); font-size: 1.02rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--white); text-decoration: none; border-radius: var(--radius);
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: #ff5a66; }
.main-nav .btn { margin-left: 0.6rem; padding: 0.6rem 1.15rem; }
.main-nav .btn:hover { color: var(--white); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--black); border-top: 1px solid var(--steel);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 0.75rem 1.25rem 1.25rem; gap: 0; }
  .main-nav a { padding: 0.85rem 0.25rem; border-bottom: 1px solid var(--steel); }
  .main-nav .btn { margin: 1rem 0 0; }
  .topbar-hide-sm { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    linear-gradient(100deg, rgba(10,10,10,0.97) 0%, rgba(10,10,10,0.9) 45%, rgba(120,8,18,0.75) 100%),
    url("../assets/img/og-banner.jpg") center / cover no-repeat;
  color: var(--white);
}
.hero .container {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 3rem; align-items: center;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: #ff5a66; margin-bottom: 1rem;
}
.hero h1 span { color: var(--red); }
.hero-lead { font-size: 1.2rem; color: #d8d8dc; max-width: 36rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.8rem; }
.hero-points { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; color: #e6e6e9; font-weight: 500; }
.hero-points li { display: flex; align-items: center; gap: 0.5rem; }
.hero-points li::before { content: ""; width: 10px; height: 10px; background: var(--red); transform: rotate(45deg); flex: none; }

.hero-photo { position: relative; justify-self: center; }
.hero-photo img {
  width: min(360px, 100%); aspect-ratio: 434 / 590; object-fit: cover;
  border-radius: var(--radius); border: 4px solid var(--white); box-shadow: 0 25px 60px rgba(0,0,0,0.6);
}
.hero-badge {
  position: absolute; left: -2.2rem; bottom: 2rem;
  background: var(--red); color: var(--white); border-radius: var(--radius);
  padding: 0.9rem 1.1rem; font-family: var(--font-head); text-transform: uppercase; line-height: 1.05;
  box-shadow: var(--shadow);
}
.hero-badge strong { display: block; font-size: 2.2rem; }
.hero-badge span { font-size: 0.85rem; letter-spacing: 0.08em; }

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .hero-photo img { width: min(280px, 80vw); }
  .hero-badge { left: -1rem; }
}

/* Page banner for inner pages */
.page-banner {
  background:
    linear-gradient(90deg, rgba(10,10,10,0.95), rgba(10,10,10,0.82) 60%, rgba(120,8,18,0.7)),
    url("../assets/img/og-banner.jpg") center / cover no-repeat;
  color: var(--white);
  padding-block: clamp(2.8rem, 6vw, 4.5rem);
}
.page-banner h1 { margin-bottom: 0.3em; }
.page-banner p { color: #d8d8dc; font-size: 1.15rem; max-width: 42rem; margin: 0; }

/* ---------- Trust strip ---------- */
.trust { background: var(--black); color: var(--white); border-top: 4px solid var(--red); }
.trust ul {
  list-style: none; margin: 0; padding: 1.6rem 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.trust li { display: flex; gap: 0.9rem; align-items: center; }
.trust svg { width: 38px; height: 38px; color: var(--red); flex: none; }
.trust strong { display: block; font-family: var(--font-head); font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.03em; }
.trust span { font-size: 0.9rem; color: #b5b5ba; }
@media (max-width: 900px) { .trust ul { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .trust ul { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.section-alt { background: var(--light); }
.section-dark { background: var(--charcoal); color: var(--white); }
.section-head { max-width: 46rem; margin: 0 auto 2.8rem; text-align: center; }
.section-head p { color: var(--grey); font-size: 1.1rem; }
.section-dark .section-head p { color: #c4c4c9; }
.section-head h2::after {
  content: ""; display: block; width: 64px; height: 4px; background: var(--red); margin: 0.6em auto 0;
}
.text-left h2::after { margin-left: 0; }

/* ---------- Product cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.6rem; }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08); display: flex; flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 0.4em; }
.card-body p { color: #4a4a50; font-size: 0.98rem; flex: 1; }
.card-link { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; text-decoration: none; }
.card-link::after { content: " →"; }

/* ---------- Split / feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.split-media-tall img { aspect-ratio: 4 / 5; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.checklist { list-style: none; padding: 0; margin: 1.4rem 0; }
.checklist li { position: relative; padding-left: 2rem; margin-bottom: 0.75rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.3em;
  width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li {
  counter-increment: step; position: relative;
  background: var(--steel); border-radius: var(--radius); padding: 2.2rem 1.4rem 1.5rem;
  border-top: 4px solid var(--red);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; color: var(--red);
  display: block; line-height: 1; margin-bottom: 0.6rem;
}
.steps h3 { font-size: 1.2rem; }
.steps p { color: #c4c4c9; margin: 0; font-size: 0.97rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.9rem; }
.gallery-grid a { display: block; overflow: hidden; border-radius: var(--radius); background: var(--light); }
.gallery-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 0.4s; }
.gallery-grid a:hover img { transform: scale(1.05); }
.gallery-grid.compact { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,0.92);
  display: none; align-items: center; justify-content: center; padding: 3rem 4rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 88vh; max-width: 100%; border-radius: var(--radius); box-shadow: 0 0 40px rgba(0,0,0,0.6); }
.lightbox button {
  position: absolute; background: rgba(255,255,255,0.08); border: 0; color: var(--white);
  width: 3rem; height: 3rem; border-radius: 50%; font-size: 1.6rem; cursor: pointer; line-height: 1;
}
.lightbox button:hover { background: var(--red); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox { padding: 3.5rem 0.5rem; } .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; } }

/* ---------- Service areas ---------- */
.areas { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; list-style: none; padding: 0; margin: 0; }
.areas li {
  background: var(--white); border: 1px solid #ddd; border-radius: 999px;
  padding: 0.45rem 1.1rem; font-weight: 500; font-size: 0.95rem;
}
.section-dark .areas li { background: var(--steel); border-color: #3a3a3e; color: var(--white); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--red); color: var(--white); }
.cta-band .container {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  padding-block: 2.8rem;
}
.cta-band h2 { margin: 0 0 0.2em; }
.cta-band p { margin: 0; font-size: 1.1rem; }
.cta-band .btn-outline:hover { color: var(--red); }

/* ---------- Product detail blocks ---------- */
.product { padding-block: 3.2rem; border-bottom: 1px solid #e6e6e8; scroll-margin-top: 90px; }
.product:last-child { border-bottom: 0; }
.product .split img { aspect-ratio: 4 / 3; }
.product:nth-child(even) .split > :first-child { order: 2; }
@media (max-width: 820px) { .product:nth-child(even) .split > :first-child { order: 0; } }
.product-tag {
  display: inline-block; background: var(--black); color: var(--white);
  font-family: var(--font-head); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.25rem 0.7rem; border-radius: 3px; margin-bottom: 0.9rem;
}
.product-tag.new { background: var(--red); }

.jump-links { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.jump-links a {
  text-decoration: none; color: var(--charcoal); background: var(--white); border: 1px solid #ddd;
  padding: 0.5rem 1rem; border-radius: 999px; font-weight: 500; font-size: 0.95rem;
}
.jump-links a:hover { border-color: var(--red); color: var(--red); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 3rem; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card { background: var(--black); color: var(--white); border-radius: var(--radius); padding: 2rem; border-top: 4px solid var(--red); }
.contact-card h2 { font-size: 1.7rem; }
.contact-list { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; padding: 0.9rem 0; border-bottom: 1px solid var(--steel); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list svg { width: 24px; height: 24px; color: var(--red); flex: none; margin-top: 0.2rem; }
.contact-list small { display: block; color: #a9a9ae; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; }
.contact-list a { color: var(--white); text-decoration: none; font-weight: 600; font-size: 1.1rem; }
.contact-list a:hover { color: #ff5a66; }

.quote-form { background: var(--white); border-radius: var(--radius); padding: 2rem; box-shadow: 0 4px 24px rgba(0,0,0,0.08); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.35rem; }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 0.75rem 0.9rem;
  border: 1.5px solid #d4d4d8; border-radius: var(--radius); background: var(--white); color: var(--charcoal);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(215,25,42,0.15); }
.field textarea { min-height: 130px; resize: vertical; }
.checkbox-group { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.4rem 1rem; }
.checkbox-group label { font-weight: 400; display: flex; gap: 0.5rem; align-items: center; margin: 0; }
.checkbox-group input { width: auto; accent-color: var(--red); }
@media (max-width: 560px) { .checkbox-group { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: 0.88rem; color: var(--grey); margin-top: 0.8rem; }
.form-status { margin-top: 1rem; padding: 0.9rem 1rem; border-radius: var(--radius); display: none; }
.form-status.ok { display: block; background: #e8f6ec; color: #1d5e30; }
.form-status.err { display: block; background: #fdecee; color: #8a1220; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: #b5b5ba; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-block: 3.5rem 2.5rem; }
.site-footer h4 { color: var(--white); font-size: 1.05rem; letter-spacing: 0.08em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: #d6d6da; text-decoration: none; }
.site-footer a:hover { color: #ff5a66; }
.footer-brand p { margin-top: 1rem; }
.footer-bottom { border-top: 1px solid var(--steel); padding-block: 1.2rem; font-size: 0.85rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.social { display: flex; gap: 0.6rem; margin-top: 1rem; }
.social a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; background: var(--steel); }
.social a:hover { background: var(--red); color: var(--white); }
.social svg { width: 20px; height: 20px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Mobile call bar ---------- */
.call-bar { display: none; }
@media (max-width: 700px) {
  .call-bar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.25);
  }
  .call-bar a {
    text-align: center; padding: 0.95rem; font-family: var(--font-head); text-transform: uppercase;
    letter-spacing: 0.06em; font-weight: 600; text-decoration: none; color: var(--white);
  }
  .call-bar a:first-child { background: var(--red); }
  .call-bar a:last-child { background: var(--black); }
  body { padding-bottom: 3.4rem; }
}

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.lead { font-size: 1.15rem; color: #4a4a50; }
.section-dark .lead { color: #c4c4c9; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .gallery-grid img { transition: none; }
}
