/*
Theme Name: AmCon
Theme URI: https://amcon.ai
Author: American Consultancy Company (AmCon)
Author URI: https://amcon.ai
Description: Full-screen, slide-by-slide one-page theme for AmCon. Seven slides (hero, smart scheduling, weekly task automation, consulting, care types, how it works, contact) with dot navigation and keyboard support. Every slide's text is editable in Appearance > Customize > AmCon one-page site.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
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: amcon
Tags: one-column, custom-colors, full-width-template, theme-options, translation-ready
*/

/* ------------------------------------------------------------------
   1. Brand tokens (from Brand/tokens/tokens.css, light theme)
------------------------------------------------------------------ */
@font-face {
	font-family: "Fraunces";
	src: url("assets/fonts/fraunces.woff") format("woff");
	font-weight: 500 700;
	font-style: normal;
	font-display: swap;
}

:root {
	--surface-100: #faf7f2;
	--surface-200: #f1ece3;
	--surface-raised: #ffffff;
	--line: #ded6ca;
	--line-strong: #8a8174;
	--ink: #16233a;
	--ink-muted: #4f5a68;
	--ink-subtle: #5d6672;
	--brand: #0f6a64;
	--brand-strong: #0b4e4a;
	--brand-tint: #ddeeea;
	--on-brand: #ffffff;
	--navy: #1c3557;
	--on-navy: #ffffff;
	--accent: #ad4523;
	--accent-strong: #8f381c;
	--on-accent: #ffffff;
	--accent-tint: #f7e1d6;
	--sun: #e7b547;
	--success: #23704a;
	--success-tint: #dcefe3;
	--warning: #8f5a00;
	--warning-tint: #f8ead0;
	--danger: #b42318;
	--danger-tint: #fbe2de;
	--info: #1e5b94;
	--focus: #1e5b94;
	--shadow-raised: 0 1px 2px rgba(22, 35, 58, 0.06), 0 2px 8px rgba(22, 35, 58, 0.06);
	--shadow-overlay: 0 8px 32px rgba(22, 35, 58, 0.16);

	--space-1: 4px;
	--space-2: 8px;
	--space-3: 12px;
	--space-4: 16px;
	--space-6: 24px;
	--space-8: 32px;
	--space-12: 48px;
	--space-16: 64px;
	--space-24: 96px;
	--radius-sm: 6px;
	--radius-md: 10px;
	--radius-lg: 16px;
	--radius-xl: 28px;
	--radius-pill: 999px;
	--font-display: "Fraunces", Georgia, "Times New Roman", serif;
	--font-sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

	/* Layout */
	--header-h: 80px;
	--gutter: clamp(16px, 5vw, 80px);
	--dots-room: 0px;
	--deck-speed: 560ms;
	--ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
	--admin-bar: var(--wp-admin--admin-bar--height, 0px);
}

/* Navy ground: text, focus and muted colours that keep contrast on --navy. */
.tone-navy,
html[data-tone="navy"] .site-header,
html[data-tone="navy"] .deck-dots {
	--ink: var(--on-navy);
	--ink-muted: #ccd6e3;
	--focus: #9cc6ef;
	--line-strong: rgba(255, 255, 255, 0.72);
}

/* ------------------------------------------------------------------
   2. Base
------------------------------------------------------------------ */
*,
*::before,
*::after {
	box-sizing: border-box;
}

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

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	background: var(--surface-100);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 24px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

a {
	color: var(--brand);
	text-underline-offset: 3px;
}

a:hover {
	color: var(--brand-strong);
}

p,
ul,
ol,
h1,
h2,
h3,
figure {
	margin: 0;
}

:focus-visible {
	outline: 2px solid var(--focus);
	outline-offset: 2px;
}

.slide:focus,
.slide:focus-visible {
	outline: none;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: fixed;
	top: calc(var(--admin-bar) + 8px);
	left: 8px;
	z-index: 100;
	padding: 12px 16px;
	border-radius: var(--radius-md);
	background: var(--surface-raised);
	color: var(--ink);
	font-weight: 600;
	transform: translateY(-200%);
	transition: transform 150ms var(--ease-out);
}

.skip-link:focus {
	transform: none;
	color: #16233a;
}

/* Type scale (tokens.css) */
.display-xl,
.display-lg,
.heading-1 {
	font-family: var(--font-display);
	font-weight: 600;
	font-optical-sizing: auto;
	text-wrap: balance;
}

