/* ===================================
   ROOTS FOR FOUNDATIONS — MAIN STYLESHEET
   =================================== */

/* === CSS VARIABLES === */
:root {
  --primary: #B10C2A;
  --primary-dark: #8a0920;
  --primary-light: #d4102f;
  --dark: #30303A;
  --dark-light: #454550;
  --gray: #676061;
  --gray-light: #9a9a9a;
  --bg-light: #f8f9fa;
  --bg-section: #f4f5f7;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.15);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
  --font: 'Poppins', sans-serif;
  --container: 1200px;
}

/* === RESET === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  background: var(--white);
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul { list-style: none; }

/* === CONTAINER === */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* === SECTION UTILITIES === */
.section-padding { padding: 90px 0; }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 14px;
  line-height: 1.25;
}

.section-header p {
  font-size: 1rem;
  color: var(--gray);
  max-width: 580px;
  margin: 0 auto;
}

.section-subtitle {
  display: inline-block;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 10px;
}

/* === BUTTONS === */
.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  line-height: 1.4;
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(177, 12, 42, 0.35);
  color: var(--white);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--white);
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  line-height: 1.4;
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-secondary i { margin-right: 8px; }

/* === FLOATING CONTACTS === */
.floating-contacts {
  position: fixed;
  right: 24px;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
}

.whatsapp-float,
.call-float {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--white);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  transition: var(--transition);
}

.whatsapp-float { background: #25D366; }
.call-float { background: var(--primary); }

.whatsapp-float:hover,
.call-float:hover {
  transform: scale(1.12) translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
  color: var(--white);
}

/* ==============================================
   HEADER / NAVBAR
   ============================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 998;
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.header.scrolled {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo img {
  height: 56px;
  width: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-menu li a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--white);
  padding: 8px 13px;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  color: var(--primary);
}

/* On dark/transparent header, keep active visible */
.header:not(.scrolled) .nav-menu li a:hover,
.header:not(.scrolled) .nav-menu li a.active {
  color: #ffb3bf;
}

.header.scrolled .nav-menu li a { color: var(--dark); }
.header.scrolled .nav-menu li a:hover,
.header.scrolled .nav-menu li a.active { color: var(--primary); }

.nav-menu li a.btn-primary {
  color: var(--white) !important;
  padding: 10px 20px;
  margin-left: 6px;
}

.nav-menu li a.btn-primary:hover {
  color: var(--white) !important;
}

/* Inner pages: header always white */
body.inner-page .header {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

body.inner-page .nav-menu li a { color: var(--dark); }
body.inner-page .nav-menu li a:hover,
body.inner-page .nav-menu li a.active { color: var(--primary); }
body.inner-page .menu-toggle span { background: var(--dark); }

/* === HAMBURGER === */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 999;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.header.scrolled .menu-toggle span { background: var(--dark); }

.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==============================================
   HERO SECTION
   ============================================== */

.hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(145deg, #1a1a24 0%, #30303A 45%, #600617 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/cta-bg.jpg') center / cover no-repeat;
  opacity: 0.07;
}

/* Diagonal accent */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(160deg, rgba(177, 12, 42, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding-top: 80px;
  animation: fadeInUp 0.9s ease both;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.18;
  margin-bottom: 22px;
}

.hero-title .subtitle {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 14px;
}

.hero-description {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 36px;
  line-height: 1.85;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero Animation Elements */
.hero-animation {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.pile {
  position: absolute;
  bottom: 0;
  width: 20px;
  background: linear-gradient(to bottom, rgba(177, 12, 42, 0.7), rgba(138, 9, 32, 0.9));
  border-radius: 3px 3px 0 0;
}

.pile-1 { right: 38%; height: 42%; animation: pileRise 2.5s ease-out 0.6s both; }
.pile-2 { right: 50%; height: 62%; animation: pileRise 2.5s ease-out 1s both; }
.pile-3 { right: 28%; height: 28%; animation: pileRise 2.5s ease-out 1.4s both; }

@keyframes pileRise {
  from { height: 0; opacity: 0; }
  to { opacity: 1; }
}

.crane {
  position: absolute;
  top: 12%;
  right: 22%;
  width: 5px;
  height: 160px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  animation: fadeIn 1s ease 0.4s both;
}

.crane::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 90px;
  height: 5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.crane::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 84px;
  width: 3px;
  height: 70px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  animation: swing 3s ease-in-out infinite;
}

@keyframes swing {
  0%, 100% { transform: rotate(-6deg); transform-origin: top center; }
  50%       { transform: rotate(6deg);  transform-origin: top center; }
}

.excavator {
  position: absolute;
  bottom: 9%;
  right: 14%;
  width: 72px;
  height: 44px;
  background: rgba(177, 12, 42, 0.28);
  border-radius: var(--radius);
  animation: bob 2.5s ease-in-out infinite;
}

.excavator::before {
  content: '';
  position: absolute;
  top: -18px;
  right: 8px;
  width: 36px;
  height: 18px;
  background: rgba(177, 12, 42, 0.38);
  border-radius: var(--radius) var(--radius) 0 0;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}

.particles {
  position: absolute;
  inset: 0;
}

.particles::before {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(177, 12, 42, 0.14) 0%, transparent 70%);
  top: 18%;
  right: 8%;
  animation: floatBig 7s ease-in-out infinite;
}

.particles::after {
  content: '';
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
  bottom: 18%;
  right: 28%;
  animation: floatBig 7s ease-in-out infinite reverse;
  animation-delay: -3.5s;
}

@keyframes floatBig {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(18px, -16px) scale(1.04); }
  66%       { transform: translate(-14px, 12px) scale(0.96); }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  z-index: 2;
  animation: fadeInUp 1s ease 2s both;
}

.mouse {
  width: 22px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  position: relative;
}

.mouse::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 7px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  animation: scrollDot 1.6s ease-in-out infinite;
}

@keyframes scrollDot {
  0%   { transform: translateX(-50%) translateY(0); opacity: 1; }
  100% { transform: translateX(-50%) translateY(12px); opacity: 0; }
}

/* ==============================================
   SERVICES OVERVIEW (Homepage)
   ============================================== */

.services-overview { background: var(--bg-light); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.service-card:hover::after { transform: scaleX(1); }

.service-icon {
  width: 66px;
  height: 66px;
  background: rgba(177, 12, 42, 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: var(--transition);
}

.service-card:hover .service-icon { background: var(--primary); }

.service-icon i {
  font-size: 1.65rem;
  color: var(--primary);
  transition: var(--transition);
}

.service-card:hover .service-icon i { color: var(--white); }

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 20px;
}

.service-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-link i { font-size: 0.75rem; transition: transform 0.25s; }
.service-link:hover { color: var(--primary-dark); }
.service-link:hover i { transform: translateX(4px); }

/* ==============================================
   ABOUT SNIPPET (Homepage)
   ============================================== */

.about-snippet { padding: 90px 0; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-image { position: relative; }

.about-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  min-height: 420px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--dark), var(--dark-light));
}

