/* ==========================================================================
   Specktacular Piggeries — main styles
   Colours and fonts taken from the original site.
   ========================================================================== */

:root {
	--sp-teal: #0b5b63;
	--sp-teal-dark: #08474d;
	--sp-brown: #38302b;
	--sp-muted: #76706d;
	--sp-light: #e8eff4;
	--sp-gold: #e8b941;
	--sp-gold-dark: #d4a52c;
	--sp-navy: #042551;
	--sp-bg-soft: #f6f8f9;
	--sp-white: #fff;
	--sp-radius: 4px;
	--sp-font: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
	--sp-font-btn: "Barlow", "Jost", sans-serif;
	--sp-font-script: "Kaushan Script", "Brush Script MT", cursive;
	--sp-container: 1240px;
	--sp-header-h: 84px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--sp-font);
	font-size: 16px;
	line-height: 1.7;
	color: var(--sp-muted);
	background: var(--sp-white);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--sp-teal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--sp-gold-dark); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--sp-font);
	color: var(--sp-brown);
	font-weight: 600;
	line-height: 1.15;
	margin: 0 0 .6em;
}
h1 { font-size: clamp(2.4rem, 5vw, 5rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); }
h3 { font-size: 1.5rem; }

p { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--sp-container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 860px; }
.center { text-align: center; }

.screen-reader-text {
	position: absolute !important; clip: rect(1px, 1px, 1px, 1px);
	width: 1px; height: 1px; overflow: hidden; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 1000; top: 8px; left: 8px;
	background: var(--sp-white); padding: 10px 16px; color: var(--sp-teal);
}

.icon { flex: none; vertical-align: middle; }

/* ---------- Buttons ---------- */
.btn,
.button,
button.button,
input[type="submit"] {
	display: inline-flex; align-items: center; gap: 12px;
	font-family: var(--sp-font-btn); font-weight: 700; font-size: 13px;
	letter-spacing: .08em; text-transform: uppercase;
	padding: 18px 34px; border: 0; border-radius: 0;
	cursor: pointer; transition: background .2s, color .2s, transform .2s;
	line-height: 1;
}
.btn-teal { background: var(--sp-teal); color: var(--sp-white); }
.btn-teal:hover { background: var(--sp-teal-dark); color: var(--sp-white); }
.btn-gold { background: var(--sp-gold); color: var(--sp-white); }
.btn-gold:hover { background: var(--sp-gold-dark); color: var(--sp-white); }
.btn-outline { background: transparent; color: var(--sp-teal); box-shadow: inset 0 0 0 2px var(--sp-teal); }
.btn-outline:hover { background: var(--sp-teal); color: var(--sp-white); }
.btn .icon { width: 22px; }
.btn-dash { display: inline-block; width: 22px; height: 2px; background: var(--sp-teal); }

/* ---------- Script label (the "Grain Feed" lettering) ---------- */
.script-label {
	font-family: var(--sp-font-script);
	font-size: clamp(1.8rem, 3.5vw, 3.6rem);
	line-height: 1; margin: 0 0 .1em;
	color: var(--sp-teal);
}
.hero .script-label { color: var(--sp-teal); text-shadow: 0 2px 12px rgba(255,255,255,.25); }
.script-label--teal { color: var(--sp-teal); font-size: clamp(1.5rem, 2.4vw, 2.3rem); }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: var(--sp-teal); color: var(--sp-light);
	transition: background .3s, box-shadow .3s;
}
.site-header.is-overlay { position: fixed; left: 0; right: 0; background: transparent; }
.site-header.is-scrolled,
.site-header.is-overlay.is-scrolled,
.site-header.is-open { background: var(--sp-teal); box-shadow: 0 4px 18px rgba(0,0,0,.12); }
.admin-bar .site-header { top: 32px; }

.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--sp-header-h); }

.brand-link { display: inline-flex; align-items: center; gap: 12px; color: var(--sp-white); }
.brand-link:hover { color: var(--sp-white); }
.brand-logo { width: 48px; height: 48px; object-fit: contain; border-radius: 50%; }
.brand-name { font-size: 1.3rem; font-weight: 500; letter-spacing: .01em; white-space: nowrap; }

