@import url("https://fonts.googleapis.com/css2?family=Antic+Slab&family=Open+Sans:ital,wght@0,400;0,600;0,700;1,400&display=swap");

/* ==========================================================================
   Benchmark Pools — brand overlay for SUThemeRiverton
   Recreates the design language of the previous benchmarkpools.com
   (WordPress/Avada 3.7): boxed layout on black, black header, deep-blue
   links, light-blue gradient buttons, Antic Slab headings / Open Sans body.

   Palette and typography go in a BARE :root — variables.css declares these in
   a bare :root too, so this file (served as a later <link>) wins on cascade
   order. Structural rules must be prefixed with html.su_bootstrap_safe to
   match the theme's own (0,2,1) specificity.
   ========================================================================== */

:root {
	/* ── Brand palette (sampled from the previous site) ── */
	--primary-color: #105378;   /* deep blue — links, headings, accents      */
	--secondary-color: #000000; /* footer — old site footer sat on black     */
	--accent-color: #5aabd6;    /* light blue — button gradient base         */

	/* Old-site button gradient ran #90c9e8 (top) → #5aabd6 (bottom)         */
	--bm-btn-top: #90c9e8;
	--bm-btn-bottom: #5aabd6;

	--text-color: #333333;      /* Avada body copy                           */
	--text-secondary: #747474;  /* Avada muted copy                          */
	--bg-light: #f6f6f6;
	--bg-warm: #ebeaea;
	--border-color: #e0dede;

	/* ── Typography ── */
	--font-heading: "Antic Slab", Georgia, "Times New Roman", serif;
	--font-body: "Open Sans", Arial, Helvetica, sans-serif;
	--font-ui: "Antic Slab", Arial, Helvetica, sans-serif;

	/* Old site ran noticeably tighter type than Riverton's 17px default.
	   15px splits the difference; raise to 1rem if it reads too small. */
	--text-md: 0.9375rem;
	--text-base: 0.9375rem;

	/* Boxed content column — Avada's site_width was 1280px */
	--container-max: 1240px;
	--bm-box-width: 1280px;
	--bm-box-half: 640px; /* half of --bm-box-width; used to clamp full-bleed */
}

/* ==========================================================================
   Boxed layout — white content column centred on a black field.
   body is display:flex/column, so header, main and footer are flex children;
   max-width caps them and auto side margins centre them.
   ========================================================================== */

html.su_bootstrap_safe body {
	background: #000000;
}

html.su_bootstrap_safe .site-header,
html.su_bootstrap_safe .site-content,
html.su_bootstrap_safe .site-footer {
	width: 100%;
	max-width: var(--bm-box-width);
	margin-left: auto;
	margin-right: auto;
}

html.su_bootstrap_safe .site-content {
	background: #ffffff;
}

/* ==========================================================================
   Header — solid black, no light border/shadow bleeding onto the black field
   ========================================================================== */

/* Solid black, with the white rules that bracketed the old site's menu.
   Riverton's own border-light rule and drop shadow are replaced outright. */
html.su_bootstrap_safe .site-header,
html.su_bootstrap_safe .site-header.site-header--dark {
	background: #000000;
	border-top: 1px solid #ffffff;
	border-bottom: 1px solid #ffffff;
	box-shadow: none;
}

/* ── Contact bar above the menu (phone + email, right aligned) ── */

html.su_bootstrap_safe .bm-topbar {
	width: 100%;
	max-width: var(--bm-box-width);
	margin-left: auto;
	margin-right: auto;
	background: #000000;
	font-family: var(--font-body);
	font-size: var(--text-xs);
	line-height: 1;
}

html.su_bootstrap_safe .bm-topbar__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
	gap: .5em;
	padding: .75em 0;
	color: #68aefc;
}

html.su_bootstrap_safe .bm-topbar__sep {
	color: rgba(255, 255, 255, .45);
}

html.su_bootstrap_safe .bm-topbar__email {
	color: #68aefc;
	text-decoration: none;
}

html.su_bootstrap_safe .bm-topbar__email:hover {
	color: #ffffff;
	text-decoration: underline;
}

/* Logo — Riverton caps it at 48px in a 68px bar, which renders this wordmark
   only ~143px wide. The source has black matting baked in (2169x725, ratio
   ~3:1), so the bar has to grow with it. It must stay INSIDE the bar: the
   white rules above and below are on .site-header, and an overflowing logo
   would cross them. */
html.su_bootstrap_safe .site-header {
	--nav-height: 104px;
	height: 104px;
}

html.su_bootstrap_safe .site-header__logo-img {
	max-height: 88px;
	width: auto;
}

/* Nav in Antic Slab, matching the old header treatment */
html.su_bootstrap_safe .site-header .site-nav__link {
	font-family: var(--font-ui);
	letter-spacing: .01em;
}

