/*
Theme Name: SA Domainz
Theme URI: https://www.sadomainz.co.za
Author: DadsFam
Author URI: https://www.dadsfam.co.za
Description: A modern, WooCommerce-ready theme built for SA Domainz — South African domain registration, web hosting and website building. A bold orange brand system spans light, dark and white sections, with a live domain-lookup terminal as the homepage centrepiece.
Version: 1.16.0
Requires at least: 6.9
Tested up to: 7.0
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: sadomainz
Tags: e-commerce, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, threaded-comments, translation-ready

SA Domainz WordPress Theme is distributed under the terms of the GNU GPL v2 or later.
This theme bundles no third-party code beyond WordPress core APIs.
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
	/* Colour system — warm orange, grounded with a near-black ink rather than
	   cold navy/pure black, plus a functional "signal" green reserved only
	   for domain-availability states (never decorative). */
	--ink: #1B140F;
	--ink-soft: #2B2019;
	--ink-border: #3D2E22;
	--paper: #FFF9F2;
	--paper-tint: #FFEFDD;
	--white: #FFFFFF;
	--ember: #F2600C;
	--ember-dark: #B8380A;
	--ember-darker: #7E2708;
	--gold: #E8A33D;
	--signal: #2E9E6D;
	--signal-dim: #E3F3EC;

	--heading: #201710;
	--text: #5B4C40;
	--text-light: #8A7A6C;
	--on-dark: #F5EBDF;
	--on-dark-muted: #BBA894;
	--border: #ECE0D3;

	/* Type */
	--font-display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
	--font-body: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
	--font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	/* Layout */
	--container: 1280px;
	--container-narrow: 760px;
	--radius-sm: 10px;
	--radius-md: 18px;
	--radius-lg: 28px;
	--radius-pill: 999px;

	--shadow-sm: 0 4px 16px rgba(27, 20, 15, 0.08);
	--shadow-md: 0 20px 44px -14px rgba(27, 20, 15, 0.22);
	--shadow-lg: 0 34px 70px -20px rgba(27, 20, 15, 0.32);

	--space-3xs: 0.25rem;
	--space-2xs: 0.5rem;
	--space-xs: 0.75rem;
	--space-sm: 1rem;
	--space-md: 1.5rem;
	--space-lg: 2.5rem;
	--space-xl: 4rem;
	--space-2xl: 6rem;
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

html { overflow-x: hidden; }

body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--text);
	background: var(--paper);
	font-size: 1rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

body.mobile-menu-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }

a {
	color: var(--ember);
	text-decoration: none;
	transition: color 0.15s ease;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	color: var(--heading);
	line-height: 1.12;
	letter-spacing: -0.01em;
	margin: 0 0 var(--space-sm);
	font-weight: 700;
}

p { margin: 0 0 var(--space-sm); }
ul, ol { padding-left: 1.2em; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 1rem; color: inherit; }

:focus-visible {
	outline: 2px solid var(--ember);
	outline-offset: 3px;
	border-radius: 4px;
}

/* ==========================================================================
   3. Accessibility helpers
   ========================================================================== */
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute;
	width: 1px; word-wrap: normal !important;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 10000;
	background: var(--ink);
	color: var(--on-dark);
	padding: 0.9em 1.4em;
	border-radius: 0 0 var(--radius-sm) 0;
	font-family: var(--font-display);
	font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   4. Layout primitives
   ========================================================================== */
.container {
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.container-narrow {
	max-width: var(--container-narrow);
	margin-inline: auto;
	padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.section-header {
	max-width: 640px;
	margin: 0 auto var(--space-xl) !important;
	text-align: center;
}
.section-header.align-left { margin-inline: 0 !important; text-align: left; }

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	font-family: var(--font-mono);
	font-weight: 500;
	letter-spacing: 0.02em;
	font-size: 0.8rem;
	color: var(--ember-dark);
	background: var(--paper-tint);
	padding: 0.45em 1em;
	border-radius: var(--radius-pill);
	margin-bottom: var(--space-md);
}
.eyebrow--on-dark {
	color: var(--gold);
	background: rgba(232, 163, 61, 0.12);
}

.section-header h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); }
.section-header p { color: var(--text-light); font-size: 1.1rem; margin-top: var(--space-sm); }

/* ==========================================================================
   5. Buttons
   ========================================================================== */
.btn, .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55em;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1rem;
	line-height: 1;
	padding: 1em 1.9em;
	border-radius: var(--radius-pill);
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color .2s ease;
	white-space: nowrap;
}

.btn-primary,
.wp-block-button.btn-primary .wp-block-button__link {
	background: linear-gradient(135deg, var(--ember), var(--ember-dark)) !important;
	color: var(--white) !important;
	box-shadow: var(--shadow-sm);
}
.btn-primary:hover,
.wp-block-button.btn-primary .wp-block-button__link:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--white); }

.btn-outline,
.wp-block-button.btn-outline .wp-block-button__link {
	background: transparent !important;
	border-color: var(--ink-border) !important;
	color: var(--heading) !important;
}
.btn-outline:hover,
.wp-block-button.btn-outline .wp-block-button__link:hover { border-color: var(--ink) !important; background: var(--ink) !important; color: var(--on-dark) !important; }

.btn-on-dark {
	background: transparent;
	border-color: rgba(245, 235, 223, 0.35);
	color: var(--on-dark);
}
.btn-on-dark:hover { border-color: var(--on-dark); background: rgba(245, 235, 223, 0.08); color: var(--white); }

.btn-light,
.wp-block-button.btn-light .wp-block-button__link {
	background: var(--white) !important;
	color: var(--ember-dark) !important;
}
.btn-light:hover,
.wp-block-button.btn-light .wp-block-button__link:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-sm { padding: 0.7em 1.4em; font-size: 0.9rem; }
.btn-block, .wp-block-button.btn-block .wp-block-button__link { width: 100%; }

/* Native block wrapper compatibility — these classes are added by
   WordPress core, not this theme, when homepage content is edited as
   blocks. Group/Buttons wrappers should be invisible (no default box),
   letting the custom classNames alongside them do the actual layout. */
.wp-block-group, .wp-block-buttons { display: revert; }
.wp-block-button { margin: 0; }
.wp-block-heading { margin: 0 0 var(--space-sm); }

/* ==========================================================================
   6. Small utilities
   ========================================================================== */
.text-ember {
	background: linear-gradient(135deg, var(--ember), var(--ember-dark));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.section-tint { background: var(--paper-tint); }
.mono { font-family: var(--font-mono); }
