/*
Theme Name: Newstart
Theme URI: https://newstart.net.au/
Description: Block theme for Newstart Health Supplies. Forest green and apricot, Manrope and Source Sans 3, with ready-made page patterns.
Version: 1.0.2
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: newstart
*/

/* ---------- General ---------- */
/* Full-width sections sit flush against each other and the header/footer */
.wp-site-blocks > * + *, .ns-main { margin-block-start: 0; }
.ns-flush > .alignfull { margin-block-start: 0 !important; margin-block-end: 0 !important; }
.ns-page-body > :not(.alignfull):first-child { margin-top: var(--wp--preset--spacing--50); }
.ns-page-body > :not(.alignfull):last-child { margin-bottom: var(--wp--preset--spacing--60); }
body { color: var(--wp--preset--color--ink); }
p { color: inherit; }
.ns-section { padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--60); }
.ns-section.ns-tight { padding-top: 2.25rem; padding-bottom: 2.25rem; }
.ns-vcenter { align-items: center !important; }
.ns-kick {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
	color: var(--wp--preset--color--apricot-dark); margin-bottom: 0.5rem !important;
}
.ns-lede { font-size: 1.2rem; color: var(--wp--preset--color--muted); max-width: 46ch; }
.ns-muted { color: var(--wp--preset--color--muted); }
.wp-block-button .wp-block-button__link { transition: background-color .15s, color .15s; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--wp--preset--color--forest); color: #fff; }
:where(.wp-block-button__link):focus-visible, .wp-block-navigation a:focus-visible { outline: 2px solid var(--wp--preset--color--apricot); outline-offset: 3px; }

