/*
Theme Name: CCTVSby
Theme URI: https://cctvsurabaya.com/
Author: CCTVSby
Description: Tema profesional untuk layanan CCTV Surabaya dengan CTA WhatsApp dan informasi kontak.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: cctvsby
*/

:root{
  --cctv-bg:#f5f8ff;
  --cctv-surface:#ffffff;
  --cctv-card:#ffffff;
  --cctv-text:#0f172a;
  --cctv-muted:#475569;
  --cctv-border:rgba(15,23,42,.12);
  --cctv-primary:#2563eb;
  --cctv-primary-2:#16a34a;
  --cctv-shadow:0 16px 44px rgba(15,23,42,.12);
  --cctv-radius:16px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,Arial,sans-serif;
  background:
             radial-gradient(1200px 700px at 18% -10%, rgba(37,99,235,.25), transparent 60%),
             radial-gradient(900px 600px at 92% 0%, rgba(22,163,74,.16), transparent 55%),
             radial-gradient(900px 520px at 50% 105%, rgba(99,102,241,.14), transparent 55%),
             var(--cctv-bg);
  color:var(--cctv-text);
  line-height:1.6;
}

a{color:inherit}
img{max-width:100%;height:auto}

.cctv-container{
  width:min(1120px, calc(100% - 40px));
  margin-inline:auto;
}

.cctv-skip-link{
  position:absolute;
  top:-999px;
  left:-999px;
  padding:10px 12px;
  background:var(--cctv-primary);
  border-radius:12px;
  z-index:9999;
}
.cctv-skip-link:focus{top:14px;left:14px}

.cctv-topbar{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter:saturate(180%) blur(10px);
  background:rgba(255,255,255,.76);
  border-bottom:1px solid var(--cctv-border);
}
.cctv-topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
  flex-wrap:wrap;
}
.cctv-topbar__inner > .cctv-brand{order:1}
.cctv-topbar__inner > .cctv-navwrap{order:2}
.cctv-topbar__inner > .cctv-nav-toggle{order:3}
.cctv-brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
}
.cctv-brand__link{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
}
.cctv-brand .custom-logo-link{
  display:flex;
  align-items:center;
  gap:12px;
}
.cctv-brand .custom-logo{
  display:block;
  width:auto;
  max-height:42px;
}
.cctv-brand__mark{
  width:40px;height:40px;
  border-radius:14px;
  background:linear-gradient(135deg, rgba(47,123,255,.95), rgba(34,197,94,.75));
  box-shadow:var(--cctv-shadow);
}
.cctv-brand__name{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.cctv-brand__title{font-weight:700;letter-spacing:.2px}
.cctv-brand__tagline{color:var(--cctv-muted);font-size:13px}

.cctv-nav{
  display:flex;
  align-items:center;
  gap:18px;
  list-style:none;
  margin:0;
  padding:0;
}
.cctv-nav a{
  text-decoration:none;
  color:var(--cctv-muted);
  font-weight:600;
  font-size:14px;
}
.cctv-nav a:hover,.cctv-nav a:focus{color:var(--cctv-text)}

.cctv-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:14px;
  text-decoration:none;
  font-weight:700;
  border:1px solid var(--cctv-border);
  background:rgba(255,255,255,.92);
  color:var(--cctv-text);
}
.cctv-btn:hover{transform:translateY(-1px)}
.cctv-btn:focus{outline:3px solid rgba(37,99,235,.28);outline-offset:2px}
.cctv-btn--primary{
  background:linear-gradient(135deg, var(--cctv-primary), rgba(47,123,255,.65));
  border-color:rgba(37,99,235,.35);
  box-shadow:0 14px 28px rgba(37,99,235,.20);
  color:#fff;
}
.cctv-btn--wa{
  background:linear-gradient(135deg, var(--cctv-primary-2), rgba(34,197,94,.55));
  border-color:rgba(22,163,74,.35);
  box-shadow:0 14px 28px rgba(22,163,74,.18);
  color:#fff;
}
.cctv-btn--block{width:100%}

