/*
Theme Name: Specialty Security Service
Theme URI: https://aussss.com
Author: Specialty Security Service Pty Ltd
Author URI: https://aussss.com
Description: Custom theme for Specialty Security Service (aussss.com). Navy and electric-blue brand, one-page homepage with services, how we work, about, quote request form and latest news. Contact details, licence number and the quote email address are set under Appearance → Customize → SSS details.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: Proprietary
Text Domain: sss
*/

/* ---------- Brand tokens ---------- */
:root {
	--navy: #002955;
	--navy-deep: #011332;
	--navy-mid: #01264E;
	--doc-navy: #0B1D3F;
	--electric: #2E86F0;
	--blue: #1F6FE5;
	--muted: #5B6475;
	--body: #3B4252;
	--ink: #222222;
	--tint: #EEF3FB;
	--line: #C9D6EA;
	--on-navy: #C9D8F0;
	--field: #9AA6BC;
	--white: #FFFFFF;
	--display: Montserrat, "Helvetica Neue", Arial, sans-serif;
	--text: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
	--wrap: 1200px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	font-family: var(--text);
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--doc-navy); }
:focus-visible { outline: 3px solid var(--electric); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--display); text-wrap: balance; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto;
	background: var(--white); color: var(--doc-navy); padding: 12px 16px; font-weight: 600;
}
.wrap {
	max-width: var(--wrap);
	margin: 0 auto;
	padding-left: max(24px, env(safe-area-inset-left, 0px));
	padding-right: max(24px, env(safe-area-inset-right, 0px));
}
.section { padding-block: 96px; }
.blue { color: var(--electric); }
.on-white .blue, .blue-dark { color: var(--blue); }

.eyebrow {
	display: block;
	font-family: var(--display);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--blue);
}
.on-navy .eyebrow { color: var(--on-navy); }
.h2 {
	margin: 0;
	font-weight: 800;
	font-size: clamp(30px, 3.4vw, 44px);
	line-height: 1.08;
	color: var(--doc-navy);
	text-transform: uppercase;
}
.on-navy .h2 { color: var(--white); }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 680px; }

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 0 26px;
	font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: 0.08em;
	text-transform: uppercase; text-decoration: none;
	border-radius: 4px; border: 1.5px solid transparent; cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease;
}
.btn svg { flex: none; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: #185bc0; color: var(--white); }
.btn-outline { border-color: rgba(255,255,255,0.6); color: var(--white); }
.btn-outline:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,0.06); }

.icon { flex: none; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--navy-deep); color: var(--on-navy); font-size: 13px; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; align-items: center; padding-block: 9px; }
.topbar a { color: var(--white); text-decoration: none; font-weight: 600; }
.topbar a:hover { color: var(--electric); }

.site-header { background: var(--navy); border-bottom: 1px solid var(--navy-mid); position: sticky; top: 0; z-index: 50; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }
.site-header .wrap { display: flex; gap: 16px 32px; justify-content: space-between; align-items: center; padding-block: 16px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { height: 48px; width: auto; }
.brand-divider { width: 1px; height: 44px; background: rgba(255,255,255,0.45); }
.wordmark {
	display: flex; flex-direction: column;
	font-family: var(--display); font-weight: 800; font-size: 13px; line-height: 1.15;
	letter-spacing: 0.06em; color: var(--white);
}
.wordmark span:nth-child(2) { color: var(--electric); }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px 28px; flex-wrap: wrap; }
.main-nav a {
	font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: 0.04em;
	color: var(--white); text-decoration: none;
}
.main-nav ul a:hover, .main-nav .current-menu-item > a { color: var(--electric); }
.main-nav .btn { font-size: 13px; min-height: 44px; padding: 0 20px; }
.nav-toggle {
	display: none; background: none; border: 1.5px solid rgba(255,255,255,0.5); color: var(--white);
	width: 48px; height: 48px; border-radius: 4px; cursor: pointer; align-items: center; justify-content: center;
}
@media (max-width: 900px) {
	.nav-toggle { display: inline-flex; }
	.main-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		background: var(--navy); border-top: 1px solid var(--navy-mid);
		flex-direction: column; align-items: stretch; gap: 0;
		padding: 8px max(24px, env(safe-area-inset-right, 0px)) 24px max(24px, env(safe-area-inset-left, 0px));
		box-shadow: 0 12px 24px rgba(1,19,50,0.35);
	}
	.main-nav.is-open { display: flex; }
	.main-nav ul { flex-direction: column; gap: 0; }
	.main-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--navy-mid); font-size: 16px; }
	.main-nav .btn { margin-top: 16px; min-height: 52px; }
}

