/* Shree Laxminarayan Engineering Works — site stylesheet */
:root {
	--maroon: #640000;
	--maroon-dark: #450000;
	--accent: #8a0000;
	--bg: #f4f4f2;
	--card: #ffffff;
	--text: #333333;
	--muted: #6b6b6b;
	--border: #e2ddd8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
	font-family: "Segoe UI", Arial, Helvetica, sans-serif;
	font-size: 16px;
	line-height: 1.65;
	color: var(--text);
	background: var(--bg);
}

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

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

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
	background: var(--card);
	border-top: 4px solid var(--maroon);
}
.header-inner { max-width: 1100px; margin: 0 auto; padding: 14px 20px 10px; text-align: center; }
.brand { display: block; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-logo {
	width: 100%;
	max-width: 1005px;
	height: auto;
	margin: 0 auto;
}
.brand-tag {
	display: block;
	margin-top: 8px;
	font-size: clamp(0.8rem, 2vw, 0.95rem);
	color: var(--muted);
	font-weight: 600;
}

/* ---------- Navigation ---------- */
.site-nav {
	background: var(--maroon);
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.site-nav .container { display: flex; align-items: center; }
.nav-toggle {
	display: none;
	background: none;
	border: 0;
	color: #fff;
	font-size: 1.5rem;
	padding: 10px 6px;
	cursor: pointer;
}
.site-nav ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	width: 100%;
}
.site-nav a {
	display: block;
	padding: 13px 18px;
	color: #fff;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
}
.site-nav a:hover,
.site-nav a:focus { background: var(--maroon-dark); text-decoration: none; }
.site-nav a.active { background: var(--maroon-dark); box-shadow: inset 0 -3px 0 #fff; }

/* ---------- Hero slideshow (home) ---------- */
.hero {
	position: relative;
	height: min(52vw, 380px);
	overflow: hidden;
	background: var(--maroon-dark);
}
.hero img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	animation: heroFade 24s infinite;
}
.hero img:nth-child(1) { animation-delay: 0s; }
.hero img:nth-child(2) { animation-delay: 6s; }
.hero img:nth-child(3) { animation-delay: 12s; }
.hero img:nth-child(4) { animation-delay: 18s; }
@keyframes heroFade {
	0% { opacity: 0; }
	6% { opacity: 1; }
	27% { opacity: 1; }
	35% { opacity: 0; }
	100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.hero img { animation: none; }
	.hero img:first-child { opacity: 1; }
}
.hero-overlay {
	position: absolute;
	inset: auto 0 0 0;
	padding: 18px 20px;
	background: linear-gradient(transparent, rgba(0,0,0,0.65));
	color: #fff;
	text-align: center;
	font-weight: 600;
	font-size: clamp(0.85rem, 2.2vw, 1.05rem);
	text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

/* ---------- Page title band (inner pages) ---------- */
.page-title {
	background: linear-gradient(135deg, var(--maroon), var(--accent));
	color: #fff;
	padding: 30px 0;
}
.page-title h1 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); font-weight: 700; }

/* ---------- Main content ---------- */
main { padding: 34px 0 50px; }
.card {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 28px;
	margin-bottom: 28px;
	box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.card h2 {
	color: var(--maroon);
	font-size: 1.3rem;
	margin-bottom: 14px;
}
.card h3 { color: var(--maroon); font-size: 1.08rem; margin: 18px 0 8px; }
.card p { margin-bottom: 14px; }
.card p:last-child { margin-bottom: 0; }

.lead { font-size: 1.05rem; }

.text-right { text-align: right; }

.more-link { font-weight: 700; color: var(--maroon); }

/* Bullet lists (replaces bg.gif bullets) */
ul.bullets { list-style: none; margin: 8px 0 16px; }
ul.bullets li {
	position: relative;
	padding: 4px 0 4px 22px;
}
ul.bullets li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 12px;
	width: 9px;
	height: 9px;
	background: var(--maroon);
}

/* ---------- Product / feature grids ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.feature {
	text-align: center;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 18px;
	transition: box-shadow 0.2s, transform 0.2s;
}
.feature:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.12); transform: translateY(-2px); }
.feature img { margin: 0 auto 12px; border-radius: 6px; }
.feature a.feature-title {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--maroon);
}

.product-photo {
	margin: 14px auto;
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 6px;
	background: #fff;
}

figure { margin: 0 0 18px; text-align: center; }
figure img { margin: 0 auto 8px; border-radius: 6px; }
figcaption { font-weight: 700; color: var(--maroon); font-size: 0.95rem; }
figcaption .sub { display: block; font-weight: 600; color: var(--muted); }

/* Profile layout */
.profile-layout { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: start; }

/* ---------- Contact ---------- */
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-card {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 24px;
}
.contact-card h3 { color: var(--maroon); text-align: center; margin-bottom: 12px; }
.contact-card .portrait { margin: 0 auto 16px; border-radius: 6px; }
.contact-table { width: 100%; border-collapse: collapse; }
.contact-table th {
	text-align: left;
	vertical-align: top;
	padding: 6px 10px 6px 0;
	white-space: nowrap;
	color: var(--maroon);
	width: 1%;
}
.contact-table td { padding: 6px 0; vertical-align: top; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.form-field { display: flex; flex-direction: column; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; margin-bottom: 5px; font-size: 0.92rem; }
.form-field .req { color: #c00; }
.form-field input,
.form-field textarea {
	font: inherit;
	padding: 10px 12px;
	border: 1px solid #c9c4bf;
	border-radius: 6px;
	background: #fdfdfc;
}
.form-field input:focus,
.form-field textarea:focus {
	outline: 2px solid var(--maroon);
	outline-offset: 1px;
	border-color: var(--maroon);
}
.form-actions { grid-column: 1 / -1; text-align: center; padding-top: 6px; }
.btn {
	display: inline-block;
	font: inherit;
	font-weight: 700;
	color: #fff;
	background: var(--maroon);
	border: 0;
	border-radius: 6px;
	padding: 12px 34px;
	cursor: pointer;
	transition: background 0.2s;
}
.btn:hover { background: var(--maroon-dark); }
.btn-secondary { background: #8a8a8a; margin-left: 12px; }
.btn-secondary:hover { background: #6e6e6e; }

/* Honeypot — keep hidden from humans */
.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer {
	background: #2b2724;
	color: #cfc9c4;
	padding: 28px 0 22px;
	font-size: 0.9rem;
}
.site-footer .footer-nav {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 22px;
	margin-bottom: 14px;
}
.site-footer a { color: #fff; }
.footer-meta { text-align: center; color: #a39c96; }
.footer-meta a { color: #cfc9c4; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
	.nav-toggle { display: block; }
	.site-nav ul {
		display: none;
		flex-direction: column;
	}
	.site-nav ul.open { display: flex; }
	.site-nav a { padding: 12px 8px; border-top: 1px solid rgba(255,255,255,0.12); }
	.grid-2, .contact-cards, .form-grid { grid-template-columns: 1fr; }
	.profile-layout { grid-template-columns: 1fr; }
	.profile-layout .side { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
	.card { padding: 20px; }
}