.experience-badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--primary);
  color: var(--white);
  padding: 22px 26px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 8px 28px rgba(177, 12, 42, 0.45);
}

.badge-number {
  display: block;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
}

.badge-text {
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0.92;
  line-height: 1.3;
}

.about-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
  line-height: 1.3;
}

.about-content p {
  color: var(--gray);
  margin-bottom: 16px;
  line-height: 1.85;
}

.core-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 26px 0 34px;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--dark);
}

.value-item i { color: var(--primary); font-size: 1rem; }

/* ==============================================
   STATS SECTION
   ============================================== */

.stats-section {
  background: linear-gradient(135deg, #1a1a24 0%, var(--dark) 100%);
  padding: 72px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item {
  text-align: center;
  color: var(--white);
  padding: 24px 16px;
}

.stat-item i {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 16px;
  display: block;
}

.stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}

/* '+' appended via JS — this handles the display unit */
.stat-label {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
}

/* ==============================================
   EQUIPMENT BRANDS
   ============================================== */

.equipment-section {
  background: var(--white);
  overflow: hidden; /* contain the marquee that extends beyond .container */
}

.equipment-section .container { padding-bottom: 0; }
.equipment-section .section-header { margin-bottom: 40px; }
.equipment-marquee { padding: 16px 0 8px; }

/* ── Infinite marquee container (JS drives all track layout) ── */
.equipment-marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 16px 0;
  -webkit-user-select: none;
  user-select: none;
  /* Soft fade on both edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image:         linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

/* .equipment-track layout is 100% set by JS inline styles — no CSS rules here */

.brand-item {
  /* appearance only — layout set by JS */
  opacity: 0.72;
  transition: opacity 0.3s ease;
}

.brand-item:hover { opacity: 1; }

.brand-item img {
  height: 50px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

/* Fallback text when image cannot load */
.brand-item .brand-name-fallback {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray);
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  display: none;
}

.brand-item.img-error img { display: none; }
.brand-item.img-error .brand-name-fallback { display: block; }

@media (max-width: 768px) {
  .brand-item img { height: 36px; max-width: 100px; }
}

/* ==============================================
   CTA SECTION
   ============================================== */

.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/cta-bg.jpg') center / cover no-repeat;
  opacity: 0.09;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}

.cta-content p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 36px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-section .btn-primary {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.cta-section .btn-primary:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
  box-shadow: none;
}

/* ==============================================
   FOOTER
   ============================================== */

