/* ════════════ APEX FRONTIER STYLES ════════════ */
:root {
  --primary: #1f5f46;
  --primary-dark: #16412f;
  --primary-light: #3b8a67;
  --accent: #243f82;
  --navy: #ffffff;
  --navy-light: #f5f7fb;
  --navy-lighter: #eef2f7;
  --dark: #0d1834;
  --white: #ffffff;
  --gray: #7b8495;
  --gray-light: #a3abbf;
  --gray-dark: #4d5568;
  --off-white: #fbfdff;
  --border-color: rgba(31,95,70,0.12);
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); }
a { text-decoration: none; color: var(--primary); }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
main { padding-top: 80px; }

@media (max-width: 768px) {
  .container { padding: 0 16px; }
}

/* ─────────── HEADER ─────────── */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(31,95,70,0.12); transition: all 0.3s;
}
#site-header.scrolled { background: rgba(255,255,255,0.98); box-shadow: 0 4px 20px rgba(31,95,70,0.08); }
.header-main { display: flex; align-items: center; justify-content: space-between; padding: 12px 30px; }
.site-logo { display: flex; align-items: center; gap: 14px; font-family: var(--font-heading); font-weight: 800; }
.site-logo a { display: flex; align-items: center; gap: 14px; color: var(--dark); text-decoration: none; }
.brand-logo { width: 52px; height: auto; display: block; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 20px; font-weight: 800; color: var(--dark); }
.site-logo span { color: var(--primary); }
.site-logo .tagline { font-size: 11px; letter-spacing: 2px; color: var(--gray-dark); font-weight: 400; text-transform: uppercase; }
.primary-navigation ul { display: flex; list-style: none; gap: 5px; align-items: center; }
.primary-navigation ul li { position: relative; }
.primary-navigation ul li > a {
  color: var(--dark); padding: 10px 14px; font-size: 14px;
  font-weight: 500; font-family: var(--font-heading); letter-spacing: 0.5px;
  transition: color 0.3s; display: block; border-radius: 4px;
}
.primary-navigation ul li > a:hover,
.primary-navigation ul li.active > a { color: var(--primary); }
.primary-navigation ul li .sub-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--white); min-width: 220px;
  border: 1px solid var(--border-color); border-radius: 6px;
  padding: 8px 0; z-index: 100;
}
.primary-navigation ul li:hover .sub-menu { display: block; }
.primary-navigation ul li .sub-menu li a { padding: 8px 20px; font-size: 13px; white-space: nowrap; color: var(--dark); }
.menu-toggle {
  display: none !important;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  transition: background 0.3s;
}
.menu-toggle:hover { background: rgba(31,95,70,0.08); }
.menu-toggle i {
  font-size: 20px;
  color: var(--dark);
}

/* ─────────── HERO ─────────── */
.hero-section {
  position: relative;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  background: var(--navy-light);
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 80px;
}
.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}
.hero-slide.active { opacity: 1; }
.hero-overlay { position: absolute; inset: 0; background: rgba(255,255,255,0.35); }
.hero-content { position: relative; z-index: 2; width: 100%; }

@media (max-width: 1024px) {
  .hero-section { min-height: 72vh; padding-bottom: 60px; }
  .hero-slide { background-position: 50% 40%; }
  .hero-overlay { background: rgba(255,255,255,0.28); }
}
@media (max-width: 768px) {
  .hero-section { min-height: 64vh; padding-bottom: 50px; }
  .hero-slide { background-position: 50% 45%; background-size: cover; }
  .hero-overlay { background: rgba(255,255,255,0.22); }
  .hero-content { padding: 0 18px; }
  .hero-content h1 { font-size: clamp(28px, 7vw, 44px); }
  .hero-content p { font-size: 15px; }
}
@media (max-width: 480px) {
  .hero-section { min-height: 56vh; padding-bottom: 40px; }
  .hero-slide { background-position: 50% 55%; }
  .hero-overlay { background: rgba(255,255,255,0.18); }
  .hero-content h1 { font-size: clamp(24px, 9vw, 36px); }
  .hero-content p { font-size: 14px; }
  .hero-dots { margin-top: 22px; }
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr !important;
    align-items: stretch;
  }
  .about-grid > div { width: 100% !important; }
  .about-grid .counter-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr)) !important;
    gap: 18px !important;
    justify-content: center !important;
    justify-items: center !important;
    max-width: 520px !important;
    width: min(100%, 520px) !important;
    margin: 18px auto 24px auto !important;
  }
  .about-grid .counter-item {
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 240px !important;
    box-shadow: none;
  }
  .about-text h2 { margin-bottom: 18px; }
}