.display-xl {
	font-size: clamp(40px, 3.2vw + 18px, 64px);
	line-height: 1.07;
	letter-spacing: -0.02em;
}

.display-lg {
	font-size: clamp(32px, 1.6vw + 20px, 44px);
	line-height: 1.14;
	letter-spacing: -0.015em;
}

.heading-1 {
	font-size: 32px;
	line-height: 40px;
	letter-spacing: -0.01em;
}

.heading-2 {
	font-family: var(--font-sans);
	font-size: 22px;
	line-height: 30px;
	font-weight: 700;
}

.heading-3 {
	font-family: var(--font-sans);
	font-size: 17px;
	line-height: 24px;
	font-weight: 700;
}

.body-lg {
	font-size: 18px;
	line-height: 28px;
}

.label {
	font-size: 14px;
	line-height: 20px;
	font-weight: 600;
}

.caption {
	font-size: 13px;
	line-height: 18px;
}

.overline {
	font-size: 12px;
	line-height: 16px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--brand);
}

.tone-navy .overline {
	color: var(--brand-tint);
}

.data {
	font-family: var(--font-mono);
	font-size: 14px;
	line-height: 20px;
	font-weight: 500;
}

.metric {
	font-family: var(--font-mono);
	font-weight: 500;
}

/* ------------------------------------------------------------------
   3. Buttons, badges, cards
------------------------------------------------------------------ */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	min-height: 48px;
	padding: 11px 22px;
	border: 1px solid transparent;
	border-radius: var(--radius-md);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 24px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 150ms var(--ease-out), border-color 150ms var(--ease-out), color 150ms var(--ease-out);
}

.btn .icon {
	width: 20px;
	height: 20px;
	transition: transform 150ms var(--ease-out);
}

.btn:hover .icon {
	transform: translateX(2px);
}

.btn--brand,
.btn--brand:visited {
	background: var(--brand);
	color: var(--on-brand);
}

.btn--brand:hover {
	background: var(--brand-strong);
	color: var(--on-brand);
}

.btn--accent,
.btn--accent:visited {
	background: var(--accent);
	color: var(--on-accent);
}

.btn--accent:hover {
	background: var(--accent-strong);
	color: var(--on-accent);
}

.btn--ghost,
.btn--ghost:visited {
	border-color: var(--line-strong);
	color: var(--ink);
	background: transparent;
}

.btn--ghost:hover {
	background: var(--surface-200);
	color: var(--ink);
}

.tone-navy .btn--ghost:hover {
	background: rgba(255, 255, 255, 0.08);
}

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3);
	margin-top: var(--space-8);
}

.badge {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border-radius: var(--radius-pill);
	background: var(--sun);
	color: #16233a;
	font-size: 12px;
	line-height: 16px;
	font-weight: 700;
	white-space: nowrap;
}

.status {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 10px 2px 6px;
	border-radius: var(--radius-pill);
	font-size: 13px;
	line-height: 20px;
	font-weight: 600;
}

.status .icon {
	width: 16px;
	height: 16px;
}

.status--success {
	background: var(--success-tint);
	color: var(--success);
}

.card {
	background: var(--surface-raised);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	padding: var(--space-6);
	color: #16233a;
}

.tone-sunken .card {
	box-shadow: var(--shadow-raised);
}

.card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	margin-bottom: var(--space-4);
}

.icon-disc {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--brand-tint);
	color: var(--brand);
}

/* ------------------------------------------------------------------
   4. Site header
------------------------------------------------------------------ */
.site-header {
	position: fixed;
	top: var(--admin-bar);
	left: 0;
	right: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
	height: var(--header-h);
	padding: 0 var(--gutter);
	background: var(--surface-100);
	transition: background-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}

html[data-tone="sunken"] .site-header {
	background: var(--surface-200);
}

html[data-tone="navy"] .site-header {
	background: var(--navy);
}

.site-header__brand {
	display: block;
	line-height: 0;
	border-radius: var(--radius-sm);
}

.logo {
	width: auto;
	height: 48px;
}

.logo--reverse,
html[data-tone="navy"] .logo--full {
	display: none;
}

html[data-tone="navy"] .logo--reverse {
	display: block;
}

.site-header__cta .btn {
	min-height: 40px;
	padding: 7px 16px;
	font-size: 15px;
}

html[data-tone="navy"] .site-header__cta .btn--brand {
	background: transparent;
	border-color: var(--line-strong);
	color: var(--on-navy);
}

