/*
Theme Name: Marvel Engineering
Theme URI: https://marvelengineering.example
Author: Marvel Engineering (Pvt.) Ltd
Description: Custom theme for Marvel Engineering (Pvt.) Ltd — EPC pipeline, civil, fabrication & logistics contractor.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: marvel-engineering
*/

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
	--color-navy-900: #0b1a2b;
	--color-navy-800: #10263f;
	--color-navy-700: #163256;
	--color-steel-500: #57626d;
	--color-steel-300: #8e97a1;
	--color-steel-100: #e7e9ec;
	--color-red-600: #d81f27;
	--color-red-700: #b3181f;
	--color-white: #ffffff;
	--color-ink: #16191d;
	--color-bg: #f6f6f7;

	--font-heading: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
	--font-body: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

	--radius-md: 6px;
	--radius-lg: 14px;
	--radius-pill: 999px;
	--shadow-card: 0 4px 20px rgba(11, 26, 43, 0.09);
	--container-width: 1200px;
}

/* ==========================================================================
   Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--color-ink);
	background: var(--color-bg);
	line-height: 1.6;
	font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--color-red-600); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
	font-family: var(--font-heading);
	color: var(--color-ink);
	line-height: 1.15;
	font-weight: 800;
	margin: 0 0 0.6em;
	letter-spacing: -0.01em;
}
p { margin: 0 0 1em; }
.container {
	width: 100%;
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 24px;
}
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 28px;
	border-radius: var(--radius-pill);
	font-weight: 700;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
	border: 2px solid transparent;
	cursor: pointer;
	font-size: 15px;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary {
	background: var(--color-red-600);
	color: var(--color-white);
}
.btn-primary:hover { background: var(--color-red-700); }
.btn-white {
	background: var(--color-white);
	color: var(--color-ink);
}
.btn-white:hover { background: var(--color-steel-100); }
.btn-outline {
	background: transparent;
	border-color: var(--color-white);
	color: var(--color-white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-arrow { font-size: 17px; line-height: 1; transition: transform 0.15s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

.section { padding: 88px 0; }
.section-alt { background: var(--color-white); }
.section-title-group { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.eyebrow {
	display: inline-block;
	color: var(--color-red-600);
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-size: 13px;
	margin-bottom: 12px;
}
.section-title-group h2 { font-size: 34px; }
.section-title-group p { color: var(--color-steel-500); font-size: 17px; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--color-red-600); }
.link-arrow .btn-arrow { font-size: 16px; }
.link-arrow:hover { text-decoration: none; color: var(--color-red-700); }
.link-arrow:hover .btn-arrow { transform: translateX(3px); }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
	background: var(--color-navy-900);
	position: sticky;
	top: 0;
	z-index: 100;
}
.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 16px;
	padding-bottom: 16px;
}
.site-logo { display: flex; align-items: center; gap: 14px; color: var(--color-white); font-weight: 800; font-size: 19px; }
.site-logo img {
	height: 50px;
	width: auto;
	filter: drop-shadow(0 0 1px rgba(255,255,255,0.7)) drop-shadow(0 0 10px rgba(255,255,255,0.25));
}
.site-logo-tagline {
	display: block;
	font-weight: 600;
	font-size: 11px;
	color: var(--color-steel-300);
	letter-spacing: 0.06em;
	border-left: 1px solid rgba(255,255,255,0.25);
	padding-left: 14px;
	line-height: 1.5;
	max-width: 150px;
}

.primary-nav ul { display: flex; gap: 4px; align-items: center; }
.primary-nav a {
	color: var(--color-steel-100);
	padding: 10px 16px;
	border-radius: var(--radius-pill);
	font-weight: 600;
	font-size: 15px;
}
.primary-nav a:hover, .primary-nav .current-menu-item a { background: rgba(255,255,255,0.1); color: var(--color-white); text-decoration: none; }

.header-cta { margin-left: 12px; }
.header-cta .btn { padding: 10px 22px; font-size: 14.5px; }

.nav-toggle {
	display: none;
	background: transparent;
	border: 1px solid var(--color-steel-300);
	color: var(--color-white);
	border-radius: var(--radius-md);
	padding: 8px 12px;
	font-size: 15px;
	cursor: pointer;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
	position: relative;
	background: linear-gradient(135deg, var(--color-navy-900) 0%, var(--color-navy-700) 100%);
	background-size: cover;
	background-position: center;
	color: var(--color-white);
	padding: 120px 0 72px;
	min-height: 72vh;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
}
.hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(11,26,43,0.55) 0%, rgba(11,26,43,0.35) 35%, rgba(11,26,43,0.92) 100%);
	z-index: 0;
}
.hero .container { position: relative; z-index: 1; width: 100%; }
.hero.hero-inner { min-height: 46vh; padding: 96px 0 56px; align-items: flex-end; }
.hero .eyebrow { color: var(--color-red-600); }
.hero h1 { color: var(--color-white); font-size: 50px; max-width: 780px; }
.hero.hero-inner h1 { font-size: 38px; }
.hero p.subhead { color: var(--color-steel-100); font-size: 18px; max-width: 620px; margin-bottom: 30px; }
.hero-ctas { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero-scroll-cue {
	display: inline-flex; align-items: center; gap: 8px;
	color: var(--color-white); font-weight: 600; font-size: 14.5px;
	border-bottom: 1px solid rgba(255,255,255,0.5);
	padding-bottom: 4px;
}
.hero-scroll-cue:hover { text-decoration: none; border-color: var(--color-white); }
.hero-scroll-cue .chevron { font-size: 12px; }

/* ==========================================================================
   Stats
   ========================================================================== */