.main-navigation { flex: 1; display: flex; justify-content: center; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; }
.main-navigation > ul,
.main-navigation .menu { display: flex; gap: 6px; }
.main-navigation li { position: relative; }
.main-navigation a {
	display: block; padding: 10px 14px;
	color: var(--sp-light); font-size: 13px; font-weight: 600;
	letter-spacing: .08em; text-transform: uppercase;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a { color: var(--sp-gold); }
.main-navigation .menu-item-has-children > a::after {
	content: ""; display: inline-block; margin-left: 8px; width: 6px; height: 6px;
	border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
	transform: translateY(-3px) rotate(45deg);
}
.main-navigation .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 220px;
	background: var(--sp-white); box-shadow: 0 10px 30px rgba(0,0,0,.12);
	padding: 10px 0; opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: all .2s;
}
.main-navigation .sub-menu .sub-menu { top: 0; left: 100%; }
.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-navigation .sub-menu a { color: var(--sp-brown); text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 15px; padding: 8px 22px; }
.main-navigation .sub-menu a:hover { color: var(--sp-teal); }

.header-actions { display: flex; align-items: center; gap: 6px; }
.header-icon {
	position: relative; display: inline-flex; align-items: center; gap: 8px;
	background: none; border: 0; color: var(--sp-light); padding: 8px; cursor: pointer;
	font: inherit; font-size: 13px;
}
.header-icon:hover { color: var(--sp-gold); }
.header-icon-label { font-weight: 500; }
.cart-count {
	position: absolute; top: 0; right: -2px; min-width: 18px; height: 18px; padding: 0 4px;
	border-radius: 9px; background: var(--sp-gold); color: var(--sp-white);
	font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.cart-count.is-empty { display: none; }
.menu-toggle { display: none; }

.header-search { background: var(--sp-teal-dark); padding: 18px 0; }
.search-form { display: flex; gap: 10px; }
.search-field {
	flex: 1; padding: 14px 18px; border: 1px solid #d6dde1; font: inherit; color: var(--sp-brown);
	border-radius: 0; background: var(--sp-white);
}

/* ---------- Hero ---------- */
.hero {
	position: relative; min-height: 100vh; display: flex; align-items: center;
	background-size: cover; background-position: center; color: var(--sp-white);
	padding: calc(var(--sp-header-h) + 40px) 0 80px;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.12) 60%, rgba(0,0,0,0) 100%); }
.hero-inner { position: relative; }
.hero-title {
	color: var(--sp-light); text-transform: uppercase; font-weight: 600;
	font-size: clamp(3rem, 7vw, 5rem); letter-spacing: .02em;
	text-shadow: 3px 3px 0 rgba(56,48,43,.55); margin-bottom: .3em;
}
.hero-tagline { font-size: 1.05rem; max-width: 560px; color: var(--sp-white); }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---------- Sections ---------- */
.section { position: relative; padding: 100px 0; overflow: hidden; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title.light { color: var(--sp-white); }
.section-head { text-align: center; margin-bottom: 40px; }

.watermark {
	position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-4deg);
	font-family: var(--sp-font-script); font-size: clamp(6rem, 16vw, 15rem);
	color: rgba(56,48,43,.05); white-space: nowrap; pointer-events: none; line-height: 1; z-index: 0;
}
.watermark--light { color: rgba(255,255,255,.08); top: 30%; }
.section > .container { position: relative; z-index: 1; }

.card-grid { display: grid; gap: 30px; }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* Category cards */
.cat-card { display: block; text-align: center; color: var(--sp-muted); }
.cat-card-img { display: block; overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: 22px; }
.cat-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cat-card:hover .cat-card-img img { transform: scale(1.06); }
.cat-card h3 { font-size: 1.5rem; margin-bottom: .4em; }
.cat-card:hover h3 { color: var(--sp-teal); }
.cat-card p { font-size: 15px; max-width: 260px; margin: 0 auto; }

/* About split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.split-text h2 { margin-bottom: .5em; }

/* Latest products */
.latest-products { background: var(--sp-bg-soft); }

/* Offerings (teal band with torn brush edges) */
.offerings { background: var(--sp-teal); color: rgba(255,255,255,.85); padding: 140px 0 160px; }
.brush-edge { position: absolute; left: 0; right: 0; height: 60px; line-height: 0; z-index: 2; }
.brush-edge svg { width: 100%; height: 100%; }
.brush-edge--top { top: -59px; }
.brush-edge--bottom { bottom: -1px; }
.offerings .brush-edge--top { top: 0; transform: rotate(180deg); }
.offerings .brush-edge--top path { fill: var(--sp-white); }
.offer-card { background: rgba(255,255,255,.06); padding: 0 0 30px; position: relative; }
.offer-img { display: block; overflow: hidden; aspect-ratio: 4 / 3; border: 10px solid rgba(255,255,255,.12); }
.offer-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.offer-card:hover .offer-img img { transform: scale(1.05); }
.offer-num {
	position: absolute; top: -26px; right: 18px; z-index: 2;
	font-family: var(--sp-font-btn); font-weight: 700; font-size: 3.4rem; color: var(--sp-gold); line-height: 1;
}
.offer-card h3 { color: var(--sp-white); padding: 24px 26px 0; margin-bottom: .4em; }
.offer-card p { padding: 0 26px; margin: 0; }

