/*
Theme Name: Everyware
Theme URI: https://everywaresolutions.com/
Author: Everyware Solutions LLC
Description: A single-page landing theme for Everyware Solutions LLC. Classic theme, no block editor, no build step. All copy lives in inc/content.php.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: everyware
*/

/* ------------------------------------------------------------------ *
 * Tokens
 * ------------------------------------------------------------------ */

:root {
	--ink:            #14181c;
	--ink-strong:     #05080b;
	--muted:          #5c6873;
	--muted-soft:     #7b8792;
	--bg:             #ffffff;
	--bg-subtle:      #f6f7f9;
	--bg-sunken:      #eef0f3;
	--border:         #e2e6ea;
	--border-strong:  #cdd4da;
	--accent:         #0f5f78;
	--accent-hover:   #0b4a5e;
	--accent-ink:     #ffffff;
	--ok:             #1c6b45;
	--ok-bg:          #e8f4ee;
	--err:            #8c2f22;
	--err-bg:         #fbecea;

	--font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
	        "Helvetica Neue", Arial, sans-serif;
	--font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
	             "Liberation Mono", monospace;

	--measure: 38rem;
	--container: 68rem;
	--radius: 6px;

	--shadow: 0 1px 2px rgba(5, 8, 11, .04), 0 8px 24px -12px rgba(5, 8, 11, .12);
}

@media (prefers-color-scheme: dark) {
	:root {
		--ink:           #e6eaee;
		--ink-strong:    #f6f8fa;
		--muted:         #9aa6b1;
		--muted-soft:    #7c8894;
		--bg:            #0e1216;
		--bg-subtle:     #141a20;
		--bg-sunken:     #1a222a;
		--border:        #242e37;
		--border-strong: #35424e;
		--accent:        #57bcd8;
		--accent-hover:  #7fd0e6;
		--accent-ink:    #06131a;
		--ok:            #7fd6a8;
		--ok-bg:         #12251c;
		--err:           #f0a79c;
		--err-bg:        #2a1512;

		--shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -12px rgba(0, 0, 0, .6);
	}
}

/* ------------------------------------------------------------------ *
 * Reset / base
 * ------------------------------------------------------------------ */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 5rem;
}

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3 {
	color: var(--ink-strong);
	line-height: 1.15;
	letter-spacing: -.021em;
	margin: 0 0 .5em;
	text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 1.35rem + 3.1vw, 3.4rem); font-weight: 660; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.1rem); font-weight: 640; }
h3 { font-size: 1.14rem; font-weight: 620; letter-spacing: -.012em; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a {
	color: var(--accent);
	text-decoration-thickness: 1px;
	text-underline-offset: .18em;
}
a:hover { color: var(--accent-hover); }

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

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

/* ------------------------------------------------------------------ *
 * Layout primitives
 * ------------------------------------------------------------------ */

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

.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section--subtle { background: var(--bg-subtle); border-block: 1px solid var(--border); }

.section__head { max-width: var(--measure); margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__lede { color: var(--muted); font-size: 1.0625rem; margin: 0; }

.eyebrow {
	font-family: var(--font-mono);
	font-size: .75rem;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--muted-soft);
	margin: 0 0 1.1rem;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--bg);
	color: var(--ink);
	padding: .75rem 1rem;
	z-index: 100;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius);
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ------------------------------------------------------------------ *
 * Header
 * ------------------------------------------------------------------ */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--bg) 88%, transparent);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--border);
}

/* The admin bar is position:fixed at the top for logged-in users, so a sticky
   header pinned to 0 slides underneath it. Only affects the site owner. */
.admin-bar .site-header { top: 32px; }
.admin-bar { --admin-bar-h: 32px; }

@media screen and (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
	.admin-bar { --admin-bar-h: 46px; }
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 4rem;
}