.cctv-nav-toggle{
  display:none;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border-radius:14px;
  border:1px solid var(--cctv-border);
  background:rgba(255,255,255,.92);
  color:var(--cctv-text);
}
.cctv-nav-toggle svg{width:22px;height:22px;display:block}
.cctv-nav-toggle:focus{outline:3px solid rgba(37,99,235,.28);outline-offset:2px}

.cctv-navwrap{
  display:flex;
  align-items:center;
  justify-content:center;
  flex:1 1 auto;
}

@media (max-width: 920px){
  .cctv-nav-toggle{display:inline-flex}
  .cctv-navwrap{
    display:block;
    width:100%;
    order:99;
    margin-top:10px;
    padding:10px;
    border-radius:calc(var(--cctv-radius) + 6px);
    border:1px solid var(--cctv-border);
    background:rgba(255,255,255,.96);
    box-shadow:0 18px 44px rgba(15,23,42,.10);
  }
  .cctv-navwrap[hidden]{display:none}
  .cctv-nav{
    flex-direction:column;
    align-items:stretch;
    gap:8px;
  }
  .cctv-nav a{
    display:block;
    padding:10px 12px;
    border-radius:12px;
    background:rgba(37,99,235,.06);
    border:1px solid rgba(37,99,235,.10);
  }
}

.cctv-hero{
  padding:78px 0 44px;
}
.cctv-hero__grid{
  display:grid;
  grid-template-columns:1fr;
  gap:26px;
  align-items:center;
}
.cctv-hero--bg{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(900px 540px at 20% 10%, rgba(37,99,235,.22), transparent 60%),
    radial-gradient(900px 600px at 80% 0%, rgba(22,163,74,.14), transparent 60%),
    var(--cctv-bg);
}
.cctv-hero--bg:before{
  content:"";
  position:absolute;
  inset:-40px;
  background-image:var(--cctv-hero-bg);
  background-repeat:no-repeat;
  background-size:cover;
  background-position:center;
  filter:saturate(1.15) contrast(1.18) brightness(1.03);
  opacity:.68;
  transform:scale(1.03);
}
.cctv-hero--bg:after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(245,248,255,.58), rgba(245,248,255,.32) 58%, rgba(245,248,255,.92));
}
.cctv-hero--bg .cctv-container{position:relative;z-index:1}
.cctv-hero__content{
  max-width:760px;
}
.cctv-hero h1,.cctv-hero p{
  text-shadow:0 10px 26px rgba(255,255,255,.65);
}
.cctv-kicker{
  display:inline-flex;
  gap:10px;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--cctv-border);
  background:rgba(255,255,255,.78);
  color:var(--cctv-muted);
  font-weight:700;
  font-size:12px;
  letter-spacing:.2px;
}
.cctv-hero h1{
  margin:0 0 10px;
  font-size:clamp(30px, 4vw, 44px);
  line-height:1.15;
  letter-spacing:-.4px;
}
.cctv-hero p{margin:0;color:var(--cctv-muted);font-size:16px}
.cctv-hero__actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:18px;
}
.cctv-hero__highlights{
  margin-top:18px;
  display:flex;
  flex-wrap:wrap;
  gap:12px 18px;
}
.cctv-highlight{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding-left:14px;
  border-left:3px solid rgba(37,99,235,.28);
}
.cctv-highlight__icon{
  width:18px;
  height:18px;
  color:#1d4ed8;
  margin-top:2px;
  flex:0 0 auto;
}
.cctv-highlight__icon svg{display:block;width:100%;height:100%}
.cctv-highlight strong{display:block;font-size:14px}
.cctv-highlight span{display:block;color:var(--cctv-muted);font-size:13px}