@media (max-width: 768px) {
  .about-section .about-text,
  .hero-content,
  .page-hero .container {
    text-align: center;
    -webkit-text-size-adjust: 100%;
  }
  .about-section .about-text h2 { margin-left: 0; margin-right: 0; }
  .about-section .about-metrics { justify-items: center; }
  .about-section .metric-card { margin-left: auto; margin-right: auto; }
  .about-section .btn, .hero-content .btn { margin-left: auto; margin-right: auto; display: inline-block; }
  .section-num { text-align: center; }
  .hero-inner { padding-left: 18px; padding-right: 18px; }
}

@media (max-width: 768px) {
  .about-section { padding-top: 60px; padding-bottom: 40px; }
  .about-section .about-grid { grid-template-columns: 1fr; align-items: center; }
  .about-section .about-text { display: block; margin: 0 auto; max-width: 720px; }
  .about-section .about-text h2 { text-align: center; font-size: clamp(22px, 5.5vw, 32px); }
  .about-section .about-text p { text-align: center; margin-left: auto; margin-right: auto; color: var(--gray-dark); }
  .about-section .about-metrics { display: flex; flex-direction: column; gap: 14px; align-items: center; }
  .about-section .metric-card { width: 100%; max-width: 480px; }
  .large-text { text-align: center; }
}
.hero-content h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 800; color: var(--dark); line-height: 1.05; margin-bottom: 24px; }
.hero-content h1 span { color: var(--primary); }
.hero-content p { color: var(--gray-dark); max-width: 760px; margin: 0 auto; font-size: clamp(16px, 1.8vw, 20px); line-height: 1.9; }
.hero-actions { display: flex; justify-content: center; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.hero-dots { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.hero-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(31,95,70,0.25); border: none; cursor: pointer; transition: all 0.3s; }
.hero-dot.active { background: var(--primary); width: 30px; border-radius: 20px; }

/* ─────────── BUTTONS ─────────── */
.btn {
  display: inline-block; padding: 16px 40px; border-radius: 50px;
  font-family: var(--font-heading); font-weight: 700; font-size: 14px;
  letter-spacing: 2px; text-transform: uppercase; transition: all 0.3s;
  cursor: pointer; border: none;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(31,95,70,0.18); }
.btn-outline { background: transparent; color: var(--dark); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }

@media (max-width: 480px) {
  .btn { padding: 14px 28px; font-size: 13px; }
}

/* ─────────── SECTION HEADERS ─────────── */
.section-num {
  font-family: var(--font-heading); font-size: clamp(14px, 2vw, 18px);
  letter-spacing: 10px; font-weight: 600; text-transform: uppercase; margin-bottom: 15px;
}
.section-num .num { color: var(--gray-dark); }
.section-num .slash { color: var(--primary); }
.section-num .label { color: var(--gray-dark); letter-spacing: 10px; }
.section-num.light .label { color: var(--gray-dark); }

/* ─────────── ABOUT ─────────── */
.about-section { padding: 100px 0; background: var(--navy-light); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text h2 { font-size: 36px; font-weight: 700; margin-bottom: 20px; color: var(--dark); }
.about-text p { color: var(--gray-dark); font-size: 16px; line-height: 1.8; margin-bottom: 30px; }
.counter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.counter-item { text-align: center; padding: 30px 20px; background: var(--white); border-radius: 12px; border: 1px solid rgba(31,95,70,0.12); transition: all 0.3s; }
.counter-item:hover { transform: translateY(-4px); border-color: var(--primary); }
.counter-num { font-family: var(--font-heading); font-size: 48px; font-weight: 800; color: var(--primary); display: inline; }
.counter-suffix { display: inline; color: var(--primary); font-size: 24px; font-weight: 700; margin-left: 2px; }
.counter-label { color: var(--gray-dark); font-size: 14px; margin-top: 8px; letter-spacing: 1px; }

@media (max-width: 480px) {
  .counter-num { font-size: 36px; }
  .counter-item { padding: 20px 14px; }
  .counter-grid { gap: 16px; }
}

/* ─────────── ABOUT EXTRA ─────────── */
.about-metrics { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 20px; margin-top: 30px; }
.metric-card { background: var(--white); border: 1px solid rgba(31,95,70,0.12); padding: 24px 22px; border-radius: 16px; text-align: left; }
.metric-card span { display: block; color: var(--gray); font-size: 13px; letter-spacing: 1px; margin-bottom: 8px; text-transform: uppercase; }
.metric-card strong { display: block; font-size: 20px; color: var(--dark); line-height: 1.3; }
.who-section { padding: 100px 0; background: var(--white); }
.who-grid { display: grid; grid-template-columns: repeat(5, minmax(180px, 1fr)); gap: 20px; margin-top: 40px; }
.feature-card { background: var(--white); border: 1px solid rgba(31,95,70,0.12); border-radius: 16px; padding: 30px 24px; transition: all 0.3s; }
.who-section .feature-card { background: #d7e3ed; border-color: rgba(31,95,70,0.18); }
.why-choose-section .service-card { background: #d7e3ed; border-color: rgba(31,95,70,0.18); }
.feature-card:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: 0 18px 40px rgba(31,95,70,0.08); }
.feature-card h4 { font-size: 18px; margin-bottom: 12px; color: var(--dark); }
.feature-card p { color: var(--gray-dark); font-size: 14px; line-height: 1.8; }

.feature-icon-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.feature-icon-title h4 {
  margin-bottom: 0;
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef6ff;
  border-radius: 12px;
  color: #1f6b4f;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.feature-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}
.feature-card:hover .feature-icon {
  background: #1f6b4f;
  color: #fff;
  transform: scale(1.08);
}
@media (max-width: 480px) {
  .feature-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }
  .feature-icon svg {
    width: 18px;
    height: 18px;
  }
  .feature-icon-title {
    gap: 12px;
  }
}
.hero-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.hero-tagline { display: inline-block; margin-bottom: 18px; font-size: 20px; font-weight: bold; letter-spacing: 2px; color: var(--primary); text-transform: uppercase; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 32px; }
.project-grid { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 24px; margin-top: 40px; }
.project-card { background: var(--white); border: 1px solid rgba(31,95,70,0.12); border-radius: 18px; padding: 28px 24px; transition: transform 0.3s, border-color 0.3s; }
.project-card:hover { transform: translateY(-6px); border-color: var(--primary); box-shadow: 0 14px 35px rgba(31,95,70,0.08); }
.project-card h5 { margin-bottom: 12px; font-size: 18px; color: var(--dark); }
.project-card p { color: var(--gray-dark); font-size: 14px; line-height: 1.8; }
.manpower-section { padding: 100px 0; background: var(--white); }
.manpower-grid { display: grid; grid-template-columns: repeat(3, minmax(240px, 1fr)); gap: 24px; margin-top: 40px; }
.manpower-card { background: var(--white); border: 1px solid rgba(31,95,70,0.12); border-radius: 18px; padding: 28px 24px; transition: transform 0.3s, border-color 0.3s; }
.manpower-card:hover { transform: translateY(-6px); border-color: var(--primary); box-shadow: 0 14px 35px rgba(31,95,70,0.08); }

.service-card img, .blog-hp-section .service-card img, .careers-section .service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}
.manpower-card h4 { font-size: 18px; margin-bottom: 16px; color: var(--dark); }
.manpower-card ul { list-style: none; padding-left: 0; color: var(--gray-dark); font-size: 14px; line-height: 1.8; }
.manpower-card ul li { margin-bottom: 10px; }
.hse-section { padding: 100px 0; background: var(--navy-light); }
.hse-section.bg-image {
  background-image: url('samplepicture11.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 100px 0;
}
.hse-section.bg-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.88);
}
.hse-section.bg-image .container {
  position: relative;
  z-index: 1;
}
.hse-section.bg-image .section-num,
.hse-section.bg-image .hse-content {
  background: transparent;
}
.hse-content { max-width: 900px; margin: 0 auto; color: var(--gray-dark); font-size: 16px; line-height: 1.9; padding-top: 0px; }

.hse-section .section-num { margin-bottom: 0px; }
.hse-section .section-num > div { margin-top: 0px; line-height: 1.1; font-size: 16px; }
.hse-section .hse-content > div:first-child { margin-top: 0; }
.hse-section .hse-content p { margin: 6px 0; line-height: 1.35; }
.contact-section { padding: 100px 0; background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 30px; margin-top: 40px; }
.contact-panel { background: var(--white); border: 1px solid rgba(31,95,70,0.12); border-radius: 20px; padding: 36px 30px; }
.contact-panel h3 { font-size: 24px; margin-bottom: 18px; color: var(--dark); }
.contact-panel p { color: var(--gray-dark); font-size: 15px; line-height: 1.9; margin-bottom: 20px; }
.contact-panel ul { list-style: none; padding-left: 0; color: var(--gray-dark); font-size: 15px; line-height: 1.9; margin-bottom: 28px; }
.contact-panel ul li { margin-bottom: 10px; }
.contact-highlight { background: linear-gradient(135deg, rgba(59,138,103,0.12), rgba(255,255,255,0.9)); }
.large-text { margin-top: 20px; font-size: 20px; font-weight: 700; color: var(--dark); }

/* ─────────── SERVICES ─────────── */
.services-section {
  padding: 100px 0;
  background: var(--white);
}
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; margin-top: 40px; }
.service-card {
  background: rgba(255,255,255,0.94); border: 1px solid rgba(31,95,70,0.16);
  border-radius: 12px; padding: 40px 25px; text-align: center;
  transition: all 0.35s ease; position: relative; overflow: hidden;
  box-shadow: 0 6px 18px rgba(31,95,70,0.04);
}
.service-card::before {
  display: none;
}
.service-card:hover::before { display: none; }
.service-card:hover { transform: translateY(-6px); border-color: var(--primary); box-shadow: 0 14px 35px rgba(31,95,70,0.08), 0 0 0 3px rgba(31,95,70,0.10); }
.service-icon { width: 90px; height: 90px; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; background: rgba(31,95,70,0.06); border-radius: 50%; font-size: 42px; color: var(--primary); }
.who-section .service-icon,
.why-choose-section .service-icon,
.who-section .service-card .service-icon,
.why-choose-section .service-card .service-icon { display: none; }
.services-grid .service-icon { display: flex; width: 90px; height: 90px; font-size: 42px; background: rgba(31,95,70,0.06); }
.service-card h4 { font-size: 18px; font-weight: 700; margin-bottom: 12px; color: var(--dark); }
.service-card p { color: var(--gray-dark); font-size: 14px; line-height: 1.7; }