.brand {
	display: inline-flex;
	align-items: baseline;
	gap: .4rem;
	font-weight: 640;
	letter-spacing: -.017em;
	color: var(--ink-strong);
	text-decoration: none;
	font-size: 1.0625rem;
}
.brand__suffix {
	font-size: .68rem;
	font-weight: 520;
	letter-spacing: .06em;
	color: var(--muted-soft);
	text-transform: uppercase;
}

.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 1.9rem); }
.site-nav a {
	color: var(--muted);
	text-decoration: none;
	font-size: .9375rem;
	font-weight: 520;
}
.site-nav a:hover { color: var(--ink-strong); }
.site-nav .btn { color: var(--accent-ink); }

/* Three links plus the button crowd a narrow bar; drop to the button alone. */
@media (max-width: 44rem) {
	.site-nav__link { display: none; }
}

/* ------------------------------------------------------------------ *
 * Buttons
 * ------------------------------------------------------------------ */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	padding: .68rem 1.15rem;
	border: 1px solid transparent;
	border-radius: var(--radius);
	background: var(--accent);
	color: var(--accent-ink);
	font: inherit;
	font-size: .9375rem;
	font-weight: 560;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn:active { transform: translateY(1px); }

.btn--ghost {
	background: transparent;
	color: var(--ink);
	border-color: var(--border-strong);
}
.btn--ghost:hover { background: var(--bg-sunken); color: var(--ink-strong); }

.btn--lg { padding: .85rem 1.5rem; font-size: 1rem; }

/* ------------------------------------------------------------------ *
 * Hero
 * ------------------------------------------------------------------ */

/* The name, spelled out. The shared "ware" ending is the whole point, so it
   carries the accent and the stems stay quiet. */
.wordplay {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: .55rem;
	margin: 0 0 1.4rem;
	font-family: var(--font-mono);
	font-size: .8rem;
	letter-spacing: .1em;
	text-transform: lowercase;
	color: var(--muted-soft);
}
.wordplay__ware { color: var(--accent); font-weight: 600; }
.wordplay__dot { color: var(--border-strong); }

.hero { padding-block: clamp(4rem, 9vw, 8rem) clamp(3.5rem, 7vw, 6rem); }
.hero__inner { max-width: 46rem; }
.hero__lede {
	font-size: clamp(1.09rem, 1rem + .45vw, 1.3rem);
	color: var(--muted);
	max-width: var(--measure);
	margin: 1.4rem 0 0;
}
.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	margin-top: 2.25rem;
}

.rule {
	height: 1px;
	background: linear-gradient(90deg, var(--border-strong), transparent);
	border: 0;
	margin: 0;
}

/* ------------------------------------------------------------------ *
 * Services
 * ------------------------------------------------------------------ */

/* Four cards. auto-fit resolved to three columns at container width and left
   the fourth stranded on its own row, so the count is pinned instead. */
.grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(1.25rem, 2.5vw, 2rem);
}

