/*
Theme Name: Skip Digital
Template: gutenberg
Description: Child theme of the Pixus Base Theme for skip hire sites using the Skip Digital Booking plugin. Header, footer and skip pages in the Skip Digital style; phone, hours, address, socials, scripts and the floating call buttons come from Global Settings.
Version: 2.0.1
Author: Pixus
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: skip-digital-theme
*/

:root {
	--ink: #17201C; --ink-2: #222D28; --ink-line: #3A4540;
	--yellow: #F2C230; --yellow-dark: #E3B01C;
	--gold-text: #7A6413;
	--bg: #F5F3EE; --bg-2: #ECE9E1; --bg-3: #FAF9F5;
	--line: #E2DED4; --line-2: #C9C4B8;
	--muted: #4A524E; --on-dark: #D7D4CA; --on-dark-2: #B9B6AC;
	--green: #1E6B3A;
	--font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
	--wrap: 1240px;
}
/* The Base Theme styles page content and blocks. These rules only cover our header, footer,
   floating call buttons, and skip pages (body.sdt-full), so the two don't fight. */
.sdt-topbar, .sdt-site-header, .sdt-site-footer, .sdt-quick, .sdt-crumbs { font-family: var(--font); color: var(--ink); line-height: 1.5; -webkit-font-smoothing: antialiased; }
.sdt-topbar *, .sdt-site-header *, .sdt-site-footer *, .sdt-quick *, .sdt-crumbs * { box-sizing: border-box; }
.sdt-site-header img, .sdt-site-header svg, .sdt-site-footer svg { max-width: 100%; height: auto; }
.sdt-site-header a, .sdt-site-footer a, .sdt-topbar a { text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--yellow); }
.sdt-site-header :focus-visible, .sdt-site-footer :focus-visible, .sdt-quick :focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.sdt-site-header ul, .sdt-site-footer ul { list-style: none; margin: 0; padding: 0; }
.sdt-site-footer h2 { margin: 0; }
body.sdt-full { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
html { scroll-padding-top: 24px; }
.sdt-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; left: 12px; top: 12px; z-index: 1000; width: auto; height: auto; clip: auto; background: var(--yellow); color: var(--ink); padding: 10px 16px; font-weight: 700; }

