/*
Theme Name: Wootton Tech Solutions
Author: Wootton Tech Solutions
Description: A responsive technology-services theme for laptop repair, PC repair, custom PC building and small-business IT support.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.6
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: wootton-tech-solutions
Tags: custom-logo, custom-menu, featured-images, one-column, accessibility-ready
*/

:root {
  --ink: #111713;
  --ink-2: #1a211c;
  --paper: #d8dcda;
  --raised: #e8ebe9;
  --lime: #baff00;
  --line: rgba(17, 23, 19, .17);
  --muted: #5f6962;
  --max: 1500px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, Arial, sans-serif; font-size: 16px; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 1000; padding: .75rem 1rem; background: var(--lime); font-weight: 800; }
.skip-link:focus { top: 1rem; }
html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 90px;
}
.site-header { position: sticky; top: 0; z-index: 50; height: 84px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; padding: 0 max(1.2rem, 4vw); background: rgba(216, 220, 218, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: .75rem; width: fit-content; font-weight: 900; letter-spacing: .06em; font-size: .83rem; }
.brand img { width: 56px; height: 44px; object-fit: contain; }
.brand span { display: grid; line-height: 1; }
.brand small { margin-top: .35rem; color: #667068; font-size: .64rem; font-weight: 700; letter-spacing: .15em; }
.site-header nav, .site-header nav ul { display: flex; align-items: center; gap: 2rem; font-size: .88rem; font-weight: 750; }
.site-header nav ul { margin: 0; padding: 0; list-style: none; }
.site-header nav a { padding: .4rem 0; border-bottom: 1px solid transparent; }
.site-header nav a:hover, .site-header nav a:focus-visible { border-color: var(--ink); }
.site-header .admin-link { padding: .75rem 1rem; border: 1px solid var(--ink); }
.menu-button { display: none; border: 1px solid var(--ink); background: transparent; padding: .65rem .8rem; font-weight: 800; }

.hero { min-height: calc(100vh - 84px); display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 5vw; padding: clamp(5rem, 9vh, 8rem) max(1.3rem, 7vw); overflow: hidden; position: relative; }
.hero-grid { position: absolute; inset: 0; opacity: .62; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: clamp(60px, 6vw, 100px) clamp(60px, 6vw, 100px); mask-image: linear-gradient(90deg, #000 10%, transparent 72%); }
.hero::after { content: ''; position: absolute; width: 40vw; aspect-ratio: 1; border-radius: 50%; right: -18vw; top: -20vw; background: var(--lime); filter: blur(120px); opacity: .17; pointer-events: none; }
.hero-copy, .hero-emblem { position: relative; z-index: 1; }
.eyebrow { margin: 0; display: flex; align-items: center; gap: .65rem; text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 850; }
.eyebrow > span { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); border: 2px solid var(--ink); }
h1, h2, h3 { margin: 0; font-family: "Arial Narrow", Impact, sans-serif; letter-spacing: -.035em; }
h1 { margin-top: 2rem; font-size: clamp(4.2rem, 8.2vw, 8.5rem); line-height: .85; text-transform: uppercase; }
h1 em, h2 em { color: transparent; font-style: normal; -webkit-text-stroke: 1.5px currentColor; }
.hero-intro { max-width: 620px; margin: 2rem 0 0; color: var(--muted); font-size: clamp(1.05rem, 1.35vw, 1.28rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.7rem; margin-top: 2.5rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .75rem; padding: 1rem 1.25rem; border: 1px solid var(--ink); font-size: .9rem; font-weight: 850; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.button:hover, .button:focus-visible { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--ink); }
.button-lime { background: var(--lime); color: var(--ink); }
.text-link { padding-bottom: .35rem; border-bottom: 1px solid var(--ink); font-size: .92rem; font-weight: 800; }
.hero-emblem { min-height: 500px; display: flex; flex-direction: column; justify-content: space-between; padding: 1.2rem; background: radial-gradient(circle at 50% 46%, #283228, var(--ink) 68%); border: 1px solid #3d473f; box-shadow: 18px 18px 0 var(--lime); overflow: hidden; }
.hero-emblem::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(186,255,0,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(186,255,0,.08) 1px, transparent 1px); background-size: 35px 35px; mask-image: radial-gradient(circle, black, transparent 74%); }
.hero-emblem img { position: relative; width: 100%; height: 380px; object-fit: contain; filter: drop-shadow(0 18px 25px rgba(0,0,0,.5)); }
.system-label, .signal-line { position: relative; z-index: 1; color: #b6beb8; display: flex; align-items: center; gap: .6rem; font-family: monospace; font-size: .7rem; letter-spacing: .1em; }
.system-label i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.system-label b { margin-left: auto; font-weight: 500; }
.signal-line { justify-content: space-between; padding-top: 1rem; border-top: 1px solid #3b453e; color: var(--lime); }

.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); padding: 1.2rem max(1rem, 5vw); background: var(--lime); border-block: 1px solid var(--ink); }
.trust-strip span { display: flex; justify-content: center; padding: 0 1rem; border-right: 1px solid rgba(17,23,19,.25); font-size: .83rem; font-weight: 850; }
.trust-strip span:last-child { border: 0; }
.section { padding: clamp(6rem, 10vw, 10rem) max(1.3rem, 7vw); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 4rem; margin-bottom: 5rem; }
.section-heading .eyebrow { align-self: flex-start; }
.section-heading h2, .build-copy h2, .closing h2 { font-size: clamp(3.2rem, 6vw, 6.2rem); line-height: .9; text-transform: uppercase; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.service-card { min-height: 390px; padding: 2rem 2rem 2rem 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.service-card + .service-card { padding-left: 2rem; }
.service-card:last-child { border-right: 0; }
.service-meta { display: flex; justify-content: space-between; color: #626d65; font-family: monospace; font-size: .8rem; }
.service-meta b { color: var(--ink); font-size: 1.5rem; }
.service-card h3 { margin-top: 4rem; font-size: 2rem; text-transform: uppercase; }
.service-card p { max-width: 390px; color: var(--muted); line-height: 1.7; }
.service-card a { margin-top: auto; width: fit-content; padding-bottom: .3rem; border-bottom: 1px solid var(--ink); font-size: .86rem; font-weight: 850; }

.build-section { min-height: 780px; display: grid; grid-template-columns: 1fr 1fr; background: var(--ink); color: #f2f4f2; }
.build-visual { min-height: 720px; position: relative; overflow: hidden; border-right: 1px solid #3d463f; }
.build-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,10,8,.05), transparent 45%, rgba(7,10,8,.82)); }
.build-visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
.build-visual > span { position: absolute; z-index: 1; top: 2rem; left: 2rem; padding: .7rem .8rem; background: rgba(12,16,13,.8); color: var(--lime); font-family: monospace; font-size: .7rem; letter-spacing: .1em; }
.build-visual > b { position: absolute; z-index: 1; right: -1rem; bottom: -3rem; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.22); font-family: Impact, sans-serif; font-size: 13rem; }
.build-copy { display: flex; flex-direction: column; justify-content: center; padding: 7rem max(2rem, 7vw); }
.build-copy .eyebrow { color: var(--lime); }
.build-copy .eyebrow > span { border-color: var(--lime); }
.build-copy h2 { margin-top: 2rem; }
.build-copy h2 em { -webkit-text-stroke-color: #f2f4f2; }
.build-copy > p:not(.eyebrow) { max-width: 620px; margin: 2rem 0; color: #aeb7b0; font-size: 1.05rem; line-height: 1.75; }
.spec-list { margin: 0; border-top: 1px solid #3b443e; }
.spec-list div { display: grid; grid-template-columns: 150px 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid #3b443e; }
.spec-list dt { color: #89928b; font-size: .8rem; }
.spec-list dd { margin: 0; font-size: .87rem; font-weight: 700; }

.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.process-grid article { min-height: 265px; padding: 2.5rem; background: var(--raised); }
.process-grid article > span { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--ink); font-family: monospace; font-size: .75rem; font-weight: 800; }
.process-grid h3 { margin-top: 3.5rem; font-size: 1.5rem; text-transform: uppercase; }
.process-grid p { color: var(--muted); line-height: 1.65; }
.closing { display: grid; grid-template-columns: minmax(220px, .55fr) 1fr; align-items: center; gap: 4vw; padding: 6rem max(1.3rem, 7vw); background: var(--lime); overflow: hidden; }
.closing > img { width: min(100%, 370px); filter: drop-shadow(0 18px 24px rgba(17,23,19,.25)); }
.closing h2 { margin: 2rem 0 3rem; }
.button-dark { background: var(--ink); color: white; }
.button-dark:hover { box-shadow: 5px 5px 0 white; }
footer { min-height: 135px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; padding: 2rem max(1.3rem, 4vw); background: var(--ink); color: white; }
footer p { color: #8e9890; font-size: .76rem; }
footer p:last-child { justify-self: end; }

.content-page { min-height: 65vh; padding: clamp(5rem, 9vw, 9rem) max(1.3rem, 7vw); }
.content-page article { width: min(820px, 100%); margin: 0 auto; }
.content-page h1 { font-size: clamp(3.2rem, 7vw, 6.8rem); }
.content-page .entry-content { margin-top: 2rem; color: var(--muted); line-height: 1.75; }
.content-page .entry-content a { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; }
.content-page .post-list { display: grid; gap: 1rem; margin-top: 3rem; }
.content-page .post-card { padding: 1.5rem; border: 1px solid var(--line); background: var(--raised); }
.content-page .post-card h2 { font-size: 1.8rem; }
.content-page .post-card p { color: var(--muted); line-height: 1.65; }
.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; }
.screen-reader-text:focus { position: fixed; top: 1rem; left: 1rem; z-index: 1000; width: auto; height: auto; padding: .8rem 1rem; margin: 0; overflow: visible; clip: auto; background: var(--lime); color: var(--ink); font-weight: 800; }
.admin-bar .site-header { top: 32px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Local admin */
.admin-page { min-height: 100vh; display: grid; grid-template-columns: 260px 1fr; background: #e5e8e6; }
.admin-sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 1.2rem; background: var(--ink); color: white; border-right: 1px solid #344037; }
.admin-brand { padding-bottom: 1.2rem; border-bottom: 1px solid #344037; }
.admin-brand small { color: #8e9990; }
.admin-sidebar nav { display: grid; gap: .35rem; margin-top: 2rem; }
.admin-sidebar nav a { display: flex; gap: .75rem; align-items: center; padding: .8rem; border: 1px solid transparent; color: #acb5ae; font-size: .86rem; font-weight: 750; }
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { border-color: #3e4a41; background: #273029; color: white; }
.admin-sidebar nav a.active::after { content: ''; width: 7px; height: 7px; margin-left: auto; border-radius: 50%; background: var(--lime); }
.admin-note { margin-top: auto; padding: 1rem; border: 1px solid #38453b; background: #1b231d; }
.admin-note b { color: var(--lime); font-family: monospace; font-size: .7rem; letter-spacing: .1em; }
.admin-note p { margin: .5rem 0 0; color: #939e96; font-size: .74rem; line-height: 1.5; }
.admin-main { min-width: 0; }
.admin-topbar { height: 70px; display: flex; align-items: center; justify-content: space-between; padding: 0 2rem; border-bottom: 1px solid #c2c8c3; font-size: .8rem; font-weight: 750; }
.admin-topbar span { display: flex; align-items: center; gap: .55rem; }
.admin-topbar i { width: 7px; height: 7px; border-radius: 50%; background: #65a30d; box-shadow: 0 0 0 4px rgba(101,163,13,.13); }
.admin-topbar a { padding-bottom: .2rem; border-bottom: 1px solid var(--ink); }
.admin-content { width: min(1080px, calc(100% - 3rem)); margin: 0 auto; padding: 4rem 0 8rem; }
.admin-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 2.5rem; }
.admin-title h1 { margin: 1rem 0; font-size: clamp(3rem, 6vw, 5.5rem); line-height: .9; text-transform: uppercase; }
.admin-title > div > p:last-child { margin: 0; color: var(--muted); }
.storage-badge { flex: 0 0 auto; display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; border: 1px solid #b6bdb7; background: #f0f2f0; }
.storage-badge > span { color: #558500; font-size: 1.4rem; }
.storage-badge small { display: grid; color: #687169; text-transform: uppercase; letter-spacing: .07em; font-size: .65rem; }
.storage-badge b { color: var(--ink); text-transform: none; letter-spacing: 0; font-size: .78rem; }
.admin-alert { display: none; margin-bottom: 1rem; padding: .9rem 1rem; border: 1px solid; font-size: .85rem; font-weight: 750; }
.admin-alert.show { display: block; }
.admin-alert.success { background: #e7f3c8; border-color: #9ab749; color: #304600; }
.admin-alert.neutral { background: #edf0ee; border-color: #aeb6b0; color: #374039; }
#content-form { display: grid; gap: 1.2rem; }
.admin-panel { border: 1px solid #bec5bf; background: #f2f4f2; }
.admin-panel > header { display: flex; gap: 1rem; padding: 1.4rem; border-bottom: 1px solid #ced3cf; }
.admin-panel > header > span { flex: 0 0 36px; width: 36px; height: 36px; display: grid; place-items: center; background: var(--ink); color: var(--lime); font-family: monospace; font-size: .72rem; font-weight: 800; }
.admin-panel h2 { font-family: Arial, sans-serif; font-size: 1.05rem; letter-spacing: 0; }
.admin-panel header p { margin: .25rem 0 0; color: #6c756e; font-size: .8rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; padding: 1.5rem; }
.form-grid .full { grid-column: 1 / -1; }
.admin-page label { display: grid; gap: .5rem; color: #3e4941; font-size: .82rem; font-weight: 750; }
.admin-page input, .admin-page textarea { width: 100%; min-height: 45px; padding: .75rem; border: 1px solid #adb5af; border-radius: 0; background: white; color: var(--ink); }
.admin-page textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
.admin-page input:focus, .admin-page textarea:focus { outline: 3px solid rgba(186,255,0,.48); border-color: #536056; }
.service-fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; padding: 1.5rem; }
.service-fields fieldset { min-width: 0; display: grid; gap: 1rem; margin: 0; padding: 1rem; border: 1px solid #c6ccc7; }
.service-fields legend { padding: 0 .4rem; font-family: monospace; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.admin-savebar { position: sticky; bottom: 1rem; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: 1rem; background: rgba(17,23,19,.97); color: white; border: 1px solid #38433b; box-shadow: 0 15px 40px rgba(17,23,19,.22); }
.admin-savebar p { justify-self: center; margin: 0; color: #a8b1aa; font-size: .76rem; }
.reset-button { padding: .7rem 0; border: 0; border-bottom: 1px solid #727d75; background: transparent; color: #c6cdc8; font-size: .78rem; cursor: pointer; }

@media (max-width: 950px) {
  .hero { grid-template-columns: 1fr; }
  .hero-emblem { min-height: 430px; }
  .section-heading { display: block; }
  .section-heading h2 { margin-top: 2rem; }
  .service-grid, .process-grid { grid-template-columns: 1fr; }
  .service-card, .service-card + .service-card { min-height: 310px; padding: 2rem 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .build-section { grid-template-columns: 1fr; }
  .build-visual { min-height: 650px; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); gap: 1rem 0; }
  .trust-strip span:nth-child(2) { border: 0; }
  footer { grid-template-columns: 1fr; }
  footer p:last-child { justify-self: start; }
  .admin-page { grid-template-columns: 1fr; }
  .admin-sidebar { position: relative; width: 100%; height: auto; }
  .admin-sidebar nav, .admin-note { display: none; }
  .service-fields { grid-template-columns: 1fr; }
}

@media (min-width: 951px) and (max-width: 1250px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card:nth-child(2) { border-right: 0; }
  .service-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .service-card:nth-child(3) { padding-left: 0; }
}

@media (max-width: 700px) {
  .site-header { height: 72px; padding-inline: 1rem; }
  .site-header nav { position: absolute; top: 72px; left: 0; right: 0; display: none; align-items: stretch; gap: 0; padding: 1rem; background: var(--paper); border-bottom: 1px solid var(--ink); box-shadow: 0 15px 30px rgba(17,23,19,.12); }
  .site-header nav ul { display: grid; gap: 0; }
  .site-header nav.open { display: grid; }
  .site-header nav a, .site-header .admin-link { padding: .9rem; border: 0; border-bottom: 1px solid var(--line); }
  .menu-button { display: block; }
  .hero { min-height: auto; padding: 5rem 1.3rem 6rem; }
  h1 { font-size: clamp(3.6rem, 18vw, 5.4rem); }
  .hero-emblem { min-height: 360px; box-shadow: 10px 10px 0 var(--lime); }
  .hero-emblem img { height: 270px; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip span { justify-content: flex-start; border-right: 0; }
  .section { padding-inline: 1.3rem; }
  .section-heading h2, .build-copy h2, .closing h2 { font-size: 3.1rem; }
  .build-visual { min-height: 500px; }
  .build-copy { padding: 5rem 1.3rem; }
  .closing { grid-template-columns: 1fr; padding-inline: 1.3rem; }
  .closing > img { width: 240px; }
  footer { padding-inline: 1.3rem; }
  .admin-topbar { padding-inline: 1rem; }
  .admin-content { width: calc(100% - 2rem); padding-top: 2.5rem; }
  .admin-title { align-items: flex-start; flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .admin-savebar { grid-template-columns: 1fr; align-items: stretch; }
  .admin-savebar p { display: none; }
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

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