/* FAQ */
.faq-item { border-bottom: 1px solid #e3e7ea; }
.faq-item summary {
	list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
	color: var(--sp-brown); font-size: 1.2rem; font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
	content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
	width: 30px; height: 30px; border-radius: 50%; background: var(--sp-teal); color: var(--sp-white);
	display: grid; place-items: center; font-size: 20px; font-weight: 400;
}
.faq-item[open] summary::after { content: "–"; background: var(--sp-gold); }
.faq-item p { padding: 0 40px 22px 0; }

/* CTA band */
.cta-band { background: var(--sp-light); padding: 80px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-inner h2 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); margin-bottom: .3em; }
.cta-inner p { margin: 0; }

/* ---------- Inner page banner ---------- */
.page-banner {
	position: relative; background: var(--sp-teal); color: var(--sp-white);
	padding: 90px 0 110px; text-align: center; overflow: hidden;
}
.page-banner .page-title { color: var(--sp-white); margin: 0; font-size: clamp(2.2rem, 4.5vw, 3.8rem); }

.page-content { padding-top: 60px; }
.entry-content > * { max-width: 100%; }
.entry-content h2, .entry-content h3 { margin-top: 1.4em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-meta { font-size: 14px; color: var(--sp-teal); text-transform: uppercase; letter-spacing: .06em; }
.entry-thumb { margin-bottom: 30px; }

/* Post cards */
.post-card { background: var(--sp-white); box-shadow: 0 6px 24px rgba(0,0,0,.06); }
.post-card-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sp-light); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 24px; }
.post-card h3 { font-size: 1.25rem; }
.post-card h3 a { color: var(--sp-brown); }

.nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 50px; }
.nav-links .page-numbers { padding: 8px 14px; background: var(--sp-light); color: var(--sp-brown); }
.nav-links .page-numbers.current { background: var(--sp-teal); color: var(--sp-white); }

/* Forms (general) */
input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="number"], input[type="search"], input[type="url"], select, textarea {
	font: inherit; color: var(--sp-brown); padding: 12px 14px; border: 1px solid #d6dde1; border-radius: 0;
	background: var(--sp-white); max-width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--sp-teal); outline-offset: 0; border-color: var(--sp-teal); }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--sp-brown); color: rgba(255,255,255,.7); padding-top: 90px; margin-top: 60px; }
.site-footer .brush-edge--top { top: -59px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 60px; }
.site-footer h4 { color: var(--sp-white); font-size: 1.1rem; margin-bottom: 1.1em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: var(--sp-gold); }
.footer-about .brand-link { margin-bottom: 18px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact .icon { color: var(--sp-gold); margin-top: 4px; }
.social-links { display: flex; gap: 10px; margin-top: 10px; }
.social-links a {
	width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
	background: rgba(255,255,255,.08); color: var(--sp-white);
}
.social-links a:hover { background: var(--sp-gold); color: var(--sp-white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; font-size: 14px; text-align: center; }

.to-top {
	position: fixed; right: 24px; bottom: 24px; z-index: 90;
	width: 46px; height: 46px; border-radius: 50%; background: var(--sp-teal); color: var(--sp-white);
	display: grid; place-items: center; opacity: 0; visibility: hidden; transition: all .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--sp-gold); color: var(--sp-white); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.card-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.header-icon-label { display: none; }
}

@media (max-width: 900px) {
	:root { --sp-header-h: 70px; }
	.menu-toggle { display: inline-flex; }
	.main-navigation {
		position: fixed; top: var(--sp-header-h); left: 0; right: 0; bottom: 0;
		background: var(--sp-teal); padding: 20px 24px 40px; overflow-y: auto;
		display: none; justify-content: flex-start;
	}
	.main-navigation.is-open { display: block; }
	.main-navigation > ul, .main-navigation .menu { flex-direction: column; gap: 0; }
	.main-navigation a { font-size: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
	.main-navigation .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
		background: transparent; padding: 0 0 0 16px; display: none;
	}
	.main-navigation li.is-expanded > .sub-menu { display: block; }
	.main-navigation .sub-menu a { color: var(--sp-light); }
	.split { grid-template-columns: 1fr; gap: 40px; }
	.card-grid--3 { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
	.cta-inner { flex-direction: column; align-items: flex-start; }
	.section { padding: 70px 0; }
	.brand-name { font-size: 1.05rem; }
}

@media (max-width: 600px) {
	.card-grid--4 { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	.search-toggle { display: none; }
	.hero { min-height: 88vh; }
	.btn { padding: 16px 24px; }
}

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