html.su_bootstrap_safe .site-header.site-header--dark .site-nav__link:hover,
html.su_bootstrap_safe .site-header.site-header--dark .site-nav__item.is-active > .site-nav__link {
	color: var(--accent-color);
}

/* ==========================================================================
   Typography
   ========================================================================== */

html.su_bootstrap_safe h1,
html.su_bootstrap_safe h2,
html.su_bootstrap_safe h3,
html.su_bootstrap_safe h4,
html.su_bootstrap_safe h5,
html.su_bootstrap_safe h6 {
	font-family: var(--font-heading);
	color: var(--primary-color);
	font-weight: 400;
}

html.su_bootstrap_safe a {
	color: var(--primary-color);
}

html.su_bootstrap_safe a:hover {
	color: var(--accent-color);
}

/* ==========================================================================
   Buttons — the old site's signature light-blue gradient with a deep-blue
   bottom edge and inset highlight.
   ========================================================================== */

html.su_bootstrap_safe .su__button,
html.su_bootstrap_safe .button,
html.su_bootstrap_safe button[type="submit"],
html.su_bootstrap_safe input[type="submit"] {
	background: linear-gradient(to top, var(--bm-btn-bottom), var(--bm-btn-top));
	border: 0;
	border-radius: var(--radius-sm);
	color: #ffffff;
	font-family: var(--font-body);
	font-weight: 600;
	text-shadow: 0 1px 1px rgba(0, 0, 0, .25);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .55),
		0 2px 0 var(--primary-color),
		0 4px 6px rgba(0, 0, 0, .25);
}

html.su_bootstrap_safe .su__button:hover,
html.su_bootstrap_safe .button:hover,
html.su_bootstrap_safe button[type="submit"]:hover,
html.su_bootstrap_safe input[type="submit"]:hover {
	background: linear-gradient(to top, var(--bm-btn-top), var(--bm-btn-top));
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .55),
		0 1px 0 var(--primary-color),
		0 2px 4px rgba(0, 0, 0, .25);
}

/* ==========================================================================
   Footer — black to match the boxed field, white copy, light-blue links
   ========================================================================== */

html.su_bootstrap_safe .site-footer {
	background: #000000;
	color: #ffffff;
}

html.su_bootstrap_safe .site-footer__heading {
	font-family: var(--font-heading);
	color: #ffffff;
}

html.su_bootstrap_safe .site-footer a {
	color: #ffffff;
}

html.su_bootstrap_safe .site-footer a:hover {
	color: var(--accent-color);
}

html.su_bootstrap_safe .site-footer__bar {
	background: #000000;
	border-top: 1px solid rgba(255, 255, 255, .15);
}

/* ==========================================================================
   Full-width column blocks — Riverton bleeds these to the *viewport* edge with
   calc(-50vw + 50%), which escapes the boxed column and breaks the frame.
   Clamp the bleed to half the box width so a full-width band still spans edge
   to edge, but of the box rather than the window. Below the box width
   min() falls back to 50vw and the original behaviour is preserved.
   ========================================================================== */

html.su_bootstrap_safe .columns[data-columns-fw="1"] {
	margin-left: calc(50% - min(50vw, var(--bm-box-half)));
	margin-right: calc(50% - min(50vw, var(--bm-box-half)));
	padding-left: calc(min(50vw, var(--bm-box-half)) - 50%);
	padding-right: calc(min(50vw, var(--bm-box-half)) - 50%);
}

html.su_bootstrap_safe .columns[data-columns-fw="1"][data-columns-bg] {
	padding: var(--spacing-3xl) calc(min(50vw, var(--bm-box-half)) - 50%);
}

/* ==========================================================================
   INTERIOR PAGE HEADINGS — Riverton gives every .prose heading a 3rem top
   margin, which on the FIRST element stacks on top of .content-layout's
   4.5rem padding and opens ~120px of dead space under the menu.
   ========================================================================== */

html.su_bootstrap_safe .prose > :first-child {
	margin-top: 0;
}

html.su_bootstrap_safe .content-layout {
	padding-top: var(--spacing-xl);
	padding-bottom: var(--spacing-2xl);
}

/* Models page: the blog grid sits in a section whose background is white on a
   white page, so its 4.5rem top padding is invisible padding on top of the
   intro paragraph's own margin. Pull it in. */
html.su_bootstrap_safe body.layout-open .prose > .block[data-type="blog"] .blog-section {
	padding-top: var(--spacing-lg);
}

/* ==========================================================================
   HOME PAGE — full-black content area, slideshow flush under the menu, and
   the image row tight beneath it with no card chrome, so the photos sit
   directly on black. Scoped to body.layout-home so interior pages keep
   Riverton's white content column and normal prose rhythm.
   ========================================================================== */

