/*
Theme Name: Beyond Blue Media — Cryo Industrial Solutions
Theme URI: https://www.cryoindsolutions.com/
Author: Beyond Blue Media
Description: Custom classic theme for Cryogenic Industrial Solutions. A modern, frosty industrial design system — deep navy structure with ice-blue and cyan accents, frosted-glass header and cards, built for clear, easy navigation across the company's equipment, leasing, and service offerings.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bbm-cryo-3
*/

/* ============================================================
   1. CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
	/* Brand colors */
	--color-primary:    #0B3D6B; /* deep navy blue */
	--color-secondary:  #1B6CA8; /* mid steel blue */
	--color-accent:     #5FC9E6; /* frosty cyan */
	--color-accent-deep:#2BA7CC; /* deeper cyan for contrast */
	--color-ice:        #EAF4FA; /* ice background */
	--color-ice-deep:   #D4E8F4; /* deeper ice */
	--color-ink:        #13212E; /* near-black text */
	--color-muted:      #5A6B79; /* muted slate text */
	--color-bg:         #FFFFFF;
	--color-line:       #DCE7EF; /* hairline borders */

	/* Glass */
	--glass-bg:         rgba(255, 255, 255, 0.72);
	--glass-dark-bg:    rgba(11, 61, 107, 0.55);
	--glass-border:     rgba(255, 255, 255, 0.55);

	/* Typography */
	--font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

	/* Layout */
	--content-width: 1180px;
	--content-narrow: 760px;
	--gutter: clamp(1rem, 4vw, 2.5rem);
	--header-h: 84px;
	--radius: 16px;
	--radius-sm: 10px;
	--shadow-sm: 0 2px 10px rgba(11, 61, 107, 0.06);
	--shadow-md: 0 14px 40px rgba(11, 61, 107, 0.12);
	--shadow-lg: 0 24px 60px rgba(11, 61, 107, 0.18);

	/* Frost gradient */
	--ice-gradient: linear-gradient(160deg, #F4FBFE 0%, #EAF4FA 45%, #DCEDF7 100%);
	--navy-gradient: linear-gradient(155deg, #0B3D6B 0%, #0E4C84 60%, #1B6CA8 100%);
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }

body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--color-ink);
	background: var(--color-bg);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-secondary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--color-accent-deep); }

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	color: var(--color-primary);
	line-height: 1.12;
	margin: 0 0 .5em;
	font-weight: 700;
	letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }
h4 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; }

/* ============================================================
   4. EYEBROW TEXT
   ============================================================ */
.eyebrow {
	font-family: var(--font-heading);
	font-size: .82rem;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--color-accent-deep);
	margin: 0 0 .9rem;
	display: block;
}
.eyebrow-light { color: var(--color-accent); }
.eyebrow-dark  { color: var(--color-primary); }
.is-style-eyebrow {
	font-family: var(--font-heading);
	font-size: .82rem;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--color-accent-deep);
}

/* ============================================================
   5. GLASS / BACKDROP BLUR
   ============================================================ */
.glass-card {
	background: var(--glass-bg);
	backdrop-filter: blur(16px) saturate(140%);
	-webkit-backdrop-filter: blur(16px) saturate(140%);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-md);
}
.glass-dark {
	background: var(--glass-dark-bg);
	backdrop-filter: blur(14px) saturate(140%);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	border: 1px solid rgba(95, 201, 230, 0.25);
	border-radius: var(--radius);
}

/* ============================================================
   6. BUTTONS
   ============================================================ */
.wp-block-button__link,
.wp-block-button .wp-element-button {
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: .98rem;
	letter-spacing: .01em;
	padding: .85em 1.9em;
	border-radius: 999px;
	background: var(--color-secondary);
	color: #fff;
	border: 2px solid transparent;
	transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
	box-shadow: 0 6px 18px rgba(27, 108, 168, 0.28);
	display: inline-block;
}
.wp-block-button__link:hover,
.wp-block-button .wp-element-button:hover {
	background: var(--color-primary);
	transform: translateY(-2px);
	box-shadow: 0 10px 26px rgba(11, 61, 107, 0.32);
	color: #fff;
}

/* Primary (cyan) variant */
.is-style-primary .wp-block-button__link,
.wp-block-button.is-style-primary .wp-element-button {
	background: var(--color-accent-deep);
	box-shadow: 0 6px 18px rgba(43, 167, 204, 0.35);
}
.is-style-primary .wp-block-button__link:hover,
.wp-block-button.is-style-primary .wp-element-button:hover {
	background: var(--color-accent); color: var(--color-primary);
}

