/* ==========================================================================
   Cardan Precision Engineering — single stylesheet
   ========================================================================== */

:root {
	--red: #ed1c26;
	--dark: #2b2829;
	--darker: #262424;
	--heading: #1e1c1c;
	--text: #333333;
	--faded: #999999;
	--bg-alt: #f6f7f9;
	--overlay: rgba(43, 40, 41, 0.65);
	--font-body: 'Open Sans', Arial, sans-serif;
	--font-heading: 'Figtree', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.75;
	color: var(--text);
	background: #fff;
	overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	color: var(--heading);
	line-height: 1.2;
	margin: 0 0 1rem;
	font-weight: 700;
}
h1 { font-size: 3rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.5rem; }

p { margin: 0 0 1.2em; }

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 25px;
}

.icon {
	width: 1em;
	height: 1em;
	display: inline-block;
	vertical-align: -0.125em;
	fill: currentColor;
}

/* Headings with a short red underline */
.headerline {
	position: relative;
	padding-bottom: 18px;
	margin-bottom: 1.5rem;
}
.headerline::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 240px;
	max-width: 60%;
	height: 2px;
	background: var(--red);
}
.centerline { text-align: center; }
.centerline::after { left: 50%; transform: translateX(-50%); }

/* Buttons */
.btn {
	display: inline-block;
	background: var(--red);
	color: #fff;
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 14px 30px;
	border: 0;
	border-radius: 50px;
	cursor: pointer;
	transition: background 0.2s, transform 0.2s;
}
.btn:hover {
	background: #c8121b;
	color: #fff;
	text-decoration: none;
}
.btn .icon {
	font-size: 0.8em;
	margin-left: 8px;
	transition: transform 0.2s;
}
.btn:hover .icon { transform: translateX(4px); }

/* ==========================================================================
   Top strip
   ========================================================================== */
.top-strip {
	background: var(--darker);
	color: rgba(255, 255, 255, 0.66);
	font-size: 0.8rem;
	position: relative;
	z-index: 60;
}
.top-strip-h {
	display: flex;
	justify-content: flex-end;
	gap: 28px;
	padding-top: 8px;
	padding-bottom: 8px;
}
.top-strip a, .top-strip span { color: rgba(255, 255, 255, 0.85); }
.top-strip .icon { color: var(--red); margin-right: 7px; }
.top-strip a:hover { color: #fff; text-decoration: none; }

/* ==========================================================================
   Header + desktop nav
   ========================================================================== */
.site-header {
	background: var(--dark);
	position: sticky;
	top: 0;
	z-index: 50;
}
.header-h {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding-top: 18px;
	padding-bottom: 18px;
}
.header-logo img { display: block; width: 300px; height: auto; }

.main-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 8px;
}
.main-nav a {
	display: block;
	color: #fff;
	font-size: 0.9rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 10px 16px;
	position: relative;
}
/* underline mouse-over effect */
.main-nav a::after {
	content: "";
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 5px;
	height: 2px;
	background: #fff;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s ease;
}
.main-nav a:hover { text-decoration: none; }
.main-nav a:hover::after { transform: scaleX(1); }
.main-nav .current a {
	background: var(--red);
	border-radius: 3px;
}
.main-nav .current a::after { display: none; }

/* Transparent header + tinted top strip over the home hero */
.header-transparent {
	background: transparent;
}
.header-transparent.scrolled { background: var(--dark); }
.page-home .top-strip { background: rgba(0, 0, 0, 0.2); }
/* pull the hero up behind the strip + header */
.page-home main { margin-top: -128px; }

/* Burger */
.nav-toggle {
	display: none;
	background: none;
	border: 0;
	padding: 8px;
	cursor: pointer;
}
.nav-toggle span {
	display: block;
	width: 26px;
	height: 3px;
	background: #fff;
	margin: 5px 0;
	border-radius: 2px;
}

/* ==========================================================================
   Mobile menu overlay
   ========================================================================== */
.mobile-menu {
	position: fixed;
	inset: 0;
	background: var(--dark);
	z-index: 100;
	overflow-y: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu-close {
	position: absolute;
	top: 18px;
	right: 18px;
	background: none;
	border: 0;
	color: #9b9b9b;
	font-size: 30px;
	cursor: pointer;
	padding: 8px;
}
.mobile-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
	width: min(85vw, 480px);
}
.mobile-menu li a {
	display: block;
	color: #fff;
	font-size: 1.5rem;
	padding: 14px 10px;
}
.mobile-menu li a:hover { text-decoration: none; opacity: 0.85; }
.mobile-menu li.current a { background: #d8383d; }
.mobile-menu-logo a { padding: 30px 10px 20px !important; }
.mobile-menu-logo img { width: 250px; height: auto; }
.mobile-menu hr {
	border: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	margin: 24px auto;
	width: min(85vw, 480px);
}
.mobile-menu-phone {
	color: #fff;
	font-size: 1.35rem;
}
.mobile-menu-phone .icon { margin-right: 8px; }
body.menu-open { overflow: hidden; }

/* ==========================================================================
   Home hero slider
   ========================================================================== */
.hero {
	position: relative;
	min-height: 92vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #fff;
	overflow: hidden;
	padding: 160px 25px 120px;
}
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--overlay);
	z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 900px; }