.services-section.bg-image {
  background-image: url('samplepicture6.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 100px 0;
}
.services-section.bg-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.85);
}
.services-section.bg-image .container {
  position: relative;
  z-index: 1;
}
.services-section.bg-image .section-num {
  background: transparent;
}
.services-section.bg-image .service-card {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(31, 95, 70, 0.18);
}

.services-section .btn-primary { margin-top: 26px !important; }

/* ─────────── SERVICE SHOWCASE (services.php) ─────────── */
.services-showcase > div {
  position: relative;
  width: 100%;
  margin-left: 0;
  height: 600px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 18px;
  overflow: hidden;
}

.services-showcase > div > div {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  max-width: 520px;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(16px);
  padding: 40px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 20px 45px rgba(0,0,0,0.12);
}

@media (max-width: 1024px) {
  .services-showcase > div { height: 500px; }
  .services-showcase > div > div { left: 5%; right: 5%; padding: 32px; }
}

@media (max-width: 768px) {
  .services-showcase > div { height: auto; min-height: 500px; }
  .services-showcase > div > div {
    position: static;
    transform: none;
    max-width: 100%;
    margin: 0;
    padding: 32px 24px;
    background: rgba(255,255,255,0.95);
  }
}

@media (max-width: 480px) {
  .services-showcase > div { min-height: 0; }
  .services-showcase > div > div { padding: 24px 18px; }
  .services-showcase > div > div h3 { font-size: 24px !important; letter-spacing: 0.15em !important; }
  .services-showcase > div > div p { font-size: 14px !important; }
}

