/*
Theme Name: Signature Security
Description: A two-page security services and enquiries theme for Signature Security Ltd.
Version: 1.0.2
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: signature-security
*/

@font-face {
  font-family: Anton;
  src: url("assets/anton.ttf") format("truetype");
  font-display: swap;
}

:root {
  --ink: #101720;
  --midnight: #0c131c;
  --paper: #eee8df;
  --white: #f8f2e9;
  --orange: #f96500;
  --accent-text: #9e3c00;
  --muted: #c2c9d1;
  --shell: 1360px;
  --gutter: clamp(20px, 4.8vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font: 400 1rem/1.55 Arial, Helvetica, sans-serif;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.02; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.shell { width: min(var(--shell), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.skip { position: absolute; top: 12px; left: 12px; z-index: 10; padding: 10px 14px; color: var(--ink); background: var(--white); transform: translateY(-160%); }
.skip:focus { transform: none; }

.site-header { background: var(--paper); color: var(--ink); }
.header-row { min-height: 93px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: clamp(1rem, 2.7vw, 1.7rem); font-weight: 900; letter-spacing: -.055em; line-height: .91; text-align: center; }
.brand-mark { display: block; width: 39px; height: 58px; overflow: hidden; position: relative; flex: none; }
.brand-mark img { position: absolute; width: 128px; max-width: none; height: auto; top: 0; left: 50%; transform: translateX(-50%); }
.primary-nav { display: flex; align-items: center; gap: clamp(16px, 3.2vw, 44px); font-weight: 700; }
.primary-nav a:not(.button) { text-decoration: none; position: relative; }
.primary-nav a:not(.button):hover::after, .primary-nav [aria-current]::after { content: ""; position: absolute; inset: auto 0 -7px; height: 3px; background: var(--orange); }
.menu-button { color: var(--ink); background: transparent; border: 1px solid currentColor; padding: 6px 12px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 14px; padding: 12px 18px; background: var(--orange); color: #fff; border: 0; border-radius: 2px; font-weight: 800; text-decoration: none; transition: background-color .2s ease; }
.button:hover { background: #c84b00; }
.primary-nav .button { border-radius: 5px; padding-block: 8px; }
.arrow { display: inline-block; transition: transform .2s ease; }
.button:hover .arrow, .text-link:hover .arrow { transform: translateX(4px); }

.hero { position: relative; isolation: isolate; background: var(--midnight); overflow: hidden; }
.hero-media { position: absolute; inset: 0 0 0 34.18%; z-index: -1; clip-path: polygon(26.27% 0, 100% 0, 100% 100%, .6% 100%); }
.hero-media picture { display: block; height: 100%; }
.hero-media img { width: 100%; height: 100%; }
.hero-label { display: none; }
.hero-inner { display: flex; min-height: clamp(563px, calc(55vw - 8px), 950px); }
.hero-copy { width: 48%; padding: clamp(43px, 4.2vw, 70px) 0 49px; animation: enter .45s ease-out both; }
.hero h1, .service-section h2, .contact-info h1 { font-family: Anton, "Arial Narrow", sans-serif; font-weight: 400; letter-spacing: -.027em; }
.hero h1 { font-size: clamp(64px, 8.2vw, 133px); line-height: 1.035; }
.hero-copy p { max-width: 38ch; margin: 30px 0 25px; font-size: clamp(1rem, 1.4vw, 1.2rem); }
.sector-strip { background: var(--paper); color: var(--ink); }
.sector-strip .shell { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; min-height: 78px; }
.sector-strip a { padding: 0 12px; text-align: center; font-weight: 800; text-decoration: none; font-size: clamp(.85rem, 2.2vw, 1.4rem); }
.sector-strip a + a { border-left: 1px solid #aba49a; }
.sector-strip a:hover { color: var(--accent-text); text-decoration: underline; }

.service-section { padding-block: clamp(40px, 4.5vw, 72px); }
.service-section .shell { width: min(var(--shell), calc(100% - 2 * clamp(20px, 4.1vw, 64px))); }
.service-section h2 { font-size: clamp(48px, 7.4vw, 104px); }
.section-intro { max-width: 61ch; margin: 10px 0 19px; color: var(--white); font-size: 1.125rem; line-height: 1.35; }
.service-tabs { display: flex; align-items: stretch; border-bottom: 2px solid var(--white); margin-bottom: 24px; }
.service-tabs button { flex: 0 1 192px; padding: 8px 14px; border: 0; background: transparent; color: var(--white); font-size: clamp(.9rem, 2vw, 1.3rem); font-weight: 800; }
.service-tabs button:hover { text-decoration: underline; }
.service-tabs button[aria-selected="true"] { background: var(--orange); color: #fff; clip-path: polygon(7% 0, 100% 0, 93% 100%, 0 100%); }
.service-tabs button[aria-selected="true"]:focus-visible { outline-offset: -6px; }
.service-panel { scroll-margin-top: 24px; }
.service-panel + .service-panel { margin-top: 42px; }
.service-tabs:not([hidden]) ~ .service-panel { margin-top: 0; }
.service-panel.is-active { animation: enter .3s ease-out both; }
.service-panel img { width: 100%; aspect-ratio: 2.72; object-fit: cover; object-position: center 44%; }
#business img { aspect-ratio: 940 / 351; }
#properties img { object-position: center 66%; }
.service-detail { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(20px, 4vw, 56px); align-items: start; padding-top: 22px; }
.service-detail h3 { font-size: clamp(1.85rem, 3.9vw, 3.5rem); letter-spacing: -.04em; }
.service-detail h3::after { display: block; content: ""; width: 70px; height: 4px; margin-top: 14px; background: var(--orange); }
.service-detail > div { border-left: 1px solid #76808c; padding-left: clamp(18px, 3.5vw, 48px); }
.service-detail p { max-width: 60ch; }
.service-list { color: var(--muted); font-size: .9rem; }
.text-link { color: var(--orange); font-weight: 800; text-underline-offset: 4px; }
.text-link .arrow { margin-left: 5px; }

.about { color: var(--ink); background: var(--paper); padding-block: clamp(44px, 6vw, 84px); }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; column-gap: clamp(24px, 6vw, 86px); row-gap: 30px; }
.eyebrow { text-transform: uppercase; letter-spacing: .105em; font-size: .82rem; font-weight: 800; }
.about h2 { font-family: Anton, "Arial Narrow", sans-serif; font-weight: 400; font-size: clamp(2.65rem, 4.2vw, 4.7rem); }
.about .text-link { color: var(--accent-text); }
.accreditations { grid-column: 1 / -1; width: min(100%, 630px); height: auto; background: white; padding: 10px 15px; }

.contact-page { padding-block: clamp(45px, 7vw, 105px); background: var(--midnight); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 7vw, 110px); align-items: start; }
.contact-info { animation: enter .5s ease-out both; }
.contact-info .eyebrow { color: var(--orange); }
.contact-info h1 { font-size: clamp(64px, 9vw, 132px); }
.contact-info > p:not(.eyebrow) { max-width: 42ch; color: var(--muted); margin-block: 22px 26px; font-size: 1.12rem; }
.contact-info dl { margin: 0; }
.contact-info dt { font-weight: 800; }
.contact-info dd { margin: 3px 0 17px; }
.contact-info dd a { overflow-wrap: anywhere; }
.enquiry { background: var(--paper); color: var(--ink); padding: clamp(22px, 4vw, 48px); scroll-margin-top: 24px; }
.enquiry h2 { font-size: clamp(1.8rem, 3.7vw, 3.4rem); letter-spacing: -.04em; }
.enquiry > p { margin-top: 12px; }
.enquiry form { display: grid; gap: 8px; }
.enquiry label { font-weight: 700; }
.enquiry label span { font-weight: 400; }
.enquiry input, .enquiry textarea { width: 100%; min-width: 0; padding: 10px; color: var(--ink); background: #fff; border: 1px solid #777c82; border-radius: 2px; margin-bottom: 6px; }
.enquiry textarea { resize: vertical; }
.enquiry .button { justify-self: start; }
.form-status { padding: 10px 14px; border-left: 4px solid var(--orange); background: var(--white); }

.site-footer { background: #151e28; }
.footer-row { display: flex; justify-content: space-between; gap: 25px; padding-block: 32px; }
.footer-name { font-size: 1.2rem; }
.footer-row p { color: var(--muted); margin: 5px 0 0; }
.footer-row address { font-style: normal; display: grid; align-content: start; gap: 4px; }
.footer-row a { overflow-wrap: anywhere; }
.company-registration { padding: 17px var(--gutter); background: #27282a; color: #ededed; text-align: center; font-size: .875rem; }
.company-registration p { margin: 0; }
.standard-page { padding-block: 52px; }
.standard-page article + article { margin-top: 30px; }

@keyframes enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .header-row { flex-wrap: wrap; min-height: 70px; padding-block: 8px; }
  .primary-nav { flex-wrap: wrap; width: 100%; gap: 10px 18px; padding-bottom: 9px; }
  .primary-nav.is-collapsed { display: none; }
  .hero { display: flex; flex-direction: column; }
  .hero-inner { min-height: 0; order: -1; }
  .hero-copy { width: 100%; padding-block: 36px 32px; }
  .hero h1 { font-size: clamp(56px, 13vw, 91px); }
  .hero h1 br:first-of-type { display: none; }
  .hero-media { position: relative; inset: auto; clip-path: none; }
  .hero-media img { aspect-ratio: 1.65; height: auto; object-fit: cover; object-position: center 70%; }
  .hero-label { display: block; position: absolute; top: 12px; right: 10px; padding: 6px 17px; background: var(--orange); color: #fff; clip-path: polygon(7% 0, 100% 0, 93% 100%, 0 100%); font: 400 .9rem/1.3 Anton, "Arial Narrow", sans-serif; letter-spacing: .075em; text-transform: uppercase; }
  .sector-strip .shell { width: 100%; min-height: 58px; padding-block: 10px; }
  .sector-strip a { line-height: 1.25; align-content: center; }
  .service-panel img { aspect-ratio: 1.6; }
  .service-detail, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .service-detail > div { border-left: 0; padding-left: 0; }
  .footer-row { flex-direction: column; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
