/* =========================================================
   Derbyshire Security - Modern Light Theme (Full File)
   Updates in this version:
   - HERO image remains perfect/full-width
   - HERO overlay box contrast improved (more readable)
   - Stronger text color + shadows for legibility
   - Header height stays fixed; logo overlaps without pushing layout
   ========================================================= */

/* -----------------------------
   CSS Variables
------------------------------ */
:root{
  --bg: #ffffff;
  --bg-soft: #f3f6f9;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --muted-2: #64748b;
  --border: #e2e8f0;

  --navy: #0b2741;
  --navy-2: #123a60;
  --gold: #b8891c;
  --green: #0f8f56;
  --green-2: #0b7b4a;

  --shadow-sm: 0 8px 20px rgba(2, 8, 23, 0.08);
  --shadow-md: 0 18px 40px rgba(2, 8, 23, 0.10);

  --radius: 18px;
  --radius-lg: 22px;

  --container: 1180px;
}

/* -----------------------------
   Base
------------------------------ */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.55;
}
img{max-width:100%; height:auto; display:block}
a{color:inherit; text-decoration:none}
a:hover{text-decoration:none}

.container{
  width:min(var(--container), calc(100% - 40px));
  margin:0 auto;
}

.skip-link{
  position:absolute;
  left:-999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip-link:focus{
  left:16px;
  top:16px;
  width:auto;
  height:auto;
  z-index:9999;
  background:#fff;
  border:1px solid var(--border);
  padding:10px 14px;
  border-radius:10px;
  box-shadow:var(--shadow-sm);
}

/* -----------------------------
   Buttons
------------------------------ */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 18px;
  border-radius:999px;
  font-weight:800;
  border:1px solid transparent;
  cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  text-align:center;
  white-space:nowrap;
}
.btn:hover{transform: translateY(-1px); box-shadow: var(--shadow-sm)}
.btn:active{transform: translateY(0px)}

.btn-primary{background: var(--green); color:#fff;}
.btn-primary:hover{background: var(--green-2)}

.btn-outline{
  background: rgba(255,255,255,.94);
  border-color: rgba(15,23,42,.18);
  color: var(--text);
}
.btn-outline:hover{background:#fff; border-color: rgba(15,23,42,.28)}

.btn-secondary{background: var(--navy); color:#fff;}
.btn-secondary:hover{background: var(--navy-2)}

.btn-block{width:100%}
.btn-call{padding:12px 18px}

/* -----------------------------
   Topbar
------------------------------ */
.topbar{
  background: var(--navy);
  color:#fff;
  font-weight:800;
  font-size:14px;
}
.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 0;
  gap:14px;
}
.topbar-phone{color:#fff}
.topbar-social{
  display:flex;
  align-items:center;
  gap:10px;
}
.topbar .icon{
  width:34px;
  height:34px;
  border-radius:999px;
  background: rgba(255,255,255,.10);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  border:1px solid rgba(255,255,255,.12);
}
.topbar .icon:hover{background: rgba(255,255,255,.16)}

/* -----------------------------
   Header / Nav (NO height growth)
------------------------------ */
.site-header{
  position: sticky;
  top:0;
  z-index:1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:14px 0;
  min-height: 74px;
}

/* brand footprint stays fixed */
.brand{
  position:relative;
  display:block;
  width: 170px;
  height: 64px;
  flex: 0 0 170px;
}

/* logo overlaps into body without changing header height */
.logo{
  position:absolute;
  left:0;
  top:-6px;
  width:auto;
  height: 130px;
  max-height:none;
  filter: drop-shadow(0 8px 18px rgba(2,8,23,.12));
  pointer-events:none;
}

/* nav */
.nav{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:nowrap;
  overflow:hidden;
}
.nav a{
  font-weight:900;
  color: var(--navy);
  padding:10px 14px;
  border-radius:999px;
  border:1px solid transparent;
}
.nav a:hover{
  background: rgba(15,143,86,.08);
  border-color: rgba(15,143,86,.18);
}
.nav a.active{
  background: rgba(15,143,86,.10);
  border-color: rgba(15,143,86,.22);
}

/* call button */
.btn-call{
  background: var(--green);
  color:#fff;
  border:1px solid rgba(0,0,0,0);
  box-shadow: var(--shadow-sm);
}
.btn-call:hover{background: var(--green-2)}

/* -----------------------------
   HERO (Full-width background image)
------------------------------ */
.hero{
  position:relative;
  padding:48px 0 30px;
  overflow:hidden;

  background:
    radial-gradient(900px 420px at 18% 28%, rgba(15,143,86,.14), rgba(255,255,255,0) 60%),
    radial-gradient(800px 420px at 80% 20%, rgba(11,39,65,.10), rgba(255,255,255,0) 65%),
    url("../images/cleveland-ohio-security-system-installation-hero.png");
  background-repeat:no-repeat;
  background-position:center;
  background-size: cover;
}

/* keep hero image “perfect” – light readability wash only */
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(
      90deg,
      rgba(7,18,30,.18) 0%,
      rgba(7,18,30,.12) 45%,
      rgba(7,18,30,.06) 70%,
      rgba(255,255,255,0) 100%
    );
  pointer-events:none;
}

.hero-inner{
  position:relative;
  display:grid;
  grid-template-columns: 1fr auto;
  gap:22px;
  align-items:start;
}

/* ✅ BIG FIX: hero overlay panel is now readable */
.hero-content{
  width:min(780px, 100%);
  padding:28px 30px;
  border-radius: var(--radius-lg);

  /* darker glass just inside the panel (NOT the whole hero) */
  background: rgba(2, 6, 23, .52);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 22px 54px rgba(2,8,23,.26);
  backdrop-filter: blur(8px);

  color:#fff;
  margin-left: 10px;
  position:relative;
}

/* subtle inner gradient so text area reads even on bright parts of image */
.hero-content::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(2, 6, 23, .38) 0%,
    rgba(2, 6, 23, .18) 100%
  );
  pointer-events:none;
}
.hero-content > *{position:relative; z-index:1;}