/* ─────────── PROJECTS ─────────── */
.project-section { padding: 100px 0; background: var(--navy-light); }
.project-card {
  background: var(--white);
  border: 1px solid rgba(31,95,70,0.12);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}
.project-card:hover { transform: translateY(-6px); border-color: var(--primary); box-shadow: 0 14px 35px rgba(31,95,70,0.08); }
.project-card img { width: 100%; height: 240px; object-fit: cover; display: block; }
.project-card-body { padding: 24px; }
.project-card-title { font-size: 18px; margin-bottom: 12px; color: var(--dark); }
.project-count { color: var(--primary); font-weight: 700; }
.projects-section, .project-section { padding: 100px 0; background: var(--navy-light); }
.owl-nav button { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50% !important; background: var(--primary) !important; color: var(--white) !important; font-size: 20px !important; }
.owl-prev { left: -25px; } .owl-next { right: -25px; }
.owl-dots { margin-top: 25px !important; }
.owl-dot span { background: rgba(31,95,70,0.18) !important; }
.owl-dot.active span { background: var(--primary) !important; }

@media (max-width: 768px) {
  .owl-nav button { width: 40px; height: 40px; font-size: 16px !important; }
  .owl-prev { left: -10px; }
  .owl-next { right: -10px; }
  .project-card img { height: 180px; }
}

.clients-section {
  padding: 100px 0;
  background: var(--navy);
}
.clients-section .section-num { color: var(--dark); }
.clients-section .section-num .num { color: #333; }
.clients-section .section-num .slash { color: #ff2a2a; }
.clients-section .section-num .label { color: rgba(0,0,0,0.72); }
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 25px;
  margin-top: 40px;
  align-items: center;
}
.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  min-height: 110px;
  transition: transform 0.3s, background 0.3s, border-color 0.3s;
}
.client-logo:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.3);
}
.client-logo img {
  max-width: 100%;
  max-height: 70px;
  object-fit: contain;
}
.clients-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 35px;
}
.btn.btn-small {
  padding: 12px 30px;
  border-radius: 50px;
  font-size: 13px;
  letter-spacing: 1px;
}