.hero-typed {
	font-size: 1rem;
	min-height: 1.8em;
	display: block;
	margin-bottom: 10px;
}
.hero-typed .cursor {
	display: inline-block;
	width: 2px;
	height: 1.1em;
	background: #fff;
	vertical-align: -0.15em;
	margin-left: 2px;
	animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero h1 {
	color: #fff;
	font-size: 4rem;
	font-weight: 800;
	text-transform: uppercase;
	margin-bottom: 2rem;
}
.hero h1 .redtxt { color: var(--red); }

/* Angled bottom edge (matches the theme's triangle-2 shape) */
.hero-shape {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 3vmin;
	z-index: 3;
	color: #fff;
}
.hero-shape svg { display: block; width: 100%; height: 100%; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 90px 0; }

.section-intro .container { max-width: 1000px; text-align: center; }

/* Blueprint watermark background */
.blueprint-bg {
	background-image: url('images/g4tfc4vb-e1762682261993.png');
	background-repeat: no-repeat;
	background-attachment: fixed;
	background-position: top right;
	background-size: 80%;
}

/* Commitment section — text left, offset images right */
.commitment-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
}
.commitment-images {
	position: relative;
	min-height: 560px;
}
.commitment-images img {
	position: absolute;
	width: 55%;
	border-radius: 12px;
	box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
}
.commitment-images img:first-child { top: 0; left: 0; }
.commitment-images img:last-child { bottom: 0; right: 0; }

/* Red stats band with angled top */
.stats-band {
	background: var(--red);
	color: #fff;
	padding: 130px 0 70px;
	clip-path: polygon(0 60px, 30% 0, 100% 75px, 100% 100%, 0 100%);
	margin-top: -20px;
}
.stats-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
	text-align: center;
}
.stat-number {
	font-family: var(--font-heading);
	font-size: 3.6rem;
	font-weight: 700;
	line-height: 1.1;
}
.stat-icon { font-size: 2.9rem; line-height: 1.3; }
.stat-label {
	font-family: var(--font-heading);
	font-size: 1.35rem;
	font-weight: 700;
	max-width: 340px;
	margin: 0 auto;
}

/* ==========================================================================
   Page hero (inner pages)
   ========================================================================== */
.page-hero {
	padding: 70px 0 30px;
	text-align: center;
}
.page-hero h1 {
	font-size: 3.8rem;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: -1px;
	margin-bottom: 0.4rem;
}
.breadcrumbs { font-size: 0.9rem; }
.breadcrumbs a { color: var(--red); }
.breadcrumb-sep { margin: 0 10px; color: var(--text); font-size: 0.7rem; }
.breadcrumb-current { color: var(--red); }

/* Inner pages get the blueprint watermark on the body */
.page-inner-bg {
	background-color: #fff;
	background-image: url('images/g4tfc4vb-e1762682261993.png');
	background-repeat: no-repeat;
	background-attachment: fixed;
	background-position: top right;
	background-size: contain;
}

/* ==========================================================================
   Cards & content blocks
   ========================================================================== */
.card {
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
	padding: 45px 50px;
}

.two-col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
}
.two-col img { border-radius: 12px; box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15); }

ul.checklist {
	list-style: none;
	padding: 0;
	margin: 0 0 1.2em;
}
ul.checklist li {
	position: relative;
	padding-left: 30px;
	margin-bottom: 8px;
}
ul.checklist li .icon {
	position: absolute;
	left: 0;
	top: 0.35em;
	color: var(--red);
}