.hero h1{
  margin:0 0 12px;
  font-size: clamp(34px, 3.3vw, 56px);
  line-height:1.05;
  letter-spacing:-.02em;
  color:#fff;
  text-shadow: 0 10px 28px rgba(0,0,0,.40);
}

.hero p{
  margin:0 0 16px;
  color: rgba(255,255,255,.96);
  font-size: 16.75px;
  text-shadow: 0 8px 22px rgba(0,0,0,.35);
}

.hero-ctas{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin: 14px 0 16px;
}

/* Trust boxes */
.hero-trust{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:12px;
  margin-top: 10px;
}
.trust-item{
  border-radius:16px;
  background: rgba(255,255,255,.96);
  border:1px solid rgba(15,23,42,.10);
  padding:14px 14px;
  color: var(--text);
}
.trust-kicker{
  font-weight:950;
  color: var(--navy);
  margin-bottom:4px;
}
.trust-text{
  color: var(--muted);
  font-weight:650;
  font-size: 13.5px;
}

/* Remove right hero-aside card (your red X request) */
.hero-aside{display:none !important;}

/* -----------------------------
   Sections / Layout
------------------------------ */
.section{padding: 58px 0;}
.section-soft{
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head{
  text-align:center;
  margin-bottom: 26px;
}
.section-head h2{
  margin:0 0 10px;
  font-size: clamp(24px, 2.2vw, 34px);
  letter-spacing:-.01em;
  color: var(--navy);
}
.section-head p{
  margin:0 auto;
  max-width: 860px;
  color: var(--muted);
  font-weight: 600;
}

.grid{display:grid; gap:18px;}
.grid-4{grid-template-columns: repeat(4, minmax(0,1fr))}
.grid-2{grid-template-columns: repeat(2, minmax(0,1fr))}

.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding:18px 18px;
  box-shadow: var(--shadow-sm);
}
.card h3{margin:0 0 8px; font-size:18px; color: var(--navy);}
.card p{margin:0 0 10px; color: var(--muted); font-weight:600;}
.card-link{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-weight:900;
  color: var(--green);
}
.card-link:hover{color: var(--green-2)}

