/*
Theme Name: Normich Security
Theme URI: https://normichsecurity.co.uk
Author: Normich Security Ltd
Description: Custom WordPress theme for Normich Security Ltd — a UK private security company (SIC 80100). Brand navy & cyan design with a pre-loaded ten-service catalogue, feature sections, testimonials and enquiry form.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: normich-security
*/

/* ============ Brand tokens (from Normich logo) ============ */
:root{
  --navy:#003372;
  --navy-deep:#00265A;
  --cyan:#00D4FF;
  --blue:#00BEFF;
  --paper:#FFFFFF;
  --tint:#F2F7FC;         /* pale blue section background */
  --line:#DCE6F0;
  --text:#22303F;
  --muted:#5B6B7C;
  --head:'Manrope',system-ui,sans-serif;
  --body:'Public Sans',system-ui,sans-serif;
  --maxw:1180px;
  --radius:18px;          /* echoes the rounded logo mark */
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}}
body{font-family:var(--body);color:var(--text);background:var(--paper);line-height:1.7;font-size:1rem;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:var(--navy)}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid var(--cyan);outline-offset:2px}

.wrap{max-width:var(--maxw);margin:0 auto;padding:0 24px}

h1,h2,h3{font-family:var(--head);font-weight:800;color:var(--navy);line-height:1.15}
h1{font-size:clamp(2.2rem,5vw,3.4rem)}
h2{font-size:clamp(1.7rem,3.4vw,2.4rem)}
h3{font-size:1.25rem}
p{max-width:68ch}

.eyebrow{font-family:var(--head);font-weight:700;font-size:.85rem;letter-spacing:.16em;text-transform:uppercase;color:var(--blue);display:block;margin-bottom:.7rem}

/* Slim brand accent bar (replaces old divider) */
.chevrons{height:6px;background:linear-gradient(90deg,var(--cyan),var(--blue) 45%,var(--navy))}

