/*
Theme Name: Nicole Littlewood Counselling
Theme URI: https://nicolelittlewood.co.za/
Author: Nicole Littlewood
Description: A calm, earthy block theme for a counselling practice. On activation it creates Home, About, Services and Contact pages, sets up the menu, and adds a Settings → Practice Details screen for your phone, email, HPCSA number and booking link.
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: nicole-littlewood
*/

/* ---------- Header ---------- */
.nl-header {
	border-bottom: 1px solid var(--wp--preset--color--sand);
}
.nl-header .wp-block-site-title a {
	text-decoration: none;
}
.nl-header .wp-block-navigation a {
	text-decoration: none;
}
.nl-header .wp-block-navigation a:hover,
.nl-header .wp-block-navigation .current-menu-item a {
	text-decoration: underline;
	text-underline-offset: 0.3em;
}

/* ---------- Sections ---------- */
.nl-section {
	padding-top: clamp(3rem, 7vw, 6rem);
	padding-bottom: clamp(3rem, 7vw, 6rem);
}
.wp-block-post-content > .nl-section:first-child {
	margin-top: 0;
}
.wp-block-post-content > .alignfull + .alignfull {
	margin-top: 0;
}
.nl-hero {
	padding-top: clamp(3rem, 8vw, 7rem);
	padding-bottom: clamp(3rem, 8vw, 7rem);
}
.nl-hero h1 {
	font-size: clamp(2.3rem, 5vw, 3.6rem);
	line-height: 1.12;
}
.nl-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.8rem !important;
	font-weight: 600;
	color: var(--wp--preset--color--sage-dark);
}
.nl-lead {
	font-size: 1.2rem;
	line-height: 1.7;
}
.nl-hero-image img,
.nl-portrait img {
	width: 100%;
	height: auto;
	display: block;
}

/* ---------- Cards ---------- */
.nl-card {
	background: var(--wp--preset--color--white);
	border-radius: 18px;
	padding: 2rem;
	height: 100%;
	box-shadow: 0 1px 2px rgba(47, 50, 44, 0.04), 0 8px 24px rgba(47, 50, 44, 0.06);
}
.nl-card > :first-child {
	margin-top: 0;
}
.nl-card h3 {
	margin-bottom: 0.5rem;
}
.nl-card-link a {
	font-weight: 600;
	text-decoration: none;
}
.nl-card-link a:hover {
	text-decoration: underline;
}
.has-sand-light-background-color .nl-card,
.has-cream-background-color .nl-card {
	background: var(--wp--preset--color--white);
}

.nl-step-number {
	font-family: var(--wp--preset--font-family--lora);
	font-size: 2.4rem !important;
	line-height: 1;
	color: var(--wp--preset--color--terracotta);
	margin-bottom: 0.5rem;
}

/* Service blocks */
.nl-service {
	border-top: 1px solid var(--wp--preset--color--sand);
	padding-top: 2.5rem;
	margin-top: 2.5rem !important;
}
.nl-service h2 {
	scroll-margin-top: 2rem;
}

/* Lists with leaf markers */
.nl-leaf-list {
	list-style: none;
	padding-left: 0;
}
.nl-leaf-list li {
	position: relative;
	padding-left: 1.8rem;
	margin-bottom: 0.6rem;
}
.nl-leaf-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.45em;
	width: 0.85rem;
	height: 0.85rem;
	background: var(--wp--preset--color--sage);
	border-radius: 0 70% 0 70%;
}

/* Notice / crisis box */
.nl-notice {
	background: var(--wp--preset--color--sand-light);
	border-left: 4px solid var(--wp--preset--color--terracotta);
	border-radius: 0 12px 12px 0;
	padding: 1.25rem 1.5rem;
}
.nl-notice > * {
	margin: 0;
}

/* Contact detail list */
.nl-contact-list p {
	margin: 0 0 0.75rem;
}
.nl-contact-list strong {
	display: inline-block;
	min-width: 5.5rem;
	color: var(--wp--preset--color--sage-dark);
}

/* Page title band */
.nl-page-hero {
	padding-top: clamp(2.5rem, 6vw, 4.5rem);
	padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

/* ---------- Footer ---------- */
.nl-footer {
	font-size: 0.95rem;
}
.nl-footer a {
	color: inherit;
}
.nl-footer h4 {
	font-size: 1.05rem;
	margin-bottom: 0.75rem;
	color: var(--wp--preset--color--cream);
}
.nl-footer p {
	margin: 0 0 0.5rem;
	opacity: 0.92;
}
.nl-footer .wp-block-site-title a {
	text-decoration: none;
	color: var(--wp--preset--color--cream);
}
.nl-footer .wp-block-separator {
	border-color: rgba(247, 243, 236, 0.25);
	opacity: 1;
}
.nl-small {
	font-size: 0.85rem !important;
	opacity: 0.8;
}

/* Outline buttons on dark backgrounds */
.has-sage-dark-background-color .wp-block-button__link {
	background: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--sage-dark);
}
.has-sage-dark-background-color .wp-block-button__link:hover {
	background: var(--wp--preset--color--white);
}

/* Mobile */
@media (max-width: 781px) {
	.nl-hero .wp-block-column.nl-hero-image {
		max-width: 420px;
		margin: 0 auto;
	}
	.nl-header-book .wp-block-button__link {
		padding: 0.6rem 1.1rem;
		font-size: 0.9rem;
	}
	.nl-header .wp-block-site-title {
		font-size: 1.1rem;
	}
}

/* Footer sits flush against the last section */
.wp-site-blocks > footer,
.wp-site-blocks > main + * {
	margin-block-start: 0;
}
.nl-footer {
	border-top: 1px solid rgba(247, 243, 236, 0.15);
}