.cctv-hero-cards{
  padding:0 0 22px;
  margin-top:-22px;
  position:relative;
  z-index:2;
}
.cctv-hero-cards__grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}
.cctv-hero-card{
  border:1px solid var(--cctv-border);
  background:rgba(255,255,255,.92);
  border-radius:calc(var(--cctv-radius) + 4px);
  padding:14px 14px;
  display:flex;
  gap:12px;
  align-items:flex-start;
  box-shadow:0 18px 44px rgba(15,23,42,.10);
  transition:transform .18s ease, box-shadow .18s ease;
}
.cctv-hero-card:hover{
  transform:translateY(-3px);
  box-shadow:0 22px 54px rgba(15,23,42,.14);
}
.cctv-hero-card__icon{
  width:40px;
  height:40px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg, rgba(37,99,235,.14), rgba(22,163,74,.10));
  border:1px solid rgba(37,99,235,.18);
  color:#1d4ed8;
  flex:0 0 auto;
}
.cctv-hero-card__icon svg{width:22px;height:22px;display:block}
.cctv-hero-card strong{display:block;font-size:14px}
.cctv-hero-card p{margin:6px 0 0;color:var(--cctv-muted);font-size:13px;line-height:1.65}

.cctv-slider{margin-top:10px}
.cctv-slider__header{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  margin-bottom:10px;
}
.cctv-slider__controls{display:flex;gap:10px}
.cctv-slider__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border-radius:14px;
  border:1px solid var(--cctv-border);
  background:rgba(255,255,255,.92);
  color:var(--cctv-text);
  box-shadow:0 18px 44px rgba(15,23,42,.08);
}
.cctv-slider__btn svg{width:22px;height:22px;display:block}
.cctv-slider__btn:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}

.cctv-slider__track{
  display:flex;
  gap:16px;
  overflow-x:auto;
  padding:4px 2px 16px;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
}
.cctv-slider__track:focus{outline:3px solid rgba(37,99,235,.22);outline-offset:4px;border-radius:16px}
.cctv-slider__track::-webkit-scrollbar{height:10px}
.cctv-slider__track::-webkit-scrollbar-thumb{background:rgba(15,23,42,.12);border-radius:999px}
.cctv-slider__track::-webkit-scrollbar-track{background:transparent}

.cctv-slider__slide{
  flex:0 0 clamp(260px, 32vw, 360px);
  scroll-snap-align:start;
}
.cctv-slider__slide > .cctv-card{height:100%}

.cctv-slider__dots{
  display:flex;
  justify-content:center;
  gap:8px;
  margin-top:10px;
}
.cctv-slider__dot{
  width:10px;
  height:10px;
  border-radius:999px;
  border:1px solid rgba(37,99,235,.22);
  background:rgba(37,99,235,.10);
}
.cctv-slider__dot[aria-current="true"]{
  width:22px;
  background:rgba(37,99,235,.28);
}

.cctv-section{padding:34px 0}
.cctv-section__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:18px;
}
.cctv-section__title{
  margin:0;
  font-size:22px;
  letter-spacing:-.2px;
}
.cctv-section__desc{margin:0;color:var(--cctv-muted)}

.cctv-grid{
  display:grid;
  gap:16px;
  grid-template-columns:repeat(3,1fr);
}
.cctv-grid--media{grid-template-columns:repeat(3,1fr)}
.cctv-grid--packages{grid-template-columns:repeat(3,1fr)}
.cctv-card{
  border:1px solid var(--cctv-border);
  background:rgba(255,255,255,.86);
  border-radius:var(--cctv-radius);
  padding:18px;
}
.cctv-card h3{margin:8px 0 6px;font-size:16px}
.cctv-card p{margin:0;color:var(--cctv-muted);font-size:14px}
.cctv-card--media{
  padding:0;
  overflow:hidden;
  box-shadow:0 18px 44px rgba(15,23,42,.10);
  transition:transform .18s ease, box-shadow .18s ease;
}
.cctv-card--media:hover{
  transform:translateY(-4px);
  box-shadow:0 22px 54px rgba(15,23,42,.14);
}
.cctv-card__media{
  aspect-ratio: 16 / 10;
  background:linear-gradient(135deg, rgba(37,99,235,.12), rgba(22,163,74,.10));
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
.cctv-card__media img{
  width:min(86%, 320px);
  height:auto;
  object-fit:contain;
  transform:translateZ(0);
}
.cctv-card__body{padding:16px 16px 18px}

.cctv-float{animation:cctv-float 4.6s ease-in-out infinite}
@keyframes cctv-float{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-6px)}
}