/* ---------- Header ---------- */
.ns-util { font-size: 0.8125rem; padding-top: 0.45rem; padding-bottom: 0.45rem; }
.ns-util p { color: #cfe0d6; margin: 0; }
.ns-util strong { color: #fff; font-weight: 600; }
.ns-header { padding-top: 0.9rem; padding-bottom: 0.9rem; box-shadow: 0 1px 0 #e6e3dc; }
.ns-brand { gap: 10px; }
.ns-brand::before {
	content: ""; flex: none; width: 36px; height: 36px; border-radius: 50%;
	background: radial-gradient(ellipse 7px 10px at 50% 48%, var(--wp--preset--color--apricot) 98%, transparent 100%), var(--wp--preset--color--forest);
}
.ns-brand .wp-block-site-title { margin: 0; line-height: 1; }
.ns-brand .wp-block-site-tagline {
	margin: 3px 0 0; font-size: 0.625rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: #6b7a72;
}
.ns-header .wp-block-navigation .current-menu-item > a,
.ns-header .wp-block-navigation a[aria-current="page"] { color: var(--wp--preset--color--leaf); box-shadow: inset 0 -2px 0 var(--wp--preset--color--apricot); }
@media (max-width: 781px) { .ns-header-cta { display: none !important; } .ns-util .ns-util-right { display: none; } }

/* Uploaded logo (Appearance > Editor or Settings > General) */
.ns-header .wp-block-site-logo { margin: 0; line-height: 0; }
.ns-header .wp-block-site-logo img { width: 200px; height: auto; }
@media (max-width: 600px) { .ns-header .wp-block-site-logo img { width: 160px; } }

/* ---------- Hero ---------- */
.ns-hero h1 em { font-style: normal; color: var(--wp--preset--color--leaf); }
.ns-hero-img img { border-radius: 14px; aspect-ratio: 5 / 4; object-fit: cover; width: 100%; height: auto; }
.ns-proof { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; font-size: 0.95rem; color: var(--wp--preset--color--muted); }
.ns-proof li { padding-left: 1.3rem; position: relative; white-space: nowrap; }
.ns-proof li::before { content: "✓"; position: absolute; left: 0; color: var(--wp--preset--color--leaf); font-weight: 700; }

/* ---------- Trust strip ---------- */
.ns-trust { border-top: 1px solid #e6e3dc; border-bottom: 1px solid #e6e3dc; }
.ns-trust .wp-block-column p { font-size: 0.875rem; color: var(--wp--preset--color--muted); padding-left: 34px; position: relative; margin: 0; }
.ns-trust .wp-block-column p::before {
	content: "✓"; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%;
	background: var(--wp--preset--color--mint); color: var(--wp--preset--color--leaf);
	font-weight: 700; font-size: 13px; text-align: center; line-height: 24px;
}
.ns-trust strong { display: block; font-family: var(--wp--preset--font-family--heading); color: var(--wp--preset--color--ink); font-size: 0.95rem; }

/* ---------- Product cards ---------- */
.ns-section-head { margin-bottom: 1.75rem !important; }
.ns-cards { gap: 1.375rem !important; }
.ns-card { border: 1px solid #e6e3dc; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; gap: 0 !important; transition: transform .2s, box-shadow .2s; }
.ns-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -20px rgba(0,0,0,.35); }
.ns-card .ns-card-img { background: var(--wp--preset--color--stone); margin: 0; padding: 18px; text-align: center; }
.ns-card .ns-card-img img { height: 240px; width: auto; max-width: 100%; object-fit: contain; mix-blend-mode: multiply; }
.ns-card .ns-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.ns-card .ns-card-body > p:not(.ns-tag) { font-size: 0.95rem; color: #56645c; flex: 1; }
.ns-tag { font-size: 0.75rem !important; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wp--preset--color--leaf); font-weight: 600; margin: 0; }
.ns-card h3 { margin: 0; }

/* ---------- Dark band ---------- */
.ns-dark, .ns-dark p, .ns-dark li { color: #dbe8e0; }
.ns-dark h2, .ns-dark h3 { color: #fff; }
.ns-dark .ns-kick { color: #f2b47a; }
.ns-panel { border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 30px !important; }
.ns-dark .wp-block-button.is-style-outline .wp-block-button__link { color: #fff; border-color: rgba(255,255,255,.6); }
.ns-dark .wp-block-button.is-style-outline .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--forest); }

/* ---------- Shop by country buttons (Australian and NZ colours + flags) ---------- */
.ns-dark .wp-block-button__link[href*="oznatureshop.com.au"],
.ns-dark .wp-block-button__link[href*="apricotseeds.co.nz"] {
	display: inline-flex; align-items: center; gap: 10px; border: 0 !important; padding: 0.8rem 1.3rem 0.8rem 1rem;
	box-shadow: 0 6px 18px -8px rgba(0,0,0,.55); transition: transform .15s, box-shadow .15s, filter .15s;
}
.ns-dark .wp-block-button__link[href*="oznatureshop.com.au"]::before,
.ns-dark .wp-block-button__link[href*="apricotseeds.co.nz"]::before {
	content: ""; flex: none; width: 34px; height: 17px; border-radius: 2px; box-shadow: 0 0 0 1.5px rgba(255,255,255,.9);
	background-size: cover; background-position: center;
}
/* Australia: green and gold */
.ns-dark .wp-block-button__link[href*="oznatureshop.com.au"] { background: #ffcd00 !important; color: #00553a !important; }
.ns-dark .wp-block-button__link[href*="oznatureshop.com.au"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 60'%3E%3Crect width='120' height='60' fill='%23012169'/%3E%3Csvg width='60' height='30' viewBox='0 0 60 30'%3E%3CclipPath id='t'%3E%3Cpath d='M30,15h30v15zv15h-30zh-30v-15zv-15h30z'/%3E%3C/clipPath%3E%3Cpath d='M0,0v30h60v-30z' fill='%23012169'/%3E%3Cpath d='M0,0L60,30M60,0L0,30' stroke='%23fff' stroke-width='6'/%3E%3Cpath d='M0,0L60,30M60,0L0,30' clip-path='url(%23t)' stroke='%23C8102E' stroke-width='4'/%3E%3Cpath d='M30,0v30M0,15h60' stroke='%23fff' stroke-width='10'/%3E%3Cpath d='M30,0v30M0,15h60' stroke='%23C8102E' stroke-width='6'/%3E%3C/svg%3E%3Cg fill='%23fff'%3E%3Cpolygon points='30,36 31.82,41.22 37.04,39.39 34.09,44.07 38.77,47 33.28,47.62 33.9,53.11 30,49.2 26.1,53.11 26.72,47.62 21.23,47 25.91,44.07 22.96,39.39 28.18,41.22'/%3E%3Cpolygon points='90,45.4 90.91,48.11 93.6,47.13 92.05,49.53 94.48,51.02 91.64,51.31 92,54.14 90,52.1 88,54.14 88.36,51.31 85.52,51.02 87.95,49.53 86.4,47.13 89.09,48.11'/%3E%3Cpolygon points='75,22.9 75.91,25.61 78.6,24.63 77.05,27.03 79.48,28.52 76.64,28.81 77,31.64 75,29.6 73,31.64 73.36,28.81 70.52,28.52 72.95,27.03 71.4,24.63 74.09,25.61'/%3E%3Cpolygon points='90,6.9 90.91,9.61 93.6,8.63 92.05,11.03 94.48,12.52 91.64,12.81 92,15.64 90,13.6 88,15.64 88.36,12.81 85.52,12.52 87.95,11.03 86.4,8.63 89.09,9.61'/%3E%3Cpolygon points='104,19.4 104.91,22.11 107.6,21.13 106.05,23.53 108.48,25.02 105.64,25.31 106,28.14 104,26.1 102,28.14 102.36,25.31 99.52,25.02 101.95,23.53 100.4,21.13 103.09,22.11'/%3E%3Cpolygon points='97.5,30.4 98.15,32.11 99.97,32.2 98.55,33.34 99.03,35.1 97.5,34.1 95.97,35.1 96.45,33.34 95.03,32.2 96.85,32.11'/%3E%3C/g%3E%3C/svg%3E"); }
/* New Zealand: black and white */
.ns-dark .wp-block-button__link[href*="apricotseeds.co.nz"] { background: #000 !important; color: #fff !important; }
.ns-dark .wp-block-button__link[href*="apricotseeds.co.nz"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 60'%3E%3Crect width='120' height='60' fill='%23012169'/%3E%3Csvg width='60' height='30' viewBox='0 0 60 30'%3E%3CclipPath id='t'%3E%3Cpath d='M30,15h30v15zv15h-30zh-30v-15zv-15h30z'/%3E%3C/clipPath%3E%3Cpath d='M0,0v30h60v-30z' fill='%23012169'/%3E%3Cpath d='M0,0L60,30M60,0L0,30' stroke='%23fff' stroke-width='6'/%3E%3Cpath d='M0,0L60,30M60,0L0,30' clip-path='url(%23t)' stroke='%23C8102E' stroke-width='4'/%3E%3Cpath d='M30,0v30M0,15h60' stroke='%23fff' stroke-width='10'/%3E%3Cpath d='M30,0v30M0,15h60' stroke='%23C8102E' stroke-width='6'/%3E%3C/svg%3E%3Cpolygon points='90,7.6 91.09,10.5 94.18,10.64 91.76,12.57 92.59,15.56 90,13.85 87.41,15.56 88.24,12.57 85.82,10.64 88.91,10.5' fill='%23C8102E' stroke='%23fff' stroke-width='1.4' stroke-linejoin='round'/%3E%3Cpolygon points='79,22.7 80.18,25.87 83.57,26.02 80.92,28.12 81.82,31.38 79,29.52 76.18,31.38 77.08,28.12 74.43,26.02 77.82,25.87' fill='%23C8102E' stroke='%23fff' stroke-width='1.4' stroke-linejoin='round'/%3E%3Cpolygon points='100.5,20.3 101.54,23.07 104.49,23.2 102.18,25.05 102.97,27.9 100.5,26.26 98.03,27.9 98.82,25.05 96.51,23.2 99.46,23.07' fill='%23C8102E' stroke='%23fff' stroke-width='1.4' stroke-linejoin='round'/%3E%3Cpolygon points='90,44.8 91.28,48.23 94.95,48.39 92.08,50.67 93.06,54.21 90,52.18 86.94,54.21 87.92,50.67 85.05,48.39 88.72,48.23' fill='%23C8102E' stroke='%23fff' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.ns-dark .wp-block-button__link[href*="oznatureshop.com.au"]:hover,
.ns-dark .wp-block-button__link[href*="apricotseeds.co.nz"]:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 10px 22px -8px rgba(0,0,0,.6); }

/* ---------- Approach ---------- */
.ns-quote { font-family: var(--wp--preset--font-family--heading); font-size: 1.6rem; font-weight: 700; line-height: 1.3; color: var(--wp--preset--color--forest); letter-spacing: -0.01em; }
.ns-step { background: var(--wp--preset--color--stone); border-radius: 10px; padding: 18px !important; font-size: 0.95rem; color: var(--wp--preset--color--muted); }
.ns-step h3 { font-size: 1rem; margin: 0 0 0.25rem; }
.ns-step p { margin: 0; }

/* ---------- Page heading band ---------- */
.ns-pagehead { padding-top: 3.5rem; padding-bottom: 3rem; }
.ns-pagehead h1 { margin-top: 0; }

/* ---------- Contact ---------- */
.ns-info { background: var(--wp--preset--color--stone); border-radius: 12px; padding: 24px !important; }
.ns-info h3 { margin-top: 0; }

/* ---------- Footer ---------- */
.ns-footer { padding-top: 3.25rem; padding-bottom: 1.5rem; font-size: 0.95rem; }
.ns-footer, .ns-footer p, .ns-footer li { color: #a9bdb2; }
.ns-footer h4 { color: #fff; margin-bottom: 0.75rem; }
.ns-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.ns-footer a { color: #a9bdb2; text-decoration: none; }
.ns-footer a:hover { color: #fff; }
.ns-footer .ns-brand::before { background: radial-gradient(ellipse 7px 10px at 50% 48%, var(--wp--preset--color--apricot) 98%, transparent 100%), var(--wp--preset--color--leaf); }
.ns-footer .wp-block-site-title a { color: #fff; }
.ns-footer .wp-block-site-tagline { color: #7f968a; }
.ns-legal { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.1rem; margin-top: 2rem !important; font-size: 0.8125rem; }
.ns-legal p { margin: 0; }

@media (prefers-reduced-motion: reduce) { .ns-card, .ns-card:hover { transition: none; transform: none; } }