/*
Theme Name: Devan Webb LCSW
Theme URI: https://devanwebblcsw.com
Author: Jump Start Marketing Inc.
Author URI: https://jsmcorp.com
Description: Custom theme for Devan Webb LCSW LLC, a therapy practice in Pensacola, FL.
Version: 1.9.5
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: devan-webb-lcsw
*/

/* ==========================================================================
   RESET
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, figure, blockquote {
	margin: 0;
}

ul, ol {
	padding: 0;
	list-style: none;
}

img, svg {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
}

button {
	font: inherit;
	color: inherit;
	background: none;
	border: none;
	cursor: pointer;
}

input, textarea, select {
	font: inherit;
	color: inherit;
}

/* ==========================================================================
   ROOT VARIABLES
   ========================================================================== */
:root {
	/* Colors — matched to the Devan Webb LCSW logo */
	--sage: #647267;
	--sage-dark: #444E46;
	--sage-light: #EBEEEC;
	--terracotta: #A59B8D;
	--terracotta-dark: #70695F;
	--cream: #FAF8F5;
	--white: #FFFFFF;
	--ink: #333B42;
	--ink-soft: #58626B;
	--border: #DAD6CE;

	/* Fonts */
	--font-head: 'Fraunces', Georgia, serif;
	--font-body: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

	/* Spacing */
	--radius: 14px;
	--radius-sm: 8px;
	--container: 1180px;
	--gap: clamp(1.5rem, 4vw, 3rem);

	/* Shadow */
	--shadow: 0 10px 30px rgba(58, 54, 47, 0.08);
	--shadow-lg: 0 20px 50px rgba(58, 54, 47, 0.12);
}

/* ==========================================================================
   BASE
   ========================================================================== */
body {
	font-family: var(--font-body);
	color: var(--ink);
	background: var(--cream);
	line-height: 1.65;
	font-size: 17px;
	overflow-x: hidden;
}

h1, h2, h3, h4 {
	font-family: var(--font-head);
	font-weight: 600;
	line-height: 1.2;
	color: var(--ink);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }

p {
	max-width: 68ch;
}

.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 1.5rem;
}

section {
	padding: clamp(3rem, 8vw, 6rem) 0;
	scroll-margin-top: 140px;
}

/* Interior page content (Privacy Policy, Terms, About, Contact, etc.) sits
   just below a breadcrumb, which already provides its own spacing — the
   large clamp()-based padding above is tuned for full-width homepage
   blocks and was stacking with the breadcrumb to create an oversized gap
   before the page title on load. */
.page-content-section {
	padding-top: clamp(1rem, 3vw, 1.75rem);
	padding-bottom: clamp(3rem, 8vw, 6rem);
}

/* Featured image on interior pages (e.g. About) — floats top-right at a
   contained size so body copy wraps around it, instead of rendering as a
   full-width block that pushes all text below the fold. */
.page-featured-image {
	float: right;
	width: 100%;
	max-width: 320px;
	height: auto;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	margin: 0 0 1.5rem 2rem;
}

.page-body {
	display: flow-root;
}

@media (max-width: 640px) {
	.page-featured-image {
		float: none;
		max-width: 100%;
		margin: 0 0 1.5rem 0;
	}
}

/* ==========================================================================
   ENTRY CONTENT (page/post body copy — Privacy Policy, Terms, etc.)
   ========================================================================== */
.entry-content {
	max-width: 72ch;
}

.entry-content > * + * {
	margin-top: 1.25rem;
}

.entry-content h2 {
	margin-top: 2.5rem;
	margin-bottom: 0.25rem;
	font-size: 1.5rem;
}

.entry-content h2:first-child {
	margin-top: 0;
}

.entry-content h3 {
	margin-top: 2rem;
	margin-bottom: 0.25rem;
}

.entry-content p {
	max-width: none;
	line-height: 1.75;
}