.footer {
  background: #1e1e26;
  color: rgba(255, 255, 255, 0.75);
  padding-top: 72px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.6fr;
  gap: 44px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  height: 50px;
  width: auto;
  margin-bottom: 18px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.footer-column p {
  font-size: 0.88rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.55);
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.social-links a {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-column h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  padding-bottom: 10px;
  position: relative;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--primary);
}

.footer-column ul li { margin-bottom: 10px; }

.footer-column ul:not(.contact-info) li a {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  gap: 7px;
  transition: var(--transition);
}

.footer-column ul:not(.contact-info) li a::before {
  content: '›';
  color: var(--primary);
  font-size: 1rem;
  line-height: 1;
}

.footer-column ul:not(.contact-info) li a:hover {
  color: var(--primary);
  padding-left: 4px;
}

/* Footer contact-info override */
.footer .contact-info li {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  margin-bottom: 14px !important;
}

.footer .contact-info li::before { display: none !important; }

.footer .contact-info li i {
  color: var(--primary);
  margin-top: 2px;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.footer .contact-info li span,
.footer .contact-info li a {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.55;
}

.footer .contact-info li a:hover { color: var(--primary); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-links { display: flex; gap: 20px; }
.footer-links a { color: rgba(255, 255, 255, 0.35); transition: var(--transition); }
.footer-links a:hover { color: var(--primary); }

/* ==============================================
   INNER PAGES — PAGE HEADER BANNER
   ============================================== */

.page-header {
  background: linear-gradient(145deg, #1a1a24 0%, #30303A 60%, #600617 100%);
  padding: 145px 0 65px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(177, 12, 42, 0.25) 0%, transparent 60%);
}

.page-header .container { position: relative; z-index: 1; }

.page-header h1 {
  font-size: 2.7rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 14px;
}

.page-header p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ==============================================
   CONTACT PAGE
   ============================================== */

.contact-info-section { background: var(--bg-light); }

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2×2 always — 4 cols were too narrow */
  gap: 28px;
}

.contact-info-card {
  background: var(--white);
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  text-align: left;          /* left-align so text wraps naturally */
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.contact-info-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

.contact-icon {
  width: 60px;
  height: 60px;
  background: rgba(177, 12, 42, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 16px 0;        /* left-aligned icon */
}

.contact-icon i { font-size: 1.35rem; color: var(--primary); }

.contact-info-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-info-card p {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.8;
}

.contact-info-card p a { color: var(--primary); font-weight: 600; }
.contact-info-card p a:hover { color: var(--primary-dark); }

/* Contact Form + Map */
.contact-form-map { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-form-wrapper h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.contact-form-wrapper > p {
  color: var(--gray);
  margin-bottom: 30px;
  font-size: 0.93rem;
}

/* === FORMS === */
.contact-form,
.career-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group { display: flex; flex-direction: column; gap: 7px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 13px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.92rem;
  color: var(--dark);
  background: var(--white);
  transition: var(--transition);
  outline: none;
  width: 100%;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(177, 12, 42, 0.1);
}

.form-group textarea { resize: vertical; min-height: 140px; }
.form-group small { font-size: 0.77rem; color: var(--gray-light); }
.form-group input[type="file"] { padding: 10px; cursor: pointer; }

/* Form feedback */
.form-msg {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 10px;
  display: none;
}

.form-msg.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  display: block;
}

.form-msg.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  display: block;
}

/* Map */
.map-wrapper h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 14px;
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-container iframe { width: 100%; height: 420px; display: block; border: 0; }
.map-note { margin-top: 10px; }
.map-note small { font-size: 0.8rem; color: var(--gray-light); }

/* ==============================================
   ABOUT PAGE
   ============================================== */

.about-full { background: var(--bg-light); }

.about-content-full h2 {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
}

.about-content-full p {
  color: var(--gray);
  margin-bottom: 18px;
  line-height: 1.9;
}

/* Vision / Mission */
.vision-mission { padding: 90px 0; }

.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.vm-card {
  background: var(--bg-light);
  padding: 48px 38px;
  border-radius: var(--radius-lg);
  text-align: center;
  border-top: 5px solid var(--primary);
  transition: var(--transition);
}

.vm-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

.vm-card i { font-size: 2.5rem; color: var(--primary); margin-bottom: 18px; display: block; }

.vm-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 14px;
}

.vm-card p { color: var(--gray); line-height: 1.82; }

/* Core Values */
.core-values-section { background: var(--bg-light); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.value-card {
  background: var(--white);
  padding: 36px 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

.value-card i { font-size: 1.9rem; color: var(--primary); margin-bottom: 14px; display: block; }

.value-card h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.value-card p { font-size: 0.87rem; color: var(--gray); line-height: 1.72; }

/* Team */
.team-section { background: var(--white); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.team-member {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

.team-member:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

.member-image {
  height: 220px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--dark) 0%, var(--primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.member-image .placeholder-icon {
  font-size: 5rem;
  color: rgba(255, 255, 255, 0.25);
}

.team-member:hover .member-image img { transform: scale(1.06); }

.team-member > h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  padding: 20px 16px 4px;
}

.team-member > p {
  font-size: 0.85rem;
  color: var(--gray);
  padding: 0 16px 18px;
  line-height: 1.55;
}

.member-role {
  color: var(--primary) !important;
  font-weight: 600;
  font-size: 0.75rem !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-bottom: 2px !important;
}

/* ==============================================
   SERVICES DETAIL PAGE
   ============================================== */

.services-detail { background: var(--white); }

.service-detail {
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}

.service-detail:last-child { border-bottom: none; }

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.service-detail-grid.reverse { direction: rtl; }
.service-detail-grid.reverse > * { direction: ltr; }

.service-detail-content h2 {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 14px;
}

.service-detail-content p {
  color: var(--gray);
  margin-bottom: 20px;
  line-height: 1.85;
}

.service-detail-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 14px;
}

.service-detail-content ul {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-detail-content ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--dark);
}

.service-detail-content ul li i { color: var(--primary); font-size: 0.78rem; flex-shrink: 0; }

.service-detail-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  background: linear-gradient(145deg, var(--dark), var(--dark-light));
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-detail-image img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.service-detail-image:hover img { transform: scale(1.03); }

.service-detail-image .placeholder-img {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.25);
  min-height: 360px;
  width: 100%;
}

.service-detail-image .placeholder-img i { font-size: 4rem; }
.service-detail-image .placeholder-img span { font-size: 0.85rem; font-weight: 500; }

/* ==============================================
   CAREERS PAGE
   ============================================== */

.careers-intro { background: var(--bg-light); }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.benefit-card {
  background: var(--white);
  padding: 34px 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.benefit-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-top: 3px solid var(--primary); }

.benefit-card i { font-size: 2rem; color: var(--primary); margin-bottom: 14px; display: block; }
.benefit-card h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.benefit-card p { font-size: 0.87rem; color: var(--gray); line-height: 1.72; }

/* Openings */
.current-openings { background: var(--white); }

.no-openings-message {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 52px;
  text-align: center;
  border: 2px dashed var(--border);
}

.no-openings-message i { font-size: 2.5rem; color: var(--gray-light); margin-bottom: 14px; display: block; }
.no-openings-message h3 { font-size: 1.2rem; font-weight: 700; color: var(--dark); margin-bottom: 12px; }
.no-openings-message p { color: var(--gray); max-width: 600px; margin: 0 auto; line-height: 1.8; }

/* Career form section */
.career-form-section { background: var(--bg-light); }

.form-wrapper {
  max-width: 820px;
  margin: 0 auto;
  background: var(--white);
  padding: 52px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.form-header { margin-bottom: 36px; text-align: center; }
.form-header h2 { font-size: 1.75rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.form-header p { color: var(--gray); font-size: 0.93rem; }

/* ==============================================
   BLOG PAGE
   ============================================== */

.blog-section { background: var(--bg-light); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

.blog-image {
  position: relative;
  overflow: hidden;
  height: 218px;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-image img { transform: scale(1.06); }

.blog-category {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 11px;
  border-radius: 20px;
}

.blog-content { padding: 24px; }

.blog-meta { display: flex; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; }

.blog-meta span {
  font-size: 0.77rem;
  color: var(--gray-light);
  display: flex;
  align-items: center;
  gap: 5px;
}

.blog-meta i { color: var(--primary); }

.blog-content h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.5;
  margin-bottom: 10px;
}

.blog-content p {
  font-size: 0.87rem;
  color: var(--gray);
  line-height: 1.72;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.read-more i { font-size: 0.72rem; transition: transform 0.25s; }
.read-more:hover { color: var(--primary-dark); }
.read-more:hover i { transform: translateX(4px); }

/* Pagination */
.blog-pagination { display: flex; justify-content: center; gap: 8px; }

.page-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
  background: var(--white);
  border: 2px solid var(--border);
  transition: var(--transition);
}

.page-link:hover,
.page-link.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ==============================================
   PRIVACY / TERMS PAGES
   ============================================== */

.legal-content { background: var(--white); }

.legal-wrapper { max-width: 820px; margin: 0 auto; }

.legal-wrapper h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark);
  margin: 36px 0 14px;
}

.legal-wrapper h2:first-child { margin-top: 0; }

.legal-wrapper p {
  color: var(--gray);
  line-height: 1.9;
  margin-bottom: 14px;
}

.legal-wrapper ul {
  margin: 12px 0 16px 24px;
  list-style: disc;
}

.legal-wrapper ul li {
  color: var(--gray);
  margin-bottom: 8px;
  line-height: 1.72;
}

/* ==============================================
   404 PAGE
   ============================================== */

.error-section {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  padding: 80px 0;
}

.error-content {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.error-code {
  font-size: 8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}

.error-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 14px;
}

.error-content p {
  color: var(--gray);
  margin-bottom: 32px;
  line-height: 1.75;
}

.error-links {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.error-section .btn-secondary {
  color: var(--dark);
  border-color: var(--border);
}

.error-section .btn-secondary:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: transparent;
}

.error-section .btn-secondary i { margin-right: 8px; }

.helpful-links { margin-top: 10px; }

.helpful-links h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 14px;
}

.helpful-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.helpful-links ul li a {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: var(--transition);
}

.helpful-links ul li a:hover { gap: 11px; }

/* ==============================================
   SCROLL REVEAL ANIMATION
   ============================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ==============================================
   GLOBAL KEYFRAMES
   ============================================== */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ==============================================
   RESPONSIVE — 1200px
   ============================================== */

/* contact-info-grid stays 2-column (set in default rule above) */

@media (max-width: 1200px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
}

/* ==============================================
   RESPONSIVE — 992px (Tablets)
   ============================================== */

@media (max-width: 992px) {
  html { font-size: 15px; }

  .hero-title { font-size: 2.5rem; }
  .hero-animation { display: none; }
  .hero-content { max-width: 100%; }

  .about-grid { grid-template-columns: 1fr; }
  .about-image { order: -1; }
  .experience-badge { right: 16px; bottom: -16px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-grid { grid-template-columns: 1fr; }

  .vm-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }

  .service-detail-grid { grid-template-columns: 1fr; }
  .service-detail-grid.reverse { direction: ltr; }

  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }

  /* ── Show hamburger at tablet sizes (8 nav items overflow below 992px) ── */
  .menu-toggle { display: flex; }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(300px, 82vw);
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 88px 0 40px;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.18);
    z-index: 997;
    overflow-y: auto;
  }

  .nav-menu.open { transform: translateX(0); }

  .nav-menu li { border-bottom: 1px solid var(--border); }
  .nav-menu li:last-child { border-bottom: none; padding: 16px 20px 0; }

  .nav-menu li a {
    font-size: 0.95rem !important;
    color: var(--dark) !important;
    padding: 13px 24px !important;
    display: block;
    font-weight: 500 !important;
    border-radius: 0 !important;
    transition: background 0.2s, color 0.2s;
  }

  .nav-menu li a:hover,
  .nav-menu li a.active {
    color: var(--primary) !important;
    background: rgba(177, 12, 42, 0.05);
  }

  .nav-menu li a.btn-primary {
    background: var(--primary) !important;
    color: var(--white) !important;
    border-radius: var(--radius) !important;
    text-align: center;
    padding: 12px 20px !important;
    display: block;
  }

  .nav-menu li a.btn-primary:hover {
    background: var(--primary-dark) !important;
    color: var(--white) !important;
  }

  .menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
    z-index: 996;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  .menu-backdrop.active {
    opacity: 1;
    pointer-events: all;
  }

  body.inner-page .menu-toggle span { background: var(--dark); }
  .header.scrolled .menu-toggle span { background: var(--dark); }
}

