/*
Theme Name: Similia
Theme URI: https://gethomeopathy.co.uk
Description: Custom Genesis child theme for Similia — a homeopathy concierge matching service. Lightweight, accessible, built to the Similia design system. No page builder, no external fonts.
Author: Alto
Author URI: https://gethomeopathy.co.uk
Template: genesis
Version: 1.0.0
Text Domain: similia
*/

/* ==========================================================================
   Similia Design System
   Palette: forest #1a4a2a | sage #4a9a6a | mint #8fbe9a | amber #c8a040 (GP only)
   Type:    Georgia headings, system sans body, 17px min on mobile.
   ========================================================================== */

:root {
	--forest: #1a4a2a;
	--sage:   #4a9a6a;
	--mint:   #8fbe9a;
	--white:  #ffffff;
	--text:   #1a1a1a;
	--text-2: #444444;
	--amber:  #c8a040;
	--amber-bg: #faf3e0;
	--line:   #e6ebe7;

	--serif: Georgia, "Times New Roman", Times, serif;
	--sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

	--wrap: 1140px;
}

/* --------------------------------------------------------------------------
   Reset / base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
	margin: 0;
	font-family: var(--sans);
	font-size: 18px;
	line-height: 1.65;
	color: var(--text);
	background-color: var(--white);
	-webkit-font-smoothing: antialiased;
}

@media only screen and (max-width: 768px) {
	body { font-size: 17px; }   /* never below 17px on mobile */
}

img { max-width: 100%; height: auto; }

a {
	color: var(--forest);
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color .15s ease;
}
a:hover, a:focus { color: var(--sage); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--serif);
	color: var(--forest);
	line-height: 1.2;
	margin: 0 0 .5em;
	font-weight: 700;
}
h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }
p { margin: 0 0 1.25em; }

@media only screen and (max-width: 768px) {
	h1 { font-size: 2rem; }
	h2 { font-size: 1.6rem; }
}

/* --------------------------------------------------------------------------
   Layout containers
   -------------------------------------------------------------------------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.site-inner {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 48px 24px 64px;
}
.content { width: 100%; }

/* --------------------------------------------------------------------------
   Skip link
   -------------------------------------------------------------------------- */
.genesis-skip-link { margin: 0; padding: 0; }
.genesis-skip-link li { display: none; }
:focus { outline: 2px solid var(--sage); outline-offset: 2px; }
.screen-reader-text, .screen-reader-shortcut {
	position: absolute !important;
	clip: rect(1px,1px,1px,1px);
	height: 1px; width: 1px; overflow: hidden;
}

/* --------------------------------------------------------------------------
   Header + wordmark
   -------------------------------------------------------------------------- */
.site-header {
	background-color: var(--white);
	border-bottom: 1px solid var(--line);
}
.site-header .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 22px;
	padding-bottom: 22px;
}
/* Logo lockup: botanical device (::before) left, wordmark + tagline stacked right */
.title-area {
	margin: 0;
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: 14px;
	align-items: center;
}
.title-area::before {
	content: "";
	grid-column: 1;
	grid-row: 1 / span 2;
	align-self: center;
	width: 46px;
	height: 46px;
	background: url("images/similia-mark.svg") no-repeat center / contain;
}

.site-title {
	grid-column: 2;
	margin: 0;
	line-height: 1.05;
	font-family: var(--serif);
}
.site-description { grid-column: 2; }
.site-title a {
	font-family: var(--serif);
	color: var(--forest);
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-weight: 700;
	font-size: 2rem;
	text-decoration: none;
}
.site-title a:hover, .site-title a:focus { color: var(--forest); opacity: .85; }

.site-description {
	margin: 2px 0 0;
	font-family: var(--sans);
	color: var(--sage);
	font-size: .9rem;
	letter-spacing: .03em;
	text-transform: none;
}

/* --------------------------------------------------------------------------
   Primary navigation
   -------------------------------------------------------------------------- */
/* Primary nav sits inside the header row, hugging the right */
.nav-primary { background: transparent; border: 0; }
.site-header .nav-primary > .wrap { max-width: none; margin: 0; padding: 0; }
.nav-primary .genesis-nav-menu { justify-content: flex-end; }

.genesis-nav-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.genesis-nav-menu .menu-item { position: relative; }
.genesis-nav-menu a {
	display: block;
	padding: 16px 16px;
	color: var(--text);
	font-weight: 600;
	font-size: .98rem;
	text-decoration: none;
}
.genesis-nav-menu a:hover,
.genesis-nav-menu a:focus,
.genesis-nav-menu .current-menu-item > a {
	color: var(--sage);
}

/* Get Started — primary CTA, always visible (last item) */
.nav-primary .genesis-nav-menu > .menu-item:last-child { margin-left: 8px; }
.nav-primary .genesis-nav-menu > .menu-item:last-child > a {
	background-color: var(--forest);
	color: var(--white);
	border-radius: 4px;
	padding: 10px 18px;
}
.nav-primary .genesis-nav-menu > .menu-item:last-child > a:hover,
.nav-primary .genesis-nav-menu > .menu-item:last-child > a:focus {
	background-color: var(--sage);
	color: var(--white);
}