html[data-tone="navy"] .site-header__cta .btn--brand:hover {
	background: rgba(255, 255, 255, 0.08);
}

/* ------------------------------------------------------------------
   5. Slides (scroll mode: phones, short screens, no JavaScript)
------------------------------------------------------------------ */
.slide {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100svh;
	padding: calc(var(--header-h) + var(--space-8)) calc(var(--gutter) + var(--dots-room)) var(--space-16) var(--gutter);
	scroll-margin-top: 0;
}

.tone-paper {
	background: var(--surface-100);
}

.tone-sunken {
	background: var(--surface-200);
}

.tone-navy {
	background: var(--navy);
	color: var(--on-navy);
}

.slide__inner {
	width: 100%;
	max-width: 1200px;
	margin: auto;
}

.slide__title {
	margin-top: var(--space-3);
	max-width: 18ch;
}

.slide--hero .slide__title {
	max-width: 13ch;
}

.slide__intro {
	margin-top: var(--space-4);
	max-width: 34rem;
	color: var(--ink-muted);
}

.split {
	display: grid;
	gap: var(--space-12);
	align-items: center;
}

.split__visual {
	display: flex;
	justify-content: center;
}

.stack__head .slide__title {
	max-width: 22ch;
}

.points {
	display: grid;
	gap: var(--space-3);
	margin-top: var(--space-6);
	padding: 0;
	list-style: none;
}

.points li {
	display: flex;
	align-items: flex-start;
	gap: var(--space-3);
}

.points__icon {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 28px;
	height: 28px;
	margin-top: -2px;
	border-radius: 50%;
	background: var(--brand-tint);
	color: var(--brand);
}

.points__icon .icon {
	width: 16px;
	height: 16px;
	stroke-width: 2.25;
}

.slide__next {
	position: absolute;
	left: 50%;
	bottom: var(--space-4);
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-left: -22px;
	border-radius: 50%;
	color: var(--ink-muted);
	transition: color 150ms var(--ease-out), background-color 150ms var(--ease-out);
}

.slide__next:hover {
	color: var(--on-navy);
	background: rgba(255, 255, 255, 0.08);
}

/* Arch frame + brand illustration */
.arch {
	position: relative;
	width: min(100%, 400px);
	aspect-ratio: 5 / 6;
	overflow: hidden;
	border-radius: 50% 50% var(--radius-lg) var(--radius-lg) / 41.667% 41.667% var(--radius-lg) var(--radius-lg);
	background: var(--brand-tint);
	--arch-ground: #c6e1da;
}

.tone-navy .arch {
	background: var(--surface-100);
	--arch-ground: var(--brand-tint);
}

.arch img,
.arch__art {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.arch__sun {
	fill: var(--sun);
}

.arch__ring {
	fill: none;
	stroke: var(--navy);
	stroke-width: 22;
	stroke-linecap: round;
}

.arch__core {
	fill: var(--brand);
}

.arch__ground {
	fill: var(--arch-ground);
}

/* Hero */
.hero-visual {
	position: relative;
	padding: 0 8%;
}

.hero-visual .arch {
	width: min(100%, 380px);
}

.chips {
	padding: 0;
	list-style: none;
}

.chip {
	position: absolute;
	display: flex;
	align-items: center;
	gap: var(--space-2);
	padding: 10px 14px 10px 10px;
	border-radius: var(--radius-md);
	background: var(--surface-raised);
	color: #16233a;
	box-shadow: var(--shadow-overlay);
	font-size: 14px;
	line-height: 20px;
	font-weight: 600;
	white-space: nowrap;
}

.chip__icon {
	display: inline-grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--brand-tint);
	color: var(--brand);
}

.chip__icon .icon {
	width: 14px;
	height: 14px;
	stroke-width: 2.5;
}

.chip--1 {
	top: 18%;
	left: 0;
}

.chip--2 {
	top: 47%;
	right: 0;
}

.chip--3 {
	bottom: 12%;
	left: 4%;
}

/* Scheduling card */
.sched {
	width: min(100%, 520px);
}

.sched__grid {
	display: grid;
	grid-template-columns: 64px repeat(5, minmax(0, 1fr));
	gap: 6px;
	align-items: center;
}

.sched__day {
	color: #4f5a68;
	text-align: center;
}

.sched__name {
	color: #16233a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sched__shift {
	position: relative;
	display: grid;
	place-items: center;
	height: 44px;
	border-radius: var(--radius-sm);
	background: var(--brand-tint);
	box-shadow: inset 3px 0 0 var(--brand);
	color: #0b4e4a;
}