/* Outline variant */
.is-style-outline .wp-block-button__link,
.wp-block-button.is-style-outline .wp-element-button {
	background: transparent;
	color: var(--color-primary);
	border: 2px solid var(--color-secondary);
	box-shadow: none;
}
.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-element-button:hover {
	background: var(--color-secondary); color: #fff;
}
/* Outline on dark backgrounds */
.on-dark .is-style-outline .wp-block-button__link,
.on-dark .wp-block-button.is-style-outline .wp-element-button {
	color: #fff; border-color: var(--color-accent);
}
.on-dark .is-style-outline .wp-block-button__link:hover {
	background: var(--color-accent); color: var(--color-primary);
}

/* ============================================================
   7. LAYOUT HELPERS
   ============================================================ */
.section-padding { padding-top: clamp(3.5rem, 7vw, 6rem); padding-bottom: clamp(3.5rem, 7vw, 6rem); }

/* Gutter / content width cap for classic themes */
.entry-content > * {
	max-width: var(--content-width);
	margin-left: auto; margin-right: auto;
	padding-left: var(--gutter); padding-right: var(--gutter);
}
.entry-content > .alignfull,
.entry-content > .wp-block-cover.alignfull,
.entry-content > .wp-block-columns.alignfull {
	max-width: none; width: 100%; padding-left: 0; padding-right: 0;
}
.entry-content > .wp-block-group.alignfull > * {
	max-width: var(--content-width);
	margin-left: auto; margin-right: auto;
	padding-left: var(--gutter); padding-right: var(--gutter);
}
.wp-block-cover .wp-block-cover__inner-container {
	max-width: var(--content-width); margin: 0 auto; padding: 0 var(--gutter);
}

.maxw-narrow { max-width: var(--content-narrow) !important; margin-left: auto !important; margin-right: auto !important; }

/* ============================================================
   8. SITE HEADER
   ============================================================ */
.site-header {
	position: sticky; top: 0; z-index: 1000;
	height: var(--header-h);
	background: rgba(255, 255, 255, 0.88);
	backdrop-filter: blur(22px) saturate(160%);
	-webkit-backdrop-filter: blur(22px) saturate(160%);
	border-bottom: 1px solid var(--glass-border);
	box-shadow: var(--shadow-sm);
}
.site-header__inner {
	max-width: var(--content-width);
	margin: 0 auto;
	height: 100%;
	padding: 0 var(--gutter);
	display: flex; align-items: center; justify-content: space-between;
	gap: 1.5rem;
}
.site-branding { display: flex; align-items: center; flex-shrink: 0; }
.site-branding .custom-logo { max-height: 50px; width: auto; }
.site-title {
	font-family: var(--font-heading);
	font-weight: 800; font-size: 1.15rem;
	color: var(--color-primary); letter-spacing: -0.01em; line-height: 1.1;
	margin: 0; white-space: nowrap;
}
.site-title a { color: inherit; }
.site-title .accent { color: var(--color-accent-deep); }

.main-navigation { display: flex; align-items: center; gap: 1.75rem; flex-shrink: 0; }
.site-nav ul {
	list-style: none; display: flex; flex-wrap: nowrap;
	gap: 1.6rem; margin: 0; padding: 0; align-items: center;
}
.site-nav li { flex: 0 0 auto; }
.site-nav a {
	font-family: var(--font-heading);
	font-weight: 600; font-size: .95rem;
	color: var(--color-primary);
	padding: .4rem 0; position: relative;
	white-space: nowrap; display: inline-block;
}
.site-nav a::after {
	content: ""; position: absolute; left: 0; bottom: -2px;
	width: 0; height: 2px; background: var(--color-accent-deep); transition: width .22s ease;
}
.site-nav a:hover::after, .site-nav .current-menu-item > a::after { width: 100%; }