/* Sub-menus */
.genesis-nav-menu .sub-menu {
	position: absolute;
	left: 0; top: 100%;
	z-index: 99;
	display: none;
	min-width: 220px;
	margin: 0; padding: 6px 0;
	list-style: none;
	background: var(--white);
	border: 1px solid var(--line);
	box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.genesis-nav-menu .menu-item:hover > .sub-menu,
.genesis-nav-menu .menu-item:focus-within > .sub-menu { display: block; }
.genesis-nav-menu .sub-menu a { padding: 10px 18px; }

/* Mobile menu toggle (button injected by menu-toggle.js) */
.menu-toggle {
	display: none;
	background: var(--forest);
	color: var(--white);
	border: 0;
	border-radius: 4px;
	padding: 10px 14px;
	font-family: var(--sans);
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
}
.menu-toggle:hover, .menu-toggle:focus { background: var(--sage); }

@media only screen and (max-width: 860px) {
	.site-header .wrap { position: relative; }
	.title-area::before { width: 38px; height: 38px; }
	.site-title a { font-size: 1.55rem; letter-spacing: .1em; }

	.menu-toggle { display: inline-block; }

	/* Menu drops as a full-width panel beneath the header row */
	.nav-primary .genesis-nav-menu {
		position: absolute;
		left: 0; right: 0; top: 100%;
		z-index: 99;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		background: var(--white);
		border-top: 1px solid var(--line);
		box-shadow: 0 8px 24px rgba(0,0,0,.08);
		max-height: 0;
		overflow: hidden;
		transition: max-height .25s ease;
	}
	.nav-primary .genesis-nav-menu.nav-open { max-height: 1000px; }
	.genesis-nav-menu .menu-item { border-top: 1px solid var(--line); }
	.genesis-nav-menu .menu-item:first-child { border-top: 0; }
	.genesis-nav-menu a { padding: 14px 24px; }
	.nav-primary .genesis-nav-menu > .menu-item:last-child { margin: 0; }
	.nav-primary .genesis-nav-menu > .menu-item:last-child > a { border-radius: 0; }
	.genesis-nav-menu .sub-menu { position: static; display: block; border: 0; box-shadow: none; padding-left: 12px; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.button,
.wp-block-button__link {
	display: inline-block;
	background-color: var(--forest);
	color: var(--white);
	border: 0;
	border-radius: 4px;
	padding: 12px 24px;
	font-family: var(--sans);
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease;
}
button:hover, button:focus,
input[type="submit"]:hover, input[type="submit"]:focus,
.button:hover, .button:focus,
.wp-block-button__link:hover, .wp-block-button__link:focus {
	background-color: var(--sage);
	color: var(--white);
}
.button.secondary {
	background: transparent;
	color: var(--forest);
	box-shadow: inset 0 0 0 2px var(--sage);
}
.button.secondary:hover { background: var(--sage); color: var(--white); }

/* --------------------------------------------------------------------------
   Content entries
   -------------------------------------------------------------------------- */
.entry-title { margin-bottom: .4em; }
.entry-content > * { max-width: 760px; }
.entry-content > .alignfull, .entry-content > .bg-mint, .entry-content > .gp-signpost { max-width: none; }
.entry-content ul, .entry-content ol { margin: 0 0 1.25em 1.25em; }
.entry-content li { margin-bottom: .4em; }

/* --------------------------------------------------------------------------
   Forms (baseline for WPForms / contact forms)
   -------------------------------------------------------------------------- */
input[type="text"], input[type="email"], input[type="tel"],
input[type="url"], input[type="search"], textarea, select {
	width: 100%;
	max-width: 100%;
	padding: 12px 14px;
	font-family: var(--sans);
	font-size: 1rem;
	color: var(--text);
	background: var(--white);
	border: 1px solid #c7d0c9;
	border-radius: 4px;
}
input:focus, textarea:focus, select:focus { border-color: var(--sage); outline: none; }
label { font-weight: 600; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
	background-color: var(--forest);
	color: #d7e4db;
	text-align: center;
	padding: 40px 24px;
	font-size: .95rem;
}
.site-footer a { color: var(--mint); }
.site-footer .nav-secondary { margin-bottom: 18px; }
.nav-secondary .genesis-nav-menu { justify-content: center; gap: 0; }
.nav-secondary .genesis-nav-menu a { color: #d7e4db; padding: 6px 14px; font-weight: 500; }
.nav-secondary .genesis-nav-menu a:hover { color: var(--white); }

/* --------------------------------------------------------------------------
   Brand utilities (used by content / page templates)
   -------------------------------------------------------------------------- */
.bg-mint { background-color: var(--mint); }
.bg-mint-soft { background-color: rgba(143,190,154,.18); }

.similia-divider {
	border: 0; border-top: 2px solid var(--sage);
	max-width: 64px; margin: 1.5em 0;
}

.gp-signpost {
	background-color: var(--amber-bg);
	border-left: 4px solid var(--amber);
	border-radius: 4px;
	padding: 1.25em 1.5em;
	margin: 1.75em 0;
	color: var(--text);
}
.gp-signpost p:last-child { margin-bottom: 0; }
.gp-signpost strong, .gp-signpost .gp-signpost-title { color: #8a6a16; }

.similia-trust-bar {
	background-color: var(--forest);
	color: var(--white);
	padding: 1.25em 1.5em;
	border-radius: 4px;
}
.similia-trust-bar a { color: var(--mint); }

/* Conditions index grid */
.conditions-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
	margin: 1.75em 0;
	padding: 0;
	list-style: none;
}
.conditions-grid li { margin: 0; }
.conditions-grid a {
	display: block;
	height: 100%;
	padding: 18px 20px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 6px;
	text-decoration: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.conditions-grid a:hover,
.conditions-grid a:focus {
	border-color: var(--sage);
	box-shadow: 0 6px 18px rgba(0,0,0,.06);
}
.conditions-grid .c-title {
	display: block;
	font-family: var(--serif);
	color: var(--forest);
	font-size: 1.15rem;
	font-weight: 700;
	margin-bottom: 4px;
}
.conditions-grid .c-desc {
	display: block;
	color: var(--text-2);
	font-size: .95rem;
	line-height: 1.5;
}
