/* ===========================
   NAC CONSULTANCY - STYLESHEET
   Professional & Tech: Blue + White
   =========================== */

:root {
  --blue-dark:  #0a1f44;
  --blue-mid:   #1044a3;
  --blue-light: #2563eb;
  --blue-accent:#38bdf8;
  --white:      #ffffff;
  --off-white:  #f4f7fc;
  --grey-light: #e8edf5;
  --grey-mid:   #8fa3c0;
  --grey-text:  #4a5f7a;
  --text:       #1a2d45;
  --shadow:     0 4px 24px rgba(10,31,68,0.12);
  --radius:     10px;
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.7;
}

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

/* ---- TOPBAR ---- */
.topbar {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
  padding: 8px 0;
}
.topbar-inner { display: flex; justify-content: flex-end; gap: 24px; flex-wrap: wrap; }
.topbar-links { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar-links span { display: flex; align-items: center; gap: 6px; }

/* ---- NAVBAR ---- */
.navbar {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--grey-light);
  box-shadow: 0 2px 12px rgba(10,31,68,0.08);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: 0 4px 20px rgba(10,31,68,0.15); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.logo-img {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--grey-text);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all var(--transition);
  letter-spacing: 0.2px;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--blue-light);
  background: rgba(37,99,235,0.07);
}
.nav-cta {
  background: var(--blue-light) !important;
  color: var(--white) !important;
  border-radius: 6px !important;
  padding: 9px 18px !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--blue-mid) !important; }

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--blue-dark);
  cursor: pointer;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: var(--blue-dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a1f44 0%, #0f3070 50%, #1044a3 100%);
}
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56,189,248,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridShift 20s linear infinite;
}
@keyframes gridShift { from { transform: translateY(0); } to { transform: translateY(60px); } }

.hero-content {
  position: relative;
  z-index: 2;
  padding: 100px 24px 60px;
  animation: fadeUp 0.9s ease both;
}
@keyframes fadeUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }

.hero-badge {
  display: inline-block;
  background: rgba(56,189,248,0.15);
  border: 1px solid rgba(56,189,248,0.4);
  color: var(--blue-accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 24px;
}
.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.0;
  letter-spacing: -1px;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.hero-title .accent { color: var(--blue-accent); }
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-slogan {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.hero-slogan span {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
  letter-spacing: 3px;
  text-transform: uppercase;
}
.hero-slogan span:not(.slogan-dot):hover {
  color: var(--blue-accent);
  transition: color 0.3s;
}
.slogan-dot {
  color: var(--blue-accent) !important;
  font-size: 1rem !important;
  letter-spacing: 0 !important;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,0.05);
  border-top: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  margin-top: auto;
}
.hero-stats-inner {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 28px 24px;
}
.stat { flex: 1; text-align: center; }
.stat-num {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--blue-accent);
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}
.stat-divider { width: 1px; background: rgba(255,255,255,0.15); height: 50px; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  letter-spacing: 0.3px;
  border: 2px solid transparent;
}
.btn-primary { background: var(--blue-light); color: var(--white); }
.btn-primary:hover { background: var(--blue-mid); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,99,235,0.4); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: white; }
.btn-outline-blue { background: transparent; color: var(--blue-light); border-color: var(--blue-light); }
.btn-outline-blue:hover { background: var(--blue-light); color: white; }
.btn-white { background: var(--white); color: var(--blue-dark); }
.btn-white:hover { background: var(--off-white); transform: translateY(-2px); }

/* ---- SECTION COMMONS ---- */
.section { padding: 90px 0; }
.bg-light { background: var(--off-white); }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-family: 'Barlow Condensed', sans-serif; font-size: 2.6rem; font-weight: 700; color: var(--blue-dark); margin-bottom: 12px; }
.section-header p { color: var(--grey-text); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--blue-light);
  background: rgba(37,99,235,0.08);
  padding: 4px 12px;
  border-radius: 30px;
  margin-bottom: 14px;
}