.sched__shift .data {
	font-size: 13px;
}

.sched__shift--off {
	background: transparent;
	box-shadow: none;
	border: 1px dashed var(--line);
}

.sched__shift--filled {
	box-shadow: inset 3px 0 0 var(--brand), 0 0 0 2px var(--sun);
	align-content: center;
	gap: 0;
}

.sched__shift--filled .badge {
	position: absolute;
	top: -10px;
	right: -6px;
	padding: 1px 6px;
	font-size: 11px;
}

.sched__note {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: var(--space-4);
	color: #4f5a68;
}

.sched__note .icon {
	width: 16px;
	height: 16px;
}

/* Weekly tasks card */
.tasks {
	width: min(100%, 480px);
}

.tasks__list {
	padding: 0;
	list-style: none;
}

.tasks__row {
	display: grid;
	grid-template-columns: 44px 1fr auto;
	align-items: center;
	gap: var(--space-3);
	padding: var(--space-3) 0;
	border-top: 1px solid var(--line);
}

.tasks__day {
	color: #4f5a68;
}

.tasks__done {
	display: inline-grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--brand-tint);
	color: var(--brand);
}

.tasks__done .icon {
	width: 16px;
	height: 16px;
	stroke-width: 2.25;
}

.tasks__row--review .tasks__task {
	font-weight: 600;
}

/* Care types */
.care-grid {
	display: grid;
	gap: var(--space-4);
	margin-top: var(--space-8);
	padding: 0;
	list-style: none;
}

.care-card {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

.care-card p {
	color: #4f5a68;
}

/* How it works */
.steps {
	display: grid;
	gap: var(--space-8);
	margin-top: var(--space-8);
	padding: 0;
	list-style: none;
}

.step p {
	margin-top: var(--space-2);
	color: var(--ink-muted);
	max-width: 30ch;
}

.step__num {
	position: relative;
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	margin-bottom: var(--space-4);
}

.step__num svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-width: 4;
	stroke-linecap: round;
	opacity: 0.85;
}

.step__num .metric {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	margin-left: 0;
	border-radius: 50%;
	background: var(--brand-tint);
	color: var(--navy);
	font-size: 16px;
	line-height: 1;
}

/* Contact */
.contact-list {
	display: grid;
	gap: var(--space-3);
	margin-top: var(--space-8);
	padding: 0;
	list-style: none;
}

.contact-list li {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	font-weight: 600;
}

.contact-list .icon-disc {
	width: 40px;
	height: 40px;
}

.contact-list .icon {
	width: 20px;
	height: 20px;
}

.split--contact .split__visual > .card {
	width: min(100%, 520px);
}

.split--single {
	grid-template-columns: minmax(0, 1fr) !important;
}

.email-card {
	display: grid;
	gap: var(--space-3);
	justify-items: start;
}

.email-card p:not(.heading-3) {
	color: #4f5a68;
}

.form-placeholder {
	border-style: dashed;
	border-color: var(--line-strong);
	background: transparent;
	display: grid;
	gap: var(--space-3);
	justify-items: start;
}

.form-placeholder p:not(.heading-3) {
	color: var(--ink-muted);
}

.slide-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-2) var(--space-6);
	margin-top: var(--space-12);
	padding-top: var(--space-4);
	border-top: 1px solid var(--line);
	color: var(--ink-subtle);
}

.slide-footer a {
	color: var(--ink-muted);
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-4);
	padding: 0;
	list-style: none;
}

/* Form plugins (Contact Form 7, WPForms, Fluent Forms, Gravity Forms, Ninja Forms) */
.amcon-form p,
.amcon-form .wpforms-field,
.amcon-form .gfield,
.amcon-form .ff-el-group {
	margin: 0 0 var(--space-4);
}

.amcon-form label,
.amcon-form .wpforms-field-label,
.amcon-form .gfield_label {
	display: block;
	margin-bottom: 6px;
	color: #16233a;
	font-size: 14px;
	line-height: 20px;
	font-weight: 600;
}

.amcon-form input[type="text"],
.amcon-form input[type="email"],
.amcon-form input[type="tel"],
.amcon-form input[type="url"],
.amcon-form input[type="number"],
.amcon-form input[type="date"],
.amcon-form select,
.amcon-form textarea {
	width: 100%;
	max-width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-md);
	background: var(--surface-raised);
	color: #16233a;
	font: inherit;
	transition: border-color 150ms var(--ease-out);
}