/* Numbered cards */
.stack{display:flex; flex-direction:column; gap:14px}
.numbered{
  display:grid;
  grid-template-columns: 44px 1fr;
  gap:14px;
  align-items:start;
  background:#fff;
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:16px 16px;
  box-shadow: var(--shadow-sm);
}
.numbered .num{
  width:34px;
  height:34px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:950;
  color: var(--navy);
  background: rgba(184,137,28,.16);
  border: 1px solid rgba(184,137,28,.28);
}
.numbered h3{margin:0 0 6px; color: var(--navy); font-size: 17px;}
.numbered p{margin:0; color: var(--muted); font-weight:600;}

/* Media cards */
.media-card{
  overflow:hidden;
  border-radius: var(--radius-lg);
  border:1px solid var(--border);
  background:#fff;
  box-shadow: var(--shadow-md);
}
.media-card img{
  width:100%;
  height:280px;
  object-fit:cover;
}
.media-card-body{padding:18px 18px 18px;}
.media-card-body h3{margin:0 0 10px; color: var(--navy); font-size: 20px;}
.media-card-body p{margin:0 0 14px; color: var(--muted); font-weight:600;}

/* -----------------------------
   Footer
------------------------------ */
.site-footer{
  background: var(--navy);
  color: rgba(255,255,255,.92);
  margin-top: 60px;
}
.footer-top{
  padding: 46px 0 26px;
  display:grid;
  grid-template-columns: 1.1fr .9fr .9fr 1.1fr;
  gap:22px;
}
.footer-title{font-weight:950; margin-bottom:12px; font-size: 16px; color:#fff;}
.footer-logo{
  width: min(260px, 100%);
  height:auto;
  margin: 6px 0 10px;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.35));
}
.footer-text{color: rgba(255,255,255,.84); font-weight:600; margin: 0 0 14px;}
.footer-links a{
  display:block;
  padding:7px 0;
  color: rgba(255,255,255,.86);
  font-weight:650;
}
.footer-links a:hover{color:#fff}

.footer-list{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:6px;
  color: rgba(255,255,255,.84);
  font-weight:650;
}

.footer-social{
  display:flex;
  gap:10px;
  margin: 6px 0 12px;
}
.footer-social .icon{
  width:36px;
  height:36px;
  border-radius:999px;
  background: rgba(255,255,255,.10);
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,.14);
  color:#fff;
}
.footer-social .icon:hover{background: rgba(255,255,255,.16)}

.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 16px 0 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color: rgba(255,255,255,.84);
  font-weight:650;
}
.footer-bottom a{color:#fff}
.footer-bottom a:hover{opacity:.9}

.sr-only{
  position:absolute !important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

/* -----------------------------
   Responsive
------------------------------ */
@media (max-width: 1100px){
  .grid-4{grid-template-columns: repeat(2, minmax(0,1fr))}
  .footer-top{grid-template-columns: 1fr 1fr}
  .hero-inner{grid-template-columns: 1fr}
}

@media (max-width: 820px){
  .header-inner{gap:12px; padding: 12px 0; min-height: 70px;}
  .nav{
    overflow-x:auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width:none;
  }
  .nav::-webkit-scrollbar{display:none}

  .brand{width: 150px; flex: 0 0 150px; height: 58px;}
  .logo{height: 110px; top:-6px;}

  .hero{padding: 34px 0 22px;}
  .hero-content{
    padding: 18px 16px;
    margin-left: 0;
    background: rgba(2, 6, 23, .56);
  }
  .hero-trust{grid-template-columns: 1fr}
  .grid-2{grid-template-columns: 1fr}
  .media-card img{height: 240px}
}

@media (max-width: 520px){
  .topbar-inner{flex-direction:column; align-items:flex-start}
  .brand{width: 132px; flex: 0 0 132px; height: 54px;}
  .logo{height: 100px; top:-4px;}
}