.cctv-badge{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.12);
  background:rgba(255,255,255,.92);
  color:var(--cctv-muted);
  font-weight:800;
  font-size:12px;
  letter-spacing:.2px;
}
.cctv-badge--primary{
  background:rgba(37,99,235,.10);
  border-color:rgba(37,99,235,.20);
  color:#1d4ed8;
}

.cctv-package{
  padding:18px;
  box-shadow:0 18px 44px rgba(15,23,42,.10);
  transition:transform .18s ease, box-shadow .18s ease;
}
.cctv-package:hover{transform:translateY(-4px);box-shadow:0 22px 54px rgba(15,23,42,.14)}
.cctv-package__head h3{margin:10px 0 6px;font-size:18px}
.cctv-package__head p{margin:0;color:var(--cctv-muted)}
.cctv-package--featured{
  border-color:rgba(37,99,235,.22);
  background:linear-gradient(180deg, rgba(37,99,235,.06), rgba(255,255,255,.92));
}

.cctv-list{
  margin:14px 0 16px;
  padding:0;
  list-style:none;
  display:grid;
  gap:10px;
}
.cctv-list li{
  position:relative;
  padding-left:26px;
  color:var(--cctv-muted);
  font-size:14px;
}
.cctv-list li:before{
  content:"";
  position:absolute;
  left:0;
  top:7px;
  width:14px;
  height:14px;
  border-radius:999px;
  background:rgba(22,163,74,.16);
  border:1px solid rgba(22,163,74,.25);
}
.cctv-card__icon{
  width:44px;height:44px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:rgba(47,123,255,.12);
  border:1px solid rgba(47,123,255,.25);
}
.cctv-card__icon img{width:26px;height:26px;object-fit:contain;filter:drop-shadow(0 4px 12px rgba(0,0,0,.25))}

.cctv-contact{
  border:1px solid var(--cctv-border);
  background:linear-gradient(135deg, rgba(37,99,235,.10), rgba(22,163,74,.08));
  border-radius:calc(var(--cctv-radius) + 8px);
  padding:22px;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  box-shadow:var(--cctv-shadow);
}
.cctv-contact__meta{display:flex;flex-direction:column;gap:4px}
.cctv-contact__meta strong{font-size:16px}
.cctv-contact__meta span{color:var(--cctv-muted);font-size:14px}

.cctv-footer{
  padding:28px 0 34px;
  border-top:1px solid var(--cctv-border);
  background:
    radial-gradient(800px 380px at 15% 0%, rgba(37,99,235,.10), transparent 60%),
    radial-gradient(800px 380px at 85% 0%, rgba(22,163,74,.08), transparent 60%),
    rgba(255,255,255,.78);
}
.cctv-footer__top{
  display:grid;
  grid-template-columns:1fr;
  gap:0;
  align-items:start;
  padding:18px 0 14px;
}
.cctv-footer__col{
  padding:6px 0;
  background:transparent;
}
.cctv-footer__brand{
  display:inline-block;
  text-decoration:none;
  font-weight:900;
  letter-spacing:-.2px;
  font-size:18px;
  color:var(--cctv-text);
}
.cctv-footer__text{
  margin:10px 0 0;
  color:var(--cctv-muted);
  font-size:14px;
  line-height:1.7;
}
.cctv-footer__heading{
  display:block;
  font-weight:900;
  color:var(--cctv-text);
  margin-bottom:10px;
}
.cctv-footer__menu{
  margin:0;
  padding:0;
  list-style:none;
  display:grid;
  gap:10px;
}
.cctv-footer__menu a{
  text-decoration:none;
  color:var(--cctv-muted);
  font-weight:700;
  font-size:14px;
}
.cctv-footer__menu a:hover{color:var(--cctv-text)}
.cctv-footer__contact{
  margin-top:14px;
  display:grid;
  gap:10px;
}
.cctv-footer__item{
  color:var(--cctv-muted);
  font-size:14px;
  text-decoration:none;
}
.cctv-footer__actions{margin-top:14px}
.cctv-footer__note{
  margin-top:14px;
  color:var(--cctv-muted);
  font-size:13px;
  border-top:1px dashed rgba(15,23,42,.18);
  padding-top:12px;
}
.cctv-footer__bottom{
  display:flex;
  flex-wrap:wrap;
  gap:10px 16px;
  align-items:center;
  justify-content:space-between;
  padding:14px 0 0;
  border-top:1px solid rgba(15,23,42,.10);
  margin-top:16px;
}
.cctv-footer small{color:var(--cctv-muted)}
.cctv-footer a{text-decoration:none;color:var(--cctv-muted)}
.cctv-footer a:hover{color:var(--cctv-text)}