/* ---------- Hero ---------- */
.hero { background: var(--navy); display: flex; flex-wrap: wrap; }
.hero-copy {
	flex: 1 1 520px; min-width: 0;
	padding: 88px 40px 96px max(24px, calc((100% - var(--wrap)) / 2 + 24px));
	display: flex; flex-direction: column; gap: 24px; justify-content: center;
}
.hero .eyebrow { color: var(--on-navy); }
.hero h1 {
	margin: 0; font-weight: 800; font-size: clamp(40px, 5.2vw, 72px); line-height: 1.02;
	letter-spacing: -0.01em; color: var(--white); text-transform: uppercase;
}
.rule { width: 120px; height: 3px; background: var(--electric); }
.hero-lede { margin: 0; max-width: 520px; font-size: 19px; color: var(--on-navy); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.hero-ctas .btn-outline .icon { color: var(--electric); }
.hero-tags {
	font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: 0.28em;
	color: var(--on-navy); padding-top: 12px;
}
.hero-tags span { color: var(--electric); }
.hero-media { flex: 1 1 440px; min-width: 0; min-height: 440px; position: relative; background: var(--navy); }
.hero-media img {
	position: absolute; inset: 0; width: 100%; height: 100%;
	object-fit: cover; object-position: 30% 30%;
	clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
}
@media (max-width: 1000px) {
	.hero-copy { padding: 64px max(24px, env(safe-area-inset-right, 0px)) 56px max(24px, env(safe-area-inset-left, 0px)); }
	.hero-media { min-height: 320px; }
	.hero-media img { clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%); }
}

/* ---------- Credentials ---------- */
.creds { border-bottom: 1px solid var(--line); }
.creds .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 24px 32px; padding-block: 32px; }
.cred { display: flex; gap: 14px; align-items: flex-start; }
.cred .icon { color: var(--blue); }
.cred strong { display: block; font-family: var(--display); font-size: 14px; letter-spacing: 0.08em; color: var(--doc-navy); text-transform: uppercase; }
.cred span { display: block; font-size: 14px; color: var(--muted); line-height: 1.45; }

/* ---------- Services ---------- */
.services-head { display: flex; flex-wrap: wrap; gap: 16px 48px; align-items: flex-end; justify-content: space-between; margin-bottom: 48px; }
.services-head p { margin: 0; max-width: 420px; color: var(--muted); font-size: 17px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 540px), 1fr)); gap: 24px; }
.service { display: flex; flex-wrap: wrap; background: var(--white); border: 1px solid var(--line); }
.service-img { flex: 1 1 200px; min-width: 0; width: 200px; min-height: 280px; max-height: 440px; object-fit: cover; }
.service-body { flex: 999 1 280px; min-width: 0; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.service-body > .icon { color: var(--blue); }
.service h3 { margin: 0; font-weight: 800; font-size: 20px; letter-spacing: 0.03em; color: var(--doc-navy); text-transform: uppercase; }
.service p { margin: 0; color: var(--body); }
.ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--doc-navy); }
.ticks li { display: flex; gap: 10px; align-items: baseline; }
.ticks li::before { content: ""; width: 7px; height: 7px; background: var(--blue); flex: none; transform: translateY(-2px); }
.text-link {
	margin-top: auto; padding-top: 8px; min-height: 44px;
	display: inline-flex; align-items: center; gap: 8px;
	font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: 0.1em;
	text-transform: uppercase; text-decoration: none;
}
.sectors { margin-top: 64px; display: flex; flex-direction: column; gap: 18px; }
.sectors .eyebrow { color: var(--muted); }
.sector-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 12px; }
.sector { display: flex; align-items: center; gap: 12px; background: var(--tint); padding: 16px 18px; font-weight: 600; font-size: 15px; color: var(--doc-navy); }
.sector .icon { color: var(--blue); }

/* ---------- How we work ---------- */
.how { background: var(--navy); color: var(--white); }
.steps { margin: 48px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 32px; }
.steps li { display: flex; flex-direction: column; gap: 12px; border-top: 2px solid var(--electric); padding-top: 20px; }
.step-no { font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: 0.1em; color: var(--electric); }
.steps h3 { margin: 0; font-weight: 700; font-size: 18px; letter-spacing: 0.04em; text-transform: uppercase; }
.steps p { margin: 0; color: var(--on-navy); font-size: 15px; }

/* ---------- About ---------- */
.about .wrap { display: flex; flex-wrap: wrap; gap: 48px 64px; }
.about-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.about-copy p { margin: 0; color: var(--body); font-size: 17px; max-width: 560px; }
.about-copy .legal { font-size: 15px; color: var(--muted); }
.pillars { flex: 1 1 440px; min-width: 0; }
.pillar { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.pillar:first-child { border-top: 1px solid var(--line); }
.pillar h3 { margin: 0; flex: 0 0 170px; font-weight: 800; font-size: 15px; letter-spacing: 0.14em; color: var(--doc-navy); }
.pillar h3 span { color: var(--blue); }
.pillar p { margin: 0; flex: 1 1 220px; color: var(--body); font-size: 15px; }

/* ---------- Slogan ---------- */
.slogan { background: var(--navy-deep); }
.slogan .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding-block: 36px; }
.slogan .icon { color: var(--electric); }
.slogan-main { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(20px, 2.2vw, 28px); letter-spacing: 0.06em; color: var(--white); }
.slogan-sub { display: block; font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: 0.22em; color: var(--on-navy); }

