/* ==========================================================================
   Vodnar — brand elements: drop, wave, "living" water.
   Shapes echo the logo (pouring water) and the brand colours.
   ========================================================================== */

::selection { background: var(--c-primary); color: #fff; }

/* 1. Wavy underline below section and page headings */
.section__head h2,
.entry-header h1,
.shop-head__title,
.page-head h1,
.woocommerce-review-order__title,
.wave-title {
	position: relative;
	padding-bottom: 0.55em;
}
.section__head h2::after,
.entry-header h1::after,
.shop-head__title::after,
.page-head h1::after,
.woocommerce-review-order__title::after,
.wave-title::after {
	content: "";
	position: absolute; left: 0; bottom: 0;
	width: 84px; height: 10px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 10' fill='none' stroke='%23f78e1e' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M2 5c5-4 9-4 14 0s9 4 14 0 9-4 14 0 9 4 14 0 9-4 14 0 7 3.5 10 1.5'/%3E%3C/svg%3E") left center / 84px 10px no-repeat;
	clip-path: inset(0 0 0 0);
	transition: clip-path 900ms var(--ease-out) 250ms;
}
.text-center .section__head h2::after, .section__head--center h2::after { left: 50%; margin-left: -42px; }
[data-reveal]:not(.is-visible) h1::after,
[data-reveal]:not(.is-visible) h2::after,
h1[data-reveal]:not(.is-visible)::after,
h2[data-reveal]:not(.is-visible)::after { clip-path: inset(0 100% 0 0); }
.no-js [data-reveal] h1::after, .no-js [data-reveal] h2::after { clip-path: none; }

/* 2. "Living" drop backgrounds under icons: the shape slowly morphs */
.benefit__icon,
.card--problem .card__icon,
.pmenu__ico,
.blob {
	border-radius: 58% 42% 46% 54% / 52% 48% 56% 44%;
	animation: blob 9s ease-in-out infinite;
}
.benefit:nth-child(2n) .benefit__icon { animation-delay: -3s; }
.benefit:nth-child(3n) .benefit__icon { animation-delay: -6s; }
.card--problem .card__icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 52px; height: 52px; background: #fff; box-shadow: var(--shadow-sm);
}
.card--problem .card__icon .icon { width: 26px; height: 26px; }
.card--problem:hover .card__icon { background: var(--c-cta); color: #fff; }
.card--problem .card__icon { transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.benefit__icon { transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.benefit:hover .benefit__icon { background: var(--c-primary); color: #fff; }
@keyframes blob {
	0%, 100% { border-radius: 58% 42% 46% 54% / 52% 48% 56% 44%; }
	33%      { border-radius: 44% 56% 58% 42% / 58% 44% 52% 48%; }
	66%      { border-radius: 52% 48% 40% 60% / 44% 58% 46% 54%; }
}

/* 3. List bullets as drops (content only; shop and account lists are left alone) */
.prose :is(ul:not([class]), ul.wp-block-list):not(.woocommerce ul) { list-style: none; padding-left: 0; }
.prose :is(ul:not([class]), ul.wp-block-list):not(.woocommerce ul) > li { position: relative; padding-left: 1.5em; }
.prose :is(ul:not([class]), ul.wp-block-list):not(.woocommerce ul) > li::before {
	content: ""; position: absolute; left: 0.2em; top: 0.55em;
	width: 0.55em; height: 0.55em; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
	background: var(--c-cta);
}
.prose :is(ul:not([class]), ul.wp-block-list):not(.woocommerce ul) ul > li::before { background: var(--c-teal); }

/* 4. Light sections with wavy edges */
.section--soft { position: relative; }
.section--soft::before, .section--soft::after {
	content: ""; position: absolute; left: 0; right: 0; height: clamp(14px, 2.2vw, 30px); pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 30' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' d='M0 0h1440v12c-120 14-240 14-360 4S840 2 720 12s-240 18-360 8S120 4 0 14z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.section--soft::before { top: -1px; }
.section--soft::after { bottom: -1px; transform: scale(-1, -1); }

/* 5. Blue promo blocks: bubbles + emblem watermark */
.promo, .cta-box { position: relative; overflow: hidden; isolation: isolate; }
.bubbles-layer { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.promo::after, .cta-box::after {
	content: ""; position: absolute; z-index: -1; right: -40px; bottom: -70px; width: 300px; aspect-ratio: 1;
	background: #fff; opacity: 0.07; pointer-events: none;
	-webkit-mask: url(../svg/emblem.svg) center / contain no-repeat; mask: url(../svg/emblem.svg) center / contain no-repeat;
}
.cta-box::after { width: 190px; right: -20px; bottom: -50px; }

/* 5a. Info cards without an icon get a drop */
.info-card:not(:has(.icon))::before {
	content: ""; display: block; width: 46px; height: 46px; margin-bottom: var(--space-3);
	border-radius: 58% 42% 46% 54% / 52% 48% 56% 44%;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f78e1e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.7 6.3 9.6a7 7 0 1 0 11.4 0z'/%3E%3C/svg%3E") center / 24px no-repeat,
		var(--c-primary-50);
	animation: blob 9s ease-in-out infinite;
}
.info-card > h3:first-child { margin-top: 0; }

/* 6. Outline buttons "fill with water" */
.btn--outline, .btn--ghost { background: transparent; }
.btn--outline::before, .btn--ghost::before {
	content: ""; position: absolute; z-index: -2; left: -10%; right: -10%; top: 0; height: 150%;
	border-radius: 45% 55% 0 0 / 22% 28% 0 0;
	background: var(--c-primary);
	transform: translateY(102%);
	transition: transform 520ms var(--ease-out), border-radius 520ms var(--ease-out);
}
.btn--ghost::before { background: rgba(255, 255, 255, 0.22); }
.btn--outline:hover, .btn--outline:focus-visible { background: transparent; color: #fff; }
.btn--ghost:hover, .btn--ghost:focus-visible { background: transparent; }
.btn--outline:hover::before, .btn--outline:focus-visible::before,
.btn--ghost:hover::before, .btn--ghost:focus-visible::before {
	transform: translateY(-30%);
	border-radius: 55% 45% 0 0 / 10% 8% 0 0;
}

/* 7. Back-to-top button — a drop that fills up as you scroll */
.drop-top {
	--fill: 0%;
	position: fixed; right: 16px; bottom: calc(var(--bottombar-h, 0px) + env(safe-area-inset-bottom, 0px) + 16px); z-index: 90;
	width: 52px; height: 52px; padding: 0; border: 0; background: none; color: #fff;
	display: grid; place-items: center;
	opacity: 0; visibility: hidden; transform: translateY(16px) scale(0.8);
	transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease-bounce), visibility 0s linear var(--dur);
	filter: drop-shadow(0 6px 14px rgba(15, 42, 61, 0.28));
	-webkit-tap-highlight-color: transparent;
}
.drop-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease-bounce); }
.drop-top:hover { transform: translateY(-4px); }
.drop-top:focus-visible { box-shadow: none; outline: 2px solid var(--c-accent); outline-offset: 4px; border-radius: 50%; }
.drop-top__shape {
	position: absolute; inset: 0; overflow: hidden;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 52'%3E%3Cpath d='M26 2C19 12 8 21.5 8 32.5a18 18 0 0 0 36 0C44 21.5 33 12 26 2z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 52'%3E%3Cpath d='M26 2C19 12 8 21.5 8 32.5a18 18 0 0 0 36 0C44 21.5 33 12 26 2z'/%3E%3C/svg%3E") center / contain no-repeat;
	background: var(--c-primary-dark);
}
.drop-top__water {
	position: absolute; left: -50%; width: 200%; height: 200%; top: calc(100% - var(--fill));
	background: var(--c-cta);
	border-radius: 42% 46% 44% 40%;
	animation: drop-spin 6s linear infinite;
	transition: top 300ms var(--ease);
}
.drop-top .icon { position: relative; width: 20px; height: 20px; margin-top: 12px; transform: rotate(-90deg); }
@keyframes drop-spin { to { transform: rotate(360deg); } }
@media (min-width: 1024px) { .drop-top { right: 24px; bottom: 24px; width: 56px; height: 56px; } }

/* 8. 404: zero as a drop */
.error-404 .big { display: inline-flex; align-items: center; justify-content: center; gap: 0.04em; }
.drop-zero {
	position: relative; display: inline-block; width: 0.62em; height: 0.82em; overflow: hidden;
	background: var(--c-primary-light);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 62 82' preserveAspectRatio='none'%3E%3Cpath d='M31 2C22 18 4 33 4 51a27 27 0 0 0 54 0C58 33 40 18 31 2z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 62 82' preserveAspectRatio='none'%3E%3Cpath d='M31 2C22 18 4 33 4 51a27 27 0 0 0 54 0C58 33 40 18 31 2z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.drop-zero::before {
	content: ""; position: absolute; left: -60%; top: 48%; width: 220%; aspect-ratio: 1;
	background: linear-gradient(var(--c-teal), var(--c-primary)); border-radius: 43% 47% 44% 41%;
	animation: drop-spin 7s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
	.benefit__icon, .card--problem .card__icon, .pmenu__ico, .blob, .drop-top__water, .drop-zero::before { animation: none; }
}

/* ==========================================================================
   Notices: a branded "drop" instead of a side stripe
   (WooCommerce notices, .notice-box, form responses, blockquotes)
   ========================================================================== */
.woocommerce-message, .woocommerce-info, .woocommerce-error,
.notice-box, .nf-response-msg, .prose blockquote {
	--note-bg: var(--c-primary-50); --note-line: #d6e6f2; --note-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath fill='%230067a5' d='M20 2C14.5 9.8 6 17 6 25.5a14 14 0 0 0 28 0C34 17 25.5 9.8 20 2z'/%3E%3Cg fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 24v7'/%3E%3Cpath d='M20 18.5h.01'/%3E%3C/g%3E%3C/svg%3E");
	position: relative; display: block; list-style: none; margin: 0 0 var(--space-5) !important;
	padding: 1.05em 1.25em 1.05em 4.4em !important; min-height: 68px;
	border: 1px solid var(--note-line) !important; border-radius: var(--radius-lg) !important;
	background: radial-gradient(ellipse 110px 70px at calc(100% - 40px) 100%, rgba(255, 255, 255, 0.6) 99%, transparent 100%) no-repeat, var(--note-bg) !important; color: var(--c-text) !important; line-height: 1.5; overflow: hidden;
}
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before,
.notice-box::before, .nf-response-msg::before, .prose blockquote::before {
	content: "" !important; display: block !important; position: absolute; left: 1.05em; top: 0.85em; width: 40px; height: 40px;
	background: var(--note-icon) center / contain no-repeat; font-size: 0;
	animation: note-drop 600ms var(--ease-bounce) both;
}
/* soft wave in the corner — as a background so it never covers the text */
.woocommerce-message::after, .woocommerce-info::after, .woocommerce-error::after { display: none !important; }
.woocommerce-message, .nf-response-msg { --note-bg: #ecf8ef; --note-line: #cfead6; --note-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath fill='%2329b246' d='M20 2C14.5 9.8 6 17 6 25.5a14 14 0 0 0 28 0C34 17 25.5 9.8 20 2z'/%3E%3Cg fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13.5 26l4.5 4.5 8.5-9'/%3E%3C/g%3E%3C/svg%3E"); }
.woocommerce-error { --note-bg: #fdf0f0; --note-line: #f5d3d3; --note-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath fill='%23d64545' d='M20 2C14.5 9.8 6 17 6 25.5a14 14 0 0 0 28 0C34 17 25.5 9.8 20 2z'/%3E%3Cg fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 17v8'/%3E%3Cpath d='M20 30.5h.01'/%3E%3C/g%3E%3C/svg%3E"); }
.prose blockquote { --note-bg: #fff7ee; --note-line: #fbe3c5; --note-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath fill='%23f78e1e' d='M20 2C14.5 9.8 6 17 6 25.5a14 14 0 0 0 28 0C34 17 25.5 9.8 20 2z'/%3E%3Cg fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 28v-4.5c0-2.2 1-3.6 2.8-4.3M22.5 28v-4.5c0-2.2 1-3.6 2.8-4.3'/%3E%3C/g%3E%3C/svg%3E"); font-style: italic; }
.prose blockquote > :last-child { margin-bottom: 0; }
.woocommerce-error li { margin: 0 0 0.25em; padding: 0 !important; list-style: none; }
.woocommerce-error li:last-child { margin-bottom: 0; }
.woocommerce-error li::before { display: none !important; }
.woocommerce-error a { color: var(--c-danger); font-weight: 400; text-decoration: underline; text-decoration-color: rgba(214, 69, 69, 0.35); text-underline-offset: 0.18em; }
.woocommerce-error a strong { font-weight: 600; }
.woocommerce-error a:hover { color: var(--c-primary-dark); }
.woocommerce-message .button, .woocommerce-info .button { position: relative; z-index: 1; float: none; margin: 0.6em 0 0; }
.woocommerce-message > *, .woocommerce-info > *, .woocommerce-error > *, .notice-box > * { position: relative; z-index: 1; }
@keyframes note-drop { from { opacity: 0; transform: translateY(-10px) scale(0.7); } to { opacity: 1; transform: none; } }
@media (min-width: 768px) {
	.woocommerce-cart .woocommerce-message, .woocommerce-checkout .woocommerce-message { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
	.woocommerce-message .button { margin: 0; order: 2; flex: none; }
}
@media (max-width: 767px) {
	.woocommerce-cart .woocommerce-message, .woocommerce-checkout .woocommerce-message { display: block; }
}
@media (prefers-reduced-motion: reduce) { .woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before, .notice-box::before { animation: none; } }
.woocommerce-error a, .prose .woocommerce-error a { text-decoration: none !important; }
.woocommerce-error a:hover { text-decoration: underline !important; }
@media (max-width: 767px) {
	.woocommerce-message, .woocommerce-info, .woocommerce-error, .notice-box, .nf-response-msg, .prose blockquote { padding: 0.95em 1em 0.95em 3.6em !important; min-height: 60px; }
	.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before, .notice-box::before, .nf-response-msg::before, .prose blockquote::before { left: 0.8em; top: 0.8em; width: 34px; height: 34px; }
}
/* short notices: the drop is vertically centred */
.woocommerce-message::before, .woocommerce-info::before { top: calc(50% - 20px); }
@media (max-width: 767px) { .woocommerce-message::before, .woocommerce-info::before { top: calc(50% - 17px); } }
