/*
Theme Name: Nature Works
Theme URI: https://nature-works.earth
Author: Nature Works UK Ltd
Author URI: https://nature-works.earth
Description: Bespoke block theme for Nature Works UK Ltd. Real advice, wild results. Activating it adds the site photos to the Media Library and creates the Home, About, Services, Fixed-point photography, Contact and Privacy & legal pages.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nature-works
*/

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
:where(body) { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:target { scroll-margin-top: 24px; }
img { max-width: 100%; height: auto; }

/* Sections sit flush against each other. */
.nw-sections > .wp-block-post-content > *,
.nw-sections > .wp-block-post-content > * + * { margin-block-start: 0; margin-block-end: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.nw-gap-top { margin-block-start: clamp(72px, 9vw, 120px) !important; }

/* ---------- Dark sections ---------- */
.nw-dark a:where(:not(.wp-element-button)) { color: #ffffff; }
.nw-dark a:where(:not(.wp-element-button)):hover { color: var(--wp--preset--color--turquoise); }
.nw-dark .nw-eyebrow { color: var(--wp--preset--color--turquoise); }

/* ---------- Type helpers ---------- */
.nw-eyebrow {
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #0b5563;
	margin-bottom: 0 !important;
}
.has-turquoise-background-color .nw-eyebrow { color: var(--wp--preset--color--teal); }
.nw-eyebrow + h1, .nw-eyebrow + h2 { margin-top: 12px !important; }

.nw-quote {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: clamp(40px, 5vw, 68px);
	line-height: 1.02;
	letter-spacing: -0.03em;
	margin: 0;
}
.nw-quote--xl { font-size: clamp(44px, 6.5vw, 88px); }
.nw-cite { font-size: 16px; color: #0b5563; margin-top: 10px !important; }
.has-turquoise-background-color .nw-cite { color: var(--wp--preset--color--teal); }

.nw-pill {
	display: inline-block;
	align-self: flex-start;
	background: var(--wp--preset--color--turquoise);
	color: var(--wp--preset--color--teal);
	font-weight: 700;
	font-size: 14px;
	line-height: 1.3;
	padding: 6px 14px;
	border-radius: 999px;
	width: fit-content;
}

.nw-note {
	background: var(--wp--preset--color--mist);
	border-radius: 16px;
	padding: 16px 20px;
	font-size: 16px;
}
.has-mist-background-color .nw-note { background: #ffffff; }

.nw-page-title { font-size: clamp(40px, 5.6vw, 76px) !important; line-height: 1.02 !important; }

/* ---------- Buttons ---------- */
.wp-block-button.is-style-teal .wp-block-button__link {
	background: var(--wp--preset--color--teal);
	color: #ffffff;
}
.wp-block-button.is-style-teal .wp-block-button__link:hover { background: #0b5563; color: #ffffff; }
.wp-block-button.is-style-outline-light .wp-block-button__link {
	background: transparent;
	color: #ffffff;
	border: 2px solid #5b8790;
	padding: 13px 26px;
}
.wp-block-button.is-style-outline-light .wp-block-button__link:hover { border-color: var(--wp--preset--color--turquoise); color: var(--wp--preset--color--turquoise); }
.wp-block-button__link { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; }
.wp-element-button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
	outline: 3px solid var(--wp--preset--color--turquoise);
	outline-offset: 3px;
}
.has-turquoise-background-color a:focus-visible, .has-turquoise-background-color .wp-element-button:focus-visible { outline-color: var(--wp--preset--color--teal); }

/* ---------- Header ---------- */
.nw-header { position: relative; z-index: 20; gap: 24px; }
.nw-logo { margin: 0 !important; flex-shrink: 0; }
.nw-logo img { height: 52px; width: auto; border-radius: 0 !important; display: block; }
.nw-header .wp-block-navigation a { color: #ffffff; text-decoration: none; }
.nw-header .wp-block-navigation a:hover { color: var(--wp--preset--color--turquoise); }
.nw-header .wp-block-navigation__responsive-container-open,
.nw-header .wp-block-navigation__responsive-container-close { color: #ffffff; }
.nw-header .wp-block-navigation__responsive-container-open svg { width: 32px; height: 32px; }
.nw-header .wp-block-navigation__responsive-container.is-menu-open { padding: 32px 24px; }
.nw-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 20px; font-size: 24px; }
.nw-header .wp-block-button__link { padding: 12px 22px; min-height: 46px; font-size: 16px; }
@media (max-width: 1100px) {
	.nw-header__cta { display: none !important; }
}
@media (max-width: 600px) {
	.nw-logo img { height: 42px; }
}

/* ---------- Home hero ---------- */
.nw-hero-wrap { padding: 8px 2.5% 0; }
.nw-hero { border-radius: 32px; overflow: hidden; padding: 36px !important; }
.nw-hero .wp-block-cover__inner-container { width: 100%; }
.nw-hero-panel {
	max-width: 820px;
	margin: 0 !important;
	border-radius: 28px;
	padding: clamp(28px, 4.4vw, 56px);
}
.nw-hero-title { font-size: clamp(46px, 7vw, 96px) !important; line-height: 1 !important; margin: 0; color: #ffffff; }
.nw-hero-panel p { max-width: 40ch; margin: 0; }
@media (max-width: 781px) {
	.nw-hero { min-height: 0 !important; padding: 0 !important; display: flex; flex-direction: column; }
	.nw-hero .wp-block-cover__image-background { position: relative !important; height: 280px !important; inset: auto !important; }
	.nw-hero .wp-block-cover__inner-container { position: relative; }
	.nw-hero-panel { border-radius: 0 0 28px 28px; }
}

/* ---------- Stats strip ---------- */
.nw-stat__num {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: 30px;
	line-height: 1.15;
	color: var(--wp--preset--color--turquoise);
	margin: 0;
}
.nw-stat__label { margin: 0 !important; }

/* ---------- Inset panels ---------- */
.nw-inset { padding: 24px 2.5%; }
.nw-inset:last-child { padding-bottom: 2.5vw; }
.nw-panel { border-radius: 32px; }
.nw-inset + .nw-inset { margin-top: 24px !important; }
.nw-section + .nw-inset, .nw-inset + .nw-section:not(.has-background) { margin-top: 0; }

/* ---------- Cards ---------- */
.nw-card { border-radius: 24px; padding: clamp(26px, 3vw, 36px); height: 100%; box-sizing: border-box; }
.nw-card > * { margin: 0 !important; }
.nw-card h3 { margin-top: 6px !important; }
.nw-num {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: 52px;
	line-height: 1;
	color: var(--wp--preset--color--teal);
}
.nw-icon {
	width: 56px;
	height: 56px;
	border-radius: 16px;
	background: var(--wp--preset--color--turquoise);
	color: var(--wp--preset--color--teal);
	display: flex;
	align-items: center;
	justify-content: center;
}
.has-white-background-color .nw-icon, .has-mist-background-color .nw-icon { background: var(--wp--preset--color--teal); color: var(--wp--preset--color--turquoise); }
.has-card-background-color p { color: var(--wp--preset--color--pale); }

/* ---------- Images ---------- */
.nw-section .wp-block-image img, .nw-page-hero .wp-block-image img { border-radius: 28px; width: 100%; object-fit: cover; }
.nw-section .wp-block-image:not(.nw-portrait):not(.nw-map):not(.nw-logo) img { aspect-ratio: 4 / 3; }
.nw-portrait img { aspect-ratio: 4 / 5; }
.nw-hero-image img { aspect-ratio: 4 / 3; }
.nw-map img { aspect-ratio: auto !important; object-fit: contain; background: #ffffff; }
.wp-block-image figcaption { font-size: 14px; color: #3d5a60; margin-top: 10px; }
.nw-dark .wp-block-image figcaption { color: var(--wp--preset--color--pale); }

/* ---------- Lists ---------- */
.nw-ticks { list-style: none; padding-left: 0 !important; }
.nw-ticks li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.nw-ticks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.3em;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--wp--preset--color--turquoise) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23033743' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- CTA panel ---------- */
.nw-cta-buttons { justify-content: flex-end; }
@media (max-width: 781px) { .nw-cta-buttons { justify-content: flex-start !important; } }

/* ---------- Contact links ---------- */
.nw-contact-links { font-weight: 700; font-size: 19px; line-height: 1.9; }

/* ---------- Form ---------- */
.nw-form-card { border-radius: 28px; padding: clamp(24px, 3vw, 36px); }
.nw-form-card--outline { border: 1px solid #c9d5d3; }
.nw-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.nw-form p { margin: 0; }
.nw-form__field { display: flex; flex-direction: column; gap: 6px; }
.nw-form__field--wide { grid-column: 1 / -1; }
.nw-form label { font-weight: 600; font-size: 15px; color: var(--wp--preset--color--teal); }
.nw-req { color: #0b5563; }
.nw-form input, .nw-form select, .nw-form textarea {
	font: inherit;
	font-size: 17px;
	color: var(--wp--preset--color--teal);
	background: #ffffff;
	padding: 12px 16px;
	border: 1px solid #8aa3a7;
	border-radius: 14px;
	min-height: 50px;
	box-sizing: border-box;
	width: 100%;
}
.nw-form textarea { min-height: 140px; resize: vertical; }
.nw-form__note { font-size: 15px; color: var(--wp--preset--color--ink); }
.nw-form__submit {
	font: inherit;
	font-weight: 700;
	font-size: 17px;
	background: var(--wp--preset--color--teal);
	color: #ffffff;
	border: 0;
	border-radius: 999px;
	padding: 15px 34px;
	min-height: 50px;
	cursor: pointer;
}
.nw-form__submit:hover { background: #0b5563; }
.nw-form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.nw-form-message { border-radius: 18px; padding: 24px; }
.nw-form-message p { margin: 0 0 6px; }
.nw-form-message--ok { background: var(--wp--preset--color--mist); }
.nw-form-message--error { background: #fde8e4; color: #6b1a0c; margin-bottom: 18px; }
.nw-form-message__title { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 22px; }
@media (max-width: 600px) { .nw-form { grid-template-columns: 1fr; } }

/* ---------- Legal ---------- */
.nw-legal h2 { margin-top: 56px; }
.nw-legal h3 { margin-top: 40px; }
.nw-legal h4 { margin-top: 28px; font-family: var(--wp--preset--font-family--body); font-weight: 700; letter-spacing: 0; }
.nw-legal li { margin-bottom: 8px; color: var(--wp--preset--color--ink); }

/* ---------- Footer ---------- */
.nw-footer { font-size: 15px; }
.nw-footer p { margin: 0; }
.nw-footer__head { color: #ffffff; font-weight: 700; }
.nw-footer__tagline { font-family: var(--wp--preset--font-family--heading); font-weight: 700; color: var(--wp--preset--color--turquoise); }
.nw-footer .nw-logo img { height: 48px; }
.nw-footer a { color: var(--wp--preset--color--pale); }
.nw-footer__rule { border: 0; height: 1px; margin: 40px 0 20px !important; opacity: 1; width: 100% !important; max-width: none !important; }
.nw-footer__base { gap: 12px; }

/* ---------- Generic page template ---------- */
.nw-page h2 { margin-top: 48px; }

/* ---------- Columns on phones ---------- */
@media (max-width: 781px) {
	.nw-section .wp-block-columns { gap: 32px; }
}

/* ---------- Card icons (drawn by CSS so they stay editable) ---------- */
.nw-icon-head::before { content: ""; display: block; width: 56px; height: 56px; border-radius: 16px; margin-bottom: 18px; background-color: var(--wp--preset--color--turquoise); background-repeat: no-repeat; background-position: center; background-size: 28px; }
.has-white-background-color .nw-icon-head::before, .has-mist-background-color .nw-icon-head::before { background-color: var(--wp--preset--color--teal); }
.nw-i-leaf::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23033743' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19c0-8 6-14 14-14 0 8-6 14-14 14z'%3E%3C/path%3E%3Cpath d='M5 19l7-7'%3E%3C/path%3E%3C/svg%3E"); }
.has-white-background-color .nw-i-leaf::before, .has-mist-background-color .nw-i-leaf::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2307e0e0' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19c0-8 6-14 14-14 0 8-6 14-14 14z'%3E%3C/path%3E%3Cpath d='M5 19l7-7'%3E%3C/path%3E%3C/svg%3E"); }
.nw-i-grass::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23033743' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 20h18'%3E%3C/path%3E%3Cpath d='M6 20c0-4 1-7 2-9'%3E%3C/path%3E%3Cpath d='M11 20c0-5 0-9 1-13'%3E%3C/path%3E%3Cpath d='M16 20c0-3 1-6 3-8'%3E%3C/path%3E%3C/svg%3E"); }
.has-white-background-color .nw-i-grass::before, .has-mist-background-color .nw-i-grass::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2307e0e0' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 20h18'%3E%3C/path%3E%3Cpath d='M6 20c0-4 1-7 2-9'%3E%3C/path%3E%3Cpath d='M11 20c0-5 0-9 1-13'%3E%3C/path%3E%3Cpath d='M16 20c0-3 1-6 3-8'%3E%3C/path%3E%3C/svg%3E"); }
.nw-i-drop::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23033743' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3c3 4 6 7.5 6 11a6 6 0 0 1-12 0c0-3.5 3-7 6-11z'%3E%3C/path%3E%3C/svg%3E"); }
.has-white-background-color .nw-i-drop::before, .has-mist-background-color .nw-i-drop::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2307e0e0' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3c3 4 6 7.5 6 11a6 6 0 0 1-12 0c0-3.5 3-7 6-11z'%3E%3C/path%3E%3C/svg%3E"); }
.nw-i-paw::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23033743' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21c-3 0-5-2-5-4.5S9.5 12 12 12s5 2 5 4.5-2 4.5-5 4.5z'%3E%3C/path%3E%3Ccircle cx='6' cy='9' r='1.6'%3E%3C/circle%3E%3Ccircle cx='10' cy='5.5' r='1.6'%3E%3C/circle%3E%3Ccircle cx='14' cy='5.5' r='1.6'%3E%3C/circle%3E%3Ccircle cx='18' cy='9' r='1.6'%3E%3C/circle%3E%3C/svg%3E"); }
.has-white-background-color .nw-i-paw::before, .has-mist-background-color .nw-i-paw::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2307e0e0' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21c-3 0-5-2-5-4.5S9.5 12 12 12s5 2 5 4.5-2 4.5-5 4.5z'%3E%3C/path%3E%3Ccircle cx='6' cy='9' r='1.6'%3E%3C/circle%3E%3Ccircle cx='10' cy='5.5' r='1.6'%3E%3C/circle%3E%3Ccircle cx='14' cy='5.5' r='1.6'%3E%3C/circle%3E%3Ccircle cx='18' cy='9' r='1.6'%3E%3C/circle%3E%3C/svg%3E"); }
.nw-i-coins::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23033743' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7c0-1.7 3.6-3 8-3s8 1.3 8 3-3.6 3-8 3-8-1.3-8-3z'%3E%3C/path%3E%3Cpath d='M4 7v5c0 1.7 3.6 3 8 3s8-1.3 8-3V7'%3E%3C/path%3E%3Cpath d='M4 12v5c0 1.7 3.6 3 8 3s8-1.3 8-3v-5'%3E%3C/path%3E%3C/svg%3E"); }
.has-white-background-color .nw-i-coins::before, .has-mist-background-color .nw-i-coins::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2307e0e0' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7c0-1.7 3.6-3 8-3s8 1.3 8 3-3.6 3-8 3-8-1.3-8-3z'%3E%3C/path%3E%3Cpath d='M4 7v5c0 1.7 3.6 3 8 3s8-1.3 8-3V7'%3E%3C/path%3E%3Cpath d='M4 12v5c0 1.7 3.6 3 8 3s8-1.3 8-3v-5'%3E%3C/path%3E%3C/svg%3E"); }
.nw-i-map::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23033743' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6l6-3 6 3 6-3v15l-6 3-6-3-6 3z'%3E%3C/path%3E%3Cpath d='M9 3v15'%3E%3C/path%3E%3Cpath d='M15 6v15'%3E%3C/path%3E%3C/svg%3E"); }
.has-white-background-color .nw-i-map::before, .has-mist-background-color .nw-i-map::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2307e0e0' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6l6-3 6 3 6-3v15l-6 3-6-3-6 3z'%3E%3C/path%3E%3Cpath d='M9 3v15'%3E%3C/path%3E%3Cpath d='M15 6v15'%3E%3C/path%3E%3C/svg%3E"); }
.nw-i-camera::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23033743' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l2-3h6l2 3h3v11H4z'%3E%3C/path%3E%3Ccircle cx='12' cy='13' r='3.5'%3E%3C/circle%3E%3C/svg%3E"); }
.has-white-background-color .nw-i-camera::before, .has-mist-background-color .nw-i-camera::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2307e0e0' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l2-3h6l2 3h3v11H4z'%3E%3C/path%3E%3Ccircle cx='12' cy='13' r='3.5'%3E%3C/circle%3E%3C/svg%3E"); }
.nw-i-post::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23033743' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21V8'%3E%3C/path%3E%3Cpath d='M8 21h8'%3E%3C/path%3E%3Crect x='8' y='3' width='8' height='5' rx='1'%3E%3C/rect%3E%3C/svg%3E"); }
.has-white-background-color .nw-i-post::before, .has-mist-background-color .nw-i-post::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2307e0e0' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21V8'%3E%3C/path%3E%3Cpath d='M8 21h8'%3E%3C/path%3E%3Crect x='8' y='3' width='8' height='5' rx='1'%3E%3C/rect%3E%3C/svg%3E"); }
.nw-i-check::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23033743' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'%3E%3C/path%3E%3C/svg%3E"); }
.has-white-background-color .nw-i-check::before, .has-mist-background-color .nw-i-check::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2307e0e0' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'%3E%3C/path%3E%3C/svg%3E"); }
