/* ==========================================================
   CCTV Group — static rebuild
   Single stylesheet for every page. Colours taken from the
   original site: #056EB9 is its declared theme colour.
   ========================================================== */

:root{
  --blue:#056EB9;
  --blue-dark:#044E85;
  --blue-light:#E8F2FA;
  --ink:#1E2A33;
  --body:#55636E;
  --line:#E2E8ED;
  --white:#fff;
  --max:1170px;
}

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

html{scroll-behavior:smooth;}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto;}
  *{animation-duration:.01ms !important;transition-duration:.01ms !important;}
}

body{
  margin:0;
  font-family:"Open Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  font-size:16px;
  line-height:1.75;
  color:var(--body);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
}

h1,h2,h3,h4,h5{
  font-family:"Poppins","Open Sans",-apple-system,BlinkMacSystemFont,Arial,sans-serif;
  color:var(--ink);
  line-height:1.25;
  margin:0 0 .6em;
  font-weight:600;
}
h1{font-size:2.6rem;}
h2{font-size:2.1rem;}
h3{font-size:1.3rem;}
h5{font-size:1.05rem;font-weight:600;}
p{margin:0 0 1.1em;}
a{color:var(--blue);text-decoration:none;}
a:hover{color:var(--blue-dark);text-decoration:underline;}
img{max-width:100%;height:auto;display:block;}

a:focus-visible,button:focus-visible,input:focus-visible,
select:focus-visible,textarea:focus-visible{
  outline:3px solid var(--blue);
  outline-offset:2px;
}

.wrap{max-width:var(--max);margin:0 auto;padding:0 20px;}
.section{padding:74px 0;}
.section--tint{background:var(--blue-light);}
.center{text-align:center;}
.lead{max-width:760px;margin:0 auto 2.4rem;text-align:center;}