/* ---- INTRO ---- */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.intro-img-block { position: relative; }
.intro-img-placeholder {
  width: 100%;
  height: 420px;
  background: linear-gradient(135deg, var(--grey-light), var(--blue-dark) 300%);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--grey-mid);
  border: 2px dashed var(--grey-light);
  position: relative;
  overflow: hidden;
}
.intro-img-placeholder::before {
  content: '🖼️';
  font-size: 3rem;
  display: block;
  margin-bottom: 12px;
}
.placeholder-label { font-weight: 600; font-size: 1rem; color: var(--grey-text); }
.placeholder-sub { font-size: 0.8rem; color: var(--grey-mid); }
.intro-badge-box {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--blue-light);
  color: white;
  padding: 18px 24px;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow);
}
.intro-badge-box strong { display: block; font-size: 1.5rem; font-family: 'Barlow Condensed', sans-serif; font-weight: 800; }
.intro-badge-box span { font-size: 0.78rem; opacity: 0.85; }

.intro-text .section-tag { display: inline-block; }
.intro-text h2 { font-family: 'Barlow Condensed', sans-serif; font-size: 2.4rem; font-weight: 700; color: var(--blue-dark); line-height: 1.2; margin-bottom: 20px; }
.intro-text p { color: var(--grey-text); margin-bottom: 16px; }
.intro-text .btn { margin-top: 12px; }

/* ---- SERVICES ---- */
.services-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: 14px;
  padding: 40px;
  transition: all var(--transition);
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.service-card-highlight {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
  color: white;
  border: none;
}
.service-card-highlight h3, .service-card-highlight p { color: rgba(255,255,255,0.9); }
.service-card-highlight .service-list li { color: rgba(255,255,255,0.75); }
.service-card-highlight .service-list li::before { color: var(--blue-accent); }
.service-icon { font-size: 2.5rem; margin-bottom: 18px; }
.service-card h3 { font-family: 'Barlow Condensed', sans-serif; font-size: 1.7rem; font-weight: 700; color: var(--blue-dark); margin-bottom: 12px; }
.service-card p { color: var(--grey-text); font-size: 0.95rem; margin-bottom: 20px; }
.service-list { list-style: none; margin-bottom: 28px; }
.service-list li { padding: 5px 0; font-size: 0.92rem; display: flex; align-items: center; gap: 8px; color: var(--grey-text); }
.service-list li::before { content: '→'; color: var(--blue-light); font-weight: 700; }

/* ---- INDUSTRIES ---- */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.industry-card {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: 14px;
  padding: 36px 28px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.industry-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-light), var(--blue-accent));
  transform: scaleX(0);
  transition: transform var(--transition);
}
.industry-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.industry-card:hover::after { transform: scaleX(1); }
.industry-icon { font-size: 2.8rem; margin-bottom: 16px; }
.industry-card h4 { font-family: 'Barlow Condensed', sans-serif; font-size: 1.4rem; font-weight: 700; color: var(--blue-dark); margin-bottom: 10px; }
.industry-card p { color: var(--grey-text); font-size: 0.9rem; }

/* ---- CTA BANNER ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--blue-light), var(--blue-dark));
  padding: 70px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-banner h2 { font-family: 'Barlow Condensed', sans-serif; font-size: 2.4rem; font-weight: 700; color: white; }
.cta-banner p { color: rgba(255,255,255,0.75); }

/* ---- FOOTER ---- */
.footer { background: var(--blue-dark); color: rgba(255,255,255,0.75); padding: 70px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer-logo { margin-bottom: 16px; }
.footer-logo-img {
  height: 52px;
  width: auto;
  display: block;
  mix-blend-mode: screen;
  opacity: 0.92;
}
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.5); line-height: 1.7; }
.footer-col h5 { color: white; font-size: 0.85rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a, .footer-col address a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.9rem; transition: color var(--transition); }
.footer-col ul li a:hover, .footer-col address a:hover { color: var(--blue-accent); }
.footer-col address { font-style: normal; font-size: 0.9rem; color: rgba(255,255,255,0.55); line-height: 2; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); text-align: center; padding: 20px 24px; font-size: 0.82rem; color: rgba(255,255,255,0.35); }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
  padding: 100px 0 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56,189,248,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,0.05) 1px, transparent 1px);
  background-size: 50px 50px;
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: white;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}
.page-hero p { color: rgba(255,255,255,0.7); font-size: 1.05rem; margin-top: 12px; max-width: 560px; margin-inline: auto; }
.breadcrumb { font-size: 0.82rem; color: rgba(255,255,255,0.5); margin-bottom: 14px; }
.breadcrumb a { color: var(--blue-accent); text-decoration: none; }