/* ---------- Quote ---------- */
.quote { background: var(--tint); }
.quote .wrap { display: flex; flex-wrap: wrap; }
.quote-info { flex: 1 1 340px; min-width: 0; background: var(--navy); color: var(--white); padding: 44px 40px; display: flex; flex-direction: column; gap: 22px; }
.quote-info h2 { margin: 0; font-weight: 800; font-size: clamp(28px, 3vw, 38px); line-height: 1.1; color: var(--white); text-transform: uppercase; }
.quote-info p { margin: 0; color: var(--on-navy); }
.quote-info hr { border: 0; height: 1px; background: rgba(201,216,240,0.25); margin: 0; width: 100%; }
.contact-line { display: flex; gap: 14px; align-items: flex-start; color: var(--white); text-decoration: none; }
.contact-line .icon { color: var(--electric); margin-top: 3px; }
a.contact-line:hover { color: var(--electric); }
.contact-line strong { display: block; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: 0.04em; }
.contact-line small { display: block; font-size: 14px; color: var(--on-navy); }
.quote-form {
	flex: 2 1 520px; min-width: 0; background: var(--white); padding: 44px 40px;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px 24px; align-content: start;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full, .form-foot, .form-notice { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--doc-navy); }
.field label .req { color: var(--blue); }
.field input, .field select, .field textarea {
	font: inherit; font-size: 16px; padding: 12px 14px; min-height: 48px; width: 100%;
	border: 1px solid var(--field); border-radius: 4px; color: var(--doc-navy); background: var(--white);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(46,134,240,0.35); outline-offset: 0; border-color: var(--blue); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.form-foot span { font-size: 13px; color: var(--muted); }
.form-notice { padding: 16px 18px; border-left: 4px solid var(--blue); background: var(--tint); color: var(--doc-navy); font-weight: 500; }
.form-notice.is-error { border-left-color: #B42318; background: #FDECEA; color: #7A1A12; }
@media (max-width: 600px) {
	.quote .wrap { padding-left: 0; padding-right: 0; }
	.quote-info, .quote-form { padding: 36px 24px; }
}

/* ---------- News ---------- */
.news-head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 36px; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.news-card { text-decoration: none; display: flex; flex-direction: column; gap: 12px; padding: 28px; border: 1px solid var(--line); border-top: 3px solid var(--blue); background: var(--white); }
.news-card:hover { border-color: var(--blue); }
.news-meta { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.news-title { font-family: var(--display); font-weight: 700; font-size: 18px; line-height: 1.3; color: var(--doc-navy); }
.news-card p { margin: 0; font-size: 15px; color: var(--body); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-navy); }
.footer-top { display: flex; flex-wrap: wrap; gap: 40px 64px; justify-content: space-between; padding-block: 64px 40px; }
.footer-brand { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.footer-brand .brand img { height: 56px; }
.footer-brand .wordmark { font-size: 14px; }
.footer-tag { font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: 0.24em; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-col h2 { margin: 0 0 4px; font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: 0.2em; color: var(--white); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--on-navy); text-decoration: none; }
.footer-col a:hover { color: var(--white); }
.footer-col .strong { color: var(--white); font-weight: 600; }
.socials { display: flex; gap: 16px; padding-top: 6px; }
.socials a { color: var(--white); font-weight: 600; }
.footer-bottom { border-top: 1px solid rgba(201,216,240,0.2); padding-block: 22px 32px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13px; color: #9FB0CC; }

/* ---------- Inner pages & blog ---------- */
.page-hero { background: var(--navy); color: var(--white); }
.page-hero .wrap { padding-block: 64px; display: flex; flex-direction: column; gap: 14px; }
.page-hero h1 { margin: 0; font-weight: 800; font-size: clamp(30px, 4vw, 48px); line-height: 1.1; text-transform: uppercase; color: var(--white); }
.page-hero .meta { color: var(--on-navy); font-size: 15px; }
.page-hero .eyebrow { color: var(--on-navy); }
.content { max-width: 760px; margin: 0 auto; padding: 64px max(24px, env(safe-area-inset-right, 0px)) 96px max(24px, env(safe-area-inset-left, 0px)); font-size: 17px; color: var(--body); }
.content h2, .content h3 { color: var(--doc-navy); line-height: 1.2; margin: 1.8em 0 0.6em; }
.content h2 { font-size: 26px; }
.content h3 { font-size: 20px; }
.content img { margin: 1.5em 0; }
.content blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--blue); color: var(--doc-navy); }
.content .wp-post-image { margin-top: 0; }
.alignwide, .alignfull { max-width: 100%; }
.aligncenter { margin-left: auto; margin-right: auto; }
.post-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; padding-block: 64px 96px; }
.pagination { padding-bottom: 96px; display: flex; gap: 12px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 10px 16px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.pagination .current { background: var(--blue); border-color: var(--blue); color: var(--white); }
.back-cta { background: var(--tint); }
.back-cta .wrap { padding-block: 48px; display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.back-cta p { margin: 0; font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--doc-navy); text-transform: uppercase; }