.amcon-form textarea {
	min-height: 120px;
	height: 120px;
	resize: vertical;
}

.amcon-form input:hover,
.amcon-form select:hover,
.amcon-form textarea:hover {
	border-color: #16233a;
}

.amcon-form input:focus-visible,
.amcon-form select:focus-visible,
.amcon-form textarea:focus-visible {
	outline: 2px solid var(--focus);
	outline-offset: 2px;
	border-color: var(--brand);
}

.amcon-form input[type="submit"],
.amcon-form button[type="submit"],
.amcon-form .wpforms-submit,
.amcon-form .gform_button {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 11px 22px;
	border: 0;
	border-radius: var(--radius-md);
	background: var(--brand);
	color: var(--on-brand);
	font: 600 16px/24px var(--font-sans);
	cursor: pointer;
	transition: background-color 150ms var(--ease-out);
}

.amcon-form input[type="submit"]:hover,
.amcon-form button[type="submit"]:hover,
.amcon-form .wpforms-submit:hover,
.amcon-form .gform_button:hover {
	background: var(--brand-strong);
}

.amcon-form .wpcf7-not-valid-tip {
	margin-top: 4px;
	color: var(--danger);
	font-size: 13px;
}

.amcon-form .wpcf7-response-output {
	margin: var(--space-4) 0 0 !important;
	padding: var(--space-3) var(--space-4) !important;
	border-radius: var(--radius-md);
	color: #16233a;
}

.amcon-form .wpcf7 form.sent .wpcf7-response-output {
	border-color: var(--success) !important;
	background: var(--success-tint);
}

.amcon-form .wpcf7 form.invalid .wpcf7-response-output,
.amcon-form .wpcf7 form.failed .wpcf7-response-output {
	border-color: var(--danger) !important;
	background: var(--danger-tint);
}

.amcon-form > :last-child,
.amcon-form form > :last-child {
	margin-bottom: 0;
}

/* ------------------------------------------------------------------
   6. Dot navigation
------------------------------------------------------------------ */
.deck-dots {
	position: fixed;
	right: max(8px, calc(var(--gutter) / 3));
	top: 50%;
	z-index: 60;
	transform: translateY(-50%);
	color: var(--navy);
}

html[data-tone="navy"] .deck-dots {
	color: var(--on-navy);
}

.deck-dots ol {
	display: grid;
	gap: 2px;
	padding: 0;
	list-style: none;
}

.deck-dots a {
	position: relative;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	color: inherit;
}

.deck-dots a::before {
	content: "";
	width: 10px;
	height: 10px;
	border: 2px solid currentColor;
	border-radius: 50%;
	opacity: 0.7;
	transition: transform 200ms var(--ease-out), background-color 200ms var(--ease-out), opacity 200ms var(--ease-out);
}

.deck-dots a:hover::before {
	opacity: 1;
}

.deck-dots a[aria-current="true"]::before {
	background: currentColor;
	opacity: 1;
	transform: scale(1.2);
}

.deck-dots__label {
	position: absolute;
	right: 38px;
	top: 50%;
	padding: 4px 10px;
	border-radius: var(--radius-pill);
	background: #16233a;
	color: #ffffff;
	font-size: 13px;
	line-height: 18px;
	font-weight: 600;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transform: translate(4px, -50%);
	transition: opacity 150ms var(--ease-out), transform 150ms var(--ease-out);
}

html[data-tone="navy"] .deck-dots__label {
	background: var(--surface-raised);
	color: #16233a;
}

.deck-dots a:hover .deck-dots__label,
.deck-dots a:focus-visible .deck-dots__label {
	opacity: 1;
	transform: translate(0, -50%);
}

/* ------------------------------------------------------------------
   7. Larger screens
------------------------------------------------------------------ */
@media (min-width: 600px) {
	.care-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 900px) {
	:root {
		--dots-room: 40px;
	}

	.split {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: clamp(48px, 6vw, 96px);
	}

	.split--flip > .split__visual {
		order: -1;
	}

	.split--hero {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	}

	.steps {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--space-12);
	}

	.slide--contact .slide__inner {
		display: flex;
		flex: 1 0 auto;
		flex-direction: column;
		margin: 0 auto;
	}

	.slide--contact .split {
		margin-block: auto;
	}
}

@media (min-width: 1100px) {
	.care-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: var(--space-6);
	}
}