/* ---- ABOUT PAGE ---- */
.about-intro { padding: 90px 0; }
.about-intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.timeline { padding: 0; }
.timeline-item { display: flex; gap: 20px; padding-bottom: 36px; position: relative; }
.timeline-item:not(:last-child)::before {
  content: ''; position: absolute; left: 18px; top: 36px; bottom: 0; width: 2px;
  background: linear-gradient(var(--blue-light), var(--grey-light));
}
.timeline-dot {
  width: 38px; height: 38px; border-radius: 50%; background: var(--blue-light);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 0.75rem; position: relative; z-index: 1;
}
.timeline-body h4 { font-family: 'Barlow Condensed', sans-serif; font-size: 1.2rem; font-weight: 700; color: var(--blue-dark); }
.timeline-body p { font-size: 0.9rem; color: var(--grey-text); }
.values-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 40px; }
.value-card { background: var(--off-white); border-radius: 12px; padding: 28px 24px; text-align: center; }
.value-card .vi { font-size: 2rem; margin-bottom: 10px; }
.value-card h4 { font-family: 'Barlow Condensed', sans-serif; font-size: 1.2rem; color: var(--blue-dark); font-weight: 700; }
.value-card p { font-size: 0.85rem; color: var(--grey-text); margin-top: 6px; }

/* ---- MACHINERY PAGE ---- */
.products-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 30px; }
.product-card {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: 14px;
  overflow: hidden;
  transition: all var(--transition);
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.product-img {
  height: 220px;
  background: linear-gradient(135deg, var(--off-white), var(--grey-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
  border-bottom: 1px solid var(--grey-light);
  position: relative;
}
.product-tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--blue-light); color: white;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 30px;
}
.product-body { padding: 28px; }
.product-body h3 { font-family: 'Barlow Condensed', sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--blue-dark); margin-bottom: 10px; }
.product-body p { color: var(--grey-text); font-size: 0.92rem; margin-bottom: 16px; }
.product-specs { display: flex; flex-wrap: wrap; gap: 8px; }
.spec-tag { background: var(--off-white); border: 1px solid var(--grey-light); font-size: 0.78rem; color: var(--grey-text); padding: 4px 10px; border-radius: 20px; font-weight: 500; }

/* ---- CONSULTANCY PAGE ---- */
.consult-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.consult-card {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: 14px;
  padding: 36px 28px;
  transition: all var(--transition);
}
.consult-card:hover { border-color: var(--blue-light); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); transform: translateY(-3px); }
.consult-icon { font-size: 2.4rem; margin-bottom: 16px; }
.consult-card h3 { font-family: 'Barlow Condensed', sans-serif; font-size: 1.4rem; font-weight: 700; color: var(--blue-dark); margin-bottom: 10px; }
.consult-card p { font-size: 0.9rem; color: var(--grey-text); }

