/* styles.css — the theme: one design system every module's pages inherit. The whole look
   lives in the custom properties at the top; a tenant re-skins the site by overriding this
   file (or just the tokens) and every page follows.

   The direction: deep ocean ink, warm paper, one coral flare. Editorial display type
   (Fraunces, self-hosted) over full-bleed photography; facts and figures in mono. */

/* Type ----------------------------------------------------------------------- */

@font-face {
	font-family: "Fraunces";
	src: url(/consumer/fonts/fraunces-latin.woff2?v=1786797477) format("woff2");
	font-weight: 300 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Fraunces";
	src: url(/consumer/fonts/fraunces-italic-latin.woff2?v=1786797477) format("woff2");
	font-weight: 300 900;
	font-style: italic;
	font-display: swap;
}

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

:root {
	--ink: #0C2231;          /* deep ocean ink — the dark canvas */
	--ink-deep: #071820;     /* the hero's floor */
	--ink-soft: #14374A;     /* raised surfaces on dark */
	--paper: #FAF6EF;        /* warm paper — the light bands */
	--card: #FFFFFF;
	--line: #E6DFD2;         /* warm hairline on light */
	--line-dark: rgba(250, 246, 239, 0.14);
	--text: #182B33;
	--muted: #5C6E74;
	--muted-dark: rgba(250, 246, 239, 0.66);

	--flood: #FF6D3B;        /* the one flare: coral — CTAs, the dot, focus */
	--flood-ink: #C2451D;    /* coral legible on paper */
	--aqua: #3FC6B7;         /* cool counterpoint — eyebrows and links on dark */

	--radius: 16px;
	--radius-sm: 10px;
	--wrap: 76rem;

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

	--shadow: 0 1px 2px rgba(12, 34, 49, 0.05), 0 12px 32px rgba(12, 34, 49, 0.08);
	--shadow-lift: 0 2px 4px rgba(12, 34, 49, 0.06), 0 18px 44px rgba(12, 34, 49, 0.14);
	--glow: 0 0 0 4px rgba(255, 109, 59, 0.22);

	/* The old names, kept alive: module pages written against them keep working. */
	--court: var(--ink-soft);
	--court-deep: var(--ink-deep);
	--chalk: var(--paper);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--text);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
	margin: 0 0 0.5em;
	font-family: var(--display);
	font-weight: 560;
	line-height: 1.02;
	letter-spacing: -0.01em;
	font-variation-settings: "opsz" 72, "SOFT" 0, "WONK" 0;
}
h1 { font-size: clamp(3rem, 7.5vw, 6rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1.1em; }
a { color: inherit; }

/* The dot: the theme's mark — a business's name finished with the flare. */
.dot { color: var(--flood); }

/* The italic swerve for the one word a headline leans on. */
.tilt { font-style: italic; font-weight: 480; color: var(--aqua); }

::selection { background: rgba(255, 109, 59, 0.25); }

:focus-visible { outline: none; box-shadow: var(--glow); border-radius: 6px; }

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

.eyebrow {
	margin: 0 0 1.2rem;
	font: 600 0.72rem/1 var(--mono);
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--flood-ink);
}
.eyebrow--bright { color: var(--aqua); text-shadow: 0 1px 2px rgba(7, 24, 32, 0.55); }

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

.topbar {
	position: sticky;
	top: 0;
	z-index: 10;
	background: rgba(7, 24, 32, 0.82);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	color: var(--paper);
	border-bottom: 1px solid var(--line-dark);
}

.topbar-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
	justify-content: space-between;
	padding-block: 1.05rem;
}

.brand {
	margin: 0;
	font-family: var(--display);
	font-size: 1.35rem;
	font-weight: 620;
	letter-spacing: -0.01em;
	text-decoration: none;
}
.brand::after { content: "."; color: var(--flood); }

.nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.2rem); font-size: 0.95rem; }
.nav a { color: var(--muted-dark); text-decoration: none; transition: color 0.2s ease; }
.nav a:hover { color: var(--paper); }