.sdt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 6px; border: 2px solid transparent; font-family: var(--font); font-size: 17px; font-weight: 700; line-height: 1.1; text-decoration: none; cursor: pointer; white-space: nowrap; }
.sdt-btn-y { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.sdt-btn-y:hover { background: var(--yellow-dark); border-color: var(--yellow-dark); }
.sdt-btn-d { background: var(--ink); border-color: var(--ink); color: #fff; }
.sdt-btn-o { border-color: var(--ink); color: var(--ink); background: transparent; }

/* Topbar */
.sdt-topbar { background: var(--ink); color: var(--on-dark); font-size: 14px; }
.sdt-topbar .sdt-wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.sdt-topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.sdt-topbar a:hover { text-decoration: underline; text-decoration-color: var(--yellow); }
.sdt-topbar__links { display: flex; gap: 22px; }

/* Header */
.sdt-site-header { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 50; }
.sdt-site-header .sdt-wrap { display: flex; align-items: center; gap: 28px; min-height: 84px; }
.sdt-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.sdt-brand svg { width: 52px; height: 32px; flex: none; }
.sdt-brand__text { display: flex; flex-direction: column; font-family: var(--display); font-weight: 800; font-size: 28px; line-height: .9; text-transform: uppercase; }
.sdt-brand__text small { font-size: 13px; font-weight: 700; letter-spacing: .24em; margin-top: 3px; }
.sdt-brand img { max-height: 56px; width: auto; }
.sdt-nav { margin-left: auto; }
.sdt-nav ul { list-style: none; margin: 0; padding: 0; }
.sdt-nav > ul { display: flex; align-items: center; gap: 4px; }
.sdt-nav li { position: relative; }
.sdt-nav > ul > li > a { display: flex; align-items: center; gap: 6px; min-height: 84px; padding: 0 12px; font-size: 16px; font-weight: 600; text-decoration: none; color: var(--ink); position: relative; }
.sdt-nav > ul > li > a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 22px; height: 3px; background: transparent; }
.sdt-nav > ul > li > a:hover::after, .sdt-nav > ul > li.current-menu-item > a::after, .sdt-nav > ul > li.current-menu-ancestor > a::after, .sdt-nav > ul > li.current_page_item > a::after, .sdt-nav > ul > li.current_page_ancestor > a::after { background: var(--yellow); }
.sdt-nav .menu-item-has-children > a::before { content: ""; order: 2; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); }
.sdt-nav .sub-menu { position: absolute; left: 0; top: 100%; min-width: 280px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--yellow); border-radius: 0 0 8px 8px; box-shadow: 0 14px 32px rgba(23, 32, 28, .14); padding: 8px; display: none; }
.sdt-nav li:hover > .sub-menu, .sdt-nav li:focus-within > .sub-menu { display: block; }
.sdt-nav .sub-menu a { display: block; padding: 10px 12px; border-radius: 6px; font-size: 15px; font-weight: 600; text-decoration: none; color: var(--ink); }
.sdt-nav .sub-menu a:hover { background: var(--bg); }
.sdt-nav .sub-menu .sub-label { display: block; padding: 10px 12px 4px; font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
.sdt-header-cta { display: flex; align-items: center; gap: 18px; flex: none; }
.sdt-header-phone { font-size: 20px; font-weight: 700; text-decoration: none; color: var(--ink); white-space: nowrap; }
.sdt-nav-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 6px; background: #fff; color: var(--ink); font: 700 16px var(--font); cursor: pointer; }
.sdt-nav-toggle span { display: block; width: 18px; height: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }
.sdt-nav-toggle[aria-expanded="true"] span { box-shadow: none; background: transparent; position: relative; }
.sdt-nav-toggle[aria-expanded="true"] span::before, .sdt-nav-toggle[aria-expanded="true"] span::after { content: ""; position: absolute; left: 0; top: 0; width: 18px; height: 2px; background: currentColor; transform: rotate(45deg); }
.sdt-nav-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg); }


