/* ==========================================================================
   CSG Projects & Engineering – main stylesheet
   Recreated from the csgpe.com design (Hello Elementor theme, Elementor kit 10).
   Shared by every page. Breakpoints live in responsive.css.
   ========================================================================== */

/* ---------- 1. Design tokens (from the original Elementor global kit) ---------- */
:root {
  --c-primary: #1C244B;      /* headings */
  --c-secondary: #F3F5F8;    /* card backgrounds */
  --c-text: #324A6D;         /* body text */
  --c-accent: #467FF7;       /* links */
  --c-light-line: #C8D5DC;   /* small dividers */
  --c-navy: #0C1D71;         /* "Why CSGPE" band, nav hover */
  --c-footer: #012B83;       /* footer */
  --c-maroon: #4C0F0A;       /* nav buttons */
  --c-header: #DDDDDD;       /* header background */
  --c-section-grey: #ECECEC; /* services band */
  --c-sky: #BCD7FF;          /* text on navy */
  --c-btn: #066AAB;          /* form submit */
  --c-white: #FFFFFF;

  --font: "Poppins", Arial, sans-serif;
  --fs-display: 65px;   /* section titles */
  --fs-h4: 22px;
  --fs-body: 16px;
  --fs-lead: 22px;

  --gutter: 8%;         /* side padding used across the original layout */
  --radius: 3px;
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.5;
  color: var(--c-text);
  background-color: var(--c-white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--c-accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--c-primary); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  color: var(--c-primary);
  margin: 0;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--c-white);
  color: var(--c-primary);
  padding: 10px 16px;
}
.skip-link:focus { left: 10px; top: 10px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Shared heading styles */
.section-title {
  font-size: var(--fs-display);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}
.section-subtitle {
  font-size: var(--fs-body);
  font-weight: 400;
  color: var(--c-text);
  text-align: center;
  margin-top: 10px;
}
.eyebrow {
  font-size: var(--fs-body);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 6px;
  color: var(--c-text);
}

/* Small centred divider used under card headings */
.mini-divider {
  width: 29px;
  height: 0;
  border-top: 3px solid var(--c-light-line);
  margin: 10px auto;
}
.mini-divider--left { margin-left: 0; }

/* ---------- 3. Header & navigation ---------- */
.site-header {
  background-color: var(--c-header);
  padding: 12px var(--gutter);
  position: relative;
  z-index: 50;
}
.header-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-logo img {
  width: 190px;
  max-width: 244px;
  height: auto;
}

.site-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.site-navigation li { position: relative; }
.site-navigation a {
  display: block;
  padding: 8px 15px;
  margin-right: 19px;
  background: var(--c-maroon);
  color: var(--c-white);
  font-weight: 300;
  line-height: 1.5;
  transition: background-color .2s ease;
}
.site-navigation li:last-child a { margin-right: 0; }
.site-navigation a:hover,
.site-navigation a:focus-visible {
  background-color: var(--c-navy);
  color: var(--c-white);
  text-decoration: underline;
}
.site-navigation a[aria-current="page"] {
  background-color: var(--c-navy);
}

/* Mobile toggle ("Menu" button in the original Hello theme) */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  padding: 8px;
  color: var(--c-accent);
  font: inherit;
  cursor: pointer;
}
.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle-icon { position: relative; }
.nav-toggle-icon::before,
.nav-toggle-icon::after { content: ""; position: absolute; left: 0; }
.nav-toggle-icon::before { top: -7px; }
.nav-toggle-icon::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 4. Hero (background slideshow, fade every 5s) ---------- */
.hero {
  position: relative;
  min-height: 93vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--c-navy);
  padding: 0 2%;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(12, 29, 113, .45);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--c-white);
  max-width: 1000px;
}
.hero-content h1 {
  color: var(--c-white);
  font-size: var(--fs-display);
  font-weight: 600;
  line-height: 1.2;
}
.hero-content p {
  font-size: var(--fs-lead);
  margin: 18px 0 30px;
}

/* Generic buttons */
.btn-csg {
  display: inline-block;
  padding: 12px 28px;
  background: var(--c-maroon);
  color: var(--c-white);
  font-weight: 400;
  border: 0;
  border-radius: var(--radius);
  transition: background-color .2s ease, transform .2s ease;
}
.btn-csg:hover,
.btn-csg:focus-visible {
  background: var(--c-navy);
  color: var(--c-white);
  text-decoration: underline;
}

/* ---------- 5. "Why CSGPE?" split band ---------- */
.about-band {
  display: flex;
  min-height: 690px;
  background-color: var(--c-navy);
  padding: 0 var(--gutter);
}
.about-band__media {
  width: 53%;
  background-size: cover;
  background-position: center;
}
.about-band__text {
  width: 47%;
  padding: 60px 5%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
}
.about-band__text h2 {
  color: var(--c-white);
  font-size: var(--fs-display);
  font-weight: 600;
  line-height: 1.2;
}
.about-band__text p { color: var(--c-sky); }