/* ─────────── TESTIMONIALS ─────────── */
.testimonials-section { padding: 100px 0; background: var(--navy-light); }
.testimonial-text p { color: var(--gray-dark); font-size: 16px; line-height: 1.8; font-style: italic; }
.testimonial-card {
  background: var(--white); border: 1px solid rgba(31,95,70,0.12);
  border-radius: 10px; padding: 20px; cursor: pointer; transition: all 0.3s;
}
.testimonial-card:hover { border-color: var(--primary); box-shadow: 0 12px 30px rgba(31,95,70,0.08); }
.client-logo { display: flex; align-items: center; justify-content: center; padding: 20px; }

/* ─────────── CONTACT ─────────── */
.contact-form { margin: 40px auto 0; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; color: var(--gray-light); font-size: 13px; letter-spacing: 1px; margin-bottom: 6px; text-transform: uppercase; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 14px 16px; background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-color); border-radius: 8px;
  color: var(--dark); font-family: var(--font-body); font-size: 15px;
  transition: border-color 0.3s; outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { min-height: 120px; resize: vertical; }
.phone-group { display: flex; gap: 12px; margin-bottom: 20px; }
.phone-group .form-group { flex: 1; margin-bottom: 0; min-width: 0; }
.phone-group select { width: 160px; }

@media (max-width: 480px) {
  .phone-group { flex-direction: column; gap: 16px; }
  .phone-group select { width: 100%; }
}

/* ─────────── FOOTER ─────────── */
.site-footer { background: var(--navy-light); border-top: 1px solid rgba(31,95,70,0.12); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 0.9fr 1fr; gap: 30px; }
.footer-col h5 { color: var(--primary); font-size: 14px; letter-spacing: 2px; margin-bottom: 20px; text-transform: uppercase; }
.footer-col p, .footer-col a, .footer-col li { color: var(--gray-dark); font-size: 14px; line-height: 2; }
.footer-col ul { list-style: none; }
.footer-col a:hover { color: var(--primary); }
.social-links { display: flex; gap: 12px; margin-top: 15px; }
.social-links a { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: rgba(31,95,70,0.08); border-radius: 50%; color: var(--primary); transition: all 0.3s; }
.social-links a:hover { background: var(--primary); color: var(--white); }
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cert-grid i { font-size: 36px; color: var(--primary); text-align: center; padding: 12px 0; }
.footer-col.footer-vision { text-align: center; }
.vision-logo {
  display: inline-block;
  width: auto;
  max-width: 140px;
  height: auto;
}
.footer-bottom { border-top: 1px solid rgba(31,95,70,0.12); margin-top: 40px; padding-top: 20px; text-align: center; color: var(--gray-dark); font-size: 13px; }

/* ─────────── PAGE HERO ─────────── */
.page-hero { min-height: 40vh; display: flex; align-items: center; background: linear-gradient(135deg, var(--navy-light), var(--white)); text-align: center; padding: 100px 0 70px; }

@media (max-width: 768px) {
  .page-hero { min-height: 35vh; padding: 80px 0 50px; }
}

.contact-hero { padding: 40px 0; }
.contact-hero .hero-tagline { display: inline-block; margin-bottom: 20px; color: var(--primary); letter-spacing: 2px; text-transform: uppercase; font-size: 13px; }
.contact-hero h1 { font-size: clamp(40px, 6vw, 64px); margin-bottom: 18px; }
.contact-hero p { color: var(--gray-light); max-width: 720px; margin: 0 auto; font-size: 18px; line-height: 1.9; }
.contact-main { padding: 80px 0; background: var(--navy-light); }
.contact-intro { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.contact-intro h2 { font-size: clamp(32px, 4vw, 44px); margin: 16px 0 12px; }
.contact-intro p { color: var(--gray-dark); font-size: 16px; line-height: 1.9; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: stretch; }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-panel { padding: 28px 20px; }
}