.entry-content ul,
.entry-content ol {
	list-style: disc;
	padding-left: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.entry-content ol {
	list-style: decimal;
}

.entry-content li {
	line-height: 1.7;
}

.entry-content a {
	color: var(--sage-dark);
	text-decoration: underline;
}

.entry-content a:hover {
	color: var(--terracotta-dark);
}

.entry-content strong {
	color: var(--ink);
}

/* Skip link */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--sage-dark);
	color: var(--white);
	padding: 1rem 1.5rem;
	z-index: 10000;
	border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
	left: 0;
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 3px solid var(--terracotta);
	outline-offset: 2px;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.9rem 1.8rem;
	border-radius: var(--radius-sm);
	font-weight: 700;
	font-size: 0.95rem;
	letter-spacing: 0.01em;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
	background: var(--sage);
	color: var(--white);
}

.btn-primary:hover {
	background: var(--sage-dark);
	transform: translateY(-2px);
	box-shadow: var(--shadow);
}

.btn-secondary {
	background: transparent;
	color: var(--sage-dark);
	border: 2px solid var(--sage);
}

.btn-secondary:hover {
	background: var(--sage-light);
	transform: translateY(-2px);
}

.btn-accent {
	background: var(--terracotta);
	color: var(--white);
}

.btn-accent:hover {
	background: var(--terracotta-dark);
	transform: translateY(-2px);
	box-shadow: var(--shadow);
}

/* Eyebrow / badge */
.eyebrow {
	display: inline-block;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--terracotta-dark);
	margin-bottom: 0.75rem;
}

/* ==========================================================================
   TOPBAR
   ========================================================================== */
.topbar {
	background: var(--sage-dark);
	color: var(--cream);
	font-size: 0.85rem;
}

.topbar .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
	gap: 1rem;
	flex-wrap: wrap;
}

.topbar-left {
	opacity: 0.9;
}

.topbar-right {
	display: flex;
	align-items: center;
	gap: 1.25rem;
}

.topbar-right a {
	opacity: 0.9;
	transition: opacity 0.15s ease;
}

.topbar-right a:hover {
	opacity: 1;
	text-decoration: underline;
}

.social-nav {
	display: flex;
	gap: 0.75rem;
	align-items: center;
}

.social-nav svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

/* ==========================================================================
   MAIN HEADER
   ========================================================================== */
.site-header {
	background: var(--cream);
	position: sticky;
	top: 0;
	z-index: 999;
	transition: box-shadow 0.2s ease, padding 0.2s ease;
	border-bottom: 1px solid var(--border);
	box-shadow: var(--shadow);
}

.site-header.scrolled {
	box-shadow: var(--shadow);
	border-bottom-color: var(--border);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 15px;
	gap: 1.5rem;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.site-branding img {
	max-height: 110px;
	width: auto;
}

.site-branding .text-logo {
	font-family: var(--font-head);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--sage-dark);
}

.primary-nav ul {
	display: flex;
	gap: 2rem;
	align-items: center;
}

.primary-nav a {
	font-weight: 600;
	font-size: 0.98rem;
	color: var(--ink);
	position: relative;
	padding: 0.25rem 0;
}

.primary-nav a::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 0;
	height: 2px;
	background: var(--terracotta);
	transition: width 0.2s ease;
}

.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after {
	width: 100%;
}

.primary-nav a[aria-current="page"] {
	color: var(--sage-dark);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.hamburger {
	display: none;
	flex-direction: column;
	gap: 5px;
	padding: 0.5rem;
}

.hamburger span {
	width: 24px;
	height: 2px;
	background: var(--ink);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   RESPONSIVE — 1024px
   ========================================================================== */
@media (max-width: 1024px) {
	.primary-nav {
		position: fixed;
		top: 0;
		right: -100%;
		width: min(320px, 85vw);
		height: 100vh;
		background: var(--white);
		box-shadow: var(--shadow-lg);
		transition: right 0.25s ease;
		padding: 6rem 2rem 2rem;
		overflow-y: auto;
	}

	.primary-nav.is-open {
		right: 0;
	}

	.primary-nav ul {
		flex-direction: column;
		align-items: flex-start;
		gap: 1.5rem;
	}

	.hamburger {
		display: flex;
	}

	.header-actions .btn-accent {
		display: none;
	}
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
	padding: clamp(3.5rem, 9vw, 7rem) 0;
	position: relative;
	overflow: hidden;
}

.hero.has-hero-bg::before {
	display: none;
}

.hero:not(.has-hero-bg)::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 85% 20%, var(--sage-light) 0%, transparent 55%);
	z-index: -1;
}