/* ---------- 6. Services (image boxes) ---------- */
.services-band {
  background-color: var(--c-section-grey);
  padding: 4% var(--gutter) 6%;
}
.services-band .section-subtitle { margin-bottom: 40px; }
.image-box {
  height: 100%;
}
.image-box__img {
  display: block;
  overflow: hidden;
  margin-bottom: 20px;
}
.image-box h3 a { color: var(--c-primary); }
.image-box h3 a:hover { color: var(--c-accent); }
.image-box__img img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform .3s ease;   /* "grow" hover animation in the original */
}
.image-box:hover .image-box__img img { transform: scale(1.1); }
.image-box h3 {
  font-size: var(--fs-h4);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 12px;
}

/* ---------- 7. "Why Choose Us?" feature cards ---------- */
.why-band { padding: 6% var(--gutter) 0; }
.why-band .section-title { margin-bottom: 50px; }
.feature-card {
  background: var(--c-secondary);
  text-align: center;
  padding: 12% 10%;
  height: 100%;
}
.feature-card__icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 14px;
  color: var(--c-navy);
}
.feature-card__icon svg { width: 100%; height: 100%; fill: currentColor; }
.feature-card h3 {
  font-size: var(--fs-h4);
  font-weight: 600;
  line-height: 1.2;
}

/* ---------- 8. Clients carousel ---------- */
.clients-band { padding: 40px var(--gutter) 30px; }
.clients-band .section-title { font-size: 35px; margin-bottom: 20px; }
.client-carousel {
  position: relative;
  padding: 0 40px;
}
.client-carousel__viewport { overflow: hidden; }
.client-carousel__track {
  display: flex;
  transition: transform .5s ease;
  will-change: transform;
}
.client-carousel__slide {
  flex: 0 0 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}
.client-carousel__slide img { width: 150px; height: 150px; object-fit: contain; }
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #9aa3b5;
  cursor: pointer;
  padding: 0;
}
.carousel-arrow:hover { color: var(--c-primary); }
.carousel-arrow svg { width: 22px; height: 22px; fill: currentColor; }
.carousel-arrow--prev { left: 0; }
.carousel-arrow--next { right: 0; }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: #c9ced8;
  cursor: pointer;
}
.carousel-dots button.is-active { background: var(--c-primary); }

/* ---------- 9. "Manufacturing Process" band ---------- */
.process-band {
  position: relative;
  margin-top: 5%;
  padding: 5% var(--gutter);
  background-size: cover;
  background-position: center;
  text-align: center;
}
.process-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #3d3d3d;
  opacity: .73;
}
.process-band > * { position: relative; }
.process-band .section-title { color: var(--c-white); margin-bottom: 50px; }
.process-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  height: 100%;
  background-image: linear-gradient(180deg, #0B0082 0%, #0D0158 100%);
  color: var(--c-white);
  text-align: left;
}
.process-item img { width: 46px; height: 46px; flex: 0 0 46px; }
.process-item span { font-weight: 400; line-height: 1.3; min-width: 0; overflow-wrap: anywhere; }

/* ---------- 10. Page heading block (inner pages) ---------- */
.page-hero {
  background: var(--c-secondary);
  padding: 70px var(--gutter);
}
.page-hero h1 {
  font-size: var(--fs-display);
  font-weight: 600;
  line-height: 1.2;
}
.page-hero .eyebrow { display: block; margin-bottom: 12px; }
.page-hero .lead-text {
  font-size: var(--fs-lead);
  line-height: 1.5;
  margin-top: 16px;
  max-width: 900px;
}

.content-band { padding: 70px var(--gutter); }
.content-band--grey { background: var(--c-secondary); }
.content-band h2 {
  font-size: 45px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 24px;
}

/* Two-image collage (Our Story / Our Services) */
.collage {
  position: relative;
  padding-bottom: 18%;
}
.collage img {
  width: 75%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.collage img + img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 55%;
  border: 8px solid var(--c-white);
}

/* Bulleted checklist */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.check-list li {
  position: relative;
  padding: 10px 0 10px 34px;
  border-bottom: 1px solid #e3e7ee;
}
.check-list li:last-child { border-bottom: 0; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 17px;
  width: 14px;
  height: 8px;
  border-left: 3px solid var(--c-accent);
  border-bottom: 3px solid var(--c-accent);
  transform: rotate(-45deg);
}

/* Expertise card (Our Story) */
.expertise-card {
  background: var(--c-secondary);
  padding: 40px;
}

/* Service cards (Our Services page) */
.service-card {
  background: var(--c-secondary);
  padding: 34px 30px;
  height: 100%;
  border-top: 4px solid var(--c-maroon);
  transition: box-shadow .25s ease, transform .25s ease;
}
.service-card:hover {
  box-shadow: 0 12px 28px rgba(28, 36, 75, .12);
  transform: translateY(-4px);
}
.service-card .num {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--c-accent);
}
.service-card h3 {
  font-size: var(--fs-h4);
  font-weight: 600;
  line-height: 1.25;
  margin: 8px 0 0;
}