/* ==============================================
   RESPONSIVE — 768px (Mobile)
   ============================================== */

@media (max-width: 768px) {
  html { font-size: 14.5px; }

  .menu-toggle { display: flex; }

  /* Right-side drawer — does NOT cover full screen */
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(300px, 82vw);
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 88px 0 40px;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.18);
    z-index: 997;
    overflow-y: auto;
  }

  .nav-menu.open { transform: translateX(0); }

  .nav-menu li { border-bottom: 1px solid var(--border); }
  .nav-menu li:last-child { border-bottom: none; padding: 16px 20px 0; }

  .nav-menu li a {
    font-size: 0.95rem !important;
    color: var(--dark) !important;
    padding: 13px 24px !important;
    display: block;
    font-weight: 500 !important;
    border-radius: 0 !important;
    transition: background 0.2s, color 0.2s;
  }

  .nav-menu li a:hover,
  .nav-menu li a.active {
    color: var(--primary) !important;
    background: rgba(177, 12, 42, 0.05);
  }

  .nav-menu li a.btn-primary {
    background: var(--primary) !important;
    color: var(--white) !important;
    border-radius: var(--radius) !important;
    text-align: center;
    padding: 12px 20px !important;
    display: block;
  }

  .nav-menu li a.btn-primary:hover {
    background: var(--primary-dark) !important;
    color: var(--white) !important;
  }

  /* Semi-transparent backdrop behind the drawer */
  .menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
    z-index: 996;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  .menu-backdrop.active {
    opacity: 1;
    pointer-events: all;
  }

  /* Hamburger bars always dark on inner pages */
  body.inner-page .menu-toggle span { background: var(--dark); }

  .section-padding { padding: 64px 0; }
  .section-header h2 { font-size: 1.8rem; }
  .hero-title { font-size: 2rem; }
  .hero-description { font-size: 0.97rem; }

  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  /* brand-item img size handled in equipment marquee block above */
  .contact-info-grid { grid-template-columns: 1fr; }

  .cta-content h2 { font-size: 1.8rem; }
  .contact-info-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .values-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .form-wrapper { padding: 30px 20px; }
  .page-header { padding: 120px 0 50px; }
  .page-header h1 { font-size: 2rem; }
  .error-code { font-size: 6rem; }
}