.nav .nav-cta {
	padding: 0.55rem 1.25rem;
	border-radius: 10px;
	background: linear-gradient(135deg, #FF7E4F, var(--flood) 55%, #F2532B);
	color: #FFF7F1;
	font-weight: 600;
	box-shadow: 0 6px 18px rgba(255, 109, 59, 0.35);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nav .nav-cta:hover { transform: translateY(-1px); color: #FFF7F1; box-shadow: 0 10px 24px rgba(255, 109, 59, 0.45); }

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

.hero {
	position: relative;
	overflow: hidden;
	background: var(--ink-deep);
	color: var(--paper);
	padding-top: clamp(4.5rem, 11vw, 9rem);
}

.hero::before {
	content: "";
	position: absolute;
	inset: -4%;
	background-image:
		linear-gradient(rgba(7, 24, 32, 0.12), rgba(7, 24, 32, 0.28)),
		url(/consumer/img/hero.webp?v=1786797477);
	background-size: cover, cover, cover;
	background-position: center, center, center right;
	background-repeat: no-repeat;
}

.hero > * { position: relative; }

.hero-inner { max-width: 46rem; padding-bottom: clamp(3rem, 7vw, 5.5rem); text-shadow: 0 1px 3px rgba(7, 24, 32, 0.5), 0 8px 40px rgba(7, 24, 32, 0.55); }
.hero .lead {
	font-family: var(--display);
	font-style: italic;
	font-weight: 420;
	font-size: clamp(1.35rem, 2.4vw, 1.9rem);
	line-height: 1.3;
	color: rgba(250, 246, 239, 0.94);
}
.hero-intro { color: rgba(250, 246, 239, 0.92); max-width: 34rem; }

.hero--slim { padding-bottom: clamp(2.2rem, 5vw, 3.8rem); }
.hero--slim h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.hero--slim .hero-inner { padding-bottom: 0; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.85rem; margin-top: 2rem; }

.rail {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(1.5rem, 5vw, 4.5rem);
	margin: 0;
	padding-block: 1.4rem 1.8rem;
	border-top: 1px solid var(--line-dark);
}
.rail dt {
	font: 500 0.68rem/1 var(--mono);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--aqua);
}
.rail dd { margin: 0.55rem 0 0; font: 500 1.15rem/1 var(--mono); }

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

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.85rem 1.7rem;
	border: 0;
	border-radius: 12px;
	font: 600 0.98rem/1.2 var(--font);
	text-decoration: none;
	cursor: pointer;
	background: var(--ink);
	color: var(--paper);
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.button:active { transform: translateY(0); }
.button[disabled] { opacity: 0.55; cursor: default; transform: none; box-shadow: none; }

.button--flood {
	background: linear-gradient(135deg, #FF7E4F, var(--flood) 55%, #F2532B);
	color: #FFF7F1;
	box-shadow: 0 8px 24px rgba(255, 109, 59, 0.35);
}
.button--flood:hover { box-shadow: 0 12px 32px rgba(255, 109, 59, 0.45); }

.button--ghost {
	background: transparent;
	color: var(--paper);
	box-shadow: inset 0 0 0 1.5px rgba(250, 246, 239, 0.35);
}
.button--ghost:hover { background: rgba(250, 246, 239, 0.08); box-shadow: inset 0 0 0 1.5px rgba(250, 246, 239, 0.55); }

.button--ghost-danger {
	background: transparent;
	color: #B4311B;
	box-shadow: inset 0 0 0 1.5px #E8BCB1;
}
.button--ghost-danger:hover { background: #FBF1EE; box-shadow: inset 0 0 0 1.5px #D98A77; }

/* Bands ------------------------------------------------------------------------ */

.band { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.band + .band { border-top: 1px solid var(--line); }
.band + .band.band--cta { border-top: 0; }

.band--cta {
	background:
		radial-gradient(60rem 30rem at 80% -20%, rgba(63, 198, 183, 0.14), transparent 60%),
		var(--ink);
	color: var(--paper);
	text-align: center;
}
.cta { max-width: 40rem; }
.cta p { color: var(--muted-dark); }
.band--cta .actions { justify-content: center; }

/* Cards ------------------------------------------------------------------------ */

.cards {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
	margin-top: clamp(2rem, 4vw, 3rem);
}

.card {
	padding: 2rem;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}
.card p { margin: 0; color: var(--muted); }
.card-icon { display: block; width: 2.1rem; height: 2.1rem; margin-bottom: 1.2rem; color: var(--flood-ink); }

/* Split, visit, hours ----------------------------------------------------------- */

.split {
	display: grid;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
	grid-template-columns: 1fr 1.05fr;
}
.split--top { align-items: start; }
.split p { color: var(--muted); }
.split-image { width: 100%; height: auto; border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow-lift); }

.visit {
	display: grid;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: start;
	grid-template-columns: 1fr minmax(17rem, 22rem);
}
.address { margin: 0 0 0.4rem; font-size: 1.05rem; }

.hours {
	padding: 1.7rem 1.9rem;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}
.hours h3 { margin-bottom: 1rem; }

.hours dl {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.55rem 1.5rem;
	margin: 0;
	font-family: var(--mono);
	font-size: 0.95rem;
}
.hours dt { color: var(--muted); }
.hours dd { margin: 0; text-align: right; }

/* Forms — the controls every page shares ---------------------------------------- */

.form { display: grid; gap: 0.4rem; align-content: start; }
.form label { font-weight: 600; font-size: 0.92rem; margin-top: 1rem; }

.form input,
.form textarea,
.form select {
	width: 100%;
	padding: 0.8rem 1rem;
	border: 1.5px solid var(--line);
	border-radius: var(--radius-sm);
	font: inherit;
	color: inherit;
	background: var(--card);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form input::placeholder, .form textarea::placeholder { color: #A9B4B7; }
.form input:hover, .form textarea:hover, .form select:hover { border-color: #CFC6B4; }
.form input:focus-visible, .form textarea:focus-visible, .form select:focus-visible {
	border-color: var(--flood);
	box-shadow: var(--glow);
	outline: none;
}

.form button[type="submit"] {
	justify-self: start;
	margin-top: 1.5rem;
	padding: 0.85rem 1.7rem;
	border: 0;
	border-radius: 12px;
	background: linear-gradient(135deg, #FF7E4F, var(--flood) 55%, #F2532B);
	color: #FFF7F1;
	font: 600 0.98rem/1.2 var(--font);
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(255, 109, 59, 0.35);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.form button[type="submit"]:hover { transform: translateY(-1px); box-shadow: 0 12px 32px rgba(255, 109, 59, 0.45); }
.form button[type="submit"][disabled] { opacity: 0.55; transform: none; cursor: default; }

/* A field with a control living inside it — the password eye. */
.field-affix { position: relative; }
.field-affix input { padding-right: 3rem; }
.field-affix .affix {
	position: absolute;
	right: 0.6rem;
	top: 50%;
	transform: translateY(-50%);
	display: inline-flex;
	padding: 0.4rem;
	border: 0;
	border-radius: 8px;
	background: none;
	color: var(--muted);
	cursor: pointer;
}
.field-affix .affix:hover { color: var(--text); background: var(--paper); }
.field-affix .affix svg { width: 1.15rem; height: 1.15rem; }

.status { min-height: 1.6em; margin: 0.9rem 0 0; color: var(--muted); font-size: 0.95rem; }
.status.error { color: #B4311B; }

/* The date field (widgets.js) ---------------------------------------------------- */

.datefield {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.7rem 1.2rem;
	border: 1.5px solid var(--line);
	border-radius: 12px;
	background: var(--card);
	font: 600 1rem/1.2 var(--font);
	color: var(--text);
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.datefield:hover { border-color: #CFC6B4; box-shadow: var(--shadow); }
.datefield svg { width: 1.1rem; height: 1.1rem; color: var(--flood-ink); }
.datefield-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.datepop {
	position: absolute;
	z-index: 20;
	margin-top: 0.5rem;
	padding: 1rem;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-lift);
	animation: pop 0.16s ease;
}

.datepop-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.7rem;
}

.datepop-nav {
	width: 2.1rem;
	height: 2.1rem;
	border: 0;
	border-radius: 50%;
	background: var(--paper);
	font-size: 1.05rem;
	cursor: pointer;
}
.datepop-nav:hover { background: var(--line); }

.datepop-grid {
	display: grid;
	grid-template-columns: repeat(7, 2.3rem);
	gap: 2px;
	justify-items: stretch;
}

.datepop-dow {
	font: 600 0.68rem/2 var(--mono);
	text-transform: uppercase;
	text-align: center;
	color: var(--muted);
}

.datepop-day {
	height: 2.3rem;
	border: 0;
	border-radius: 50%;
	background: none;
	font: 500 0.92rem/1 var(--font);
	color: var(--text);
	cursor: pointer;
}
.datepop-day:hover { background: var(--paper); }
.datepop-day.is-today { box-shadow: inset 0 0 0 1.5px var(--line); }
.datepop-day.is-selected { background: var(--flood); color: #FFF7F1; font-weight: 700; }
.datepop-day:disabled { color: #C9CFD0; cursor: default; background: none; }

@keyframes pop {
	from { opacity: 0; transform: translateY(-4px); }
}

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

.foot { background: var(--ink-deep); color: var(--muted-dark); }
.foot .brand { color: var(--paper); }
.foot-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
	justify-content: space-between;
	padding-block: 2.6rem;
}

/* Narrow ------------------------------------------------------------------------ */

@media (max-width: 60rem) {
	.split, .visit { grid-template-columns: 1fr; }
	.hours dd { text-align: left; }
}

/* Motion ------------------------------------------------------------------------ */

@media (prefers-reduced-motion: no-preference) {
	.hero::before { animation: drift 24s ease-in-out infinite alternate; }

	.hero-inner > *, .rail { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
	.hero-inner > *:nth-child(1) { animation-delay: 0.05s; }
	.hero-inner > *:nth-child(2) { animation-delay: 0.12s; }
	.hero-inner > *:nth-child(3) { animation-delay: 0.19s; }
	.hero-inner > *:nth-child(4) { animation-delay: 0.26s; }
	.hero-inner > *:nth-child(5) { animation-delay: 0.33s; }
	.rail { animation-delay: 0.42s; }

	.card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
	.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
}

@keyframes rise {
	from { opacity: 0; transform: translateY(18px); }
}

@keyframes drift {
	from { transform: scale(1) translateX(0); }
	to { transform: scale(1.06) translateX(-1.5%); }
}