@media (min-width: 40rem) {
	.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.card {
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: calc(var(--radius) + 2px);
	padding: clamp(1.35rem, 2.5vw, 1.85rem);
}
.card__body { color: var(--muted); margin: 0; font-size: .97rem; }
.card__num {
	font-family: var(--font-mono);
	font-size: .72rem;
	color: var(--accent);
	letter-spacing: .06em;
	display: block;
	margin-bottom: .85rem;
}

/* ------------------------------------------------------------------ *
 * About
 * ------------------------------------------------------------------ */

.about {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: start;
}
@media (max-width: 48rem) {
	.about { grid-template-columns: 1fr; }
}

.about__prose { color: var(--muted); max-width: var(--measure); }
.about__prose p { margin-bottom: 1.05em; }

.factlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.factlist li {
	padding: .8rem 0;
	border-bottom: 1px solid var(--border);
	font-size: .94rem;
	color: var(--muted);
	display: flex;
	gap: .65rem;
	align-items: baseline;
}
.factlist li::before {
	content: "";
	flex: 0 0 auto;
	width: .34rem;
	height: .34rem;
	border-radius: 50%;
	background: var(--accent);
	transform: translateY(-.15rem);
}

/* ------------------------------------------------------------------ *
 * Platform panel
 *
 * Deliberately not another .card: this is one object, inset from the page,
 * so it reads as evidence rather than a fifth service.
 * ------------------------------------------------------------------ */

.panel {
	background: var(--bg-subtle);
	border: 1px solid var(--border);
	border-radius: calc(var(--radius) + 4px);
	padding: clamp(1.75rem, 4vw, 3rem);
}

.panel h2 { margin-bottom: .3em; }

/* A touch wider than --measure: at the panel's full width, a 38rem column
   left an obvious dead zone to its right. */
.panel__prose {
	color: var(--muted);
	max-width: 42rem;
}

.panel__link {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	margin-top: 1.25rem;
	font-size: .95rem;
	font-weight: 560;
	text-decoration: none;
	border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
	padding-bottom: 1px;
}
.panel__link:hover { border-bottom-color: var(--accent-hover); }

.panel__arrow { transition: transform .15s ease; }
.panel__link:hover .panel__arrow { transform: translateX(3px); }

.specs {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr));
	gap: clamp(1.25rem, 2.5vw, 2.25rem);
	margin: clamp(1.75rem, 3.5vw, 2.75rem) 0 0;
	padding: clamp(1.5rem, 3vw, 2.25rem) 0 0;
	border-top: 1px solid var(--border);
}

.specs__k {
	display: block;
	font-family: var(--font-mono);
	font-size: .71rem;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: .45rem;
}

.specs__v {
	display: block;
	color: var(--muted);
	font-size: .93rem;
	line-height: 1.5;
}

/* ------------------------------------------------------------------ *
 * Contact form
 * ------------------------------------------------------------------ */

.contact {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: start;
}
@media (max-width: 48rem) {
	.contact { grid-template-columns: 1fr; }
}

.form { display: grid; gap: 1.1rem; }

.field { display: grid; gap: .4rem; }
.field label {
	font-size: .875rem;
	font-weight: 560;
	color: var(--ink-strong);
	letter-spacing: -.005em;
}
.field .req { color: var(--muted-soft); font-weight: 460; }

.field input,
.field textarea {
	width: 100%;
	padding: .68rem .8rem;
	font: inherit;
	font-size: .97rem;
	color: var(--ink);
	background: var(--bg);
	border: 1px solid var(--border-strong);
	border-radius: var(--radius);
	transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 9.5rem; resize: vertical; }

.field input:focus,
.field textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.field input::placeholder,
.field textarea::placeholder { color: var(--muted-soft); }

/* Off-screen but still announced by screen readers. .hp is the honeypot,
   which additionally relies on being invisible to a sighted visitor. */
.hp,
.u-visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.form__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
	margin-top: .35rem;
}
.form__note { font-size: .85rem; color: var(--muted-soft); margin: 0; }

.notice {
	padding: .9rem 1.1rem;
	border-radius: var(--radius);
	border: 1px solid transparent;
	font-size: .94rem;
	margin-bottom: 1.5rem;
}
.notice--ok  { background: var(--ok-bg);  border-color: color-mix(in srgb, var(--ok) 35%, transparent);  color: var(--ok); }
.notice--err { background: var(--err-bg); border-color: color-mix(in srgb, var(--err) 35%, transparent); color: var(--err); }

/* ------------------------------------------------------------------ *
 * Footer
 * ------------------------------------------------------------------ */

.site-footer {
	border-top: 1px solid var(--border);
	padding-block: 2.25rem;
	color: var(--muted-soft);
	font-size: .875rem;
}
.site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: space-between;
	align-items: center;
}

/* ------------------------------------------------------------------ *
 * Generic page template (privacy policy, etc.)
 * ------------------------------------------------------------------ */

.page-body { max-width: var(--measure); }
.page-body h2, .page-body h3 { margin-top: 2em; }
.page-body ul, .page-body ol { padding-left: 1.25rem; color: var(--muted); }
.page-body li { margin-bottom: .4em; }