.btn{display:inline-block;font-family:var(--head);font-weight:700;font-size:1rem;padding:.85rem 1.9rem;border-radius:999px;text-decoration:none;transition:background .15s,color .15s,transform .15s}
.btn-cyan{background:var(--cyan);color:var(--navy)}
.btn-cyan:hover{background:#fff;transform:translateY(-1px)}
.btn-navy{background:var(--navy);color:#fff}
.btn-navy:hover{background:var(--navy-deep);transform:translateY(-1px)}
.btn-ghost{border:2px solid rgba(255,255,255,.5);color:#fff;margin-left:.7rem}
.btn-ghost:hover{border-color:var(--cyan);color:var(--cyan)}

/* ============ Header ============ */
.site-head{background:#fff;position:sticky;top:0;z-index:50;box-shadow:0 2px 14px rgba(0,38,90,.08)}
.site-head .wrap{display:flex;align-items:center;gap:2rem;min-height:84px}
.brand{display:flex;align-items:center;text-decoration:none}
.brand img{height:56px;width:auto}
.site-nav{margin-left:auto}
.site-nav ul{list-style:none;display:flex;gap:1.7rem}
.site-nav a{color:var(--navy);text-decoration:none;font-size:.95rem;font-weight:600}
.site-nav a:hover{color:var(--blue)}
.head-cta{background:var(--navy);color:#fff;font-family:var(--head);font-weight:700;text-decoration:none;padding:.65rem 1.4rem;border-radius:999px;font-size:.95rem;white-space:nowrap}
.head-cta:hover{background:var(--blue)}
.nav-toggle{display:none;margin-left:auto;background:none;border:2px solid var(--navy);color:var(--navy);font-family:var(--head);font-weight:700;font-size:.8rem;letter-spacing:.08em;padding:.5rem .9rem;border-radius:8px;cursor:pointer}
@media(max-width:900px){
  .nav-toggle{display:block}
  .site-nav{position:absolute;left:0;right:0;top:84px;background:#fff;display:none;box-shadow:0 12px 20px rgba(0,38,90,.12)}
  .site-nav.open{display:block}
  .site-nav ul{flex-direction:column;gap:0;padding:.6rem 24px 1rem}
  .site-nav li{border-top:1px solid var(--line)}
  .site-nav a{display:block;padding:.85rem 0}
  .head-cta{display:none}
}

/* ============ Hero ============ */
.hero{background:linear-gradient(135deg,var(--navy-deep),var(--navy) 55%,#00509E);color:#EAF3FB;padding:5.5rem 0;position:relative;overflow:hidden}
.hero::after{content:"";position:absolute;width:900px;height:900px;border:90px solid rgba(0,212,255,.10);border-radius:50%;right:-380px;top:-340px;transform:rotate(-12deg);pointer-events:none}
.hero .wrap{position:relative;z-index:1;max-width:800px;margin:0;padding-left:max(24px,calc((100vw - var(--maxw))/2 + 24px))}
.hero h1{color:#fff}
.hero h1 em{font-style:normal;color:var(--cyan)}
.hero p{margin:1.3rem 0 2.1rem;color:#C6D8EA;font-size:1.08rem}
.hero .eyebrow{color:var(--cyan)}
@media(max-width:900px){.hero{padding:3.5rem 0}}

/* ============ Sections ============ */
.section{padding:4.8rem 0}
.section-tint{background:var(--tint)}
.section-head{text-align:center;max-width:760px;margin:0 auto 2.8rem}
.section-head p{color:var(--muted);margin:0.8rem auto 0}

/* Key services cards */
.svc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1.4rem;list-style:none}
.svc-card{background:#fff;border-radius:var(--radius);overflow:hidden;box-shadow:0 6px 22px rgba(0,38,90,.08);display:flex;flex-direction:column;transition:transform .18s,box-shadow .18s}
.svc-card:hover{transform:translateY(-5px);box-shadow:0 14px 30px rgba(0,38,90,.16)}
.svc-media{aspect-ratio:16/9;background:linear-gradient(135deg,var(--navy),#00509E);position:relative;display:grid;place-items:center}
.svc-media img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
.svc-media svg{width:54px;height:54px;opacity:.9}
.svc-body{padding:1.4rem 1.5rem 1.6rem;display:flex;flex-direction:column;flex:1}
.svc-card h3{text-transform:uppercase;letter-spacing:.04em;font-size:1.02rem}
.svc-card h3 a{text-decoration:none;color:var(--navy)}
.svc-card h3 a:hover{color:var(--blue)}
.svc-card p{font-size:.92rem;color:var(--muted);margin:.6rem 0 1rem;flex:1}
.svc-more{font-family:var(--head);font-weight:700;font-size:.85rem;color:var(--blue);text-decoration:none}
.svc-more:hover{color:var(--navy)}

/* Offer / sectors */
.offer-grid{display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:start}
@media(max-width:860px){.offer-grid{grid-template-columns:1fr}}
.check-list{list-style:none;margin-top:1.2rem}
.check-list li{padding:.55rem 0 .55rem 2.1rem;position:relative;font-weight:600;color:var(--navy)}
.check-list li::before{content:"";position:absolute;left:0;top:.72rem;width:20px;height:20px;border-radius:50%;background:var(--cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003372' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat}
.tag-row{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:1.4rem}
.tag{background:#fff;border:1px solid var(--line);border-radius:999px;padding:.45rem 1rem;font-size:.85rem;font-weight:600;color:var(--navy)}

/* Trusted copy block */
.trusted{display:grid;grid-template-columns:1.25fr .75fr;gap:3rem;align-items:center}
@media(max-width:860px){.trusted{grid-template-columns:1fr}}
.trusted-content p{margin-bottom:1rem;color:var(--text)}
.trusted-art{background:linear-gradient(160deg,var(--navy-deep),var(--navy));border-radius:var(--radius);padding:2.4rem;color:#EAF3FB;box-shadow:0 14px 34px rgba(0,38,90,.25)}
.trusted-art img{max-width:280px;margin:0 auto 1.6rem}
.trusted-art ul{list-style:none;font-family:var(--head);font-weight:700}
.trusted-art li{display:flex;justify-content:space-between;padding:.6rem 0;border-bottom:1px solid rgba(255,255,255,.14);font-size:.92rem}
.trusted-art li:last-child{border-bottom:none}
.trusted-art li span:last-child{color:var(--cyan)}

/* Feature cards (4-up) */
.feat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:1.3rem}
.feat-card{background:#fff;border-radius:var(--radius);padding:1.8rem 1.6rem;box-shadow:0 6px 22px rgba(0,38,90,.08);border-top:4px solid var(--cyan)}
.feat-card h3{font-size:1.05rem;margin:.9rem 0 .5rem}
.feat-card p{font-size:.9rem;color:var(--muted)}
.feat-icon{width:48px;height:48px;border-radius:12px;background:var(--tint);display:grid;place-items:center;color:var(--navy)}
.feat-icon svg{width:26px;height:26px}

/* Testimonials */
.testi-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.4rem}
@media(max-width:860px){.testi-grid{grid-template-columns:1fr}}
.testi{background:#fff;border-radius:var(--radius);padding:2rem;box-shadow:0 6px 22px rgba(0,38,90,.08);position:relative}
.testi::before{content:"\201C";font-family:Georgia,serif;font-size:4rem;color:var(--cyan);line-height:1;position:absolute;top:.6rem;left:1.4rem}
.testi p{font-style:italic;color:var(--text);margin:1.6rem 0 1rem}
.testi cite{font-style:normal;font-family:var(--head);font-weight:700;color:var(--navy)}

/* CTA band */
.cta-band{background:linear-gradient(120deg,var(--navy-deep),var(--navy));padding:4rem 0;color:#fff}
.cta-band .wrap{display:flex;flex-wrap:wrap;align-items:center;gap:1.6rem;justify-content:space-between}
.cta-band h2{color:#fff}
.cta-band p{color:#C6D8EA;margin-top:.5rem}
.cta-contacts{display:flex;flex-direction:column;gap:.4rem;font-family:var(--head);font-weight:700}
.cta-contacts a{color:var(--cyan);text-decoration:none;font-size:1.1rem}
.cta-contacts a:hover{color:#fff}

/* ============ Content pages / single ============ */
.page-hero{background:linear-gradient(135deg,var(--navy-deep),var(--navy) 60%,#00509E);color:#fff;padding:3.5rem 0 3rem}
.page-hero h1{color:#fff}
.page-hero .eyebrow{color:var(--cyan)}
.entry{padding:3.5rem 0}
.entry-inner{display:grid;grid-template-columns:1.6fr .8fr;gap:3rem}
@media(max-width:860px){.entry-inner{grid-template-columns:1fr}}
.entry-content h2{font-size:1.6rem;margin:2rem 0 .8rem}
.entry-content h3{margin:1.6rem 0 .6rem}
.entry-content p{margin-bottom:1.05rem}
.entry-content ul,.entry-content ol{margin:0 0 1.05rem 1.3rem}
.aside-card{background:var(--tint);border-radius:var(--radius);border:1px solid var(--line);padding:1.7rem;position:sticky;top:104px}
.aside-card h3{margin-bottom:.6rem}
.aside-card p{font-size:.92rem;color:var(--muted);margin-bottom:1rem}
.aside-card .mono{font-family:var(--head);font-weight:700;font-size:.95rem;display:block;margin:.4rem 0;color:var(--navy);text-decoration:none}
.aside-card .mono:hover{color:var(--blue)}

/* ============ Contact form ============ */
.contact-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:3rem}
@media(max-width:860px){.contact-grid{grid-template-columns:1fr}}
.form-row{margin-bottom:1.1rem}
.form-row label{display:block;font-family:var(--head);font-weight:700;font-size:.82rem;margin-bottom:.4rem;color:var(--navy)}
.form-row input,.form-row textarea{width:100%;border:1px solid var(--line);background:#fff;border-radius:10px;padding:.8rem 1rem;font:inherit;font-size:.95rem}
.form-row input:focus,.form-row textarea:focus{border-color:var(--blue)}
.notice{padding:1rem 1.2rem;margin-bottom:1.5rem;font-size:.92rem;border-left:4px solid var(--cyan);background:var(--tint);border-radius:0 10px 10px 0}
.hp-field{position:absolute;left:-9999px;height:1px;overflow:hidden}

/* ============ Footer ============ */
.site-foot{background:var(--navy-deep);color:#A9BEd4;padding:3.6rem 0 2rem;font-size:.92rem}
.foot-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:2.6rem;margin-bottom:2.4rem}
@media(max-width:860px){.foot-grid{grid-template-columns:1fr}}
.site-foot h3{color:#fff;font-size:1.05rem;margin-bottom:.9rem}
.site-foot a{color:#C6D8EA;text-decoration:none}
.site-foot a:hover{color:var(--cyan)}
.site-foot ul{list-style:none}
.site-foot li{margin:.45rem 0}
.foot-logo{max-width:230px;margin-bottom:1.1rem}
.foot-legal{border-top:1px solid rgba(255,255,255,.12);padding-top:1.4rem;font-size:.78rem;display:flex;flex-wrap:wrap;gap:.6rem 2rem;justify-content:space-between;color:#8AA2BC}

/* Blog / index fallback */
.post-list article{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:1.8rem;margin-bottom:1.2rem}
.post-list h2 a{text-decoration:none}
