/*
Theme Name: Only Seeds
Author: Only Seeds
Description: Block theme for Only Seeds roasted pumpkin seeds. Every heading, sentence, image and button is a normal block you can click and edit in the WordPress editor. On activation it creates the Home, Flavours, Our story and Contact pages for you.
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 7.4
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: only-seeds
Tags: block-theme, full-site-editing, one-column, custom-logo, editor-style, block-patterns
*/

/* Only the look lives here. No website text is stored in this file. */

:root {
	--os-forest: var(--wp--preset--color--forest, #163A2A);
	--os-ivory: var(--wp--preset--color--ivory, #F5EEDC);
	--os-gold: var(--wp--preset--color--gold, #D9822B);
	--os-radius: 14px;
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

::selection {
	background: var(--os-gold);
	color: var(--os-forest);
}

/* ---------- Header ---------- */

.wp-site-blocks > header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
}

.os-header.wp-block-group {
	background: rgba(245, 238, 220, 0.62) !important;
	-webkit-backdrop-filter: blur(18px) saturate(160%);
	backdrop-filter: blur(18px) saturate(160%);
	border-bottom: 1px solid rgba(255, 255, 255, 0.55);
	box-shadow: 0 10px 30px -22px rgba(12, 36, 25, 0.45);
}

.os-header .wp-block-navigation__container {
	background: rgba(255, 255, 255, 0.38);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.75);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 6px 18px -10px rgba(12, 36, 25, 0.3);
	border-radius: 999px;
	padding: 0.55rem 1.4rem;
}

.os-logo img {
	display: block;
}

.os-header .wp-block-navigation a:hover {
	text-decoration: underline;
	text-decoration-color: var(--os-gold);
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
}

/* ---------- Group styles ---------- */

/* Pack frame: ivory section with the green corner swoosh from the pouch. */
.wp-block-group.is-style-pack-frame {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.wp-block-group.is-style-pack-frame::before {
	content: "";
	position: absolute;
	z-index: -1;
	left: 0;
	top: 0;
	width: clamp(60px, 9vw, 150px);
	height: clamp(200px, 30vw, 440px);
	background: url(assets/images/swoosh-corner.svg) no-repeat left top / 100% 100%;
	pointer-events: none;
}

/* Forest band and wave band: green background, ivory text. */
.wp-block-group.is-style-forest-band,
.wp-block-group.is-style-wave-top {
	background-color: var(--os-forest);
	color: var(--os-ivory);
}

.is-style-forest-band :where(h1, h2, h3, h4, h5, h6),
.is-style-wave-top :where(h1, h2, h3, h4, h5, h6) {
	color: var(--os-ivory);
}

.wp-block-group.is-style-wave-top {
	position: relative;
	margin-top: clamp(40px, 6vw, 90px) !important;
}

.wp-block-group.is-style-wave-top::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: calc(100% - 1px);
	height: clamp(40px, 6vw, 90px);
	background: url(assets/images/wave-green.svg) no-repeat center bottom / 100% 100%;
	pointer-events: none;
}

/* Card: frosted glass */
.wp-block-group.is-style-card,
.wp-block-column.is-style-card {
	position: relative;
	background: rgba(255, 252, 244, 0.58);
	-webkit-backdrop-filter: blur(16px) saturate(150%);
	backdrop-filter: blur(16px) saturate(150%);
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: 22px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 18px 40px -18px rgba(12, 36, 25, 0.28);
	padding: clamp(1.25rem, 3vw, 2rem);
	color: var(--wp--preset--color--deep-forest);
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.wp-block-group.is-style-card:hover,
.wp-block-column.is-style-card:hover {
	transform: translateY(-4px);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 26px 50px -20px rgba(12, 36, 25, 0.35);
}

.is-style-forest-band .is-style-card,
.is-style-wave-top .is-style-card {
	background: rgba(251, 247, 236, 0.93);
	border-color: rgba(255, 255, 255, 0.45);
}

.is-style-forest-band .is-style-card :where(h1, h2, h3, h4),
.is-style-wave-top .is-style-card :where(h1, h2, h3, h4) {
	color: var(--os-forest);
}

/* ---------- Brush headings (the flavour banners from the pack) ---------- */

.wp-block-heading[class*="is-style-brush-"] {
	display: inline-block;
	width: fit-content;
	max-width: 100%;
	color: var(--os-ivory) !important;
	font-family: var(--wp--preset--font-family--script) !important;
	font-weight: 400;
	padding: 0.3em 0.9em 0.42em;
	background-repeat: no-repeat;
	background-size: 100% 100%;
	background-position: center;
	transform: rotate(-3deg);
	text-transform: none;
	letter-spacing: 0;
	line-height: 1.05;
	overflow-wrap: normal;
	word-break: normal;
	hyphens: none;
}

.wp-block-heading.has-text-align-center[class*="is-style-brush-"] {
	display: block;
	margin-left: auto !important;
	margin-right: auto !important;
}

.is-style-brush-pudina { background-image: url(assets/images/brush-pudina.svg); }
.is-style-brush-masala { background-image: url(assets/images/brush-masala.svg); }
.is-style-brush-jalapeno { background-image: url(assets/images/brush-jalapeno.svg); }
.is-style-brush-gold { background-image: url(assets/images/brush-gold.svg); }
.is-style-brush-green { background-image: url(assets/images/brush-green.svg); }

/* ---------- Paragraph styles ---------- */

p.is-style-handwritten {
	font-family: var(--wp--preset--font-family--kalam);
	font-weight: 700;
	line-height: 1.25;
	color: var(--os-forest);
}

.is-style-forest-band p.is-style-handwritten,
.is-style-wave-top p.is-style-handwritten {
	color: var(--os-gold);
}

p.is-style-eyebrow {
	font-weight: 700;
	font-size: 0.8rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

p.is-style-hindi {
	font-family: var(--wp--preset--font-family--mukta);
	font-weight: 800;
	font-size: 1.15rem;
	letter-spacing: 0.02em;
	opacity: 0.9;
}

/* ---------- Lists ---------- */

ul.is-style-arrows {
	list-style: none;
	padding-left: 0;
}

ul.is-style-arrows li {
	position: relative;
	padding-left: 2.1em;
	margin-bottom: 0.6em;
}

ul.is-style-arrows li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.35em;
	width: 1.4em;
	height: 0.8em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 16'%3E%3Cpath d='M1 9c6-3 13-4 22-2' stroke='black' stroke-width='2.4' fill='none' stroke-linecap='round'/%3E%3Cpath d='M18 3l6 4-6 5' stroke='black' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 16'%3E%3Cpath d='M1 9c6-3 13-4 22-2' stroke='black' stroke-width='2.4' fill='none' stroke-linecap='round'/%3E%3Cpath d='M18 3l6 4-6 5' stroke='black' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
	color: var(--os-gold);
}

/* ---------- Buttons: glass ---------- */

.wp-block-button .wp-block-button__link {
	position: relative;
	background: rgba(22, 58, 42, 0.82);
	color: var(--os-ivory);
	-webkit-backdrop-filter: blur(12px) saturate(150%);
	backdrop-filter: blur(12px) saturate(150%);
	border: 1px solid rgba(255, 255, 255, 0.22);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 10px 24px -12px rgba(12, 36, 25, 0.55);
	transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.wp-block-button .wp-block-button__link:hover {
	background: rgba(12, 36, 25, 0.9);
	color: var(--os-ivory);
	transform: translateY(-2px);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 16px 30px -14px rgba(12, 36, 25, 0.6);
}

.wp-block-button.is-style-gold .wp-block-button__link {
	background: rgba(217, 130, 43, 0.88);
	color: var(--os-forest);
	border-color: rgba(255, 255, 255, 0.4);
}

.wp-block-button.is-style-gold .wp-block-button__link:hover {
	background: rgba(232, 150, 64, 0.95);
	color: var(--os-forest);
}

.wp-block-button.is-style-ivory .wp-block-button__link {
	background: rgba(245, 238, 220, 0.85);
	color: var(--os-forest);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	background: rgba(255, 255, 255, 0.32);
	color: var(--os-forest);
	border: 1.5px solid rgba(22, 58, 42, 0.45);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 8px 20px -14px rgba(12, 36, 25, 0.4);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.6);
	color: var(--os-forest);
	border-color: rgba(22, 58, 42, 0.7);
}

.is-style-forest-band .wp-block-button.is-style-outline .wp-block-button__link,
.is-style-wave-top .wp-block-button.is-style-outline .wp-block-button__link {
	background: rgba(255, 255, 255, 0.1);
	color: var(--os-ivory);
	border-color: rgba(245, 238, 220, 0.55);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.is-style-forest-band .wp-block-button.is-style-outline .wp-block-button__link:hover,
.is-style-wave-top .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.2);
	color: var(--os-ivory);
}

.is-style-forest-band .is-style-card .wp-block-button.is-style-outline .wp-block-button__link,
.is-style-wave-top .is-style-card .wp-block-button.is-style-outline .wp-block-button__link {
	background: rgba(255, 255, 255, 0.4);
	color: var(--os-forest);
	border-color: rgba(22, 58, 42, 0.45);
}

/* ---------- Images ---------- */

.wp-block-image.is-style-tilt-left img { transform: rotate(-4deg); }
.wp-block-image.is-style-tilt-right img { transform: rotate(4deg); }

.os-pack img {
	border-radius: 18px;
}

.os-pack.os-collage img {
	border-radius: 0;
}

/* ---------- FAQ ---------- */

.wp-block-details summary {
	font-weight: 700;
	font-size: 1.15rem;
	cursor: pointer;
	list-style: none;
	position: relative;
	padding-right: 2rem;
}

.wp-block-details summary::-webkit-details-marker { display: none; }

.wp-block-details summary::after {
	content: "+";
	position: absolute;
	right: 0;
	top: -0.1em;
	font-family: var(--wp--preset--font-family--archivo-black);
	font-size: 1.4rem;
	color: var(--os-gold);
}

.wp-block-details[open] summary::after { content: "–"; }

.wp-block-details > :not(summary) { margin-top: 0.7rem; }

/* ---------- Tables (nutrition) ---------- */

.wp-block-table.os-nutrition table {
	border-collapse: collapse;
	background: #fff;
}

.wp-block-table.os-nutrition td,
.wp-block-table.os-nutrition th {
	border: 1px solid rgba(12, 36, 25, 0.25);
	padding: 0.45rem 0.7rem;
}

.wp-block-table.os-nutrition thead {
	border-bottom: 2px solid var(--os-forest);
}

/* ---------- Footer ---------- */

.os-footer a { text-decoration: none; }
.os-footer a:hover { text-decoration: underline; text-decoration-color: var(--os-gold); }

/* ---------- Small screens ---------- */

@media (max-width: 781px) {
	.os-reverse-mobile {
		flex-direction: column-reverse;
	}
	.wp-block-group.is-style-pack-frame::before {
		width: 18px;
		height: 170px;
	}
}

/* ---------- Seamless sections ---------- */

.wp-site-blocks > main,
.wp-site-blocks > footer {
	margin-block-start: 0;
}

.wp-block-post-content > .alignfull {
	margin-block-start: 0;
}

.os-footer ul {
	list-style: none;
}


/* ---------- Seed backgrounds (what the glass blurs) ---------- */

.wp-block-group.is-style-pack-frame,
.wp-block-group.os-seeds-bg,
.wp-block-group.is-style-wave-top,
.wp-block-group.is-style-forest-band {
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
}

.wp-block-group.is-style-pack-frame,
.wp-block-group.os-seeds-bg {
	background-image: url(assets/images/seeds-light.svg);
}

.wp-block-group.is-style-wave-top,
.wp-block-group.is-style-forest-band {
	background-image: url(assets/images/seeds-dark.svg);
}

/* ---------- Pack hover: the flavour breakdown ---------- */

.os-breakdown {
	position: relative;
}

.os-breakdown .os-breakdown__list {
	font-family: var(--wp--preset--font-family--kalam);
	font-weight: 700;
	color: var(--os-forest);
	list-style: none;
	padding-left: 0;
	line-height: 1.35;
}

/* With JavaScript on the live site: the circle hides behind the pack and pops out on hover. */
.os-js .os-breakdown {
	cursor: pointer;
	isolation: isolate;
}

.os-js .os-breakdown > .wp-block-image:first-child {
	position: relative;
	z-index: 2;
	transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.os-js .os-breakdown .os-breakdown__circle {
	position: absolute;
	z-index: 1;
	right: 4%;
	bottom: 14%;
	width: 52%;
	margin: 0;
	transform: translate(-30%, 0) scale(0.45) rotate(-90deg);
	opacity: 0;
	transition: transform 0.7s cubic-bezier(0.2, 0.9, 0.25, 1.15), opacity 0.4s ease;
}

.os-js .os-breakdown .os-breakdown__circle img {
	border-radius: 50%;
	box-shadow: 0 0 0 6px rgba(255, 252, 244, 0.85), 0 18px 34px -12px rgba(12, 36, 25, 0.5);
}

.os-js .os-breakdown .os-breakdown__list {
	position: absolute;
	z-index: 3;
	right: 0;
	top: 4%;
	margin: 0;
	font-size: clamp(0.85rem, 1.1vw, 1.05rem);
	text-align: right;
}

.os-js .os-breakdown .os-breakdown__list li {
	opacity: 0;
	transform: translateX(14px);
	transition: opacity 0.35s ease, transform 0.35s ease;
	background: rgba(255, 252, 244, 0.7);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.8);
	border-radius: 999px;
	padding: 0.05em 0.65em;
	margin: 0 0 0.3em auto;
	width: fit-content;
}

.os-js .os-breakdown:hover > .wp-block-image:first-child,
.os-js .os-breakdown.is-open > .wp-block-image:first-child,
.os-js .os-breakdown:focus-within > .wp-block-image:first-child {
	transform: translateX(-24%) rotate(-5deg) scale(0.9);
}

.os-js .os-breakdown:hover .os-breakdown__circle,
.os-js .os-breakdown.is-open .os-breakdown__circle,
.os-js .os-breakdown:focus-within .os-breakdown__circle {
	opacity: 1;
	transform: translate(0, 0) scale(1) rotate(0deg);
	z-index: 3;
}

.os-js .os-breakdown:hover .os-breakdown__list li,
.os-js .os-breakdown.is-open .os-breakdown__list li,
.os-js .os-breakdown:focus-within .os-breakdown__list li {
	opacity: 1;
	transform: none;
}

.os-js .os-breakdown .os-breakdown__list li:nth-child(2) { transition-delay: 0.06s; }
.os-js .os-breakdown .os-breakdown__list li:nth-child(3) { transition-delay: 0.12s; }
.os-js .os-breakdown .os-breakdown__list li:nth-child(4) { transition-delay: 0.18s; }
.os-js .os-breakdown .os-breakdown__list li:nth-child(5) { transition-delay: 0.24s; }
.os-js .os-breakdown .os-breakdown__list li:nth-child(6) { transition-delay: 0.3s; }

/* ---------- Reveal on scroll ---------- */

.os-motion .os-reveal {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.os-motion .wp-block-image.os-reveal {
	transform: translateY(26px) scale(0.97);
}

.os-motion .os-reveal.is-in {
	opacity: 1;
	transform: none;
}

/* Gentle float for the hero packs */
@keyframes os-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}

.os-motion .os-float.is-in img,
.os-motion .os-collage.is-in img {
	animation: os-float 6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation: none !important;
		transition: none !important;
	}
}

@media (max-width: 600px) {
	.os-logo img {
		width: 116px !important;
	}
}