/* ---- placeholder while a photo is still missing ---------- */
.ph{
  display:flex;align-items:center;justify-content:center;
  text-align:center;
  min-height:180px;
  padding:18px;
  background:repeating-linear-gradient(45deg,#eef3f7,#eef3f7 12px,#e4ecf3 12px,#e4ecf3 24px);
  border:1px dashed #b7c6d3;
  color:#6b7c8b;
  font-size:12px;
  letter-spacing:.06em;
  font-family:"Courier New",monospace;
  word-break:break-all;
}

/* ---- top utility bar ------------------------------------- */
.topbar{background:var(--ink);color:#C7D2DB;font-size:13.5px;}
.topbar .wrap{display:flex;flex-wrap:wrap;gap:8px 22px;align-items:center;
  justify-content:flex-end;min-height:44px;}
.topbar a{color:#C7D2DB;}
.topbar a:hover{color:var(--white);text-decoration:none;}
.topbar .tel{font-weight:600;color:var(--white);}
.topbar .btn-quote{
  background:var(--blue);color:var(--white);
  padding:5px 16px;border-radius:3px;font-weight:600;
}
.topbar .btn-quote:hover{background:var(--blue-dark);color:var(--white);}

/* ---- masthead -------------------------------------------- */
.masthead{
  /* The banners are deep navy, so the bar matches them. The logo's own
     background has been keyed out, so it sits on this cleanly. */
  background:#0B1929;
  border-bottom:3px solid var(--blue);
}
.masthead .wrap{display:flex;align-items:center;justify-content:space-between;
  gap:20px;min-height:96px;}
.brand img{max-height:56px;width:auto;}
.brand .ph{min-height:56px;width:210px;}

.nav-toggle{
  display:none;background:none;border:1px solid #2E4457;
  border-radius:4px;padding:8px 12px;font-size:20px;color:#fff;cursor:pointer;
}

.nav ul{list-style:none;display:flex;gap:26px;margin:0;padding:0;}
.nav a{
  color:#D6E2EC;font-weight:600;font-size:14.5px;
  letter-spacing:.02em;padding:8px 0;display:inline-block;
}
.nav a:hover,.nav a[aria-current="page"]{color:#5CB3F5;text-decoration:none;}
.nav li{position:relative;}
.nav li ul{
  display:none;position:absolute;top:100%;left:0;z-index:40;
  background:#0B1929;border:1px solid #2E4457;
  box-shadow:0 10px 26px rgba(20,40,60,.12);
  min-width:210px;padding:8px 0;flex-direction:column;gap:0;
}
.nav li:hover ul,.nav li:focus-within ul{display:flex;}
.nav li ul a{display:block;padding:9px 18px;font-weight:400;}
.nav li ul a:hover{background:#16324A;}

/* ---- hero slider ----------------------------------------- */
.hero{position:relative;background:#0d1b26;overflow:hidden;}
.hero-slide{position:relative;display:none;}
.hero-slide.is-on{display:block;}
.hero-slide img{width:100%;height:auto;display:block;}
/* No caption layer. These banners have their headline set into the
   artwork, so an overlay would print a second headline on top of it. */
.hero-caption span{
  color:#8FD0FF;font-weight:600;letter-spacing:.16em;
  text-transform:uppercase;font-size:13px;margin-bottom:10px;
}
.hero-caption h2{color:var(--white);font-size:clamp(1.6rem,3.6vw,3rem);max-width:16ch;margin:0;}
.hero-dots{
  /* Bottom-centre sat on the banner's own strapline, so these tuck
     into the corner in a small pill instead. */
  position:absolute;right:16px;bottom:16px;display:flex;gap:8px;z-index:5;
  background:rgba(4,10,16,.55);padding:7px 11px;border-radius:20px;}
.hero-dots button{
  width:11px;height:11px;border-radius:50%;border:0;cursor:pointer;
  background:rgba(255,255,255,.45);padding:0;
}
.hero-dots button[aria-selected="true"]{background:var(--white);}

/* ---- welcome --------------------------------------------- */
.split{display:grid;grid-template-columns:1fr 1fr;gap:52px;align-items:center;}

/* ---- service tiles --------------------------------------- */
.tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:26px;}
.tile{
  background:var(--white);border:1px solid var(--line);border-radius:5px;
  overflow:hidden;transition:box-shadow .25s ease,transform .25s ease;
}
.tile:hover{box-shadow:0 14px 32px rgba(20,50,80,.13);transform:translateY(-4px);}
.tile img,.tile .ph{width:100%;height:200px;object-fit:cover;min-height:0;}
.tile h3{margin:0;padding:18px 16px;text-align:center;font-size:1.08rem;}
.tile h3 a{color:var(--ink);}
.tile:hover h3 a{color:var(--blue);text-decoration:none;}

/* ---- why choose us --------------------------------------- */
.reasons{display:grid;grid-template-columns:repeat(3,1fr);gap:34px;margin-top:34px;}
.reason h3{color:var(--blue);}

/* ---- call band ------------------------------------------- */
.band{background:var(--blue);color:#DCEDFA;text-align:center;padding:56px 0;}
.band p{max-width:820px;margin:0 auto 1.4rem;color:#DCEDFA;font-size:1.06rem;}
.band .tel{
  display:block;font-family:"Poppins",Arial,sans-serif;
  font-size:1.7rem;font-weight:600;color:var(--white);margin-bottom:1.3rem;
}
.band .tel:hover{color:var(--white);}
.btn{
  display:inline-block;background:var(--white);color:var(--blue);
  font-weight:600;padding:13px 32px;border-radius:3px;
  border:2px solid var(--white);transition:background .2s,color .2s;
}
.btn:hover{background:transparent;color:var(--white);text-decoration:none;}
.btn--solid{background:var(--blue);color:var(--white);border-color:var(--blue);}
.btn--solid:hover{background:var(--blue-dark);border-color:var(--blue-dark);color:var(--white);}

/* ---- features -------------------------------------------- */
.features{display:grid;grid-template-columns:1fr 1fr;gap:52px;align-items:center;}
.features>div:last-child img{max-height:460px;width:100%;object-fit:cover;border-radius:5px;}
.feature{display:flex;gap:18px;margin-bottom:26px;}
.feature img,.feature .ficon{width:52px;height:52px;flex:none;}
.ficon{display:block;}
.feature h3{margin-bottom:.35em;font-size:1.12rem;}
.feature p{margin:0;font-size:15px;}

/* ---- footer ---------------------------------------------- */
.footer{background:var(--ink);color:#A9B7C2;padding:62px 0 0;font-size:15px;}
.footer h5{color:var(--white);letter-spacing:.04em;margin-bottom:1.1em;}
.footer a{color:#A9B7C2;}
.footer a:hover{color:var(--white);}
.footer-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:44px;}
.footer ul{list-style:none;margin:0;padding:0;}
.footer li{margin-bottom:9px;}
.social{display:flex;gap:12px;margin-top:16px;}
.social a{
  border:1px solid #3B4A56;border-radius:3px;padding:5px 12px;font-size:13px;
}
.social a:hover{background:var(--blue);border-color:var(--blue);color:var(--white);
  text-decoration:none;}
.legal{
  margin-top:52px;border-top:1px solid #2C3A45;padding:22px 0;
  text-align:center;font-size:13.5px;color:#8496A3;
}

/* ---- forms ----------------------------------------------- */
.form-card{
  background:var(--white);border:1px solid var(--line);border-radius:6px;
  padding:34px;max-width:620px;margin:0 auto;
  box-shadow:0 12px 34px rgba(20,50,80,.07);
}
.field{margin-bottom:18px;}
.field label{display:block;font-weight:600;color:var(--ink);
  margin-bottom:6px;font-size:14.5px;}
.field input,.field select,.field textarea{
  width:100%;padding:12px 13px;border:1px solid var(--line);
  border-radius:4px;font:inherit;font-size:15px;color:var(--ink);
  background:var(--white);
}
.field textarea{min-height:130px;resize:vertical;}
.req{color:#C0392B;}
.form-note{font-size:13.5px;color:#7C8A96;margin:0;}

/* ---- responsive ------------------------------------------ */
@media (max-width:980px){
  .tiles{grid-template-columns:repeat(2,1fr);}
  .reasons{grid-template-columns:1fr;gap:26px;}
  .split,.features{grid-template-columns:1fr;gap:34px;}
  .footer-grid{grid-template-columns:1fr;gap:34px;}
}
@media (max-width:760px){
  h1{font-size:2rem;} h2{font-size:1.6rem;}
  .section{padding:52px 0;}
  .nav-toggle{display:block;}
  .masthead .wrap{flex-wrap:wrap;min-height:72px;}
  .nav{display:none;width:100%;padding-bottom:14px;}
  .nav.is-open{display:block;}
  .nav ul{flex-direction:column;gap:0;}
  .nav>ul>li{border-top:1px solid #2E4457;}
  .nav a{padding:12px 2px;}
  .nav li ul{position:static;display:flex;border:0;box-shadow:none;
    padding:0 0 6px 16px;}
  .hero-caption{padding:0 22px;
    background:linear-gradient(90deg,rgba(6,20,32,.75),rgba(6,20,32,.35));}
  .topbar .wrap{justify-content:center;}
}
@media (max-width:520px){
  .tiles{grid-template-columns:1fr;}
}

/* ==========================================================
   Inner pages
   ========================================================== */

/* Page hero — the artwork carries its own headline where it has one,
   so the h1 sits on a bar beneath rather than on top of it. */
.page-hero{background:#0B1929;}
.page-hero img{width:100%;height:auto;display:block;}
.page-hero .wrap{padding-top:26px;padding-bottom:26px;}
.page-hero h1{color:#fff;margin:0;font-size:clamp(1.6rem,3.2vw,2.5rem);}

.prose{max-width:860px;}
.prose h1{margin-bottom:.5em;}
.prose h2{margin-top:1.8em;}
.prose h2:first-child{margin-top:0;}
.prose .intro{font-size:1.12rem;color:var(--ink);}
.prose.center{margin:0 auto;}
.prose ul{padding-left:1.25em;}
.prose li{margin-bottom:.45em;}
.prose ul.cols{columns:2;column-gap:38px;}
@media (max-width:640px){.prose ul.cols{columns:1;}}

/* Online Products */
.plans{display:grid;grid-template-columns:1fr 1fr;gap:26px;}
.plan{
  border:1px solid var(--line);border-radius:6px;padding:30px 28px;
  background:var(--white);box-shadow:0 10px 28px rgba(20,50,80,.06);
}
.plan h2{margin:0 0 .25em;font-size:1.35rem;}
.plan .plan-for{color:var(--body);margin-bottom:.8em;}
.plan .price{
  font-family:"Poppins",Arial,sans-serif;font-size:2.5rem;
  color:var(--blue);font-weight:600;line-height:1.1;margin-bottom:1rem;
}
.plan .price span{
  display:block;font-size:.9rem;color:var(--body);font-weight:400;
  letter-spacing:.04em;
}
@media (max-width:760px){.plans{grid-template-columns:1fr;}}

/* Contact */
.contact-grid{display:grid;grid-template-columns:1.35fr 1fr;gap:44px;align-items:start;}
.contact-grid .form-card{margin:0;max-width:none;}
.contact-side{
  background:var(--blue-light);border-radius:6px;padding:30px 28px;
}
.contact-side h2{margin-top:0;font-size:1.35rem;}
.contact-side p{margin-bottom:1.2em;}
.contact-side strong{color:var(--ink);}
.map-wrap{line-height:0;}
@media (max-width:900px){.contact-grid{grid-template-columns:1fr;gap:30px;}}