.hero-overlay {
	position: absolute;
	inset: 0;
	background: var(--cream);
	z-index: 0;
}

.hero-inner {
	position: relative;
	z-index: 1;
	max-width: 720px;
}

.section-intro {
	max-width: 640px;
}

.hero h1 {
	margin-bottom: 1.25rem;
}

.hero p {
	font-size: 1.15rem;
	color: var(--ink-soft);
	margin-bottom: 2rem;
}

.hero-actions {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

/* ==========================================================================
   HOW IT WORKS / STEPS
   ========================================================================== */
.steps-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: var(--gap);
	margin-top: 2.5rem;
}

.step-card {
	text-align: left;
}

.step-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--sage);
	color: var(--white);
	font-family: var(--font-head);
	font-weight: 700;
	margin-bottom: 1rem;
}

/* ==========================================================================
   STATS BAR
   ========================================================================== */
.stats-bar {
	background: var(--sage-dark);
	color: var(--white);
	padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 1.5rem;
	text-align: center;
}

.stat-value {
	font-family: var(--font-head);
	font-size: clamp(1.8rem, 3vw, 2.4rem);
	font-weight: 700;
	color: var(--terracotta);
}

.stat-label {
	font-size: 0.9rem;
	opacity: 0.85;
	margin-top: 0.25rem;
}

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services-section,
.has-section-bg {
	position: relative;
	background-size: cover;
	background-position: center;
}

.services-section .container,
.has-section-bg .container {
	position: relative;
	z-index: 1;
}

.services-overlay,
.section-overlay {
	position: absolute;
	inset: 0;
	background: var(--cream);
}

.services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: var(--gap);
	margin-top: 2.5rem;
}

.service-card {
	background: var(--white);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
}

.service-card img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.service-card-body {
	padding: 1.75rem;
}

.service-card h3 {
	margin-bottom: 0.5rem;
}

.service-card p {
	color: var(--ink-soft);
	font-size: 0.95rem;
}

.service-card .btn {
	margin-top: 1.25rem;
	padding: 0.6rem 1.25rem;
	font-size: 0.85rem;
}

/* ==========================================================================
   SPECIALTIES
   ========================================================================== */
.specialties-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin-top: 2.5rem;
}

.specialty-tag {
	display: inline-flex;
	align-items: center;
	padding: 0.6rem 1.25rem;
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--sage-dark);
	box-shadow: var(--shadow);
}

/* ==========================================================================
   ABOUT CARD
   ========================================================================== */
.about-card {
	display: grid;
	grid-template-columns: minmax(220px, 380px) 1fr;
	gap: var(--gap);
	align-items: center;
	background: var(--white);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: clamp(1.5rem, 4vw, 3rem);
}

.about-card img {
	border-radius: var(--radius);
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.about-card .owner-name {
	font-family: var(--font-head);
	font-size: 1.4rem;
	color: var(--sage-dark);
}

.about-card .owner-title {
	color: var(--terracotta-dark);
	font-weight: 700;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 1rem;
}

@media (max-width: 768px) {
	.about-card {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.about-card img {
		margin: 0 auto;
		max-width: 240px;
	}
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonials-section {
	background: var(--sage-light);
}

.testimonial-slider {
	position: relative;
	max-width: 720px;
	margin: 2.5rem auto 0;
}

.testimonial-track {
	overflow: hidden;
}

.testimonial-slide {
	display: none;
	background: var(--white);
	border-radius: var(--radius);
	padding: clamp(1.5rem, 4vw, 2.5rem);
	box-shadow: var(--shadow);
	text-align: center;
}

.testimonial-slide.is-active {
	display: block;
}

.stars {
	color: var(--terracotta);
	font-size: 1.1rem;
	letter-spacing: 0.15em;
	margin-bottom: 1rem;
}

.testimonial-quote {
	font-family: var(--font-head);
	font-size: 1.15rem;
	font-style: italic;
	color: var(--ink);
	margin-bottom: 1.25rem;
}

.testimonial-author {
	display: block;
	width: 100%;
	text-align: center;
	font-weight: 700;
	color: var(--sage-dark);
}

.testimonial-source {
	display: block;
	width: 100%;
	text-align: center;
	font-size: 0.85rem;
	color: var(--ink-soft);
}

.slider-controls {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1.5rem;
	margin-top: 1.5rem;
}

.slider-arrow {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--white);
	box-shadow: var(--shadow);
	display: flex;
	align-items: center;
	justify-content: center;
}

.slider-dots {
	display: flex;
	gap: 0.5rem;
}

.slider-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--border);
}