/* ==============================================
   RESPONSIVE — 480px (Small mobile)
   ============================================== */

@media (max-width: 480px) {
  .hero-title { font-size: 1.75rem; }

  .hero-buttons,
  .cta-buttons,
  .error-links { flex-direction: column; align-items: stretch; }

  .hero-buttons a,
  .cta-buttons a { text-align: center; }

  .core-values { grid-template-columns: 1fr; }
  .vm-grid { grid-template-columns: 1fr; }
  .footer-links { flex-direction: column; align-items: center; gap: 8px; }

  .experience-badge { right: 10px; padding: 16px 18px; }
  .badge-number { font-size: 2rem; }
}

/* ==============================================
   FOOTER — DEVELOPER CREDIT
   ============================================== */

.footer-dev {
  text-align: center;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.28);
}

.footer-dev strong { font-weight: 600; color: rgba(255, 255, 255, 0.4); }

/* ==============================================
   ABOUT PAGE — OUR STORY IMAGE
   ============================================== */

.about-story-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  min-height: 380px;
}

.about-story-img img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  display: block;
}

@media (max-width: 992px) {
  .about-full .about-grid { grid-template-columns: 1fr; }
  .about-story-img { min-height: 280px; }
  .about-story-img img { min-height: 280px; }
}

/* ==============================================
   TEAM MEMBER — PLACEHOLDER ICONS
   ============================================== */