@media (max-width: 899px) {
	.slide__next,
	.deck-dots__label {
		display: none;
	}

	.deck-dots a {
		width: 24px;
		height: 24px;
	}

	.deck-dots a::before {
		width: 8px;
		height: 8px;
	}

	.slide {
		padding-right: calc(var(--gutter) + 20px);
	}
}

@media (max-width: 599px) {
	:root {
		--header-h: 68px;
	}

	.logo {
		height: 36px;
	}

	.hero-visual {
		padding: 0;
	}

	.hero-visual .arch {
		width: min(78%, 300px);
	}

	.chip {
		padding: 8px 12px 8px 8px;
		font-size: 13px;
	}

	.chip--1 {
		left: -2px;
	}

	.chip--2 {
		right: -2px;
	}

	.sched,
	.tasks,
	.card {
		padding: var(--space-4);
	}

	.sched__grid {
		grid-template-columns: 48px repeat(5, minmax(0, 1fr));
		gap: 4px;
	}

	.sched__shift .data {
		font-size: 11px;
	}
}

/* Short laptop screens: keep every slide inside one screen. */
@media (min-width: 900px) and (max-height: 800px) {
	.slide {
		padding-top: calc(var(--header-h) + var(--space-2));
		padding-bottom: var(--space-6);
	}

	.amcon-form p,
	.amcon-form .wpforms-field,
	.amcon-form .gfield,
	.amcon-form .ff-el-group {
		margin-bottom: var(--space-3);
	}

	.amcon-form textarea {
		min-height: 88px;
		height: 88px;
	}

	.slide-footer {
		margin-top: var(--space-6);
	}
}

/* ------------------------------------------------------------------
   8. Deck mode (added by deck.js on screens 900px+ wide and 560px+ tall)
------------------------------------------------------------------ */
html.is-deck,
html.is-deck body {
	height: 100%;
	overflow: hidden;
	scroll-behavior: auto;
}

.is-deck .site-header {
	background: transparent;
}

.is-deck .deck {
	position: fixed;
	top: var(--admin-bar);
	right: 0;
	bottom: 0;
	left: 0;
	overflow: hidden;
}

.is-deck .deck__track {
	height: 100%;
	transition: transform var(--deck-speed) var(--ease-out);
	will-change: transform;
}

.is-deck.deck-no-anim .deck__track {
	transition: none;
}

.is-deck .slide {
	height: 100%;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	padding-bottom: var(--space-12);
}

/* Quiet reveal for the slide coming in. */
.is-deck .reveal {
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}

.is-deck .slide.is-active .reveal {
	opacity: 1;
	transform: none;
	transition-delay: calc(var(--deck-speed) * 0.45 + var(--d, 0) * 60ms);
}

/* ------------------------------------------------------------------
   9. Inner pages (privacy policy, posts, 404)
------------------------------------------------------------------ */
.inner-page {
	padding: calc(var(--header-h) + var(--space-16)) var(--gutter) var(--space-24);
}

.inner-page__inner {
	max-width: 720px;
	margin: 0 auto;
}

.entry + .entry {
	margin-top: var(--space-16);
}

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

.entry__content {
	margin-top: var(--space-6);
	font-size: 18px;
	line-height: 28px;
}

.entry__content > * + * {
	margin-top: var(--space-4);
}

.entry__content h2 {
	font-family: var(--font-sans);
	font-size: 22px;
	line-height: 30px;
	margin-top: var(--space-12);
}

.entry__content img {
	border-radius: var(--radius-lg);
}

.inner-page .btn {
	margin-top: var(--space-6);
}

.site-footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--space-4);
	padding: var(--space-8) var(--gutter);
	background: var(--navy);
	color: var(--on-navy);
	font-size: 13px;
}

.site-footer a {
	color: var(--on-navy);
}

.alignleft {
	float: left;
	margin: 0 var(--space-6) var(--space-4) 0;
}

.alignright {
	float: right;
	margin: 0 0 var(--space-4) var(--space-6);
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

.wp-caption-text,
.gallery-caption {
	color: var(--ink-subtle);
	font-size: 13px;
}

.sticky,
.bypostauthor {
	outline: 0;
}

/* ------------------------------------------------------------------
   10. Reduced motion
------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
	:root {
		--deck-speed: 0ms;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0ms !important;
		transition-delay: 0ms !important;
	}

	.is-deck .reveal {
		opacity: 1;
		transform: none;
	}
}
