/*
Theme Name: PAL Hire Skip Hire
Theme URI: https://www.palskiphire.co.uk/
Author: Leadsy
Description: Skip hire booking theme for PAL Hire. Built for WooCommerce and the General Waste Skip (Leadsy) plugin.
Version: 1.0.4
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: palhire-skiphire
*/

:root {
	--ph-red: #D70D1B;
	--ph-red-dark: #A80A15;
	--ph-blue: #007BC2;
	--ph-blue-dark: #005B90;
	--ph-navy: #0F1E2E;
	--ph-ink: #1C2329;
	--ph-text: #3D464D;
	--ph-muted: #6B757D;
	--ph-line: #E3E6E9;
	--ph-bg: #F6F7F8;
	--ph-white: #fff;
	--ph-radius: 6px;
	--ph-max: 1180px;
	--ph-font: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--ph-font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--ph-text);
	background: var(--ph-bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ph-blue); text-decoration: none; }
a:hover { color: var(--ph-blue-dark); }
h1, h2, h3, h4, h5 { color: var(--ph-ink); font-weight: 700; line-height: 1.2; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
.hide, .hidden { display: none !important; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.ph-container { width: 100%; max-width: var(--ph-max); margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons ---------- */
.btn, .button, button.button, input.button, .woocommerce a.button, .woocommerce button.button,
.woocommerce input.button, .woocommerce #respond input#submit, .woocommerce a.button.alt,
.woocommerce button.button.alt, .woocommerce input.button.alt {
	display: inline-flex; align-items: center; justify-content: center;
	font-family: var(--ph-font); font-weight: 700; font-size: 15px; letter-spacing: .02em;
	text-transform: uppercase; line-height: 1.2;
	padding: 14px 26px; border: 0; border-radius: var(--ph-radius);
	background: var(--ph-red); color: #fff; cursor: pointer;
	transition: background .15s ease, transform .15s ease;
}
.btn:hover, .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover,
.woocommerce input.button:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
	background: var(--ph-red-dark); color: #fff;
}
.btn--blue { background: var(--ph-blue); }
.btn--blue:hover { background: var(--ph-blue-dark); }
.btn.disabled, .button.disabled, .button:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Header ---------- */
.ph-header { background: #fff; border-bottom: 4px solid var(--ph-red); position: relative; z-index: 50; }
.ph-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 96px; }
.ph-header__brand { display: flex; align-items: center; gap: 14px; }
.ph-header__brand img { height: 58px; width: auto; }
.ph-header__brand-tag {
	font-weight: 800; font-size: 20px; letter-spacing: .04em; text-transform: uppercase; color: var(--ph-ink);
	border-left: 2px solid var(--ph-line); padding-left: 14px;
}
.ph-header__contact { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.ph-header__contact a { color: var(--ph-ink); font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }
.ph-header__contact a:hover { color: var(--ph-blue); }
.ph-header__contact .ph-phone { font-size: 20px; color: var(--ph-red); }
.ph-header__contact svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.ph-header__actions { display: flex; align-items: center; gap: 24px; }
.ph-basket { position: relative; color: var(--ph-ink); display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }
.ph-basket svg { width: 26px; height: 26px; fill: var(--ph-blue); }
.ph-basket__count {
	position: absolute; top: -8px; left: 16px; min-width: 20px; height: 20px; border-radius: 10px;
	background: var(--ph-red); color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; padding: 0 5px;
}

/* ---------- USP strip ---------- */
.ph-usps { background: #EDEFF1; border-bottom: 1px solid var(--ph-line); }
.ph-usps__inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 6px 0; }
.ph-usp {
	background: #E2E5E8; display: flex; align-items: center; justify-content: center; gap: 10px;
	padding: 11px 10px; font-weight: 700; font-size: 14px; color: var(--ph-ink);
}
.ph-usp__icon { width: 18px; height: 18px; position: relative; flex: none; }
.ph-usp__icon::before, .ph-usp__icon::after { content: ""; position: absolute; background: var(--ph-red); border-radius: 2px; }
.ph-usp__icon::before { left: 7px; top: 0; width: 4px; height: 18px; }
.ph-usp__icon::after { top: 7px; left: 0; height: 4px; width: 18px; }
.ph-usp:nth-child(2) .ph-usp__icon::before, .ph-usp:nth-child(2) .ph-usp__icon::after { background: var(--ph-blue); }

/* ---------- Hero ---------- */
.ph-hero {
	position: relative; overflow: hidden; color: #fff; text-align: center;
	background: radial-gradient(ellipse at 30% 40%, #22364B 0%, var(--ph-navy) 60%, #0A1520 100%);
	padding: 90px 0 100px;
}
.ph-hero::before {
	/* subtle grid texture */
	content: ""; position: absolute; inset: 0; opacity: .07;
	background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
	background-size: 44px 44px;
}
.ph-hero__chevrons { position: absolute; top: 0; right: -60px; bottom: 0; width: 46%; pointer-events: none; }
.ph-hero__chevrons svg { position: absolute; right: 0; top: 0; height: 100%; width: auto; }
.ph-hero__content { position: relative; z-index: 2; max-width: 680px; margin: 0 auto; }
.ph-hero h1 { color: #fff; font-size: 40px; margin-bottom: 14px; }
.ph-hero__lead { font-size: 17px; color: rgba(255,255,255,.86); margin-bottom: 28px; }
.ph-hero__badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; font-size: 14px; color: rgba(255,255,255,.85); }
.ph-hero__badges span { display: inline-flex; align-items: center; gap: 7px; }
.ph-hero__badges span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ph-red); }

/* Postcode calculator */
.ph-postcode { display: flex; max-width: 460px; margin: 0 auto; box-shadow: 0 10px 30px rgba(0,0,0,.35); border-radius: var(--ph-radius); overflow: hidden; }
.ph-postcode input[type="text"] {
	flex: 1; min-width: 0; border: 0; padding: 18px 18px; font-family: var(--ph-font); font-size: 16px; font-weight: 600;
	text-transform: uppercase; color: var(--ph-ink); outline: none;
}
.ph-postcode input[type="text"]::placeholder { text-transform: none; color: #8A949C; font-weight: 500; }
.ph-postcode .btn { border-radius: 0; padding: 0 26px; font-size: 14px; white-space: nowrap; }

/* ---------- Sections ---------- */
.ph-section { padding: 70px 0; }
.ph-section--white { background: #fff; }
.ph-intro { text-align: center; max-width: 860px; margin: 0 auto 44px; }
.ph-intro h2 { font-size: 36px; }
.ph-intro p { font-size: 18px; color: var(--ph-text); }
.ph-subhead { text-align: center; font-size: 24px; margin-bottom: 34px; }

/* Skip cards */
.ph-skips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; list-style: none; margin: 0; padding: 0; }
.ph-skip {
	background: #fff; border: 1px solid var(--ph-line); border-radius: 8px; overflow: hidden;
	display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease; position: relative;
}
.ph-skip:hover { box-shadow: 0 14px 34px rgba(15,30,46,.12); transform: translateY(-3px); }
.ph-skip__img { background: #fff; padding: 28px 16px 8px; border-bottom: 3px solid var(--ph-blue); }
.ph-skip__img img { width: 100%; aspect-ratio: 800 / 330; object-fit: contain; }
.ph-skip__body { padding: 20px 20px 8px; flex: 1; }
.ph-skip__title { font-size: 21px; margin-bottom: 6px; }
.ph-skip__title a { color: var(--ph-ink); }
.ph-skip__type { font-weight: 700; color: var(--ph-blue); font-size: 14px; margin-bottom: 4px; }
.ph-skip__bags { font-size: 14px; color: var(--ph-muted); margin-bottom: 10px; }
.ph-skip__desc { font-size: 15px; }
.ph-skip__price { font-size: 15px; color: var(--ph-muted); margin: 6px 0 2px; }
.ph-skip__price strong { font-size: 26px; color: var(--ph-red); }
.ph-skip__price small { display: block; font-size: 12px; }
.ph-skip__unavailable { font-size: 14px; color: var(--ph-muted); background: var(--ph-bg); padding: 10px; border-radius: 4px; }
.ph-skip__cta { padding: 0 20px 22px; }
.ph-skip__cta .btn { width: 100%; }
.ph-skip__link { position: absolute; inset: 0; z-index: 1; }
.ph-skip__cta { position: relative; z-index: 2; }

/* Trust / how-it-works band */
.ph-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.ph-step { background: #fff; border-radius: 8px; padding: 26px 22px; border-top: 4px solid var(--ph-red); }
.ph-step:nth-child(even) { border-top-color: var(--ph-blue); }
.ph-step::before {
	counter-increment: step; content: counter(step);
	display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center;
	border-radius: 50%; background: var(--ph-navy); color: #fff; font-weight: 800; margin-bottom: 12px;
}
.ph-step h3 { font-size: 18px; }
.ph-step p { font-size: 15px; margin: 0; }

.ph-cta-band { background: var(--ph-blue); color: #fff; padding: 36px 0; }
.ph-cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.ph-cta-band h2 { color: #fff; margin: 0; font-size: 24px; }
.ph-cta-band p { margin: 4px 0 0; color: rgba(255,255,255,.85); }
.ph-cta-band .btn { background: #fff; color: var(--ph-red); }
.ph-cta-band .btn:hover { background: var(--ph-bg); color: var(--ph-red-dark); }

/* ---------- Generic page ---------- */
.ph-page-head { background: var(--ph-navy); color: #fff; padding: 40px 0; }
.ph-page-head h1 { color: #fff; margin: 0; font-size: 32px; }
.ph-content { padding: 50px 0 70px; }
.ph-content .entry-content { background: #fff; border-radius: 8px; padding: 36px; }

/* ---------- Footer ---------- */
.ph-footer { background: var(--ph-navy); color: rgba(255,255,255,.78); font-size: 15px; }
.ph-footer__top { padding: 56px 0 40px; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; }
.ph-footer h4 { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.ph-footer a { color: rgba(255,255,255,.85); }
.ph-footer a:hover { color: #fff; }
.ph-footer ul { list-style: none; margin: 0; padding: 0; }
.ph-footer li { margin-bottom: 8px; }
.ph-footer__logo { background: #fff; display: inline-block; padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; }
.ph-footer__logo img { height: 44px; width: auto; }
.ph-footer__phone { font-size: 22px; font-weight: 800; color: #fff !important; }
.ph-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ph-footer__stripe { height: 6px; background: linear-gradient(90deg, var(--ph-red) 0 50%, var(--ph-blue) 50% 100%); }

/* ---------- WooCommerce: single product ---------- */
.ph-product { padding: 40px 0 70px; }
.ph-product .product_title { font-size: 30px; margin-bottom: 24px; }
.ph-product__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.ph-product__media { background: #fff; border-radius: 8px; padding: 40px 24px; border: 1px solid var(--ph-line); position: sticky; top: 20px; }
.ph-product__media img { width: 100%; height: auto; }
.ph-product__media-note { text-align: center; font-size: 13px; color: var(--ph-muted); margin: 16px 0 0; }
.ph-product .summary { position: relative; }
.ph-product .summary.ajax::after {
	content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.65) url("assets/img/spinner.svg") center 40% / 56px no-repeat; z-index: 10;
}
.woocommerce-product-details__short-description { margin-bottom: 18px; }

/* Accordions */
.ph-acc { margin-bottom: 22px; }
.ph-acc__item { margin-bottom: 6px; }
.ph-acc__btn {
	width: 100%; display: flex; justify-content: space-between; align-items: center;
	background: var(--ph-blue); color: #fff; border: 0; padding: 14px 16px; font-family: var(--ph-font);
	font-weight: 700; font-size: 15px; cursor: pointer; text-align: left; border-radius: 3px;
}
.ph-acc__btn::after { content: ""; width: 8px; height: 8px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); transition: transform .2s; }
.ph-acc__item.is-open .ph-acc__btn::after { transform: rotate(45deg); }
.ph-acc__panel { display: none; background: #fff; border: 1px solid var(--ph-line); border-top: 0; padding: 18px; font-size: 15px; }
.ph-acc__item.is-open .ph-acc__panel { display: block; }
.ph-acc__panel table { width: 100%; border-collapse: collapse; }
.ph-acc__panel td, .ph-acc__panel th { padding: 7px 4px; border-bottom: 1px solid var(--ph-line); text-align: left; }

/* Booking form (IDs/classes are what the General Waste Skip plugin JS expects) */
#product_form_add_to_basket { background: #fff; border: 1px solid var(--ph-line); border-radius: 8px; padding: 24px; }
.prod__form__field { margin-bottom: 16px; }
.prod__form__field label { display: block; font-size: 15px; color: var(--ph-ink); margin-bottom: 6px; }
.prod__form__field label strong { color: var(--ph-red); }
.prod__form__field input[type="text"], .prod__form__field select, .prod__form__field input[type="number"] {
	width: 100%; max-width: 100%; padding: 12px 14px; border: 1px solid #CBD1D6; border-radius: 4px; background: #fff;
	font-family: var(--ph-font); font-size: 15px; color: var(--ph-ink);
}
.prod__form__field input:focus, .prod__form__field select:focus { outline: 2px solid var(--ph-blue); outline-offset: 0; border-color: var(--ph-blue); }
.prod__form__field input.error-input, .prod__form__field select.error-input { border-color: var(--ph-red); background: #FFF6F6; }
.validate-error-l__row { display: block; color: var(--ph-red); font-size: 13px; margin-top: 4px; font-weight: 600; }
.ph-postcode-row { display: flex; gap: 10px; }
.ph-postcode-row input { flex: 1; text-transform: uppercase; }
.ph-postcode-row .btn { white-space: nowrap; padding: 12px 20px; }
#product_postcode_submit.disabled { opacity: .5; pointer-events: none; }
.skip-quantity-wrap { display: none; }
.prod__form__total {
	font-size: 30px; font-weight: 800; color: var(--ph-red); background: var(--ph-bg); border-radius: 6px; padding: 12px 16px; margin: 4px 0 16px;
}
.prod__form__total::before { content: "Your price: "; font-size: 15px; font-weight: 700; color: var(--ph-ink); }
.prod__form__message { background: #FFF4E5; border-left: 4px solid #E8A13A; padding: 12px 14px; margin-bottom: 16px; font-size: 14px; border-radius: 4px; }
.prod__form__message p { margin: 0; }
.prod__form__end { display: none; }
.prod__form__end.active { display: block; }
.prod__form__end .single_add_to_cart_button, .prod__form__end .ph-book-call { width: 100%; padding: 16px; font-size: 16px; }
.single_add_to_cart_button.loading { opacity: .7; }
#postcode-change-notice { font-size: 13px; color: var(--ph-red); margin-top: 8px; font-weight: 600; }
.ph-form-note { font-size: 14px; background: var(--ph-bg); border-radius: 6px; padding: 14px 16px; margin-top: 16px; }
.ph-form-note p { margin: 0; }
.ph-form-note strong { color: var(--ph-blue); }

/* jQuery UI datepicker / autocomplete */
.ui-datepicker { font-family: var(--ph-font); font-size: 14px; z-index: 9999 !important; }
.ui-datepicker .ui-datepicker-header { background: var(--ph-blue); color: #fff; border: 0; }
.ui-state-active, .ui-widget-content .ui-state-active { background: var(--ph-red) !important; border-color: var(--ph-red) !important; color: #fff !important; }
.ui-autocomplete { font-family: var(--ph-font); font-size: 14px; }

/* ---------- WooCommerce: cart / checkout ---------- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	background: #fff; border-top: 3px solid var(--ph-blue); padding: 14px 18px; list-style: none; margin: 0 0 20px; border-radius: 4px;
}
.woocommerce-error { border-top-color: var(--ph-red); }
.woocommerce table.shop_table { background: #fff; border-collapse: collapse; width: 100%; border: 1px solid var(--ph-line); border-radius: 6px; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { padding: 14px; border-bottom: 1px solid var(--ph-line); text-align: left; vertical-align: top; }
.woocommerce table.shop_table img { width: 110px; }
.woocommerce .cart-collaterals, .woocommerce .cart_totals { margin-top: 24px; }
.woocommerce-backshop { margin-bottom: 18px; }
.woocommerce-backshop a { font-weight: 700; }
.woocommerce form .form-row { margin: 0 0 14px; }
.woocommerce form .form-row label { display: block; font-weight: 600; font-size: 14px; color: var(--ph-ink); margin-bottom: 4px; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row select, .woocommerce form .form-row textarea {
	width: 100%; padding: 11px 13px; border: 1px solid #CBD1D6; border-radius: 4px; font-family: var(--ph-font); font-size: 15px;
}
.woocommerce .col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
#order_review, .woocommerce-checkout #customer_details, .static-shipping-info, .gwsp-checkout-login .m__contentTiles__item {
	background: #fff; border-radius: 8px; padding: 24px; border: 1px solid var(--ph-line);
}
.gwsp-checkout-login .l__flexheight { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
#order_review_heading { margin-top: 28px; }
.custom-note { background: var(--ph-bg); padding: 12px 14px; border-radius: 4px; font-size: 14px; }
.woocommerce-checkout #payment { background: #fff; }
.woocommerce-checkout #payment ul.payment_methods { list-style: none; padding: 0; }
.woocommerce .woocommerce-ordering, .woocommerce .woocommerce-result-count { display: none; }

/* ---------- Overrides for WooCommerce default styles ---------- */
.ph-header .ph-header__brand img { height: 58px !important; width: auto !important; max-width: none; }
.ph-footer .ph-footer__logo img { height: 44px !important; width: auto !important; max-width: none; }
.ph-skip .ph-skip__img img, .ph-product .ph-product__media img { height: auto !important; }
.woocommerce .ph-product div.product.ph-product__grid, .ph-product .ph-product__grid { display: grid; }
.woocommerce .ph-product .summary.entry-summary, .woocommerce-page .ph-product .summary.entry-summary,
.ph-product div.product div.summary { float: none !important; width: auto !important; margin: 0 !important; clear: none !important; }
.ph-product__grid::before, .ph-product__grid::after { display: none !important; }
.woocommerce .col2-set::before, .woocommerce .col2-set::after,
.gwsp-checkout-login .l__flexheight::before, .gwsp-checkout-login .l__flexheight::after { display: none !important; }
.woocommerce .col2-set .col-1, .woocommerce .col2-set .col-2,
.woocommerce-page .col2-set .col-1, .woocommerce-page .col2-set .col-2 { float: none !important; width: auto !important; max-width: none !important; }
.woocommerce-checkout #customer_details { display: grid; }
.ph-postcode-row input::placeholder, .ph-postcode input::placeholder { text-transform: none; }
#usage_checkout_field { margin: 16px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.ph-skips, .ph-steps { grid-template-columns: repeat(2, 1fr); }
	.ph-footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
	.ph-header__inner { min-height: 74px; }
	.ph-header .ph-header__brand img { height: 40px !important; }
	.ph-header__brand-tag { display: none; }
	.ph-header__contact .ph-email { display: none; }
	.ph-header__contact .ph-phone { font-size: 16px; }
	.ph-basket span.ph-basket__label { display: none; }
	.ph-usps__inner { grid-template-columns: 1fr; gap: 0; padding: 0; }
	.ph-usp:not(:first-child) { display: none; }
	.ph-hero { padding: 56px 0 64px; }
	.ph-hero h1 { font-size: 30px; }
	.ph-hero__chevrons { opacity: .35; width: 80%; }
	.ph-intro h2 { font-size: 28px; }
	.ph-product__grid, .woocommerce .col2-set, .gwsp-checkout-login .l__flexheight { grid-template-columns: 1fr; }
	.ph-product__media { position: static; }
}
@media (max-width: 560px) {
	.ph-skips, .ph-steps, .ph-footer__top { grid-template-columns: 1fr; }
	.ph-postcode { flex-direction: column; }
	.ph-postcode .btn { padding: 16px; }
	.ph-content .entry-content { padding: 22px; }
	.woocommerce table.shop_table_responsive thead { display: none; }
}