/* ---- CONTACT PAGE ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: start; }
.contact-info-box { background: var(--blue-dark); border-radius: 14px; padding: 40px 36px; color: white; }
.contact-info-box h3 { font-family: 'Barlow Condensed', sans-serif; font-size: 1.8rem; font-weight: 700; margin-bottom: 24px; }
.contact-detail { display: flex; gap: 16px; margin-bottom: 28px; align-items: flex-start; }
.contact-detail-icon { font-size: 1.5rem; }
.contact-detail-text strong { display: block; font-size: 0.82rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.contact-detail-text a { color: white; text-decoration: none; font-size: 0.95rem; }
.contact-detail-text span { color: rgba(255,255,255,0.8); font-size: 0.95rem; }
.contact-form-box { background: var(--white); border: 1px solid var(--grey-light); border-radius: 14px; padding: 40px 36px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--grey-light);
  border-radius: 8px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color var(--transition);
  background: var(--off-white);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--blue-light);
  background: white;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.form-group textarea { resize: vertical; min-height: 130px; }

/* ---- UPDATES PAGE ---- */
.updates-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.update-card {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: 14px;
  overflow: hidden;
  transition: all var(--transition);
}
.update-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.update-img {
  height: 180px;
  background: linear-gradient(135deg, var(--off-white), var(--grey-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  border-bottom: 1px solid var(--grey-light);
}
.update-body { padding: 24px; }
.update-meta { font-size: 0.78rem; color: var(--grey-mid); margin-bottom: 8px; }
.update-body h3 { font-family: 'Barlow Condensed', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--blue-dark); margin-bottom: 10px; }
.update-body p { font-size: 0.88rem; color: var(--grey-text); }
.update-body a { display: inline-block; margin-top: 16px; font-size: 0.88rem; color: var(--blue-light); font-weight: 600; text-decoration: none; }
.update-body a:hover { text-decoration: underline; }

/* ---- DROPDOWN NAV ---- */
.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: white;
  border: 1px solid var(--grey-light);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(10,31,68,0.12);
  min-width: 220px;
  list-style: none;
  padding: 8px 0;
  z-index: 200;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li a {
  display: block;
  padding: 10px 18px;
  color: var(--grey-text);
  font-size: 0.9rem;
  border-radius: 0;
  white-space: nowrap;
}
.dropdown-menu li a:hover { background: var(--off-white); color: var(--blue-light); }

/* ---- SPEC TABLES ---- */
.table-wrap { overflow-x: auto; margin-top: 8px; }
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.spec-table th {
  background: var(--blue-dark);
  color: white;
  padding: 12px 14px;
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.spec-table th:first-child { text-align: left; }
.spec-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--grey-light);
  color: var(--grey-text);
  text-align: center;
  vertical-align: middle;
}
.spec-table td:first-child {
  text-align: left;
  color: var(--text);
  font-weight: 500;
  background: var(--off-white);
  white-space: nowrap;
}
.spec-table tr:hover td { background: rgba(37,99,235,0.04); }
.spec-table tr:hover td:first-child { background: var(--grey-light); }
.spec-note {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--grey-mid);
  font-style: italic;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .intro-grid, .about-intro-grid, .services-cards,
  .industries-grid, .products-grid, .consult-grid,
  .contact-grid, .footer-grid, .updates-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats-inner { flex-wrap: wrap; gap: 20px; }
  .stat-divider { display: none; }
  .cta-inner { text-align: center; flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .intro-badge-box { right: 0; bottom: -10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-content { padding-top: 80px; }
}
@media (max-width: 640px) {
  .hamburger { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: white;
    flex-direction: column;
    gap: 0;
    padding: 12px 0;
    border-bottom: 1px solid var(--grey-light);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 24px; border-radius: 0; }
  .topbar-links { gap: 10px; font-size: 0.72rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
}

/* ---- ADDITIONAL MOBILE FIXES ---- */
@media (max-width: 900px) {
  /* Spec tables: ensure horizontal scroll on tablet */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .spec-table { min-width: 600px; }

  /* About page grid */
  .about-intro-grid { grid-template-columns: 1fr; }

  /* Distribution page brand panels */
  .intro-grid { grid-template-columns: 1fr; }

  /* Services consult grid */
  .consult-grid { grid-template-columns: 1fr 1fr; }

  /* Products grid */
  .products-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  /* Hero title — prevent overflow on small screens */
  .hero-title { font-size: clamp(2.6rem, 11vw, 5rem); }

  /* Spec tables: horizontal scroll on phone */
  .spec-table { min-width: 520px; font-size: 0.78rem; }
  .spec-table th, .spec-table td { padding: 8px 10px; }

  /* Page hero title */
  .page-hero h1 { font-size: clamp(1.8rem, 8vw, 3rem); }

  /* CTA banner stack */
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-inner div:last-child { display: flex; flex-direction: column; gap: 10px; width: 100%; }
  .cta-inner .btn { text-align: center; }

  /* Hero stats wrap to 2x2 */
  .hero-stats-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
  .stat { padding: 16px 8px; border-right: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.1); }

  /* Topbar — hide on very small screens, show only phone + email */
  .topbar-links span:first-child { display: none; }

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

  /* Consult grid single column */
  .consult-grid { grid-template-columns: 1fr; }

  /* Products grid single column */
  .products-grid { grid-template-columns: 1fr; }

  /* Footer grid single column */
  .footer-grid { grid-template-columns: 1fr; }

  /* Nav z-index fix for dropdown overlay */
  .navbar { position: sticky; top: 0; z-index: 1000; }
  .nav-links { z-index: 999; }

  /* Section padding reduce */
  .section { padding: 48px 0; }

  /* Intro badge repositioning */
  .intro-badge-box { position: static; margin-top: 16px; display: inline-block; }

  /* Gallery 2 col on mobile */
  .gallery-grid, [style*="grid-template-columns:repeat(4"] { 
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important; 
  }

  /* Form row single column */
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .hero-title { font-size: 2.4rem; }
  .hero-stats-inner { grid-template-columns: 1fr 1fr; }
  .container { padding: 0 16px; }
  .spec-table { font-size: 0.72rem; }
  .spec-table th, .spec-table td { padding: 6px 8px; }
}