.contact-panel { background: var(--white); border: 1px solid rgba(31,95,70,0.12); border-radius: 22px; padding: 36px; }
.contact-details-panel h3, .contact-qr-panel h3 { font-size: 24px; margin-bottom: 18px; color: var(--dark); }
.contact-details-panel ul { list-style: none; padding: 0; margin: 0; color: var(--gray-dark); font-size: 15px; line-height: 2; }
.contact-details-panel ul li {
  margin-bottom: 18px;
  padding-left: 42px;
  position: relative;
}
.contact-details-panel ul li strong {
  color: var(--dark);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.contact-details-panel ul li a,
.contact-details-panel ul li > span:last-child {
  display: block;
  color: var(--gray-dark);
  font-size: 15px;
  line-height: 1.5;
  margin-top: 2px;
}
.contact-details-panel ul li a { color: var(--primary); }

.contact-icon {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #eef6ff;
  border-radius: 8px;
  color: #1f6b4f;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}
.contact-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}
.contact-details-panel ul li:hover .contact-icon {
  background: #1f6b4f;
  color: #fff;
}
@media (max-width: 480px) {
  .contact-details-panel ul li {
    padding-left: 36px;
  }
  .contact-icon {
    width: 28px;
    height: 28px;
  }
  .contact-icon svg {
    width: 14px;
    height: 14px;
  }
}
.contact-note { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(31,95,70,0.12); color: var(--gray-dark); }
.contact-qr-panel p { color: var(--gray-dark); margin-bottom: 26px; line-height: 1.8; }
.contact-qr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.contact-qr-item { background: var(--white); border: 1px solid rgba(31,95,70,0.12); border-radius: 18px; padding: 18px; text-align: center; }
.contact-qr-item img { width: 100%; height: auto; max-height: 250px; object-fit: contain; border-radius: 14px; margin-bottom: 14px; }
.contact-qr-item strong { display: block; color: var(--dark); margin-top: 6px; font-size: 15px; }
.contact-layout { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 30px; align-items: start; }
.contact-sidebar { display: grid; gap: 24px; }
.contact-card { background: var(--white); border: 1px solid rgba(31,95,70,0.12); border-radius: 22px; padding: 32px; }
.contact-card h3 { margin-bottom: 18px; font-size: 22px; color: var(--dark); }
.contact-card ul { list-style: none; padding: 0; margin: 0; color: var(--gray-dark); font-size: 15px; line-height: 2; }
.contact-card ul li { margin-bottom: 14px; }
.contact-card ul li strong { display: block; color: var(--dark); margin-bottom: 6px; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.contact-card a { color: var(--primary); }
.contact-card.contact-qr-block p { margin-bottom: 20px; color: var(--gray-dark); }
.contact-qr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.contact-qr-item { background: var(--white); border: 1px solid rgba(31,95,70,0.12); border-radius: 18px; padding: 18px; text-align: center; }
.contact-qr-item img { width: 100%; height: auto; max-height: 260px; object-fit: contain; border-radius: 12px; margin-bottom: 14px; }
.contact-qr-item strong { display: block; color: var(--dark); margin-top: 6px; font-size: 15px; }
.contact-form-panel { background: var(--white); border: 1px solid rgba(31,95,70,0.12); border-radius: 22px; padding: 40px; }
.contact-form-panel h2 { font-size: 28px; margin-bottom: 14px; color: var(--dark); }
.contact-form-panel p { color: var(--gray-dark); margin-bottom: 24px; line-height: 1.8; }
.contact-form-panel .form-group { margin-bottom: 20px; }

@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-form-panel { padding: 28px 20px; }
  .contact-card { padding: 24px 20px; }
  .contact-qr-grid { grid-template-columns: 1fr; }
}

/* ─────────── PLACEHOLDER IMAGE ─────────── */
.placeholder-img { width: 100%; background: var(--navy-lighter); display: flex; align-items: center; justify-content: center; color: var(--gray); font-size: 14px; min-height: 200px; border-radius: 8px; overflow: hidden; }
.placeholder-img img { width: 100%; height: 100%; object-fit: cover; }
.service-card .placeholder-img { min-height: auto; }
.service-card .placeholder-img img { width: 100%; height: 180px; object-fit: cover; border-radius: 8px; }

/* ─────────── ANIMATIONS ─────────── */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ════════════════════════════════════════════ */

/* Large tablets / small desktops (up to 1100px) */
@media (max-width: 1100px) {
  .who-grid { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
  .project-grid { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
}

/* Tablets (up to 1024px) */
@media (max-width: 1024px) {
  .header-main { padding: 12px 24px; }
  .who-grid { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
  .project-grid { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
  .services-grid { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Small tablets / large phones (up to 900px) */
@media (max-width: 900px) {
  .header-main { flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
  .site-logo { width: auto; justify-content: flex-start; text-align: left; }
  .hero-inner { padding: 0 10px; }
  .about-grid, .contact-grid, .manpower-grid, .project-grid, .services-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .who-grid { grid-template-columns: 1fr; }

  .primary-navigation {
    position: static;
    top: auto;
    left: auto;
    width: auto;
    height: auto;
    z-index: auto;
    background: transparent;
  }

  .primary-navigation::before { display: none; }

  .primary-navigation ul {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.99);
    display: none;
    flex-direction: column;
    gap: 0;
    padding-top: 110px;
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 220px;
    overflow-y: auto;
    z-index: 9999;
  }
  .primary-navigation ul.open { display: flex; }

  .primary-navigation ul li > a { padding: 18px 0; font-size: 16px; }
  .primary-navigation ul li .sub-menu { position: static; background: transparent; border: none; padding-left: 20px; margin-top: 0; padding-top: 0; z-index: 9999; }
  .primary-navigation ul li .sub-menu li a { padding: 12px 0; }

  .menu-toggle { display: inline-flex !important; }
  .footer-grid { grid-template-columns: 1fr; }
  .clients-footer { justify-content: center; }

  body.menu-open { overflow: hidden; }
}

/* Small phones (up to 650px) */
@media (max-width: 650px) {
  .hero-section { min-height: calc(100vh - 80px); padding-top: 0; }
  .hero-inner { padding: 0 20px; }
  .hero-tagline { font-size: 12px; letter-spacing: 1px; }
  .hero-actions { gap: 12px; }
  .service-card, .project-card, .manpower-card, .contact-panel, .quote-modal-box { padding: 24px 18px; }
  .contact-grid, .contact-qr-grid, .about-metrics, .clients-grid, .footer-grid, .counter-grid { grid-template-columns: 1fr; }
  .contact-hero { padding: 40px 0; }
  .contact-qr-item img { max-height: 220px; }
  .cta-section { padding: 70px 16px; }
  .cta-content { max-width: 100%; }
  .btn { width: 100%; justify-content: center; text-align: center; }
  .primary-navigation ul { padding-top: 24px; }
  .primary-navigation ul li > a { padding: 14px 0; }

  .clients-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .client-logo { padding: 16px; min-height: 90px; }
  .client-logo img { max-height: 50px; }

  .hse-section .hse-content > div:first-child { font-size: 20px !important; }

  .section-num { text-align: center; }
  .about-section .about-text h2 { font-size: clamp(22px, 5.5vw, 32px); }
  .about-section .about-text p { font-size: 15px; }
  .about-grid { gap: 30px; }

  .project-grid { gap: 16px; }
  .project-card img { height: 160px; }
  .project-card-body { padding: 16px; }
  .project-card-title { font-size: 16px; }

  .events-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
}

/* Extra small phones (up to 520px) */
@media (max-width: 520px) {
  .header-main { padding: 10px 14px; }
  .site-logo { gap: 8px; }
  .brand-logo { width: 40px; }
  .brand-name { font-size: 16px; }
  .site-logo .tagline { font-size: 9px; }
  .menu-toggle { width: 40px; height: 40px; padding: 8px; }
  .hero-content h1 { font-size: clamp(28px, 8vw, 36px); }
  .hero-content p { font-size: 14px; }
  .btn, .btn-primary, .btn-outline, .btn-cta { padding: 12px 20px; font-size: 12px; letter-spacing: 1px; }

  section { padding: 60px 0 !important; }
  .about-section, .who-section, .services-section,
  .project-section, .projects-section, .manpower-section,
  .hse-section, .contact-section, .testimonials-section,
  .blog-hp-section, .careers-section { padding: 60px 0 !important; }

  .who-grid, .services-grid, .project-grid, .manpower-grid { gap: 16px; margin-top: 24px; }
  .feature-card, .service-card { padding: 24px 18px; }
  .feature-card h4, .service-card h4 { font-size: 16px; }
  .metrics-card strong { font-size: 18px; }

  .page-hero h1 { font-size: clamp(26px, 7vw, 36px) !important; }
  .page-hero p { font-size: 14px !important; }

  .contact-qr-grid { gap: 12px; }
  .contact-qr-item { padding: 12px; }
  .contact-qr-item strong { font-size: 13px; }

  .quote-modal-box { padding: 28px 20px 24px; margin: 10px; }
  .quote-modal-box h3 { font-size: 19px; }

  .cta-section { padding: 50px 16px !important; }
  .cta-content h2 { font-size: clamp(24px, 7vw, 32px); }
}

/* ─────────── CTA SECTION ─────────── */
.cta-section {
  position: relative;
  padding: 100px 20px;
  background: url('letshear1.jpeg') center/cover no-repeat;
  text-align: center;
}
.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.cta-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}
.cta-content h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: 2px;
  margin-bottom: 20px;
}
.cta-content p {
  color: var(--white);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.7;
  margin-bottom: 30px;
}
.btn-cta {
  display: inline-block;
  padding: 16px 36px;
  background: #7b0000;
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.3s;
}
.btn-cta:hover {
  background: #9a0000;
  color: var(--white);
}

/* ─────────── QUOTE MODAL ─────────── */
.quote-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.quote-modal.open {
  opacity: 1;
  visibility: visible;
}
.quote-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}
.quote-modal-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--navy-light);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 36px 32px 32px;
  transform: translateY(20px);
  transition: transform 0.3s;
}
.quote-modal-box .form-group input,
.quote-modal-box .form-group textarea {
  color: #000 !important;
}
.quote-modal.open .quote-modal-box {
  transform: translateY(0);
}
.quote-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: var(--gray-light);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.3s;
}
.quote-modal-close:hover { color: var(--dark); }
.quote-modal-box h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.quote-modal-sub {
  color: var(--gray-light);
  font-size: 14px;
  margin-bottom: 24px;
}
.quote-form-msg {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  text-align: center;
}
.quote-form-msg.success {
  background: rgba(0, 188, 212, 0.15);
  border: 1px solid var(--primary);
  color: var(--primary);
}
.quote-form-msg.error {
  background: rgba(244, 67, 54, 0.15);
  border: 1px solid #f44336;
  color: #f44336;
}
body.modal-open { overflow: hidden; }

/* ─────────── BLOG CONTENT ─────────── */
.blog-content p { margin-bottom: 16px; }

/* ─────────── BLOG ARCHIVE ─────────── */
@media (max-width: 768px) {
  .blog-page .events-grid { grid-template-columns: 1fr !important; }
}

/* ─────────── FOOTER RESPONSIVE ─────────── */
@media (max-width: 480px) {
  .site-footer { padding: 40px 0 20px; }
  .footer-grid { gap: 24px; }
  .footer-col h5 { margin-bottom: 14px; font-size: 13px; }
  .vision-logo { max-width: 100px; }
  .social-links { justify-content: center; }
  .footer-col { text-align: center; }
  .footer-col ul { display: flex; flex-direction: column; align-items: center; }
}

/* ─────────── BLOG/CAREER CARD FIXES ─────────── */
@media (max-width: 480px) {
  .service-card img, .blog-hp-section .service-card img, .careers-section .service-card img { height: 160px; }
}

/* ─────────── ABOUT PAGE counter override ─────────── */
@media (max-width: 768px) {
  .about-grid .counter-grid.counter-grid-2col {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ─────────── NAVIGATION PAGINATION ─────────── */
@media (max-width: 480px) {
  .pagination-links { flex-wrap: wrap; gap: 6px; }
  .pagination-links .btn { padding: 6px 12px !important; font-size: 12px !important; }
}

/* ─────────── MANPOWER CATEGORY PAGES ─────────── */
@media (max-width: 768px) {
  .manpower-civil-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 480px) {
  .manpower-category-grid { grid-template-columns: 1fr !important; }
}

/* ─────────── APPLY MODAL (career-detail) ─────────── */
.apply-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.apply-modal.open { opacity: 1; visibility: visible; }
.apply-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}
.apply-modal-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--navy-light);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 36px 32px 32px;
  transform: translateY(20px);
  transition: transform 0.3s;
}
.apply-modal.open .apply-modal-box { transform: translateY(0); }
.apply-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: var(--gray-light);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.3s;
}
.apply-modal-close:hover { color: var(--dark); }
.apply-modal-box h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.apply-modal-sub {
  color: var(--gray-light);
  font-size: 14px;
  margin-bottom: 24px;
}
.apply-form-msg {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  text-align: center;
}
.apply-form-msg.success {
  background: rgba(0, 188, 212, 0.15);
  border: 1px solid var(--primary);
  color: var(--primary);
}
.apply-form-msg.error {
  background: rgba(244, 67, 54, 0.15);
  border: 1px solid #f44336;
  color: #f44336;
}
@media (max-width: 480px) {
  .apply-modal-box { padding: 28px 20px 24px; margin: 10px; }
}

/* ─────────── CAREER DETAIL RESPONSIVE ─────────── */
@media (max-width: 480px) {
  .career-detail-actions { flex-direction: column; gap: 10px; }
  .career-detail-actions .btn { margin-left: 0 !important; width: 100% !important; text-align: center; }
}

/* ─────────── BLOG DETAIL RESPONSIVE ─────────── */
@media (max-width: 480px) {
  .blog-detail-content { font-size: 15px !important; }
}

/* ─────────── HSE SECTION RESPONSIVE ─────────── */
@media (max-width: 480px) {
  .hse-check-item { min-width: 100% !important; max-width: 100% !important; }
  .hse-check-item span { font-size: 17px !important; }
}

/* ─────────── PROJECT GRID ON HOMEPAGE ─────────── */
@media (max-width: 480px) {
  .project-grid { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
  .project-card { padding: 16px 14px !important; }
  .project-card img { height: 120px !important; }
  .project-card-body { padding: 12px 0 !important; }
  .project-card-title { font-size: 13px !important; }
  .project-count { font-size: 12px !important; }
}