.stats-row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
}
.stat-block { border-left: 3px solid var(--color-red-600); padding-left: 18px; }
.stat-block .stat-number { font-size: 40px; font-weight: 800; color: var(--color-ink); line-height: 1; letter-spacing: -0.01em; }
.stat-block .stat-label { font-weight: 600; margin-top: 10px; font-size: 15px; }
.stat-block .stat-detail { font-size: 13px; color: var(--color-steel-500); margin-top: 4px; }

/* ==========================================================================
   Services grid
   ========================================================================== */
.services-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}
.service-card {
	background: var(--color-white);
	border-radius: var(--radius-lg);
	padding: 30px 26px;
	box-shadow: var(--shadow-card);
	border: 1px solid var(--color-steel-100);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(11,26,43,0.14); }
.service-card .icon {
	width: 50px; height: 50px;
	border-radius: 10px;
	background: var(--color-ink);
	color: var(--color-red-600);
	display: flex; align-items: center; justify-content: center;
	font-size: 22px; margin-bottom: 20px;
}
.service-card h3 { font-size: 18px; }
.service-card p { color: var(--color-steel-500); font-size: 14.5px; margin-bottom: 16px; }

.services-detail-group { margin-bottom: 48px; }
.services-detail-group h3 {
	font-size: 20px; color: var(--color-ink);
	border-bottom: 3px solid var(--color-red-600);
	display: inline-block;
	padding-bottom: 10px; margin-bottom: 20px;
}
.services-detail-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.services-detail-item {
	background: var(--color-white);
	border-radius: var(--radius-md);
	padding: 18px 20px;
	border: 1px solid var(--color-steel-100);
	border-left: 3px solid var(--color-red-600);
}
.services-detail-item h4 { font-size: 15.5px; margin-bottom: 6px; }
.services-detail-item p { font-size: 14px; color: var(--color-steel-500); margin: 0; }

.capabilities-list { columns: 2; gap: 32px; }
.capabilities-list li {
	break-inside: avoid;
	padding: 10px 0 10px 28px;
	position: relative;
	border-bottom: 1px solid var(--color-steel-100);
	font-size: 14.5px;
}
.capabilities-list li::before {
	content: '\2713';
	position: absolute; left: 0; top: 10px;
	color: var(--color-red-600); font-weight: 800;
}

/* ==========================================================================
   Projects
   ========================================================================== */
.projects-table-wrap { overflow-x: auto; background: var(--color-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
table.projects-table { width: 100%; border-collapse: collapse; min-width: 720px; }
table.projects-table th {
	text-align: left; background: var(--color-ink); color: var(--color-white);
	padding: 14px 18px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em;
}
table.projects-table td { padding: 16px 18px; border-bottom: 1px solid var(--color-steel-100); font-size: 14.5px; vertical-align: top; }
table.projects-table tr:last-child td { border-bottom: none; }
table.projects-table .status-badge {
	display: inline-block; padding: 3px 10px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 700;
	background: var(--color-steel-100); color: var(--color-navy-800);
}
table.projects-table .status-badge.status-ongoing { background: #fbe1e2; color: var(--color-red-700); }

.clients-strip { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.clients-strip span {
	background: var(--color-white); border: 1px solid var(--color-steel-100);
	padding: 10px 18px; border-radius: var(--radius-pill); font-size: 13.5px; color: var(--color-steel-500); font-weight: 600;
}

/* ==========================================================================
   About page
   ========================================================================== */
.facilities-grid, .leadership-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.facility-card, .leader-card {
	background: var(--color-white); border-radius: var(--radius-lg); padding: 26px 22px;
	box-shadow: var(--shadow-card); border: 1px solid var(--color-steel-100); border-top: 3px solid var(--color-red-600);
}
.leader-card .leader-title { color: var(--color-red-600); font-weight: 700; font-size: 13.5px; margin-bottom: 10px; }
.registrations-list li { padding: 10px 0 10px 28px; position: relative; border-bottom: 1px solid var(--color-steel-100); }
.registrations-list li::before { content: '\1F4C4'; position: absolute; left: 0; }

.photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; }
.photo-strip img { border-radius: var(--radius-md); aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow-card); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: start; }
.locations-list { display: grid; gap: 16px; }
.location-card { background: var(--color-white); border-radius: var(--radius-md); padding: 18px 20px; border-left: 4px solid var(--color-red-600); box-shadow: var(--shadow-card); }
.location-card h4 { font-size: 15px; margin-bottom: 4px; }
.location-card p { margin: 0; color: var(--color-steel-500); font-size: 14px; }

.contact-form-wrap { background: var(--color-white); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-card); }

.map-embed { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); line-height: 0; }
.map-embed iframe { display: block; }