.slider-dot.is-active {
	background: var(--terracotta);
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-list {
	max-width: 780px;
	margin: 2.5rem auto 0;
}

.faq-item {
	border-bottom: 1px solid var(--border);
}

.faq-question {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.25rem 0;
	text-align: left;
	font-weight: 700;
	font-family: var(--font-head);
	font-size: 1.05rem;
	color: var(--sage-dark);
}

.faq-icon {
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
	transform: rotate(45deg);
}

.faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.25s ease;
}

.faq-answer-inner {
	padding-bottom: 1.25rem;
	color: var(--ink-soft);
}

/* ==========================================================================
   BLOG
   ========================================================================== */
.blog-layout {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: var(--gap);
}

@media (max-width: 900px) {
	.blog-layout {
		grid-template-columns: 1fr;
	}
}

.featured-post {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	background: var(--white);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	margin-bottom: 2.5rem;
	align-items: center;
}

.featured-post img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	aspect-ratio: 4/3;
}

.featured-post-body {
	padding: 1.5rem 2rem 1.5rem 0;
}

@media (max-width: 700px) {
	.featured-post {
		grid-template-columns: 1fr;
	}
	.featured-post-body {
		padding: 0 1.5rem 1.5rem;
	}
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: var(--gap);
}

.post-card {
	background: var(--white);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	transition: transform 0.2s ease;
}

.post-card:hover {
	transform: translateY(-3px);
}

.post-card img {
	width: 100%;
	aspect-ratio: 16/10;
	object-fit: cover;
}

.post-card-body {
	padding: 1.5rem;
}

.post-meta {
	font-size: 0.8rem;
	color: var(--terracotta-dark);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 0.5rem;
}

.post-card h3 {
	margin-bottom: 0.5rem;
}

.post-card .read-more {
	display: inline-block;
	margin-top: 1rem;
	font-weight: 700;
	color: var(--sage-dark);
}

.sidebar-widget {
	background: var(--white);
	border-radius: var(--radius);
	padding: 1.5rem;
	box-shadow: var(--shadow);
	margin-bottom: 1.75rem;
}

.sidebar-widget h4 {
	margin-bottom: 1rem;
}

.sidebar-search input {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
}

.sidebar-list li {
	padding: 0.6rem 0;
	border-bottom: 1px solid var(--border);
}

.sidebar-list li:last-child {
	border-bottom: none;
}

.sidebar-list a:hover {
	color: var(--terracotta-dark);
}

/* Pagination */
.pagination {
	display: flex;
	gap: 0.5rem;
	margin-top: 2.5rem;
	flex-wrap: wrap;
}

.pagination a,
.pagination span {
	padding: 0.6rem 1rem;
	border-radius: var(--radius-sm);
	background: var(--white);
	box-shadow: var(--shadow);
	font-weight: 600;
	font-size: 0.9rem;
}

.pagination .current {
	background: var(--sage);
	color: var(--white);
}

/* Breadcrumbs */
.breadcrumbs {
	font-size: 0.85rem;
	color: var(--ink-soft);
	padding: 1rem 0;
}

.breadcrumbs a:hover {
	color: var(--terracotta-dark);
}

/* ==========================================================================
   FORMS
   ========================================================================== */
.form-field {
	margin-bottom: 1.25rem;
}

.form-field label {
	display: block;
	font-weight: 700;
	font-size: 0.9rem;
	margin-bottom: 0.4rem;
	color: var(--sage-dark);
}

.form-field input,
.form-field textarea,
.form-field select {
	width: 100%;
	padding: 0.85rem 1rem;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--white);
}

.form-field textarea {
	min-height: 140px;
	resize: vertical;
}

.form-honeypot {
	position: absolute;
	left: -9999px;
	top: -9999px;
}

.form-status {
	padding: 1rem;
	border-radius: var(--radius-sm);
	margin-bottom: 1.25rem;
	font-weight: 600;
}

.form-status.success {
	background: var(--sage-light);
	color: var(--sage-dark);
}

