/*
Theme Name: Siteloop
Theme URI: https://siteloop.co.uk
Author: Electech Engineering Services Ltd
Description: The Siteloop sales website. One-page home with features, pricing calculator and FAQ, a contact page with its own form, and settings under Appearance → Customise → Siteloop settings.
Version: 1.1.0
Requires at least: 6.3
Requires PHP: 7.4
License: Proprietary
Text Domain: siteloop
*/

/* ---------------------------------------------------------------- tokens */
:root {
	--ground: #1B2220;      /* charcoal */
	--ground-2: #232C29;
	--paper: #F6F7F4;
	--card: #FFFFFF;
	--ink: #1B2220;
	--muted: #4A524F;
	--line: #DDE2DC;
	--on-dark: #ECEFEA;
	--on-dark-muted: #AEB8B3;
	--orange: #C2410C;      /* buttons and links on light (passes contrast with white text) */
	--orange-hot: #EA580C;  /* the logo dot */
	--orange-glow: #FB923C; /* orange text on dark */
	--orange-soft: #FDEDE3;
	--ok: #2F7D3A; --ok-soft: #E3F2E4;
	--bad: #B42318; --bad-soft: #FBE5E2;
	--r: 14px;
	--shadow: 0 1px 2px rgba(27, 34, 32, .06), 0 8px 24px rgba(27, 34, 32, .07);
	--font: Archivo, "Helvetica Neue", Arial, sans-serif;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--orange); text-underline-offset: 3px; }