.contact-form-wrap .wpcf7-form p { margin-bottom: 18px; }
.contact-form-wrap .wpcf7-form label { font-weight: 600; font-size: 14px; display: block; }
.contact-form-wrap .wpcf7-form-control-wrap { display: block; margin-top: 6px; }
.contact-form-wrap input[type="text"],
.contact-form-wrap input[type="email"],
.contact-form-wrap input[type="tel"],
.contact-form-wrap input[type="file"],
.contact-form-wrap select,
.contact-form-wrap textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--color-steel-100);
	border-radius: var(--radius-md);
	background: var(--color-bg);
	font-family: var(--font-body);
	font-size: 14.5px;
	color: var(--color-ink);
}
.contact-form-wrap textarea { min-height: 120px; resize: vertical; }
.contact-form-wrap input:focus,
.contact-form-wrap select:focus,
.contact-form-wrap textarea:focus {
	outline: none;
	border-color: var(--color-red-600);
}
.contact-form-wrap .wpcf7-submit {
	padding: 13px 28px;
	border-radius: var(--radius-pill);
	font-weight: 700;
	font-size: 15px;
	background: var(--color-red-600);
	color: var(--color-white);
	border: none;
	cursor: pointer;
}
.contact-form-wrap .wpcf7-submit:hover { background: var(--color-red-700); }
.contact-form-wrap .wpcf7-not-valid-tip { color: #c0392b; font-size: 13px; margin-top: 4px; }
.contact-form-wrap .wpcf7-response-output { border-radius: var(--radius-md); padding: 12px 16px; font-size: 14px; margin-top: 18px; }
.contact-form-wrap form.sent .wpcf7-response-output { border-color: #2e7d32; color: #2e7d32; }
.contact-form-wrap form.failed .wpcf7-response-output,
.contact-form-wrap form.aborted .wpcf7-response-output { border-color: #c0392b; color: #c0392b; }

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta-banner {
	background: linear-gradient(135deg, var(--color-navy-900), var(--color-navy-700));
	color: var(--color-white);
	border-radius: var(--radius-lg);
	padding: 52px 44px;
	display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-banner h3 { color: var(--color-white); font-size: 26px; margin-bottom: 4px; }
.cta-banner p { color: var(--color-steel-100); margin: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--color-navy-900); color: var(--color-steel-100); padding-top: 4px; margin-top: 72px; }
.footer-top-bar { height: 4px; background: linear-gradient(90deg, var(--color-red-600), var(--color-red-700)); }
.site-footer .container { padding-top: 56px; padding-bottom: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid h4 { color: var(--color-white); font-size: 15px; margin-bottom: 18px; letter-spacing: 0.02em; }
.footer-grid p, .footer-grid li { color: var(--color-steel-300); font-size: 14px; }
.footer-grid a { color: var(--color-steel-300); }
.footer-grid a:hover { color: var(--color-white); }
.footer-grid li { margin-bottom: 10px; }
.footer-brand .site-logo { margin-bottom: 14px; }
.footer-brand p { max-width: 260px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 22px; font-size: 13px; color: var(--color-steel-300); text-align: center; }
.footer-credit { display: block; margin-top: 6px; font-size: 12px; color: var(--color-steel-300); opacity: 0.75; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
	.services-grid, .facilities-grid, .leadership-grid { grid-template-columns: repeat(2, 1fr); }
	.stats-row { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
	.services-detail-list { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.contact-layout { grid-template-columns: 1fr; }
	.photo-strip { grid-template-columns: repeat(2, 1fr); }
	.capabilities-list { columns: 1; }
	.hero h1 { font-size: 38px; }
}
@media (max-width: 720px) {
	.primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-navy-900); padding: 12px 24px 20px; }
	.primary-nav.is-open { display: block; }
	.primary-nav ul { flex-direction: column; align-items: stretch; }
	.nav-toggle { display: inline-block; }
	.header-cta { display: none; }
	.hero h1 { font-size: 30px; }
	.hero { min-height: 60vh; }
	.services-grid, .facilities-grid, .leadership-grid, .stats-row { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	.photo-strip { grid-template-columns: repeat(2, 1fr); }
	.cta-banner { flex-direction: column; text-align: center; }
}