.member-placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(145deg, #30303A 0%, #B10C2A 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.35);
}

.member-placeholder i { font-size: 4.5rem; }
.member-placeholder span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1.5px; }

/* ==============================================
   SERVICE DETAIL — PLACEHOLDER IMAGES
   ============================================== */

.service-placeholder {
  width: 100%;
  min-height: 360px;
  background: linear-gradient(145deg, #30303A 0%, #454550 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: rgba(255, 255, 255, 0.3);
  padding: 40px;
  text-align: center;
}

.service-placeholder i { font-size: 4rem; }

.service-placeholder h4 {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.service-placeholder p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.25);
  line-height: 1.5;
}

/* ==============================================
   THANK-YOU OVERLAY (after form submit)
   ============================================== */

.ty-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

.ty-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.4s ease;
  position: relative;
}

.ty-icon {
  width: 72px;
  height: 72px;
  background: rgba(177, 12, 42, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.ty-icon i { font-size: 2rem; color: var(--primary); }

.ty-box h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.ty-box p {
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 28px;
  font-size: 0.95rem;
}

.ty-close {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 12px 32px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.ty-close:hover { background: var(--primary-dark); }

@media (max-width: 480px) {
  .ty-box { padding: 36px 24px; }
  .ty-box h3 { font-size: 1.25rem; }
}

/* ==============================================
   BLOG POST PAGES
   ============================================== */

.blog-post-section { background: var(--white); }

.blog-post-content {
  max-width: 820px;
  margin: 0 auto;
}

.blog-back {
  margin-bottom: 28px;
}

.blog-back a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
}

.blog-back a:hover { gap: 12px; }

.blog-post-header { margin-bottom: 28px; }

.blog-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 16px;
}

.blog-post-meta span {
  font-size: 0.8rem;
  color: var(--gray-light);
  display: flex;
  align-items: center;
  gap: 5px;
}

.blog-post-meta i { color: var(--primary); }

.blog-post-header h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 16px;
}

.blog-post-header .blog-category {
  position: static;
  display: inline-block;
  margin-bottom: 16px;
}

.blog-post-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
}

.blog-post-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.blog-post-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin: 36px 0 14px;
  padding-top: 8px;
  border-top: 2px solid var(--bg-light);
}

.blog-post-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin: 24px 0 10px;
}

.blog-post-body p {
  color: var(--gray);
  line-height: 1.9;
  margin-bottom: 18px;
}