.form-status.error {
	background: #F5DEDA;
	color: #8B3A2B;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
	background: var(--sage-dark);
	color: var(--cream);
	padding: clamp(3rem, 7vw, 5rem) 0 1.5rem;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	gap: var(--gap);
	padding-bottom: 3rem;
	border-bottom: 1px solid rgba(247, 244, 238, 0.15);
}

@media (max-width: 900px) {
	.footer-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 560px) {
	.footer-grid {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.footer-grid .social-nav {
		justify-content: center;
	}
}

.footer-grid h4 {
	color: var(--white);
	font-size: 1rem;
	margin-bottom: 1.1rem;
}

.footer-grid p,
.footer-grid a {
	color: var(--cream);
	opacity: 0.85;
	font-size: 0.92rem;
}

.footer-grid a:hover {
	opacity: 1;
	text-decoration: underline;
}

.footer-grid li {
	margin-bottom: 0.6rem;
}

.footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
	padding-top: 1.5rem;
	font-size: 0.82rem;
	opacity: 0.75;
}

.footer-legal {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.footer-legal a:hover {
	text-decoration: underline;
}

/* ==========================================================================
   COOKIE NOTICE
   ========================================================================== */
.cookie-notice {
	position: fixed;
	left: 1.5rem;
	right: 1.5rem;
	bottom: 1.5rem;
	max-width: 640px;
	margin: 0 auto;
	background: var(--white);
	color: var(--ink);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	padding: 1.25rem 1.5rem;
	display: flex;
	align-items: center;
	gap: 1.25rem;
	flex-wrap: wrap;
	z-index: 950;
}

.cookie-notice[hidden] {
	display: none;
}

.cookie-notice p {
	flex: 1 1 260px;
	font-size: 0.88rem;
	color: var(--ink-soft);
	margin: 0;
}

.cookie-notice a {
	color: var(--sage-dark);
	font-weight: 700;
	text-decoration: underline;
}

.cookie-notice .btn {
	padding: 0.65rem 1.4rem;
	font-size: 0.85rem;
	flex-shrink: 0;
}

@media (max-width: 560px) {
	.cookie-notice {
		left: 1rem;
		right: 1rem;
		bottom: 1rem;
		padding: 1.1rem;
	}
}

/* ==========================================================================
   404 / SEARCH
   ========================================================================== */
.error-404,
.search-no-results {
	text-align: center;
	padding: clamp(4rem, 10vw, 7rem) 0;
}

.error-404 .code {
	font-family: var(--font-head);
	font-size: clamp(4rem, 12vw, 7rem);
	color: var(--sage-light);
	font-weight: 700;
	line-height: 1;
}

/* Scroll reveal */
.reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* ==========================================================================
   BACK TO TOP
   ========================================================================== */
.back-to-top {
	position: fixed;
	right: 1.5rem;
	bottom: 1.5rem;
	width: 46px;
	height: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--sage);
	color: var(--white);
	border-radius: 50%;
	box-shadow: var(--shadow-lg);
	font-size: 1.2rem;
	line-height: 1;
	z-index: 900;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity 0.25s ease, transform 0.25s ease, background 0.15s ease, visibility 0.25s ease;
}

.back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.back-to-top:hover {
	background: var(--sage-dark);
}

@media (max-width: 600px) {
	.back-to-top {
		right: 1rem;
		bottom: 1rem;
		width: 42px;
		height: 42px;
	}
}

/* ==========================================================================
   MOBILE CONTENT CENTERING
   Left-aligned section intros and cards read fine on desktop but feel
   lopsided on narrow screens, where there's no second column for them to
   balance against — centered them at this breakpoint.
   ========================================================================== */
@media (max-width: 640px) {
	.hero-inner {
		margin: 0 auto;
		text-align: center;
	}

	.hero-actions {
		justify-content: center;
	}

	.section-intro {
		margin: 0 auto;
		text-align: center;
	}

	.step-card {
		text-align: center;
	}

	.service-card-body {
		text-align: center;
	}

	.topbar .container {
		justify-content: center;
		text-align: center;
	}

	.topbar-right {
		justify-content: center;
	}

	.footer-bottom {
		justify-content: center;
		text-align: center;
	}
}
