/* =========================================================
   IONEX ENGINEERS — CONTACT PAGE
   ========================================================= */

:root {
  --blue:        #0091DD;
  --green:       #029340;
  --navy:        #0b1620;
  --navy-dark:   #071019;
  --white:       #ffffff;
  --black:       #0a0a0a;
  --gray:        #4a5a63;
  --light:       #f4f8f9;

  --font-heading: 'Rubik', sans-serif;
  --font-body:    'Poppins', sans-serif;

  --radius: 10px;
  --shadow: 0 20px 45px rgba(7, 16, 25, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--gray);
  background: var(--light);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.25;
}

/* ---------- Eyebrow label ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--green);
  margin-bottom: 14px;
}
.eyebrow i {
  width: 26px;
  height: 2px;
  background: var(--green);
  display: inline-block;
}
.eyebrow--light { color: var(--blue); }
.eyebrow--light i { background: var(--blue); }



/* =========================================================
   HERO SECTION
   ========================================================= */
.hero {
  position: relative;
  background-color: var(--navy-dark);
  padding: 90px 0 110px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, var(--navy-dark) 30%, rgba(7,16,25,0.55) 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
  align-items: start;
}

/* ---------- Contact form card ---------- */
.contact-card {
  background: var(--green);
  padding: 42px 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contact-card .eyebrow,
.contact-card .eyebrow i { color: var(--navy-dark);  }
.contact-card__title {
  color: var(--white);
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 26px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group { margin-bottom: 16px; }

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: none;
  border-radius: 6px;
  padding: 15px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--navy);
  background: var(--white);
  outline: none;
  resize: none;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #8a97a0; }

.contact-form select {
  appearance: none;
  color: #8a97a0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' stroke='%234a5a63' stroke-width='1.6' fill='none' fill-rule='evenodd'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.btn-submit {
  width: 100%;
  border: none;
  cursor: pointer;
  background: var(--navy-dark);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 14px;
  padding: 17px 20px;
  border-radius: 6px;
  transition: background .25s ease, transform .2s ease;
}
.btn-submit:hover { background: var(--blue); transform: translateY(-2px); }

/* ---------- Location / map panel ---------- */
.location-panel { padding-top: 8px; }

.location-panel__title {
  color: var(--white);
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 16px;
}

.location-panel__desc {
  color: rgba(255,255,255,0.65);
  font-size: 15px;
  max-width: 540px;
  margin-bottom: 30px;
}

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 4px solid rgba(255,255,255,0.06);
}
.map-frame iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
  filter: grayscale(0.15) contrast(1.05);
}

.location-panel__divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}
.location-panel__divider span {
  flex: 1;
  height: 1px;
  background: rgba(2,147,64,0.4);
}
.dir-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.12);
  transition: background .2s ease, color .2s ease;
  flex-shrink: 0;
}
.dir-btn:hover { background: var(--green); color: var(--white); }

/* =========================================================
   CONTACT INFO CARDS
   ========================================================= */
.contact-info { padding: 100px 0; background: var(--light); }

.section-heading {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 55px;
}
.section-heading .eyebrow { justify-content: center; }
.section-heading h2 { font-size: 32px; font-weight: 700; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.info-card {
  background: var(--green);
  border: 1px solid #e6edef;
  border-radius: var(--green);
  padding: 40px 30px;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.info-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(11,22,32,0.1);
  border-color: transparent;
}

.info-card__icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 22px;
  border-radius: 50%;
   background:white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s ease;
}
.info-card:hover .info-card__icon { background: var(--blue); }
.info-card__icon img {
  width: 78px;
  height: 78px;
  object-fit: contain;
 
}

.info-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.info-card p {
  font-size: 14px;
  font-weight: bold;
  color: var(--white);
}
.info-card p a { font-weight: bold;
  color: var(--white); transition: color .2s ease; }
.info-card p a:hover { color: var(--navy-dark); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
}

@media (max-width: 640px) {

  .form-row { grid-template-columns: 1fr; }
  .contact-card { padding: 30px 22px; }
  .location-panel__title { font-size: 26px; }
  .info-grid { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 70px; }
}