.blog-post-body ul,
.blog-post-body ol {
  margin: 14px 0 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.blog-post-body ul { list-style: disc; }
.blog-post-body ol { list-style: decimal; }

.blog-post-body li {
  color: var(--gray);
  line-height: 1.8;
}

.blog-post-body blockquote {
  border-left: 4px solid var(--primary);
  padding: 16px 24px;
  margin: 28px 0;
  background: var(--bg-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--dark);
}

.blog-post-footer {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: gap;
  gap: 16px;
}

.blog-post-footer .blog-back a { margin-top: 0; }

@media (max-width: 768px) {
  .blog-post-header h1 { font-size: 1.5rem; }
  .blog-post-img img { height: 240px; }
  .blog-post-body h2 { font-size: 1.2rem; }
}

/* ==============================================
   CROSS-DEVICE & CROSS-BROWSER FIXES
   ============================================== */

/* ── iOS Safari: prevent auto-zoom on form focus (needs font-size ≥ 16px) ── */
@media (max-width: 768px) {
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px !important;
  }
}

/* ── Touch devices: disable hover lift effects (no mouse = no hover intent) ── */
@media (hover: none) and (pointer: coarse) {
  .service-card:hover,
  .blog-card:hover,
  .team-member:hover,
  .benefit-card:hover,
  .contact-info-card:hover,
  .vm-card:hover,
  .value-card:hover,
  .about-image:hover {
    transform: none;
    box-shadow: var(--shadow);
  }

  .service-card:hover::after { transform: scaleX(0); }
  .btn-primary:hover,
  .btn-secondary:hover { transform: none; }

  .whatsapp-float:hover,
  .call-float:hover { transform: none; }

  .brand-item:hover { opacity: 0.72; }

  .service-detail-image:hover img { transform: none; }
  .blog-image img { transform: none !important; }
}

/* ── Mobile landscape: keep hero usable ── */
@media (max-width: 900px) and (orientation: landscape) {
  .hero { min-height: 600px; padding: 80px 0 40px; }
  .hero-title { font-size: 1.8rem; }
  .hero-description { font-size: 0.92rem; margin-bottom: 24px; }
  .scroll-indicator { display: none; }
}

/* ── Small phones (≤ 360px) ── */
@media (max-width: 360px) {
  html { font-size: 13.5px; }
  .container { padding: 0 16px; }
  .hero-title { font-size: 1.6rem; }
  .nav-menu { width: 92vw; }
  .ty-box { padding: 28px 16px; }
}

/* ── iOS Safe Area Insets (iPhone X+, Dynamic Island) ── */
@supports (padding: env(safe-area-inset-bottom)) {
  .floating-contacts {
    bottom: calc(28px + env(safe-area-inset-bottom));
    right: calc(20px + env(safe-area-inset-right));
  }
  footer { padding-bottom: env(safe-area-inset-bottom); }
}

/* ── iOS Safari: mobile nav smooth scroll ── */
.nav-menu {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* ── Prevent layout shift from scrollbar appearing ── */
html { scrollbar-gutter: stable; }

/* ── Fix 100vh on iOS Safari (excludes browser chrome from height) ── */
.hero {
  min-height: 100vh;
  min-height: 100svh; /* modern: small viewport height */
}

/* ── Tap highlight: remove default grey flash on tap ── */
* {
  -webkit-tap-highlight-color: transparent;
}

/* ── Buttons and links: ensure 44px min tap target on mobile ── */
@media (max-width: 768px) {
  .nav-menu li a { min-height: 44px; display: flex; align-items: center; }
  .whatsapp-float, .call-float { width: 52px; height: 52px; }
  .btn-primary, .btn-secondary { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
}

/* ── Fix hero overlay on very small tablets (iPad Mini landscape etc) ── */
@media (min-width: 768px) and (max-width: 1024px) {
  .hero-title { font-size: 2.2rem; }
  .about-grid { gap: 40px; }
  .service-detail-grid { gap: 40px; }
  .contact-grid { gap: 40px; }
}

/* ── Print styles (basic) ── */
@media print {
  .floating-contacts,
  .menu-toggle,
  .scroll-indicator,
  .hero-animation { display: none !important; }
  .header { position: static; box-shadow: none; background: white; }
  .nav-menu { display: none; }
  .hero { min-height: auto; padding: 40px 0; }
  a[href]:after { content: " (" attr(href) ")"; font-size: 10px; }
}

/* ==============================================
   TEAM SECTION — NO-IMAGE REDESIGN
   ============================================== */

.member-avatar {
  width: 88px;
  height: 88px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(177, 12, 42, 0.28);
  transition: var(--transition);
}

.team-member-card:hover .member-avatar {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(177, 12, 42, 0.38);
}

.member-avatar i {
  font-size: 2.2rem;
  color: var(--white);
}

.team-member-card {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 36px 24px 28px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  border-top: 4px solid transparent;
}

.team-member-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-top-color: var(--primary);
}

.team-member-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.team-member-card .member-role {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: block;
}

.team-member-card p:last-child {
  font-size: 0.87rem;
  color: var(--gray);
  line-height: 1.72;
}

/* ==============================================
   PROJECT GALLERY PAGE
   ============================================== */

.gallery-section { background: var(--bg-light); }

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 10px 22px;
  border-radius: 40px;
  border: 2px solid var(--border);
  background: var(--white);
  font-family: var(--font);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Cross-browser aspect ratio 4:3 using padding-bottom trick */
.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
  transition: var(--transition);
  background: linear-gradient(145deg, var(--dark) 0%, var(--primary-dark) 100%);
  padding-bottom: 75%;
  height: 0;
}