/* Red angled band (accreditations certificates) */
.red-band {
	background: var(--red);
	color: #fff;
	padding: 120px 0;
	clip-path: polygon(0 70px, 100% 0, 100% calc(100% - 70px), 0 100%);
	margin: 40px 0;
}
.red-band h2, .red-band h3 { color: #fff; }
.red-band .headerline::after { background: #fff; }
.red-band a { color: #fff; text-decoration: underline; }
.cert-images {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 25px;
	align-items: start;
}
.cert-images img {
	background: #fff;
	border-radius: 6px;
	width: 100%;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   Plant list
   ========================================================================== */
.machine-card {
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
	padding: 45px 50px;
	margin-bottom: 50px;
}
.machine-card h2 {
	position: relative;
	padding-bottom: 14px;
	margin-bottom: 0.8rem;
}
.machine-card h2::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 170px;
	height: 2px;
	background: var(--red);
}
.machine-card figure { margin: 25px 0; text-align: center; }
.machine-card figure img { max-height: 420px; width: auto; max-width: 100%; }
.machine-card h3 { font-size: 1.15rem; margin-bottom: 0.8rem; }

.spec-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.spec {
	border-collapse: collapse;
	width: 100%;
	font-size: 0.8rem;
	white-space: nowrap;
}
table.spec th, table.spec td {
	border: 1px solid #e2e4e8;
	padding: 8px 12px;
	text-align: left;
}
table.spec th { background: var(--bg-alt); font-weight: 700; }

.equipment-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: start;
	padding: 40px 0 80px;
}
.equipment-grid ul { padding-left: 0; list-style: none; }
.equipment-grid li { margin-bottom: 8px; }

.plant-intro {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 50px;
	align-items: start;
	padding: 30px 0 50px;
}
.plant-intro img { border-radius: 10px; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15); }

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-info {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
	padding: 40px 0 50px;
}
.contact-info-item {
	display: flex;
	gap: 22px;
	align-items: flex-start;
}
.contact-info-item .circle {
	flex: 0 0 78px;
	width: 78px;
	height: 78px;
	border: 2px solid var(--red);
	border-radius: 50%;
	color: var(--red);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 30px;
}
.contact-info-item h3 { font-size: 1.35rem; margin-bottom: 0.3rem; }
.contact-info-item p { margin: 0; }

.contact-form-card {
	background: rgba(255, 255, 255, 0.75);
	border-radius: 20px;
	box-shadow: 0 10px 50px rgba(0, 0, 0, 0.07);
	padding: 60px;
	margin-bottom: 90px;
}
.form-field { margin-bottom: 26px; }
.form-field label {
	display: block;
	margin-bottom: 8px;
}
.form-field input,
.form-field textarea {
	width: 100%;
	background: #eff0f2;
	border: 1px solid #eff0f2;
	border-radius: 30px;
	padding: 13px 22px;
	font: inherit;
	color: var(--text);
}
.form-field textarea { border-radius: 20px; min-height: 170px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus {
	outline: none;
	border-color: var(--red);
	background: #fff;
}
.form-notice {
	border-radius: 8px;
	padding: 14px 20px;
	margin-bottom: 24px;
	font-weight: 600;
}
.form-notice.ok { background: #e5f7e9; color: #1c7a34; }
.form-notice.err { background: #fde8e9; color: #b3121b; }
/* honeypot */
.hp-field { position: absolute !important; left: -9999px !important; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
	background: var(--dark);
	color: #cfcccc;
	text-align: center;
	padding-top: 45px;
}
.footer-nav ul {
	list-style: none;
	margin: 0 0 35px;
	padding: 0;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px 34px;
}
.footer-nav a { color: #fff; }
.footer-logo { display: inline-block; margin-bottom: 20px; }
.footer-logo img { width: 220px; height: auto; }
.footer-address { color: #fff; margin-bottom: 8px; }
.footer-contact {
	display: flex;
	justify-content: center;
	gap: 30px;
	margin-bottom: 40px;
}
.footer-contact a { color: #fff; }
.footer-contact .icon { color: var(--red); margin-right: 6px; }
.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	font-size: 0.8rem;
	padding: 18px 25px;
	color: #a5a2a2;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #fff; }

/* 404 */
.error-page { text-align: center; padding: 100px 25px 120px; }
.error-page h1 { font-size: 5rem; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
	.hero h1 { font-size: 3rem; }
	.page-hero h1 { font-size: 2.8rem; }
	.commitment-grid, .two-col, .plant-intro { grid-template-columns: 1fr; }
	.commitment-images { min-height: 0; display: flex; gap: 20px; }
	.commitment-images img { position: static; width: 48%; }
	.contact-info { grid-template-columns: 1fr; }
	.blueprint-bg, .page-inner-bg { background-attachment: scroll; }
}

@media (max-width: 900px) {
	.main-nav { display: none; }
	.nav-toggle { display: block; }
	.header-logo img { width: 230px; }
	.page-home main { margin-top: -117px; }
	.top-strip-h { justify-content: center; }
	.top-address { display: none; }
}

@media (max-width: 640px) {
	h2 { font-size: 1.7rem; }
	.section { padding: 60px 0; }
	.hero { min-height: 80vh; padding-top: 130px; }
	.hero h1 { font-size: 2.2rem; }
	.page-hero h1 { font-size: 2.1rem; letter-spacing: 0; }
	.stats-grid { grid-template-columns: 1fr; }
	.stats-band { clip-path: polygon(0 35px, 30% 0, 100% 45px, 100% 100%, 0 100%); padding-top: 100px; }
	.red-band { clip-path: polygon(0 35px, 100% 0, 100% calc(100% - 35px), 0 100%); padding: 90px 0; }
	.cert-images { grid-template-columns: 1fr; }
	.card, .machine-card, .contact-form-card { padding: 30px 24px; }
	.equipment-grid { grid-template-columns: 1fr; gap: 30px; }
	.footer-contact { flex-direction: column; gap: 10px; }
}
