/*
Theme Name: BayPress Child
Theme URI: https://speedbay.com/
Description: First-party child theme for BayPress, the Speed Bay WordPress marketing site. Owns presentation concerns (templates, theme styles, typography, colors, brand CSS).
Author: Speed Bay
Author URI: https://speedbay.com/
Template: hello-elementor
Version: 0.1.0
License: Proprietary
License URI: https://speedbay.com/
Text Domain: baypress-child
*/

@font-face {
	font-display: swap;
	font-family: "Inter";
	font-style: normal;
	font-weight: 300 900;
	src: url("assets/fonts/inter/InterVariable-roman.var.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/*
 * Speed Bay brand tokens derived from SB-BrandGuidelines-2026.
 * These CSS custom properties are the canonical Git-managed brand
 * implementation for BayPress. Elementor Global Colors and Fonts should
 * mirror these values for editor usability rather than redefine the brand.
 */
:root {
	/* Primary palette. */
	--sb-color-slate-blue: #70a6d9;
	--sb-color-indigo: #082442;
	--sb-color-rich-black: #000000;
	--sb-color-white: #ffffff;

	/* Secondary palette. */
	--sb-color-sky: #c3e7fd;
	--sb-color-frost: #eaedf2;
	--sb-color-brass: #c2a469;
	--sb-color-stone: #b3c0cc;
	--sb-color-royal: #2958a1;
	--sb-color-steel: #6a7a8c;

	/* Data/information palette extensions. */
	--sb-color-dark-frost: #d3d7dd;
	--sb-color-gravel: #7f92a3;
	--sb-color-cool-steel: #4e6275;
	--sb-color-moss: #5f8f8a;
	--sb-color-muted-brass: #b3a37a;

	/* Typography. Inter is preferred; Helvetica is the brand fallback. */
	--sb-font-primary: "Inter", Helvetica, Arial, sans-serif;
	--sb-font-weight-light: 300;
	--sb-font-weight-regular: 400;
	--sb-font-weight-bold: 700;
	--sb-font-weight-black: 900;

	/* Base typography scale for Elementor and non-Elementor templates. */
	--sb-text-body-size: 1rem;
	--sb-text-body-line-height: 1.45;
	--sb-text-caption-size: 0.875rem;
	--sb-text-h1-size: clamp(2.75rem, 7vw, 5.5rem);
	--sb-text-h2-size: clamp(1.375rem, 3vw, 2.75rem);
	--sb-text-h3-size: clamp(1.25rem, 2vw, 2rem);

	/* Basic shape and focus tokens used by brand defaults. */
	--sb-radius-pill: 999px;
	--sb-focus-ring: 0 0 0 3px rgb(112 166 217 / 45%);

	/* Approved brand gradients: never use Rich Black or White as gradients. */
	--sb-gradient-indigo: linear-gradient(135deg, var(--sb-color-indigo) 0%, rgb(8 36 66 / 60%) 100%);
	--sb-gradient-slate-blue: linear-gradient(135deg, var(--sb-color-slate-blue) 0%, rgb(112 166 217 / 35%) 100%);
	--sb-gradient-indigo-to-slate: linear-gradient(135deg, var(--sb-color-indigo) 0%, var(--sb-color-indigo) 80%, var(--sb-color-slate-blue) 100%);
}

body {
	background: var(--sb-color-indigo);
	color: var(--sb-color-white);
	display: flex;
	flex-direction: column;
	font-family: var(--sb-font-primary);
	font-size: var(--sb-text-body-size);
	font-weight: var(--sb-font-weight-regular);
	line-height: var(--sb-text-body-line-height);
	min-height: 100dvh;
}

/* The absolute header uses the initial containing block, so html margin-top does not move it. */
body.admin-bar .elementor-location-header > .e-con.e-parent {
	top: var(--wp-admin--admin-bar--height, 0px);
}

/* Theme Builder content wrappers vary, but the footer remains a direct body
   child and can absorb the slack without depending on the content element. */
body > footer {
	margin-top: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--sb-font-primary);
	font-weight: var(--sb-font-weight-bold);
	line-height: 1.05;
	text-transform: none;
}

h1 {
	font-size: var(--sb-text-h1-size);
}

h2 {
	color: var(--sb-color-slate-blue);
	font-size: var(--sb-text-h2-size);
}

h3 {
	font-size: var(--sb-text-h3-size);
}

p,
li {
	font-family: var(--sb-font-primary);
}

small,
figcaption,
.wp-caption-text {
	font-size: var(--sb-text-caption-size);
	font-style: italic;
	font-weight: var(--sb-font-weight-light);
}

a {
	color: var(--sb-color-slate-blue);
}

#breadcrumbs a {
	color: var(--sb-color-sky);
	font-size: 14px;
	font-weight: var(--sb-font-weight-regular);
	/* ponytail: underline kept but muted — link color alone is only 1.3:1 against
	   the white current-page crumb, so WCAG 1.4.1 needs a non-color cue. */
	text-decoration: underline;
	text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
	text-underline-offset: 3px;
}

#breadcrumbs a:hover,
#breadcrumbs a:focus-visible {
	text-decoration-color: currentColor;
}

#breadcrumbs span {
	margin: 0 4px;
}

#breadcrumbs span:first-child {
	margin: 0 4px 0 0;
}

a:hover,
a:focus-visible {
	color: var(--sb-color-sky);
}

:where(a, button, input, textarea, select):focus-visible,
.elementor a:focus-visible {
	box-shadow: var(--sb-focus-ring);
	outline: 2px solid transparent;
	outline-offset: 2px;
}

/* Form controls do not inherit font by default; textarea falls back to monospace. */
input,
textarea,
select {
	font: inherit;
}

button,
input[type="button"],
input[type="submit"],
.wp-block-button__link,
.elementor-button {
	border-radius: var(--sb-radius-pill);
	font-family: var(--sb-font-primary);
	font-weight: var(--sb-font-weight-bold);
	text-transform: none;
}