/* Footer */
.sdt-site-footer { background: var(--ink); color: var(--on-dark); font-size: 16px; }
.sdt-site-footer a { color: var(--on-dark); text-decoration: none; }
.sdt-site-footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--yellow); }
.sdt-ftr { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-top: 72px; padding-bottom: 56px; }
.sdt-ftr .sdt-brand { color: #fff; margin-bottom: 18px; }
.sdt-ftr .sdt-brand svg rect:first-child { fill: #fff; }
.sdt-ftr p { margin: 0; color: var(--on-dark-2); max-width: 320px; }
.sdt-ftr h2 { font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: .14em; color: var(--yellow); margin: 0 0 16px; }
.sdt-ftr ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sdt-ftr address { font-style: normal; display: flex; flex-direction: column; gap: 10px; }
.sdt-ftr .sdt-ftr-phone { font-family: var(--display); font-weight: 800; font-size: 28px; color: #fff; line-height: 1; }
.sdt-ftr-bottom { border-top: 1px solid var(--ink-line); }
.sdt-ftr-bottom .sdt-wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; font-size: 14px; color: var(--on-dark-2); }
.sdt-ftr-bottom ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }

/* Global Settings extras */
.sdt-topbar__msg a { color: var(--yellow); }
.sdt-topbar .sdt-social { display: inline-flex; color: #fff; }
.sdt-topbar .sdt-social:hover { color: var(--yellow); }
.sdt-topbar__links { align-items: center; }
.sdt-ftr-social { display: flex; gap: 14px; margin-top: 18px !important; }
.sdt-ftr-social a { color: #fff; display: inline-flex; }
.sdt-ftr-social a:hover { color: var(--yellow); }
.sdt-ftr address small { display: block; margin-top: -6px; color: var(--on-dark-2); }
.sdt-ftr ul.menu { display: flex; flex-direction: column; gap: 10px; }
.sdt-ftr-bottom ul.menu { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.sdt-nav-call .sdt-btn + .sdt-btn { margin-top: 10px; }

/* Floating call buttons (mobile) */
.sdt-quick { display: none; }
.sdt-popup[hidden] { display: none; }
.sdt-popup { position: fixed; inset: 0; z-index: 200; background: rgba(23, 32, 28, .55); display: flex; align-items: center; justify-content: center; padding: 18px; font-family: var(--font); }
.sdt-popup__panel { position: relative; width: 100%; max-width: 420px; background: #fff; border: 2px solid var(--ink); border-radius: 10px; padding: 28px; }
.sdt-popup__panel h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 30px; margin: 0 0 14px; color: var(--ink); }
.sdt-popup__panel ul { list-style: none; margin: 0; padding: 0; }
.sdt-popup__panel li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.sdt-popup__panel li a { font-weight: 700; color: var(--ink); }
.sdt-popup__close { position: absolute; top: 8px; right: 10px; width: 40px; height: 40px; border: 0; background: none; font-size: 28px; cursor: pointer; color: var(--ink); }
@media (max-width: 980px) {
	.sdt-quick { position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; display: flex; background: var(--ink); border-top: 3px solid var(--yellow); padding-bottom: env(safe-area-inset-bottom); }
	.sdt-quick__item { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 6px 8px; color: #fff; text-decoration: none; font: 700 15px var(--font); background: none; border: 0; cursor: pointer; }
	.sdt-quick__item + .sdt-quick__item { border-left: 1px solid var(--ink-line); }
	.sdt-quick__item:first-child { background: var(--yellow); color: var(--ink); }
	.sdt-quick--3 .sdt-quick__item, .sdt-quick--4 .sdt-quick__item { flex-direction: column; gap: 2px; font-size: 13px; }
	body:has(.sdt-quick) { padding-bottom: 60px; }
}

@media (max-width: 1120px) {
	.sdt-header-phone { font-size: 18px; }
	.sdt-nav > ul > li > a { padding: 0 9px; font-size: 15px; }
}
@media (max-width: 980px) {
	.sdt-site-header .sdt-wrap { min-height: 72px; gap: 12px; }
	.sdt-nav-toggle { display: inline-flex; }
	.sdt-header-cta { margin-left: auto; gap: 10px; }
	.sdt-header-phone { display: none; }
	.sdt-nav { position: absolute; left: 0; right: 0; top: 100%; margin: 0; background: #fff; border-bottom: 2px solid var(--ink); box-shadow: 0 16px 30px rgba(23, 32, 28, .14); display: none; max-height: calc(100vh - 72px); overflow-y: auto; }
	.sdt-nav.is-open { display: block; }
	.sdt-nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 18px 18px; }
	.sdt-nav > ul > li { border-bottom: 1px solid var(--line); }
	.sdt-nav > ul > li > a { min-height: 56px; padding: 0 4px; font-size: 18px; }
	.sdt-nav > ul > li > a::after { display: none; }
	.sdt-nav .menu-item-has-children > a::before { margin-left: auto; }
	.sdt-nav .sub-menu { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 12px; min-width: 0; }
	.sdt-nav .sub-menu a { padding: 9px 4px; font-weight: 500; color: var(--muted); }
	.sdt-nav-call { display: block !important; padding: 0 18px 18px; }
	.sdt-nav-call .sdt-btn { width: 100%; }
	.sdt-ftr { grid-template-columns: 1fr 1fr; gap: 36px 24px; padding-top: 56px; padding-bottom: 40px; }
	.sdt-ftr > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
	body.sdt-full { font-size: 16px; }
	.sdt-wrap { padding: 0 18px; }
	.sdt-topbar .sdt-wrap { justify-content: center; min-height: 34px; font-size: 13px; }
	.sdt-topbar__hours { display: none; }
	.sdt-site-header .sdt-wrap { min-height: 64px; }
	.sdt-brand svg { width: 42px; height: 26px; }
	.sdt-brand__text { font-size: 23px; }
	.sdt-brand__text small { font-size: 11px; }
	.sdt-header-cta .sdt-btn-y { min-height: 44px; padding: 0 14px; font-size: 15px; }
	.sdt-nav-toggle { min-height: 44px; padding: 0 11px; }
	.sdt-nav { max-height: calc(100vh - 64px); }
	.sdt-ftr { grid-template-columns: 1fr; }
}