/* Industry tiles (Our Services page) */
.industry-tile {
  position: relative;
  overflow: hidden;
}
.industry-tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .3s ease;
}
.industry-tile:hover img { transform: scale(1.08); }
.industry-tile h3 {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  margin: 0;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(11, 0, 130, .0) 0%, rgba(13, 1, 88, .9) 60%);
  color: var(--c-white);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
}

/* Manpower table */
.manpower-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--c-white);
}
.manpower-table caption {
  caption-side: top;
  color: var(--c-primary);
  font-weight: 600;
  padding-bottom: 12px;
}
.manpower-table th,
.manpower-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #e3e7ee;
  text-align: left;
}
.manpower-table thead th {
  background: var(--c-navy);
  color: var(--c-white);
  font-weight: 500;
}
.manpower-table td:last-child,
.manpower-table th:last-child { text-align: right; white-space: nowrap; }
.manpower-table tbody tr:hover { background: var(--c-secondary); }
.manpower-table tfoot td {
  font-weight: 600;
  color: var(--c-primary);
  border-bottom: 0;
}

/* Contact details list */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
}
.contact-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 10px 0;
}
.contact-list svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin-top: 3px;
  fill: var(--c-accent);
}
.contact-list a { color: var(--c-text); }
.contact-list a:hover { color: var(--c-accent); }

.contact-form-panel {
  background-image: linear-gradient(180deg, #F3F5F8 0%, #FFFFFF 100%);
  padding: 50px 40px;
  height: 100%;
}
.contact-form-panel h2 { margin-bottom: 30px; }


/* ---------- 11. Contact form (styled like the original WPForms "modern" form) ---------- */
.get-in-touch { padding: 70px var(--gutter); }
.get-in-touch .section-title { margin-bottom: 40px; }
.csg-form { max-width: 100%; }
.csg-form .form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  max-width: 60%;
}
.csg-form .field { margin-bottom: 20px; }
.csg-form .field--half { max-width: 60%; }
.csg-form label,
.csg-form .field-label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: rgba(0, 0, 0, .85);
  margin-bottom: 10px;
}
.csg-form .required { color: #d63637; }
.csg-form .sublabel {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: rgba(0, 0, 0, .55);
  margin: 5px 0 0;
}
.csg-form input,
.csg-form textarea {
  width: 100%;
  height: 43px;
  padding: 0 14px;
  font: 400 16px/19px var(--font);
  color: rgba(0, 0, 0, .7);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .25);
  border-radius: var(--radius);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.csg-form textarea {
  height: 120px;
  padding: 10px 14px;
  resize: vertical;
}
.csg-form input:focus,
.csg-form textarea:focus {
  outline: none;
  border-color: var(--c-btn);
  box-shadow: 0 0 0 1px var(--c-btn);
}
.csg-form .is-invalid { border-color: #d63637; }
.csg-form .is-invalid:focus { box-shadow: 0 0 0 1px #d63637; }
.csg-form .error-text {
  display: block;
  color: #d63637;
  font-size: 14px;
  font-weight: 400;
  margin-top: 6px;
}
.csg-form .hp-field {        /* honeypot spam trap */
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.csg-form button[type="submit"] {
  height: 41px;
  padding: 0 15px;
  margin-top: 10px;
  font: 400 17px var(--font);
  color: #fff;
  background: var(--c-btn);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity .2s ease;
}
.csg-form button[type="submit"]:hover { opacity: .9; }
.csg-form button[disabled] { opacity: .6; cursor: wait; }
.form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-weight: 400;
  display: none;
}
.form-status.is-success { display: block; background: #e5f5ea; color: #1f6b37; border: 1px solid #b6e0c2; }
.form-status.is-error { display: block; background: #fdecec; color: #8f1d1e; border: 1px solid #f2c0c0; }

/* ---------- 12. Footer ---------- */
.site-footer {
  background-color: var(--c-footer);
  color: var(--c-white);
}
.footer-main {
  padding: 50px var(--gutter) 30px;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
}
.footer-logo {
  display: inline-block;
  background: var(--c-header);
  padding: 10px 14px;
  margin-bottom: 16px;
}
.footer-logo img { width: 170px; }
.site-footer h2 {
  color: var(--c-white);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}
.site-footer p,
.site-footer li { color: #d6def3; font-size: 15px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 4px 0; }
.site-footer a { color: #d6def3; }
.site-footer a:hover { color: var(--c-white); text-decoration: underline; }
.footer-copyright {
  padding: 16px var(--gutter);
  text-align: center;
}
.footer-copyright p { margin: 0; color: var(--c-white); font-size: 15px; }

/* Back-to-top button */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--c-maroon);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease, background-color .2s ease;
  z-index: 60;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--c-navy); }
.back-to-top svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- 13. Section background images (paths relative to this file) ---------- */
.hero-slide--globe  { background-image: url("../images/banners/globe.jpg"); }
.hero-slide--petro  { background-image: url("../images/services/petro-chemical.jpg"); }
.bg-industrial      { background-image: url("../images/services/industrial-growth.jpg"); }
.bg-pipes           { background-image: url("../images/services/pipes.jpg"); }
