/*
Theme Name: Anavah SHEQ
Theme URI: https://anavahsa.co.za
Description: Custom theme for Anavah SHEQ Consultants. Front page, WooCommerce template shop and contact form.
Version: 1.5.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: anavah
*/

html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: #F2F5F1; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: #0A714E; }
a:hover { color: #075238; }
*, *::before, *::after { box-sizing: border-box; }

@keyframes up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes zoom { from { transform: scale(1.04); } to { transform: scale(1.16); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); } 70% { box-shadow: 0 0 0 18px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
@keyframes tick { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }

.in1 { animation: up .9s cubic-bezier(.2,.7,.2,1) .1s both; }
.in2 { animation: up .9s cubic-bezier(.2,.7,.2,1) .25s both; }
.in3 { animation: up .9s cubic-bezier(.2,.7,.2,1) .4s both; }
.in4 { animation: up .9s cubic-bezier(.2,.7,.2,1) .6s both; }
.kb { animation: zoom 22s ease-in-out infinite alternate; }
.float { animation: float 6s ease-in-out infinite; }
.marq { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marq-slow { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.marq-slow:hover { animation-play-state: paused; }
.wa { animation: pulse 2.4s infinite; }
.tk path { stroke-dasharray: 24; animation: tick .6s ease-out both; }
.lift { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.lift:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(11,23,18,.16); }
.zimg { overflow: hidden; }
.zimg img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.zimg:hover img { transform: scale(1.06); }
.btn { transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(10,113,78,.35); color: #FFFFFF; }

/* Scroll reveal: CSS where supported, JS fallback adds .is-in */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.js .rv.is-in { opacity: 1; transform: none; }

input:focus, select:focus, textarea:focus { outline: 2px solid #0A714E; outline-offset: 1px; border-color: #0A714E !important; }

/* Phones: keep the sticky header compact */
@media (max-width: 860px) {
	.nav-link { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.in1, .in2, .in3, .in4, .kb, .float, .marq, .marq-slow, .wa, .tk path { animation: none !important; }
	.js .rv { opacity: 1; transform: none; transition: none; }
}

/* ---------- Inner pages (checkout, cart, my account, legal pages) ---------- */
.page-wrap { max-width: 1000px; margin: 0 auto; padding: 72px 24px 120px; font-family: 'Inter', system-ui, sans-serif; color: #1C2420; font-size: 17px; line-height: 1.6; }
.page-wrap h1 { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: clamp(32px, 4vw, 44px); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 32px; }
.page-wrap h2, .page-wrap h3 { font-family: 'Montserrat', sans-serif; font-weight: 700; }
.page-card { background: #FFFFFF; border-radius: 22px; padding: clamp(20px, 4vw, 40px); box-shadow: 0 12px 30px rgba(11,23,18,0.08); }

/* WooCommerce buttons and fields in brand style */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #place_order,
.wc-block-components-button:not(.is-link), .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button {
	background: #0A714E !important; color: #FFFFFF !important; border-radius: 12px !important; font-weight: 600 !important; padding: 14px 22px !important; border: none !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .wc-block-components-button:not(.is-link):hover { background: #075238 !important; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select {
	border: 1.5px solid #CDD5CF; border-radius: 10px; padding: 12px 14px; background: #F7F9F7;
}
.woocommerce-message, .woocommerce-info { border-top-color: #0A714E !important; }
.woocommerce-message::before, .woocommerce-info::before { color: #0A714E !important; }
.woocommerce table.shop_table { border-radius: 14px; }

@media (max-width: 520px) {
	.nav-cta { padding: 10px 14px !important; font-size: 14px; }
}
.cta-short { display: none; }
@media (max-width: 860px) {
	.cta-long { display: none; }
	.cta-short { display: inline; }
}

/* ---------- Safety file guide ---------- */
.guide-chips a { color: #FFFFFF; text-decoration: none; font-size: 15px; font-weight: 600; padding: 9px 16px; border-radius: 999px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2); transition: background .2s; }
.guide-chips a:hover { background: rgba(63,209,140,0.25); color: #FFFFFF; }
.guide-sec { padding-top: 90px; scroll-margin-top: 90px; }
.guide-kicker { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 0.12em; color: #0A714E; }
.guide-h2 { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: clamp(30px, 3.6vw, 42px); line-height: 1.12; letter-spacing: -0.02em; margin: 12px 0 16px; }
.guide-lead { font-size: 19px; color: #3E4A43; margin: 0; max-width: 800px; }
.guide-card { background: #FFFFFF; border-radius: 18px; padding: 26px; box-shadow: 0 12px 30px rgba(11,23,18,0.08); color: #3E4A43; font-size: 16px; border-top: 4px solid #3FD18C; }
.guide-card-warn { border-top-color: #F0A93B; }
.guide-card-t { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 18px; color: #1C2420; margin-bottom: 6px; }
.guide-item { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid #E6EBE7; cursor: pointer; }
.guide-item:last-child { border-bottom: none; }
.guide-item input { flex: none; width: 22px; height: 22px; margin-top: 3px; accent-color: #0A714E; cursor: pointer; }
.guide-step { display: flex; gap: 20px; align-items: flex-start; background: #FFFFFF; border-radius: 18px; padding: 22px 24px; box-shadow: 0 12px 30px rgba(11,23,18,0.08); }
.guide-num { flex: none; width: 44px; height: 44px; border-radius: 12px; background: #0B1712; color: #3FD18C; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.guide-tip { margin-top: 22px; background: #E3F3EA; border-left: 4px solid #0A714E; border-radius: 12px; padding: 18px 22px; color: #1C2420; }
.guide-faq { background: #FFFFFF; border-radius: 16px; box-shadow: 0 8px 22px rgba(11,23,18,0.07); padding: 0 24px; }
.guide-faq summary { cursor: pointer; list-style: none; padding: 20px 30px 20px 0; font-weight: 700; position: relative; }
.guide-faq summary::-webkit-details-marker { display: none; }
.guide-faq summary::after { content: '+'; position: absolute; right: 0; top: 16px; font-size: 26px; color: #0A714E; font-weight: 400; }
.guide-faq[open] summary::after { content: '–'; }
.guide-faq p { margin: 0 0 20px; color: #3E4A43; }

/* ---------- Template shop: product and category pages ---------- */
.prod-crumbs { font-size: 14px; color: #9FB5A9; }
.prod-crumbs a { color: #CFE3D8; text-decoration: none; }
.prod-crumbs a:hover { color: #FFFFFF; text-decoration: underline; }
.prod-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font-size: 15px; color: #CFE3D8; }
.prod-desc h2, .prod-desc h3 { font-family: 'Montserrat', sans-serif; font-weight: 700; margin: 28px 0 10px; }
.prod-desc h2:first-child, .prod-desc h3:first-child { margin-top: 0; }
.prod-desc ul { padding-left: 22px; }
.prod-desc li { margin-bottom: 6px; }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.prod-card { display: flex; flex-direction: column; gap: 10px; background: #FFFFFF; border-radius: 20px; padding: 26px; box-shadow: 0 12px 30px rgba(11,23,18,0.08); border-top: 4px solid #3FD18C; color: #1C2420; text-decoration: none; }
.prod-card:hover { color: #1C2420; }
.prod-card-t { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 19px; line-height: 1.25; }
.prod-card-d { font-size: 14px; color: #5A665F; flex-grow: 1; }
.prod-card-p { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 22px; display: flex; justify-content: space-between; align-items: center; }
.prod-card-p em { font-style: normal; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 15px; color: #0A714E; }
.cat-intro { font-size: 18px; color: #C3D4CB; max-width: 760px; }
.cat-intro p { margin: 0 0 12px; }

/* Blog articles */
.post-meta { font-size: 15px; color: #9FB5A9; }
.post-meta strong { color: #FFFFFF; font-weight: 600; }
.post-body { font-size: 18px; line-height: 1.7; color: #2B3530; }
.post-body > *:first-child { margin-top: 0; }
.post-body h2 { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; letter-spacing: -0.01em; color: #1C2420; margin: 44px 0 14px; }
.post-body h3 { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 20px; color: #1C2420; margin: 30px 0 10px; }
.post-body p { margin: 0 0 18px; }
.post-body ul, .post-body ol { padding-left: 24px; margin: 0 0 20px; }
.post-body li { margin-bottom: 8px; }
.post-body a { color: #0A714E; font-weight: 600; }
.post-body table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 16px; display: block; overflow-x: auto; }
.post-body th, .post-body td { text-align: left; padding: 12px 14px; border-bottom: 1px solid #E6EBE7; vertical-align: top; }
.post-body th { background: #F2F6F3; font-weight: 700; }
.post-body .guide-tip { margin: 26px 0; font-size: 17px; }
.post-body .guide-faq { margin-bottom: 12px; box-shadow: none; border: 1px solid #E6EBE7; font-size: 17px; }
.post-cta { margin: 40px 0 8px; background: #0B1712; color: #FFFFFF; border-radius: 18px; padding: 28px; display: flex; flex-wrap: wrap; gap: 18px 24px; align-items: center; justify-content: space-between; }
.post-cta p { margin: 0; color: #C3D4CB; font-size: 17px; flex: 1 1 360px; }
.post-cta p strong { color: #FFFFFF; display: block; font-family: 'Montserrat', sans-serif; font-size: 21px; margin-bottom: 4px; }
.post-body .post-cta a { background: #3FD18C; color: #0B1712; text-decoration: none; font-weight: 700; padding: 14px 22px; border-radius: 12px; white-space: nowrap; }
.post-help { margin-top: 24px; background: #E3F3EA; border-radius: 18px; padding: 22px 26px; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; color: #1C2420; }
.post-help div { flex: 1 1 380px; }
.post-help .btn { background: #0A714E; color: #FFFFFF; text-decoration: none; font-weight: 600; padding: 12px 20px; border-radius: 10px; }

/* Product reviews */
.prod-rating { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; color: #FFFFFF; text-decoration: none; font-size: 15px; }
.prod-rating .star-rating { color: #3FD18C; margin: 0; }
.prod-reviews #reviews h2 { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 26px; margin: 0 0 16px; color: #1C2420; }
.prod-reviews #reviews #comments ol.commentlist { padding: 0; margin: 0 0 24px; }
.prod-reviews #reviews #comments ol.commentlist li { margin: 0 0 18px; }
.prod-reviews #reviews #comments ol.commentlist li .comment-text { border: 1px solid #E6EBE7; border-radius: 14px; padding: 16px 18px; margin: 0 0 0 50px; }
.prod-reviews #reviews #comments ol.commentlist li img.avatar { border-radius: 50%; border: 0; padding: 0; width: 36px; }
.prod-reviews .star-rating, .prod-reviews p.stars a { color: #0A714E; }
.prod-reviews .woocommerce-noreviews { color: #5A665F; }
.prod-reviews #review_form_wrapper { background: #F2F6F3; border-radius: 16px; padding: 22px; }
.prod-reviews #reply-title { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 20px; color: #1C2420; display: block; margin-bottom: 8px; }
.prod-reviews #review_form label { display: block; font-weight: 600; margin-bottom: 6px; }
.prod-reviews #review_form input[type=text], .prod-reviews #review_form input[type=email], .prod-reviews #review_form textarea { width: 100%; box-sizing: border-box; border: 1px solid #CBD5CF; border-radius: 10px; padding: 12px 14px; font: inherit; background: #FFFFFF; }
.prod-reviews #review_form .form-submit input[type=submit] { background: #0A714E; color: #FFFFFF; border: 0; border-radius: 10px; padding: 13px 22px; font-weight: 600; font-size: 16px; cursor: pointer; }
.prod-reviews #review_form .comment-form-cookies-consent label { display: inline; font-weight: 400; }
body.woocommerce .prod-reviews #respond input#submit { background: #0A714E; color: #FFFFFF; border-radius: 10px; padding: 13px 22px; font-weight: 600; font-size: 16px; }
body.woocommerce .prod-reviews #respond input#submit:hover { background: #075238; color: #FFFFFF; }

/* Mobile menu (v1.5.0) */
.mnav { display: none; }
.mnav summary { list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: #EEF3EF; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav[open] summary { background: #DCE8E1; }
.mnav-panel { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: #FFFFFF; border-radius: 16px; box-shadow: 0 20px 40px rgba(11,23,18,0.22); padding: 8px; display: flex; flex-direction: column; }
.mnav-panel a { color: #1C2420; text-decoration: none; font-size: 17px; font-weight: 600; padding: 14px 16px; border-radius: 10px; }
.mnav-panel a:hover { background: #F2F5F1; }
.mnav-panel a strong { color: #0A714E; }
@media (max-width: 860px) {
	.mnav { display: block; }
	.hdr-box > div { gap: 10px !important; }
}
/* Pack chooser strip */
.packs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.packs a { display: flex; flex-direction: column; gap: 4px; background: #FFFFFF; border-radius: 16px; padding: 18px; text-decoration: none; color: #1C2420; box-shadow: 0 10px 26px rgba(11,23,18,0.07); border-top: 3px solid #3FD18C; transition: transform .2s, box-shadow .2s; }
.packs a:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(11,23,18,0.12); }
.packs .pk-t { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 16px; line-height: 1.25; }
.packs .pk-p { font-size: 14px; color: #0A714E; font-weight: 700; margin-top: auto; padding-top: 6px; }
@media (max-width: 1100px) { .packs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .packs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; margin: 0 -24px; padding-left: 24px; padding-right: 24px; scroll-padding-left: 24px; } .packs a { flex: 0 0 62%; scroll-snap-align: start; } }