.menu-toggle {
	display: none;
	background: transparent; border: 0; cursor: pointer;
	width: 44px; height: 44px; padding: 8px;
}
.menu-toggle span[aria-hidden] { display: block; width: 24px; height: 2px; background: var(--color-primary); margin: 5px auto; border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   9. SITE FOOTER
   ============================================================ */
.site-footer {
	background: var(--navy-gradient);
	color: rgba(255,255,255,.85);
	padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem;
}
.site-footer__inner {
	max-width: var(--content-width); margin: 0 auto; padding: 0 var(--gutter);
	display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem;
}
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 1rem; }
.site-footer a { color: rgba(255,255,255,.82); }
.site-footer a:hover { color: var(--color-accent); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .55rem; }
.footer-brand p { max-width: 32ch; color: rgba(255,255,255,.72); font-size: .95rem; }
.footer-logo { font-family: var(--font-heading); font-weight: 800; font-size: 1.3rem; color:#fff; margin-bottom: .9rem; }
.footer-logo .accent { color: var(--color-accent); }
.footer-locations span { display:block; font-size:.92rem; color: rgba(255,255,255,.72); }
.footer-locations strong { color:#fff; display:block; margin-top:.6rem; }
.site-footer__bottom {
	max-width: var(--content-width); margin: 2.5rem auto 0; padding: 1.5rem var(--gutter) 0;
	border-top: 1px solid rgba(255,255,255,.15);
	display:flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
	font-size: .85rem; color: rgba(255,255,255,.6);
}

/* ============================================================
   10. WORDPRESS BLOCK OVERRIDES
   ============================================================ */
.wp-block-image.is-style-rounded img,
.is-style-rounded img { border-radius: var(--radius); }
.wp-block-image img { border-radius: var(--radius-sm); }

.entry-content > .wp-block-group.alignfull { margin-top: 0; margin-bottom: 0; }

/* Color helper bands */
.bg-ice { background: var(--ice-gradient); }
.bg-navy { background: var(--navy-gradient); color: #fff; }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: #fff; }
.bg-navy p { color: rgba(255,255,255,.85); }
.bg-white { background: #fff; }

/* ============================================================
   11. PATTERN SECTIONS
   ============================================================ */

/* Pattern: page-hero */
.page-hero { position: relative; }
.page-hero.wp-block-cover { min-height: 380px; }
.page-hero .wp-block-cover__inner-container { text-align: center; }
.page-hero h1 { color: #fff; margin-bottom: .4rem; }
.page-hero .eyebrow { color: var(--color-accent); }
.page-hero .breadcrumb { color: rgba(255,255,255,.85); font-size: .9rem; margin-top: 1rem; }
.page-hero .breadcrumb a { color: rgba(255,255,255,.85); }
.page-hero .breadcrumb a:hover { color: var(--color-accent); }

/* Pattern: home-hero */
.home-hero.wp-block-cover { min-height: 88vh; }
.home-hero .wp-block-cover__inner-container { max-width: 880px; }
.home-hero .eyebrow { color: var(--color-accent); }
.home-hero h1 { color: #fff; font-size: clamp(2.8rem, 6vw, 4.6rem); margin-bottom: .5rem; }
.home-hero p.lead { color: rgba(255,255,255,.92); font-size: clamp(1.1rem, 1.8vw, 1.35rem); max-width: 56ch; margin: 0 auto 1.8rem; }

/* Pattern: home-intro / media rows */
.media-row .wp-block-column { display: flex; flex-direction: column; justify-content: center; }
.media-row img { border-radius: var(--radius); box-shadow: var(--shadow-md); }
.media-row h2 { margin-bottom: .6rem; }

/* Pattern: capabilities-grid (feature cards) */
.feature-card {
	background: #fff;
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
	padding: 2rem 1.7rem;
	box-shadow: var(--shadow-sm);
	transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
	height: 100%;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--color-accent); }
.feature-card h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.feature-card p { color: var(--color-muted); font-size: .97rem; }
.feature-card .card-tag { font-family: var(--font-heading); font-weight: 700; font-size: .78rem; letter-spacing:.12em; text-transform:uppercase; color: var(--color-accent-deep); }

/* Pattern: mission-band */
.mission-band { text-align: center; }
.mission-band .eyebrow { color: var(--color-accent); }
.mission-band h2 { color: #fff; max-width: 20ch; margin: 0 auto; }

/* Pattern: memberships-strip */
.memberships-strip { text-align: center; }
.memberships-logos { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: 1.5rem; }
.memberships-logos .wp-block-image { margin: 0; }
.memberships-logos img { filter: grayscale(1); opacity:.65; transition: filter .25s ease, opacity .25s ease; max-height: 60px; width:auto; }
.memberships-logos img:hover { filter: grayscale(0); opacity:1; }

/* Pattern: news-cards */
.news-card { background:#fff; border:1px solid var(--color-line); border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow-sm); height:100%; transition: transform .22s ease, box-shadow .22s ease; }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.news-card .news-body { padding: 1.5rem 1.5rem 1.8rem; }
.news-card h3 { font-size: 1.15rem; }
.news-card .news-date { font-size:.82rem; color: var(--color-accent-deep); font-weight:600; text-transform:uppercase; letter-spacing:.08em; }

/* Outline buttons sitting on a dark cover/hero */
.wp-block-cover .is-style-outline .wp-block-button__link,
.wp-block-cover .wp-block-button.is-style-outline .wp-element-button {
	color: #fff; border-color: var(--color-accent); background: transparent;
}
.wp-block-cover .is-style-outline .wp-block-button__link:hover,
.wp-block-cover .wp-block-button.is-style-outline .wp-element-button:hover {
	background: var(--color-accent); color: var(--color-primary);
}
.wp-block-cover .eyebrow { color: var(--color-accent); }

/* Pattern: cta-band */
.cta-band { text-align:center; }
.cta-band--primary { background: var(--navy-gradient); color:#fff; border-radius: var(--radius); padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem); }
.cta-band h2 { color:#fff; }
.cta-band p { color: rgba(255,255,255,.88); max-width: 52ch; margin-left:auto; margin-right:auto; }

/* Pattern: leasing-subnav */
.leasing-subnav { position: sticky; top: var(--header-h); z-index: 500; background: var(--glass-bg); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--glass-border); border-top: 1px solid var(--glass-border); }
.leasing-subnav .wp-block-buttons { justify-content: center; gap: .75rem; }
.leasing-subnav .wp-block-button__link {
	background: transparent; color: var(--color-primary);
	border: 1.5px solid var(--color-line); box-shadow: none;
	padding: .55em 1.5em; font-size: .95rem;
}
.leasing-subnav .wp-block-button__link:hover { background: var(--color-secondary); color:#fff; border-color: var(--color-secondary); transform: none; }

/* Pattern: leasing-gallery-section */
.leasing-section { scroll-margin-top: calc(var(--header-h) + 70px); }
.leasing-section .lead-col h2 { margin-bottom:.5rem; }
.leasing-section .wp-block-gallery { margin-top: .5rem; }
.leasing-section .wp-block-gallery img { border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }

/* Pattern: contact-info */
.contact-card { background:#fff; border:1px solid var(--color-line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); height:100%; }
.contact-card h3 { font-size:1.2rem; }
.contact-card a { font-weight:600; }
.form-placeholder {
	background: var(--color-ice); border: 2px dashed var(--color-ice-deep);
	border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.5rem);
	text-align:center; color: var(--color-muted);
}

/* Pattern: locations-grid */
.location-card { background:#fff; border:1px solid var(--color-line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); height:100%; transition: transform .2s ease, box-shadow .2s ease; }
.location-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.location-card h3 { font-size:1.15rem; margin-bottom:.4rem; }
.location-card .loc-addr { color: var(--color-muted); font-size:.95rem; }

/* ============================================================
   12. RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
	.site-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
	.menu-toggle { display: block; }
	.main-navigation { gap: 0; }
	.site-nav {
		position: fixed; top: var(--header-h); left: 0; right: 0;
		height: calc(100vh - var(--header-h));
		height: calc(100dvh - var(--header-h));
		background: rgba(255, 255, 255, 0.96);
		backdrop-filter: blur(28px) saturate(160%);
		-webkit-backdrop-filter: blur(28px) saturate(160%);
		box-shadow: var(--shadow-lg);
		overflow-y: auto; -webkit-overflow-scrolling: touch;
		transform: translateX(100%); transition: transform .28s ease;
		padding: 1.5rem var(--gutter) 3rem;
	}
	.site-nav.is-open { transform: translateX(0); }
	.site-nav ul { flex-direction: column; align-items: flex-start; gap: 0; }
	.site-nav li { width: 100%; border-bottom: 1px solid var(--color-line); }
	.site-nav a { display: block; padding: 1rem 0; font-size: 1.1rem; width: 100%; }
	.site-nav a::after { display: none; }
}
@media (max-width: 680px) {
	.site-footer__inner { grid-template-columns: 1fr; }
	.home-hero.wp-block-cover { min-height: 80vh; }
}

/* ============================================================
   13. UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.muted { color: var(--color-muted); }
.lead { font-size: 1.15rem; }
.screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.skip-link { position:absolute; left:-9999px; top:0; background:#fff; color:var(--color-primary); padding:.75rem 1rem; z-index:2000; }
.skip-link:focus { left:1rem; top:1rem; }
