/* =========================================================
   Blue Industries — Main Stylesheet
   ========================================================= */

:root {
	--navy: #0a2540;
	--navy-2: #0d2c4e;
	--blue: #0d5bd6;
	--blue-dark: #0b47a8;
	--steel: #3a5a80;
	--accent: #ff6a1a;      /* molten steel orange */
	--accent-dark: #e85a0c;
	--ink: #142433;
	--body: #46586b;
	--muted: #f4f7fb;
	--muted-2: #eaf0f7;
	--line: #dbe3ee;
	--white: #ffffff;
	--radius: 14px;
	--radius-sm: 9px;
	--shadow: 0 18px 40px -18px rgba(10, 37, 64, 0.35);
	--shadow-sm: 0 8px 22px -12px rgba(10, 37, 64, 0.28);
	--container: 1180px;
	--ff-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--ff-head: "Poppins", var(--ff-body);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--ff-body);
	color: var(--body);
	background: var(--white);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { font-family: var(--ff-head); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 820px; }

.screen-reader-text {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px);
	width: 1px; height: 1px; overflow: hidden;
}
.skip-link { position: absolute; left: -999px; top: 0; z-index: 1000; background: var(--accent); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 12px; top: 12px; color:#fff; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	font-family: var(--ff-head); font-weight: 600; font-size: .95rem;
	padding: 12px 24px; border-radius: 999px; border: 2px solid transparent;
	cursor: pointer; transition: all .22s ease; line-height: 1; text-align: center;
}
.btn--lg { padding: 15px 30px; font-size: 1rem; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); color: #fff; transform: translateY(-2px); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(255,106,26,.7); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: #fff; color: var(--navy); border-color:#fff; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #cfe0f5; font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; flex-wrap: wrap; }
.topbar__item { color: #cfe0f5; }
.topbar__item:hover { color: #fff; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100; background: #fff;
	box-shadow: 0 2px 14px rgba(10,37,64,.06); transition: box-shadow .25s ease;
}
.site-header.is-stuck { box-shadow: 0 8px 24px -10px rgba(10,37,64,.28); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 22px; }
.site-brand a, .brand-text { display: flex; align-items: center; gap: 12px; }
.brand-mark {
	display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
	background: linear-gradient(135deg, var(--blue), var(--navy)); color: #fff;
	font-family: var(--ff-head); font-weight: 800; font-size: 1.05rem; letter-spacing: .5px;
}
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name strong { font-family: var(--ff-head); font-size: 1.2rem; color: var(--ink); font-weight: 800; }
.brand-name small { font-size: .72rem; color: var(--steel); letter-spacing: .3px; }

.main-navigation { display: flex; align-items: center; gap: 26px; }
.nav-menu { list-style: none; display: flex; align-items: center; gap: 24px; }
.nav-menu a { color: var(--ink); font-family: var(--ff-head); font-weight: 500; font-size: .96rem; position: relative; padding: 6px 0; }
.nav-menu a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--accent); transition: width .25s ease; }
.nav-menu a:hover, .nav-menu .current-menu-item > a { color: var(--blue); }
.nav-menu a:hover::after, .nav-menu .current-menu-item > a::after { width: 100%; }
.nav-cta { color:#fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 3px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section--muted { background: var(--muted); }
.eyebrow {
	display: inline-block; font-family: var(--ff-head); font-weight: 700; font-size: .78rem;
	letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.eyebrow--light { color: #ffd0b0; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.35rem); }
.section-intro { max-width: 640px; color: var(--body); font-size: 1.05rem; }
.section-head { margin-bottom: 44px; }
.section-head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head--center .section-intro { margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; }
.hero::before {
	content: ""; position: absolute; inset: 0;
	background: var(--hero-img) center/cover no-repeat;
	transform: scale(1.02);
}
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(8,26,46,.94) 0%, rgba(10,37,64,.82) 45%, rgba(13,91,214,.45) 100%); }
.hero__inner { position: relative; padding: 96px 22px 120px; }
.hero__content { max-width: 680px; }
.hero__title { color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; margin-bottom: 18px; }
.hero__text { font-size: 1.12rem; color: #dbe7f5; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__pillars { position: relative; z-index: 2; margin-top: -60px; }
.hero__pillars-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.pillar { padding: 26px 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.pillar:last-child { border-right: 0; }
.pillar strong { font-family: var(--ff-head); color: var(--navy); font-size: 1.1rem; }
.pillar span { font-size: .9rem; color: var(--body); }

/* ---------- Stats ---------- */
.stats-section { padding: 56px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat { padding: 12px; }
.stat__num { display: block; font-family: var(--ff-head); font-weight: 800; font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: var(--blue); }
.stat__label { color: var(--body); font-size: .95rem; }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.split + .split { margin-top: 70px; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.split__badge {
	position: absolute; bottom: -22px; left: -22px; background: var(--accent); color: #fff;
	padding: 16px 22px; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
	display: flex; flex-direction: column;
}
.split__badge strong { font-family: var(--ff-head); font-size: 1.1rem; }
.split__badge span { font-size: .82rem; opacity: .95; }

.check-list { list-style: none; display: grid; gap: 12px; margin: 6px 0 26px; }
.check-list li { position: relative; padding-left: 32px; color: var(--ink); }
.check-list li::before {
	content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px;
	background: rgba(13,91,214,.12); color: var(--blue); border-radius: 50%;
	display: grid; place-items: center; font-size: .8rem; font-weight: 700;
}

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease;
	display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 1.2rem; }
.card__text { font-size: .95rem; flex: 1; }
.card__link { font-family: var(--ff-head); font-weight: 600; font-size: .9rem; margin-top: 6px; }

.mini-card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	padding: 34px 28px; box-shadow: var(--shadow-sm); transition: transform .25s ease;
}
.mini-card:hover { transform: translateY(-5px); }
.mini-card__icon {
	width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center;
	font-size: 1.6rem; background: linear-gradient(135deg, rgba(13,91,214,.12), rgba(255,106,26,.12)); margin-bottom: 18px;
}
.mini-card h3 { font-size: 1.2rem; }
.mini-card p { font-size: .95rem; margin: 0; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.steps--compact { grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 20px; }
.step { position: relative; padding: 28px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.step__num { font-family: var(--ff-head); font-weight: 800; font-size: 1.5rem; color: var(--accent); display: block; margin-bottom: 10px; }
.step h3 { font-size: 1.1rem; }
.step p { font-size: .92rem; margin: 0; }
.steps--compact .step { padding: 18px; }
.steps--compact .step__num { font-size: 1.2rem; }
.steps--compact h3 { font-size: 1rem; }
.steps--compact p { font-size: .85rem; }

/* ---------- Dark section (why us) ---------- */
.section--dark { position: relative; color: #fff; overflow: hidden; }
.section--dark::before { content: ""; position: absolute; inset: 0; background: var(--hero-img) center/cover no-repeat fixed; }
.section--dark__overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(8,26,46,.96), rgba(10,37,64,.9)); }
.section--dark .container { position: relative; z-index: 2; }
.section--dark .section-title, .section--dark h3 { color: #fff; }
.why-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 54px; align-items: center; }
.why-intro p { color: #cfe0f5; }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.why-item { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 22px; }
.why-item h3 { font-size: 1.1rem; margin-bottom: 6px; }
.why-item p { color: #cfe0f5; font-size: .92rem; margin: 0; }

/* ---------- Page hero ---------- */
.page-hero { position: relative; color: #fff; padding: 84px 0 66px; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-img) center/cover no-repeat; }
.page-hero__overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(8,26,46,.94), rgba(10,37,64,.78)); }
.page-hero--plain { background: linear-gradient(120deg, var(--navy), var(--navy-2)); }
.page-hero__inner { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-hero p { color: #dbe7f5; max-width: 620px; margin: 0; }
.crumbs { font-size: .85rem; color: #b9cbe2; margin-bottom: 14px; }
.crumbs a { color: #dbe7f5; }
.crumbs span { margin: 0 6px; opacity: .6; }

/* ---------- Product rows ---------- */
.product-row { padding: 40px 0; }
.product-row + .product-row { border-top: 1px solid var(--line); }
.product-row__title { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 24px; }
.tag-list li { background: var(--muted-2); color: var(--steel); font-size: .82rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--blue), var(--blue-dark)); color: #fff; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 52px 0; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 6px; }
.cta-band p { color: #dce8ff; margin: 0; }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: start; }
.contact-card { display: flex; gap: 16px; align-items: center; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 18px; background:#fff; }
.contact-card__icon { width: 52px; height: 52px; flex: 0 0 52px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, rgba(13,91,214,.14), rgba(255,106,26,.14)); font-size: 1.4rem; }
.contact-card h3 { font-size: 1rem; margin: 0 0 3px; }
.contact-card__value { font-size: 1.05rem; color: var(--ink); font-weight: 600; }
a.contact-card__value:hover { color: var(--blue); }
.contact-email-btn { margin-top: 10px; }

.contact-info__note { font-size: .93rem; color: var(--body); margin-top: 8px; }
.contact-form-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px; }
.contact-form-panel h3 { font-size: 1.35rem; margin-bottom: 18px; }
.contact-form { display: grid; gap: 16px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row--half { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row--honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-row label { font-family: var(--ff-head); font-weight: 600; font-size: .88rem; color: var(--ink); }
.form-row .required { color: var(--accent); }
.form-row input, .form-row textarea, .form-row select {
	width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
	font-family: var(--ff-body); font-size: .95rem; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(13,91,214,.12); }
.form-notice { padding: 14px 16px; border-radius: var(--radius-sm); font-size: .93rem; margin-bottom: 18px; }
.form-notice--success { background: #e8f7ee; color: #1a6b3c; border: 1px solid #b8e6c8; }
.form-notice--error { background: #fdeeee; color: #9b2c2c; border: 1px solid #f5c6c6; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b9cbe2; padding-top: 62px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 36px; padding-bottom: 44px; }
.brand-text--footer .brand-name strong { color: #fff; }
.footer-about { font-size: .92rem; margin-top: 16px; }
.footer-widget__title { color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.footer-links, .footer-contact { list-style: none; display: grid; gap: 10px; }
.footer-links a, .footer-contact a { color: #b9cbe2; font-size: .93rem; }
.footer-links li, .footer-contact li { font-size: .93rem; }
.footer-links a:hover, .footer-contact a:hover { color: var(--accent); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.site-footer__bar { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; }
.site-footer__bar-inner { text-align: center; }
.site-footer__bar p { margin: 0; font-size: .85rem; color: #8fa6c2; }

/* ---------- Back to top ---------- */
.to-top {
	position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%;
	border: 0; background: var(--accent); color: #fff; font-size: 1.2rem; cursor: pointer;
	box-shadow: var(--shadow-sm); opacity: 0; visibility: hidden; transform: translateY(10px);
	transition: all .25s ease; z-index: 90;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--accent-dark); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Entry content (generic pages) ---------- */
.entry-content h2 { margin-top: 1.6em; }
.entry-content img { border-radius: var(--radius); margin: 1.2em 0; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
	.hero__pillars-grid { grid-template-columns: repeat(2, 1fr); }
	.pillar:nth-child(2) { border-right: 0; }
	.pillar:nth-child(1), .pillar:nth-child(2) { border-bottom: 1px solid var(--line); }
	.card-grid, .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
	.steps { grid-template-columns: repeat(2, 1fr); }
	.why-grid { grid-template-columns: 1fr; gap: 34px; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
	.section { padding: 60px 0; }
	.nav-toggle { display: flex; }
	.main-navigation {
		position: fixed; inset: 0 0 0 auto; width: min(320px, 82vw); background: #fff;
		flex-direction: column; align-items: flex-start; gap: 8px; padding: 90px 26px 26px;
		box-shadow: -12px 0 30px -12px rgba(10,37,64,.35); transform: translateX(100%);
		transition: transform .3s ease; z-index: 120;
	}
	.main-navigation.is-open { transform: translateX(0); }
	.nav-menu { flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; }
	.nav-menu li { width: 100%; }
	.nav-menu a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); width: 100%; }
	.nav-menu a::after { display: none; }
	.nav-cta { margin-top: 14px; width: 100%; }
	.nav-toggle { position: relative; z-index: 130; }
	body.nav-open { overflow: hidden; }
	.nav-backdrop { position: fixed; inset: 0; background: rgba(10,37,64,.45); z-index: 110; opacity: 0; visibility: hidden; transition: opacity .3s; }
	.nav-backdrop.is-open { opacity: 1; visibility: visible; }

	.split { grid-template-columns: 1fr; gap: 30px; }
	.split--reverse .split__media { order: 0; }
	.split__badge { left: 16px; bottom: -18px; }
	.stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
	.contact-wrap { grid-template-columns: 1fr; gap: 30px; }
	.why-list { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
	.hero__pillars-grid { grid-template-columns: 1fr; }
	.pillar { border-right: 0; border-bottom: 1px solid var(--line); }
	.pillar:last-child { border-bottom: 0; }
	.card-grid, .card-grid--3, .steps, .steps--compact { grid-template-columns: 1fr; }
	.site-footer__grid { grid-template-columns: 1fr; }
	.cta-band__inner { flex-direction: column; align-items: flex-start; }
	.topbar__inner { justify-content: center; font-size: .78rem; }
	.contact-form-panel { padding: 22px; }
	.form-row--half { grid-template-columns: 1fr; }
}