html.su_bootstrap_safe body.layout-home .site-content {
	background: #000000;
}

/* Let the container span the full boxed width, then put the gutter back on
   .prose. NB: layout-home is not just the home page — Portfolio uses it too,
   and zeroing the gutter outright pushed its headings to the very edge. Only
   the gallery pulls back out to the box edge. */
html.su_bootstrap_safe body.layout-home .site-content > .su-container {
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}

html.su_bootstrap_safe body.layout-home .site-content > .su-container > .prose {
	padding-left: var(--spacing-lg);
	padding-right: var(--spacing-lg);
}

html.su_bootstrap_safe body.layout-home .prose > .block[data-type="gallery"] {
	margin-left: calc(-1 * var(--spacing-lg));
	margin-right: calc(-1 * var(--spacing-lg));
}

/* layout-home has no .content-layout padding, so the first-child margin reset
   leaves a heading jammed against the menu rule. The home page wants that
   (the slideshow sits flush); Portfolio, which shares the layout, does not —
   so give the space back to anything that isn't the gallery. */
html.su_bootstrap_safe body.layout-home .prose > :first-child:not([data-type="gallery"]) {
	margin-top: var(--spacing-xl);
}

/* NB: the eight <p>&nbsp;</p> spacers the editor had left between these
   blocks were removed from the page content itself, not hidden here. A
   display:none rule on .prose p would also swallow any real copy added to
   the home page later, so it deliberately isn't used. */

/* Strip card chrome from the gallery block. Vertical margin only — the
   horizontal negative margins above are what bleed it to the box edge. */
html.su_bootstrap_safe body.layout-home .prose > .block[data-type="gallery"] {
	margin-top: 0;
	margin-bottom: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

/* Same for the iframe wrapper — but NOT its padding: padding-bottom is the
   aspect-ratio box that gives the slideshow its height. Zeroing it collapses
   the iframe to nothing. */
html.su_bootstrap_safe body.layout-home .gallery--slideshow--iframe {
	margin: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

/* The shared rule reserves a 4:3 box (75% + 52px for the thumb strip), but
   every photo in this gallery is 3:2 (~1.50). object-fit:contain then
   letterboxes ~60px above and below the image, which reads as a gap under
   the menu. Reserve the real ratio instead. */
html.su_bootstrap_safe body.layout-home .gallery--slideshow--iframe.with-thumbnails {
	padding-bottom: calc(66.6% + 52px);
}

/* Image row: black band, flush to the slideshow, no vertical padding.
   Horizontal padding stays — the full-bleed math above depends on it. */
html.su_bootstrap_safe body.layout-home .columns[data-columns-bg="primary"],
html.su_bootstrap_safe body.layout-home .columns[data-columns-fw="1"][data-columns-bg] {
	background: #000000;
	padding-top: 0;
	padding-bottom: 0;
	margin-top: 0;
	margin-bottom: 0;
}

/* Kill the translucent "stats card" behind each image so they blend in */
html.su_bootstrap_safe body.layout-home .columns[data-columns-stats="1"] .columns__column,
html.su_bootstrap_safe body.layout-home .columns[data-columns-stats="1"][data-columns-bg="primary"] .columns__column {
	background: transparent;
	border-radius: 0;
	padding: 0;
}

/* Figures carry a 3rem stack margin and rounded corners — both read as gaps
   and seams against black */
html.su_bootstrap_safe body.layout-home .prose figure {
	margin: 0;
	line-height: 0;
}

html.su_bootstrap_safe body.layout-home .prose figure img {
	border-radius: 0;
	display: block;
}

/* Collapse everything wrapping an image inside a column. The badge images
   already carry their own black matting, so any margin or padding here just
   opens a visible gap in the band. !important because several .block and
   .prose figure rules land at comparable specificity from different files. */
html.su_bootstrap_safe body.layout-home .columns__column,
html.su_bootstrap_safe body.layout-home .columns__column > .block,
html.su_bootstrap_safe body.layout-home .columns__column figure {
	margin: 0 !important;
	padding: 0 !important;
	line-height: 0;
}

html.su_bootstrap_safe body.layout-home .columns__column img {
	display: block;
	width: 100%;
}

/* Trailing editable region adds an empty box under the fold */
html.su_bootstrap_safe body.layout-home .below-content {
	margin: 0;
	padding: 0;
}

html.su_bootstrap_safe body.layout-home .below-content:empty {
	display: none;
}

/* ==========================================================================
   Mobile — drop the boxed treatment below the box width so the black field
   doesn't eat screen width on phones.
   ========================================================================== */

@media (max-width: 1280px) {
	html.su_bootstrap_safe body {
		background: #ffffff;
	}
}
