/*
Theme Name: Aubree One
Theme URI: https://aubreeone.app
Author: Aubree One
Description: The Aubree One website: a one-page home with every feature, Aubree Rota, who it's for, about and contact. Words and features live in the theme's data folder as JSON. Contact details are under Appearance → Customize → Aubree One.
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: aubree-one
*/

:root {
	--teal: #0e7c7b;
	--teal-dark: #0a5655;
	--teal-deep: #073f3e;
	--teal-soft: #e3f2f1;
	--beige: #e9d8be;
	--cream: #fbf7f0;
	--ink: #1b2a29;
	--muted: #5a6b69;
	--line: #e3e7e5;
	--white: #fff;
	--amber: #9a5b00;
	--amber-soft: #fff1d9;
	--radius: 16px;
	--shadow: 0 1px 2px rgba(16, 40, 39, .06), 0 8px 24px rgba(16, 40, 39, .08);
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font: 17px/1.6 var(--font);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--teal); margin-bottom: .75em; }
.icon { width: 24px; height: 24px; flex: none; }

.screen-reader-text,
.trap { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--white); padding: 8px 12px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* Buttons and badges */
.button {
	display: inline-flex; align-items: center; gap: 8px;
	background: var(--teal); color: var(--white);
	border: 2px solid var(--teal); border-radius: 999px;
	padding: 12px 24px; font: 600 1rem/1.2 var(--font);
	text-decoration: none; cursor: pointer;
	transition: background .15s, border-color .15s, transform .15s;
}
.button:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: var(--white); transform: translateY(-1px); }
.button .icon { width: 18px; height: 18px; }
.button-small { padding: 8px 16px; font-size: .95rem; }
.button-ghost { background: transparent; color: var(--teal-dark); }
.button-ghost:hover { background: var(--teal-soft); color: var(--teal-dark); }
.button-light { background: var(--white); color: var(--teal-deep); border-color: var(--white); }
.button-light:hover { background: var(--beige); border-color: var(--beige); color: var(--teal-deep); }

.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.badge-live { background: var(--teal-soft); color: var(--teal-dark); }
.badge-soon { background: var(--amber-soft); color: var(--amber); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-logo { width: 40px; height: 40px; border-radius: 12px; }
.brand-name { font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a:not(.button) { color: var(--ink); text-decoration: none; font-weight: 500; }
.site-nav a:not(.button):hover { color: var(--teal); }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; content: ""; }
.menu-bars::before { position: absolute; top: -7px; }
.menu-bars::after { position: absolute; top: 7px; }

@media (max-width: 820px) {
	.menu-toggle { display: block; }
	.site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 20px 20px; box-shadow: var(--shadow); }
	.site-nav.is-open { display: flex; }
	.site-nav a:not(.button) { padding: 12px 0; border-bottom: 1px solid var(--line); }
	.site-nav .button { margin-top: 16px; justify-content: center; }
}

/* Hero */
.hero { background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%); padding: 64px 0 40px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { color: var(--teal-deep); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 16px; }
.hero-count { color: var(--muted); }
.hero-count strong { color: var(--teal-dark); }
.hero-art { position: relative; display: flex; justify-content: center; padding: 20px 0 40px; }
.device {
	width: 290px; background: var(--white); border-radius: 32px; padding: 20px;
	box-shadow: 0 30px 60px rgba(7, 63, 62, .22); border: 8px solid var(--teal-deep);
	transform: rotate(-3deg);
}
.device-top { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--muted); font-size: .9rem; }
.device-top img { border-radius: 8px; }
.device-net { font-size: 2.1rem; font-weight: 800; color: var(--teal-deep); margin: 10px 0 0; letter-spacing: -.02em; }
.device-vs { color: #1a7f37; font-size: .85rem; font-weight: 600; }
.device-bars { display: flex; align-items: flex-end; gap: 6px; height: 70px; margin: 8px 0 14px; }
.device-bars i { flex: 1; background: var(--teal); border-radius: 4px 4px 0 0; opacity: .85; }
.device-list { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.device-list li { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line); }
.hero-avatar { position: absolute; width: 130px; right: 4%; top: 0; border-radius: 50%; box-shadow: var(--shadow); border: 6px solid var(--white); transform: rotate(6deg); }

.highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.highlight { display: flex; gap: 12px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.highlight .icon { color: var(--teal); margin-top: 2px; }
.highlight strong, .highlight span { display: block; }
.highlight span { color: var(--muted); font-size: .95rem; }

@media (max-width: 900px) {
	.hero { padding-top: 40px; }
	.hero-inner { grid-template-columns: 1fr; gap: 16px; }
	.highlights { grid-template-columns: 1fr; }
	.hero-avatar { width: 84px; right: 0; top: 4px; }
}

/* Sections */
.section { padding: 88px 0; }
.section-soft { background: var(--cream); }
.section-head { max-width: 720px; margin-bottom: 32px; }
@media (max-width: 700px) { .section { padding: 64px 0; } }

/* Features */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { font: 600 .95rem/1 var(--font); padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; }
.chip:hover { border-color: var(--teal); }
.chip.is-active { background: var(--teal-deep); border-color: var(--teal-deep); color: var(--white); }
.feature-group { margin-bottom: 44px; }
.feature-group[hidden] { display: none; }
.group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 16px; }
.group-head h3 { margin: 0; font-size: 1.4rem; }
.group-head p { margin: 0; }
.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.feature[hidden] { display: none; }
.feature-card {
	width: 100%; height: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer;
	display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; gap: 6px 14px;
	background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
	transition: border-color .15s, box-shadow .15s, transform .15s;
}
.feature-card:hover { border-color: var(--teal); box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-card .badge { grid-column: 2; justify-self: start; }
.feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--teal-soft); color: var(--teal-dark); grid-row: span 2; }
.is-soon .feature-icon { background: var(--amber-soft); color: var(--amber); }
.is-rota .feature-card { border-color: var(--teal); background: linear-gradient(180deg, var(--teal-soft), var(--white)); }
.feature-title { display: block; font-weight: 700; font-size: 1.05rem; }
.feature-summary { display: block; color: var(--muted); font-size: .95rem; line-height: 1.45; margin-top: 2px; }
.feature-detail:not([hidden]) { padding: 16px 18px 4px; }

