/* ========== GLOBAL RESET ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #fff;
  color: #000;
}

/* ========== HERO SECTION ========== */
.contact-hero {
  width: 100%;
  height: 60vh;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
              url("images/hero-groups2.jpg") center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-hero h1 {
  position: relative;
  font-size: 120px;
  font-weight: 900;
  letter-spacing: 10px;
  color: transparent;
  -webkit-text-stroke: 3px #ffffff;
  text-transform: uppercase;
}

/* ========== QUERY SECTION (MAIN CONTACT BOX) ========== */
.query-wrapper {
  display: flex;
  justify-content: center;
  padding: 40px 0;
  background: #f8f8f8; /* light background behind box */
}

.query-section {
  background: #fff;
  color: #000;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 50px;
  border-radius: 4px;
  max-width: 900px;
  width: 100%;
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.query-section.show {
  opacity: 1;
  transform: translateY(0);
}

/* ========== LEFT SIDE CONTENT ========== */
.query-left h2 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.query-left h2 span {
  color: #1abc9c;
}

.query-left h4 {
  color: #1abc9c;
}

.query-left p {
  line-height: 1.6;
  max-width: 450px;
  color: #000;
}

.query-left a {
  color: #000;
  text-decoration: none;
  transition: color 0.3s;
}

.query-left a:hover {
  color: #1abc9c;
}

/* ========== RIGHT SIDE FORM ========== */
.query-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.query-form input,
.query-form select,
.query-form textarea {
  padding: 12px;
  border: none;
  background: #FAF9F6;
  color: #000;
  border-radius: 4px;
  font-size: 14px;
  width: 100%;
}

.query-form input::placeholder,
.query-form textarea::placeholder {
  color: #000;
}

.query-form .input-row {
  display: flex;
  gap: 10px;
}

.query-form textarea {
  min-height: 90px;
  resize: none;
}

.recaptcha-box {
  background: #1abc9c;
  color: #fff;
  padding: 12px;
  border-radius: 4px;
  font-size: 13px;
  text-align: center;
}

.btn-submit {
  background: #1abc9c;
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
  width: fit-content;
  margin-top: 5px;
}

.btn-submit:hover {
  background: #d7d7d7;
  color: #16a085;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .query-section {
    grid-template-columns: 1fr;
    padding: 30px 20px;
    gap: 25px;
  }

  .query-left p {
    max-width: 100%;
  }

  .query-form .input-row {
    flex-direction: column;
  }

  .contact-hero h1 {
    font-size: 70px;
    letter-spacing: 5px;
    -webkit-text-stroke: 2px #ffffff;
  }
}






/* Companies Section */
.companies {
  padding: 80px 10%;
  background: #fff;
  text-align: center;
}

.companies-header h4 {
  color: #1abc9c;
  font-size: 18px;
  margin-bottom: 10px;
}

.companies-header h1 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 15px;
}

.companies-header p {
  max-width: 700px;
  margin: 0 auto 20px;
  color: #555;
  line-height: 1.6;
}

.scroll-msg {
  display: inline-block;
  margin-top: 10px;
  color: #777;
  font-size: 14px;
  border-left: 2px solid #000;
  padding-left: 10px;
}

.companies-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.company-card {
  position: relative;
  background: #f8f8f8;
  border-radius: 12px;
  padding: 110px 20px 25px; /* keep padding */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* pushes read-more to bottom */
  text-align: center;
  transition: all 0.4s ease;
  overflow: hidden;
  cursor: pointer;
  color: #333;
  min-height: 350px; /* ensure enough height */
  opacity: 0;
  transform: translateY(50px);
}

