/*
Theme Name: 123 Supply Teaching
Theme URI: https://123supplyteaching.co.uk
Author: NWIMS Group
Author URI: https://www.nwims.com
Description: Lightweight custom theme for Andy Bond, Early Years Specialist — built for fast booking of supply days.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
License: Proprietary
Text Domain: s123t
*/

:root {
	--ink: #1f2a44;
	--muted: #5b6475;
	--cream: #fffaf2;
	--sand: #f6eddf;
	--line: #eadfcd;
	--blue: #2b6cb0;
	--blue-soft: #eaf2fb;
	--sun: #f2b134;
	--sun-soft: #fff3d6;
	--coral: #e8735a;
	--coral-dark: #c45640;
	--green: #4caf7d;
	--green-soft: #e8f6ee;
	--radius: 22px;
	--wrap: 1140px;
	--font: ui-rounded, "SF Pro Rounded", "Nunito", "Quicksand", "Arial Rounded MT Bold", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 18px; line-height: 1.6; color: var(--ink); background: var(--cream); }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--coral-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

/* Header */
.site-header { background: var(--cream); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-stuck { border-color: var(--line); box-shadow: 0 4px 18px rgba(31,42,68,.06); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand__blocks { display: flex; gap: 4px; }
.brand__blocks span { width: 30px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 1.15rem; transform: rotate(-4deg); box-shadow: 0 3px 0 rgba(0,0,0,.12); }
.brand__blocks span:nth-child(1) { background: var(--coral); }
.brand__blocks span:nth-child(2) { background: var(--sun); transform: rotate(3deg) translateY(-3px); }
.brand__blocks span:nth-child(3) { background: var(--blue); transform: rotate(-2deg); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-size: 1.15rem; }
.brand__text small { color: var(--muted); font-size: .82rem; font-weight: 600; }

.nav-toggle { display: none; border: 0; background: var(--blue-soft); color: var(--blue); border-radius: 12px; padding: 10px 14px; font: inherit; font-weight: 700; cursor: pointer; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.primary-nav a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1rem; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { background: var(--sand); color: var(--ink); }
.primary-nav .menu-cta a { background: var(--coral); color: #fff; box-shadow: 0 3px 0 var(--coral-dark); margin-left: 6px; }
.primary-nav .menu-cta a:hover { background: #df6448; color: #fff; }

@media (max-width: 900px) {
	.nav-toggle { display: block; }
	.primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); border-bottom: 1px solid var(--line); padding: 10px 22px 20px; }
	.primary-nav.is-open { display: block; }
	.primary-nav ul { flex-direction: column; align-items: stretch; }
	.primary-nav .menu-cta a { margin: 8px 0 0; text-align: center; }
}

/* Main */
.site-main { padding: 28px 0 64px; }
.page-head { padding-top: 26px; padding-bottom: 10px; }
.wp-block-group__inner-container { display: contents; }
.page-head h1 { margin: 0; }
.entry-content > * { max-width: 780px; }
.entry-content > .alignwide, .entry-content > .s123-booking, .entry-content > .woocommerce, .entry-content > .wp-block-columns, .entry-content > .s123-rates, .entry-content > .wp-block-group.is-wide { max-width: none; }
.entry-content > .alignfull { max-width: none; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.front .site-main { padding-top: 0; }
.front .entry-content > * { max-width: none; }
.front .entry-content > .wrap { max-width: var(--wrap); }

/* Blocks */
.wp-block-button__link, .button-like { display: inline-block; border-radius: 999px; padding: 13px 26px; font-weight: 800; text-decoration: none; background: var(--coral); color: #fff; box-shadow: 0 4px 0 var(--coral-dark); border: 0; }
.wp-block-button__link:hover { background: #df6448; color: #fff; }
.wp-block-button.is-style-outline .wp-block-button__link { background: #fff; color: var(--ink); box-shadow: 0 4px 0 var(--line); border: 2px solid var(--line); }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.wp-block-columns { display: flex; gap: 24px; flex-wrap: wrap; margin: 24px 0; }
.wp-block-column { flex: 1 1 240px; min-width: 0; }
.wp-block-separator { border: 0; border-top: 2px dashed var(--line); margin: 40px 0; }
.wp-block-image img { border-radius: var(--radius); }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--cream) 0%, var(--sand) 100%); padding: 56px 22px 90px; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 60px; background: var(--cream); clip-path: ellipse(70% 100% at 50% 100%); }
.hero > * { position: relative; z-index: 1; }
.hero h1 { max-width: 760px; margin-left: 0; }
.hero .hero__lead { font-size: 1.25rem; color: var(--muted); max-width: 640px; }
.hero .hero__inner { max-width: calc(var(--wrap) - 44px); margin-left: auto; margin-right: auto; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.hero .eyebrow { display: inline-block; background: var(--sun-soft); color: #7a5000; padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: .9rem; margin-bottom: 14px; }
.hero-art { justify-self: center; width: 100%; max-width: 380px; }
@media (max-width: 860px) { .hero .hero__inner { grid-template-columns: 1fr; } .hero-art { max-width: 260px; } }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin: 26px 0; max-width: none !important; }
.card { background: #fff; border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(31,42,68,.05); }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card .icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 14px; }
.card:nth-child(4n+1) .icon { background: var(--green-soft); }
.card:nth-child(4n+2) .icon { background: var(--sun-soft); }
.card:nth-child(4n+3) .icon { background: var(--blue-soft); }
.card:nth-child(4n+4) .icon { background: #fde8e3; }

.section { padding: 40px 0; }
.section--tint { background: #fff; border-radius: 32px; padding: 40px; margin: 30px 0; border: 1px solid var(--line); }
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; max-width: none !important; }
.steps li { background: #fff; border-radius: var(--radius); padding: 24px 22px 22px; border: 1px solid var(--line); position: relative; }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--blue); color: #fff; font-weight: 900; font-size: 1.2rem; margin-bottom: 12px; }
.steps li:nth-child(2)::before { background: var(--sun); }
.steps li:nth-child(3)::before { background: var(--coral); }
.steps li:nth-child(4)::before { background: var(--green); }
.ticks { list-style: none; padding: 0; }
.ticks li { padding-left: 34px; position: relative; margin-bottom: 10px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--green-soft); color: #1d6b43; display: grid; place-items: center; font-weight: 900; font-size: .85rem; }
.callout { background: var(--sun-soft); border-radius: var(--radius); padding: 22px 26px; }

/* FAQ */
.wp-block-details, details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 20px; margin: 0 0 12px; }
details summary { font-weight: 800; cursor: pointer; }
details[open] summary { margin-bottom: 8px; }

/* Footer */
.site-footer { background: var(--ink); color: #dfe5f0; padding: 50px 0 30px; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.site-footer h2 { font-size: 1.05rem; color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #aab4c6; font-size: .85rem; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* WooCommerce checkout tidy-up */
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select, .select2-container .select2-selection--single { border: 2px solid #e5dccd; border-radius: 12px; padding: 10px 12px; font: inherit; background: #fff; }
.select2-container .select2-selection--single { height: auto; }
.woocommerce form .form-row label { font-weight: 700; }
.woocommerce #payment { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.woocommerce #payment #place_order, .woocommerce button.button.alt, .woocommerce a.button.alt { background: var(--coral); border-radius: 999px; padding: 15px 30px; font-weight: 800; font-size: 1.05rem; box-shadow: 0 4px 0 var(--coral-dark); }
.woocommerce #payment #place_order:hover, .woocommerce button.button.alt:hover { background: #df6448; }
.woocommerce table.shop_table { border-radius: 16px; background: #fff; border-color: var(--line); }
.woocommerce-info, .woocommerce-message, .woocommerce-error { border-radius: 12px; }
.woocommerce .woocommerce-customer-details address { border-radius: 12px; }
.woocommerce-order-overview { padding: 0; }
.woocommerce-checkout .woocommerce-form-coupon-toggle, .woocommerce-checkout .checkout_coupon { display: none; }
.s123-paybox { margin-top: 18px !important; }
@media (min-width: 900px) {
	.woocommerce-checkout form.checkout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }
	.woocommerce-checkout form.checkout > .col2-set { grid-column: 1; width: auto; }
	.woocommerce-checkout form.checkout > .col2-set .col-1, .woocommerce-checkout form.checkout > .col2-set .col-2 { float: none; width: 100%; }
	.woocommerce-checkout form.checkout > #order_review_heading, .woocommerce-checkout form.checkout > #order_review { grid-column: 2; }
	.woocommerce-checkout form.checkout > #order_review_heading { grid-row: 1; margin: 0; }
	.woocommerce-checkout form.checkout > #order_review { grid-row: 1; margin-top: 46px; }
	.woocommerce-checkout form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
}
@media (max-width: 600px) { .section--tint { padding: 24px 18px; border-radius: 24px; } .hero { padding-top: 32px; } }