/* On a phone, features are compact tiles two to a row; the card has the rest. */
@media (max-width: 600px) {
	.feature-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
	.feature-card { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; gap: 8px; padding: 14px; }
	.feature-card .feature-icon { grid-row: auto; width: 38px; height: 38px; }
	.feature-card .badge { grid-column: 1; }
	.feature-summary { display: none; }
	.feature-title { font-size: .98rem; line-height: 1.3; }
	.group-head h3 { font-size: 1.2rem; }
}

/* Feature card dialog */
.feature-dialog { border: 0; padding: 0; border-radius: 20px; width: min(520px, calc(100% - 32px)); box-shadow: 0 30px 80px rgba(7, 63, 62, .35); color: var(--ink); }
.feature-dialog::backdrop { background: rgba(7, 40, 39, .55); backdrop-filter: blur(2px); }
.dialog-body { padding: 28px; }
.dialog-close { position: absolute; top: 12px; right: 12px; background: var(--cream); border: 0; border-radius: 50%; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.dialog-close:hover { background: var(--beige); }
.detail-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; padding-right: 40px; }
.detail-head .feature-icon { grid-row: auto; }
.detail-head h4 { font-size: 1.4rem; margin: 6px 0 0; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; }
.ticks .icon { color: var(--teal); width: 20px; height: 20px; margin-top: 3px; }

/* Rota */
.section-rota { background: radial-gradient(circle at 85% 0%, #136b69 0%, var(--teal-deep) 55%); color: var(--white); }
.section-rota .eyebrow { color: var(--beige); }
.section-rota h2 { color: var(--white); }
.section-rota .lead { color: rgba(255, 255, 255, .85); }
.rota-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; margin-bottom: 48px; }
.rota-head .button { margin-top: 8px; }
.rota-steps { list-style: none; margin: 0; padding: 24px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius); counter-reset: none; }
.rota-steps li { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; }
.step-number { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--beige); color: var(--teal-deep); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.rota-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rota-grid li { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 22px; }
.rota-grid h3 { color: var(--white); font-size: 1.1rem; }
.rota-grid p { color: rgba(255, 255, 255, .8); margin: 0; }
@media (max-width: 900px) {
	.rota-head { grid-template-columns: 1fr; gap: 24px; }
	.rota-grid { grid-template-columns: 1fr; }
}
@media (min-width: 901px) and (max-width: 1060px) { .rota-grid { grid-template-columns: repeat(2, 1fr); } }

/* Who it's for */
.offer-grid { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.offer { background: var(--cream); border-radius: var(--radius); padding: 22px; }
.offer .feature-icon { margin-bottom: 12px; background: var(--white); }
.offer h3 { font-size: 1.1rem; }
.offer p { color: var(--muted); margin: 0; font-size: .95rem; }
.service-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-list li { display: flex; gap: 12px; align-items: flex-start; }
.service-list .icon { color: var(--teal); margin-top: 3px; }
.service-list strong, .service-list span { display: block; }
.service-list span { color: var(--muted); font-size: .95rem; }
@media (max-width: 800px) { .service-list { grid-template-columns: 1fr; } }

/* About */
.about { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: center; }
.about-avatar { border-radius: 50%; border: 8px solid var(--white); box-shadow: var(--shadow); }
.about p { max-width: 680px; }
@media (max-width: 700px) {
	.about { grid-template-columns: 1fr; gap: 24px; }
	.about-avatar { width: 160px; }
}

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; margin: 24px 0 0; padding: 0; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; }
.contact-list .icon { color: var(--teal); }
.contact-form { background: var(--cream); border-radius: 20px; padding: 28px; display: grid; gap: 14px; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.contact-form input,
.contact-form textarea { font: 400 1rem/1.4 var(--font); padding: 12px 14px; border: 1px solid #cfd8d6; border-radius: 10px; background: var(--white); color: var(--ink); width: 100%; }
.contact-form input:focus,
.contact-form textarea:focus { outline: 3px solid var(--teal-soft); border-color: var(--teal); }
.contact-form .button { justify-self: start; }
.notice { padding: 12px 14px; border-radius: 10px; margin: 0; font-weight: 600; }
.notice-ok { background: var(--teal-soft); color: var(--teal-dark); }
.notice-error { background: #fde8e8; color: #9b1c1c; }
@media (max-width: 800px) { .contact { grid-template-columns: 1fr; gap: 24px; } }

/* Other pages */
.page-content { padding: 64px 20px; max-width: 760px; }

/* Footer */
.site-footer { background: var(--teal-deep); color: rgba(255, 255, 255, .85); padding: 48px 0 24px; }
.site-footer a { color: var(--white); }
.site-footer .muted { color: rgba(255, 255, 255, .7); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.footer-brand { font-weight: 800; font-size: 1.2rem; color: var(--white); margin-bottom: 4px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