@supports (aspect-ratio: 4/3) {
  .gallery-item {
    aspect-ratio: 4/3;
    padding-bottom: 0;
    height: auto;
  }
}

.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

/* Absolutely fill the item regardless of browser */
.gallery-img-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-img-wrap img { transform: scale(1.06); }

/* Placeholder: branded style, clearly intentional */
.gallery-placeholder {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, var(--dark) 0%, var(--primary-dark) 100%);
  position: absolute;
  inset: 0;
  padding: 20px;
  text-align: center;
}

.gallery-img-wrap.gallery-img-error img { display: none; }
.gallery-img-wrap.gallery-img-error .gallery-placeholder { display: flex; }

.gallery-placeholder i {
  font-size: 3.2rem;
  color: rgba(255,255,255,0.45);
}

.gallery-placeholder span {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.7);
}

/* Overlay: gradient + label always visible; zoom button appears on hover */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 48%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 14px 16px;
  pointer-events: none;
}

.gallery-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.gallery-zoom {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.45);
  border-radius: 50%;
  color: var(--white);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
  pointer-events: all;
  opacity: 0;
  transition: opacity 0.25s ease, background 0.25s ease;
}

.gallery-item:hover .gallery-zoom { opacity: 1; }
.gallery-zoom:hover { background: var(--primary); border-color: var(--primary); }

.gallery-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 72px 0;
  color: var(--gray-light);
  text-align: center;
}

.gallery-empty i { font-size: 3rem; }
.gallery-empty p { font-size: 1rem; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-inner {
  position: relative;
  max-width: 1000px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-inner img {
  max-height: 80vh;
  max-width: 100%;
  border-radius: var(--radius-lg);
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  display: block;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 1;
}

.lightbox-close:hover { background: var(--primary); border-color: var(--primary); }

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover, .lightbox-next:hover { background: var(--primary); border-color: var(--primary); }

.lightbox-caption {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  margin-top: 14px;
  text-align: center;
}

@media (max-width: 992px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
  .gallery-grid { grid-template-columns: 1fr; }
  /* 6 buttons → 3 per row = exactly 2 rows on mobile */
  .gallery-filters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 32px;
  }
  .filter-btn {
    padding: 9px 6px;
    font-size: 0.72rem;
    text-align: center;
    white-space: normal;
    line-height: 1.3;
    border-radius: 8px;
  }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

@media (hover: none) and (pointer: coarse) {
  .gallery-zoom { opacity: 1; }
  .gallery-item:hover { transform: none; }
}

/* ==============================================
   GALLERY PAGE — B2B SECTIONS
   ============================================== */

/* Stats strip */
.gallery-stats-strip {
  background: linear-gradient(135deg, #1a1a24 0%, var(--dark) 100%);
  padding: 48px 0;
}

.gallery-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.gallery-stat .gs-number {
  display: block;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.gallery-stat .gs-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .gallery-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* Why Choose Us section */
.gallery-why { background: var(--white); }

.gallery-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.gallery-why-card {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid transparent;
}

.gallery-why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-top-color: var(--primary);
}

.why-icon {
  width: 58px;
  height: 58px;
  background: rgba(177,12,42,0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition);
}

.gallery-why-card:hover .why-icon { background: var(--primary); }
.why-icon i { font-size: 1.45rem; color: var(--primary); transition: var(--transition); }
.gallery-why-card:hover .why-icon i { color: var(--white); }

.gallery-why-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.gallery-why-card p {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.78;
}

@media (max-width: 992px) {
  .gallery-why-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
  .gallery-why-grid { grid-template-columns: 1fr; }
  .gallery-stat .gs-number { font-size: 2rem; }
}

/* Gallery intro badge */
.gallery-intro-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(177,12,42,0.1);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 7px 16px;
  border-radius: 40px;
  border: 1px solid rgba(177,12,42,0.2);
  margin-bottom: 12px;
}