.company-card.show {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Logo container */
.company-card .logo {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.company-card .logo img {
  width: 80px;
  height: auto;
}

.company-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.company-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.4;
}

.company-card a {
  font-size: 14px;
  color: #555;
  line-height: 1.4;
}


/* Hover effect with background image */
.company-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.company-card:hover::before {
  opacity: 0.9;
}

.company-card:hover {
  color: #fff;
}

.company-card * {
  position: relative;
  z-index: 1;
}

.company-card:hover p {
  color: #fff;
}

.company-card:hover a {
  color: #fff;
}

.contact-us {
  display: inline-block;   /* fit width to content */
  margin: 15px auto 0;     /* center horizontally */
  padding: 10px 20px;      /* control spacing around text */
  background: #1abc9c;
  color: #fff;
  font-size: 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
  width: fit-content;      /* ensures width = text + padding */
}

.contact-us:hover {
  background: #16a085;
}

.company-card .contact-us span {
  color: #fff;
}


/* ===============================
   ADDITIONAL RESPONSIVE STYLES
   (For 1440px → 360px)
================================= */

/* Large Screens (≤1200px) */
@media (max-width: 1200px) {
  .contact-hero h1 {
    font-size: 100px;
    -webkit-text-stroke: 2.5px #fff;
  }

  .query-section {
    gap: 30px;
    padding: 40px;
  }
}

/* Tablets (≤992px) */
@media (max-width: 992px) {
  .contact-hero {
    height: 50vh;
  }

  .contact-hero h1 {
    font-size: 80px;
    letter-spacing: 6px;
    -webkit-text-stroke: 2px #fff;
    text-align: center;
  }

  .query-section {
    grid-template-columns: 1fr;
    padding: 40px 30px;
  }

  .query-left p {
    max-width: 100%;
  }

  .companies {
    padding: 60px 8%;
  }

  .companies-header h1 {
    font-size: 28px;
  }

  .companies-header p {
    font-size: 15px;
  }
}

/* Small Tablets (≤768px) */
@media (max-width: 768px) {
  .contact-hero h1 {
    font-size: 60px;
    letter-spacing: 4px;
    -webkit-text-stroke: 1.8px #fff;
  }

  .query-section {
    padding: 30px 20px;
    gap: 20px;
  }

  .query-form .input-row {
    flex-direction: column;
  }

  .companies-header h1 {
    font-size: 26px;
  }

  .companies-header p {
    font-size: 14px;
    line-height: 1.5;
  }

  .company-card {
    padding: 90px 15px 20px;
    min-height: 300px;
  }

  .company-card h3 {
    font-size: 16px;
  }

  .company-card p,
  .company-card a {
    font-size: 13px;
  }

  .company-card .logo img {
    width: 70px;
  }

  .contact-us {
    font-size: 13px;
    padding: 8px 18px;
  }
}

/* Mobile (≤576px) */
@media (max-width: 576px) {
  .contact-hero {
    height: 45vh;
    background-position: center;
  }

  .contact-hero h1 {
    font-size: 48px;
    letter-spacing: 3px;
    -webkit-text-stroke: 1.5px #fff;
  }

  .query-section {
    padding: 25px 15px;
  }

  .query-left h2 {
    font-size: 20px;
  }

  .query-left p {
    font-size: 14px;
  }

  .query-form input,
  .query-form textarea {
    font-size: 13px;
  }

  .companies {
    padding: 50px 5%;
  }

  .companies-header h1 {
    font-size: 24px;
  }

  .company-card {
    padding: 80px 10px 20px;
  }

  .company-card .logo img {
    width: 60px;
  }

  .contact-us {
    font-size: 12px;
    padding: 7px 16px;
  }
}

/* Extra Small (≤400px) */
@media (max-width: 400px) {
  .contact-hero h1 {
    font-size: 38px;
    -webkit-text-stroke: 1.2px #fff;
  }

  .query-section {
    padding: 20px 12px;
  }

  .company-card {
    padding: 70px 8px 18px;
  }

  .company-card .logo img {
    width: 50px;
  }

  .contact-us {
    font-size: 11px;
    padding: 6px 14px;
  }
}

/* Smallest Devices (≤360px) */
@media (max-width: 360px) {
  .contact-hero h1 {
    font-size: 32px;
    -webkit-text-stroke: 1px #fff;
    letter-spacing: 2px;
  }

  .company-card {
    min-height: 260px;
  }

  .company-card h3 {
    font-size: 14px;
  }

  .company-card p {
    font-size: 12px;
  }

  .company-card .logo img {
    width: 45px;
  }
}