.cctv-content{
  padding:34px 0;
}
.cctv-content .entry-title{margin:0 0 10px;font-size:28px}
.cctv-content .entry-content{color:var(--cctv-text)}
.cctv-content .entry-content p{color:var(--cctv-muted)}

.cctv-postlist{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:16px;
}
.cctv-post{
  border:1px solid var(--cctv-border);
  border-radius:var(--cctv-radius);
  overflow:hidden;
  background:rgba(255,255,255,.86);
}
.cctv-post__body{padding:16px}
.cctv-post__title{margin:0 0 6px;font-size:18px}
.cctv-post__meta{margin:0;color:var(--cctv-muted);font-size:13px}
.cctv-post__excerpt{margin:10px 0 0;color:var(--cctv-muted);font-size:14px}

.cctv-pagination{display:flex;justify-content:center;margin-top:18px}
.cctv-pagination .page-numbers{
  display:inline-flex;
  padding:10px 12px;
  margin:0 4px;
  border-radius:12px;
  border:1px solid var(--cctv-border);
  text-decoration:none;
  color:var(--cctv-muted);
  background:rgba(255,255,255,.86);
}
.cctv-pagination .current{color:var(--cctv-text);background:rgba(37,99,235,.10);border-color:rgba(37,99,235,.22)}

.screen-reader-text{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

@media (max-width: 920px){
  .cctv-hero__grid{grid-template-columns:1fr}
  .cctv-grid{grid-template-columns:repeat(2,1fr)}
  .cctv-postlist{grid-template-columns:1fr}
  .cctv-footer__top{grid-template-columns:1fr}
  .cctv-hero{padding:64px 0 34px}
  .cctv-hero h1{font-size:clamp(28px, 6vw, 36px)}
  .cctv-hero__highlights{flex-direction:column}
  .cctv-hero-cards{margin-top:0;padding-top:12px}
  .cctv-hero-cards__grid{grid-template-columns:repeat(2,1fr)}
}

@media (max-width: 640px){
  .cctv-container{width:calc(100% - 28px)}
  .cctv-topbar__inner{gap:12px}
  .cctv-brand__tagline{display:none}
  .cctv-btn{padding:10px 12px;border-radius:12px}
  .cctv-hero{padding:56px 0 28px}
  .cctv-hero__actions{gap:10px}
  .cctv-hero__actions .cctv-btn{flex:1 1 auto}
  .cctv-hero-cards__grid{grid-template-columns:1fr}
  .cctv-grid{grid-template-columns:1fr}
  .cctv-grid--media{grid-template-columns:1fr}
  .cctv-grid--packages{grid-template-columns:1fr}
  .cctv-section{padding:26px 0}
  .cctv-section__head{flex-direction:column;align-items:flex-start;gap:8px}
  .cctv-section__title{font-size:20px}
  .cctv-slider__header{justify-content:flex-start}
}