a:hover { color: #9A3412; }
h1, h2, h3 { font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(38px, 6vw, 64px); letter-spacing: -0.035em; }
h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.03em; }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--orange-hot); outline-offset: 2px; border-radius: 4px; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }
.center { text-align: center; }
.small { font-size: 14px; }
.muted { color: var(--muted); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin-bottom: 14px; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 640px; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 10px;
	font: 700 15px var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn.big { min-height: 54px; padding: 14px 26px; font-size: 17px; }
.btn.full { width: 100%; }
.btn.primary { background: var(--orange); color: #fff; }
.btn.primary:hover { background: #9A3412; color: #fff; }
.btn.outline { border-color: currentColor; color: var(--ink); }
.btn.outline:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.ghost { color: var(--ink); }
.btn.ghost:hover { background: rgba(27, 34, 32, .06); color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.cta-row.center { justify-content: center; }

/* ---------------------------------------------------------------- logo + header */
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 24px; letter-spacing: -0.03em; }
.logo b { color: var(--orange); font-weight: 800; }
.logo:hover { color: var(--ink); }
.mark { flex-shrink: 0; }

.top { position: sticky; top: 0; z-index: 50; background: rgba(246, 247, 244, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; min-height: 70px; }
.site-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.nav-list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list a { display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; border-radius: 8px; }
.nav-list a:hover { background: rgba(27, 34, 32, .06); }
.nav-cta { display: flex; gap: 8px; }
.menu-btn { display: none; margin-left: auto; width: 48px; height: 48px; border: 0; background: none; border-radius: 10px; cursor: pointer; }
.menu-btn .bars, .menu-btn .bars::before, .menu-btn .bars::after { display: block; width: 22px; height: 2.5px; background: var(--ink); border-radius: 2px; position: relative; margin: 0 auto; transition: transform .2s; content: ""; }
.menu-btn .bars::before { position: absolute; top: -7px; }
.menu-btn .bars::after { position: absolute; top: 7px; }
.nav-open .menu-btn .bars { background: transparent; }
.nav-open .menu-btn .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .menu-btn .bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
	.menu-btn { display: block; }
	.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line);
		flex-direction: column; align-items: stretch; gap: 12px; padding: 12px 24px 24px; box-shadow: var(--shadow); }
	.nav-open .site-nav { display: flex; }
	.nav-list { flex-direction: column; }
	.nav-list a { padding: 12px 8px; font-size: 17px; }
	.nav-cta { flex-direction: column; }
	.nav-cta .btn { min-height: 50px; }
}

/* ---------------------------------------------------------------- hero */
.hero { background: var(--ground); color: var(--on-dark); overflow: hidden; position: relative; }
.hero::before { content: ""; position: absolute; width: 760px; height: 760px; right: -220px; top: -240px; border: 64px solid rgba(236, 239, 234, .04); border-radius: 50%; pointer-events: none; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 88px; padding-bottom: 96px; position: relative; }
.hero .eyebrow { color: var(--orange-glow); }
.hero h1 { color: #fff; }
.hero h1 span { color: var(--orange-glow); }
.hero .lead { color: var(--on-dark-muted); }
.hero .small { color: var(--on-dark-muted); }
.hero .btn.outline { color: var(--on-dark); }
.hero .btn.outline:hover { background: var(--on-dark); color: var(--ground); border-color: var(--on-dark); }
.hero .btn.primary { background: var(--orange-hot); }
.hero .btn.primary:hover { background: #F97316; }

/* product mock-ups (drawn in HTML so they stay sharp) */
.hero-visual { position: relative; min-height: 470px; }
.mock-desk { position: absolute; left: 0; top: 20px; width: 88%; background: var(--card); color: var(--ink); border-radius: 16px; padding: 18px 20px 20px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); font-size: 14px; }
.md-head { display: flex; justify-content: space-between; font-weight: 800; font-size: 18px; margin-bottom: 12px; }
.md-date { color: var(--muted); font-weight: 500; font-size: 14px; }
.md-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 12px 0 6px; }
.md-list { list-style: none; margin: 0; padding: 0; }
.md-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.md-list li:first-child { border-top: 0; }
.md-list b { margin-left: 4px; }
.md-btn { margin-left: auto; font-size: 12px; font-weight: 700; padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; }
.dot { width: 8px; height: 8px; border-radius: 4px; flex-shrink: 0; }
.dot.amber { background: #D97706; }
.who { width: 10px; height: 10px; border-radius: 5px; flex-shrink: 0; }
.pill { margin-left: auto; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: #EEF0ED; color: var(--muted); white-space: nowrap; }
.pill.go { background: var(--ok-soft); color: var(--ok); }
.pill.way { background: var(--orange-soft); color: var(--orange); }

.mock-phone { position: absolute; right: 0; top: 70px; width: 236px; background: #0E1312; border-radius: 34px; padding: 10px; box-shadow: 0 30px 70px rgba(0, 0, 0, .5); }
.mp-notch { width: 80px; height: 20px; background: #0E1312; border-radius: 0 0 12px 12px; position: absolute; left: 50%; transform: translateX(-50%); top: 10px; z-index: 2; }
.mp-top { background: var(--card); color: var(--ink); border-radius: 26px 26px 0 0; padding: 34px 14px 10px; font-weight: 800; font-size: 15px; display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--line); }
.mp-top b { color: var(--orange); }
.mp-body { background: #F1F3EF; color: var(--ink); border-radius: 0 0 26px 26px; padding: 12px; display: flex; flex-direction: column; gap: 8px; font-size: 12px; }
.mp-meta { color: var(--muted); font-size: 11px; }
.mp-job { font-weight: 800; font-size: 16px; line-height: 1.15; }
.mp-addr { color: var(--muted); }
.mp-btn { border-radius: 10px; padding: 11px; text-align: center; font-weight: 800; font-size: 13px; }
.mp-btn.dark { background: var(--ground); color: #fff; }
.mp-btn.orange { background: var(--orange-hot); color: #fff; }
.mp-card { background: var(--card); border-radius: 10px; padding: 9px 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mp-card .small { font-size: 11px; color: var(--orange); font-weight: 700; }
.mp-thumbs { display: flex; gap: 4px; }
.mp-thumbs i { width: 22px; height: 22px; border-radius: 5px; background: linear-gradient(135deg, #C9D1CB, #9AA6A0); display: block; }

@media (max-width: 960px) {
	.hero-in { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 64px; gap: 32px; }
	.hero-visual { min-height: 440px; max-width: 560px; }
}
@media (max-width: 560px) {
	.hero-visual { min-height: 0; display: flex; justify-content: center; }
	.mock-desk { display: none; }
	.mock-phone { position: relative; top: 0; }
}

/* ---------------------------------------------------------------- proof strip */
.proof { background: var(--ground-2); color: var(--on-dark-muted); text-align: center; padding: 18px 0; font-size: 15px; }
.proof p { margin: 0; }
.proof b { color: var(--on-dark); }

/* ---------------------------------------------------------------- sections */
.section { padding: 96px 0; }
.section.tight { padding: 48px 0 96px; }
.section.alt { background: #ECEFEA; }
.section.dark { background: var(--ground); color: var(--on-dark); }
.section.dark .eyebrow { color: var(--orange-glow); }
.section.dark h2 { color: #fff; }
.section.dark .lead { color: var(--on-dark-muted); }
.head { max-width: 760px; margin-bottom: 48px; }
.head h2 { margin-bottom: 0; }
.grid { display: grid; gap: 20px; }
.grid.features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; box-shadow: var(--shadow); }
.feature h3 { margin: 16px 0 8px; font-size: 19px; }
.feature p { color: var(--muted); font-size: 16px; margin: 0; }
.ic-wrap { display: inline-flex; width: 48px; height: 48px; border-radius: 12px; background: var(--orange-soft); color: var(--orange); align-items: center; justify-content: center; }
@media (max-width: 960px) { .grid.features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
	.section { padding: 64px 0; }
	.grid.features, .grid.two { grid-template-columns: 1fr; }
	.card { padding: 22px; }
}

/* the loop */
.loop { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: none; }
.loop li { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 26px 22px; box-shadow: var(--shadow); }
.loop li h3 { margin: 14px 0 6px; }
.loop li p { color: var(--muted); font-size: 16px; margin: 0; }
.loop .n { display: inline-flex; width: 36px; height: 36px; border-radius: 18px; align-items: center; justify-content: center; font-weight: 800; background: var(--ground); color: #fff; }
.loop li:last-child .n { background: var(--orange-hot); }
@media (max-width: 900px) { .loop { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .loop { grid-template-columns: 1fr; } }

/* tick lists */
.ticks { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .ic { width: 22px; height: 22px; color: var(--ok); flex-shrink: 0; margin-top: 2px; }
.ticks.big li { font-size: 19px; }
.section.dark .ticks .ic { color: var(--orange-glow); }
.aud h3 { font-size: 26px; margin-bottom: 4px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 24px; } }

/* ---------------------------------------------------------------- pricing */
.price-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 860px) { .price-grid { grid-template-columns: 1fr; } }
.price { border: 2px solid var(--ground); }
.ribbon { display: inline-block; background: var(--orange-soft); color: var(--orange); font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 99px; margin-bottom: 18px; }
.price-main { display: flex; align-items: center; gap: 14px; }
.price-main .amt { font-size: 72px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.price-main .per { color: var(--muted); line-height: 1.3; font-size: 16px; }
.price-extra { font-size: 18px; margin: 14px 0 6px; }
.price .btn { margin-top: 24px; }
.price .center { margin-top: 10px; }

.calc h3 { font-size: 24px; }
.calc-label { display: block; font-weight: 700; margin: 18px 0 10px; }
.calc input[type="range"] { --fill: 8%; width: 100%; height: 44px; background: transparent; -webkit-appearance: none; appearance: none; margin: 0; cursor: pointer; }
.calc input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(to right, var(--orange) var(--fill), var(--line) var(--fill)); }
.calc input[type="range"]::-moz-range-track { height: 8px; border-radius: 4px; background: var(--line); }
.calc input[type="range"]::-moz-range-progress { height: 8px; border-radius: 4px; background: var(--orange); }
.calc input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 3px solid var(--orange); margin-top: -10px; box-shadow: var(--shadow); }
.calc input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--orange); }
.calc-rows { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.calc-row { display: grid; grid-template-columns: 1fr auto auto; align-items: baseline; gap: 8px; padding: 14px 16px; border-radius: 10px; background: var(--paper); }
.calc-row b { font-size: 26px; letter-spacing: -0.02em; }
.calc-row.us { background: var(--ground); color: #fff; }
.calc-row.us .small { color: var(--on-dark-muted); }
.calc-row.them b { color: var(--muted); }
.calc-row.std { background: var(--orange-soft); }
.save { font-size: 19px; margin: 8px 0 12px; }
.save b { color: var(--ok); }

/* ---------------------------------------------------------------- FAQ */
.faq { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-weight: 700; font-size: 18px; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 500; color: var(--orange); }
.faq[open] summary::after { content: "–"; }
.faq p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

/* ---------------------------------------------------------------- final CTA */
.final { background: var(--ground); color: var(--on-dark); }
.final .mark path { stroke: var(--on-dark); }
.final h2 { color: #fff; margin-top: 16px; }
.final .lead { color: var(--on-dark-muted); margin: 0 auto; }
.final .btn.outline { color: var(--on-dark); }
.final .btn.outline:hover { background: var(--on-dark); color: var(--ground); border-color: var(--on-dark); }
.final .btn.primary { background: var(--orange-hot); }
.final .btn.primary:hover { background: #F97316; }

/* ---------------------------------------------------------------- inner pages */
.page-hero { padding: 72px 0 8px; }
.page-hero h1 { font-size: clamp(34px, 5vw, 52px); }
.prose { max-width: 720px; }
.prose h2 { font-size: 28px; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.post-item { padding: 24px 0; border-bottom: 1px solid var(--line); }
.video iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: var(--r); }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.contact-side { display: flex; flex-direction: column; gap: 20px; }
.contact-side h3 { margin-bottom: 6px; }
.contact-side p:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: flex; flex-direction: column; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 15px; }
.form input, .form select, .form textarea { font: 500 17px var(--font); color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; min-height: 48px; width: 100%; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 3px var(--orange-soft); }
.form .btn { align-self: flex-start; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.note { padding: 14px 16px; border-radius: 10px; margin-bottom: 16px; }
.note.ok { background: var(--ok-soft); color: var(--ok); }
.note.bad { background: var(--bad-soft); color: var(--bad); }

/* ---------------------------------------------------------------- footer */
.foot { background: var(--ground); color: var(--on-dark-muted); padding: 64px 0 28px; font-size: 15px; }
.foot a { color: var(--on-dark); }
.foot a:hover { color: var(--orange-glow); }
.foot-in { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid rgba(236, 239, 234, .12); }
.foot-brand { max-width: 380px; }
.foot .logo { color: #fff; font-size: 22px; margin-bottom: 12px; }
.foot .logo b { color: var(--orange-glow); }
.foot .nav-list { flex-direction: column; gap: 0; }
.foot .nav-list a { color: var(--on-dark); padding: 6px 0; font-weight: 700; }
.foot .nav-list a:hover { background: none; color: var(--orange-glow); }
.legal { padding-top: 20px; font-size: 13px; }
.legal p { margin: 0 0 6px; }

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