/* ==============================================
   INPAND TECHNOLOGIES — contact.css
   ============================================== */

/* ── CSS Variables ── */
:root {
  --color-primary: #0029e0;
  --color-primary-dark: #0010c7;
  --color-primary-soft: #ebeefc;
  --color-text: #101011;
  --color-text-soft: #646363;
  --color-bg: #ffffff;
  --color-white: #ffffff;
  --color-border: #e8ebf3;
  --color-green: #2ecc71;
  --color-footer-bg: #020205;
  --color-footer-text: #f5f5f5;
  --color-footer-link: #b7b7c7;
  --color-card-start: #0f1720;
  --color-card-end: #1c2733;
  --color-success: #2ecc71;
  --container: 1180px;
  --content: 980px;
  --radius: 0.5rem;
  --radius-sm: 12px;
  --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.08);
  --transition: 0.3s ease;
  --gutter: clamp(1rem, 4vw, 2rem);
  --font-heading: "Montserrat", sans-serif;
}

/* ── Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

iframe {
  width: 100%;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

textarea {
  resize: vertical;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ── Layout ── */
.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.narrow {
  max-width: var(--content);
}

/* ── Utility ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ==============================================
   PRELOADER
   ============================================== */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  display: flex;
  gap: 10px;
}

.bounce {
  width: 14px;
  height: 14px;
  background: var(--color-primary);
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}

.b1 {
  animation-delay: -0.32s;
}

.b2 {
  animation-delay: -0.16s;
}

.b3 {
  animation-delay: 0s;
}

@keyframes bounce {

  0%,
  80%,
  100% {
    transform: scale(0);
  }

  40% {
    transform: scale(1);
  }
}

/* ==============================================
   HEADER
   ============================================== */
.site-header {
  position: relative;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  z-index: 500;
  transition: box-shadow var(--transition);
}

.header-inner {
  width: 100%;
  padding: 0.75rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.logo img,
.site-logo img {
  height: 92px;
  width: auto;
}

/* Nav */
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: block;
  padding: 0.75rem 0.9rem;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  position: relative;
  transition: color var(--transition);
  white-space: nowrap;
}

.site-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0.9rem;
  right: 0.9rem;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--color-primary);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 600;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==============================================
   BUTTONS
   ============================================== */
.btn {
  display: inline-block;
  padding: 0.65em 1.5em;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--transition), transform 0.15s;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.contact-hero .btn-primary {
  background: #4da3ff;
  color: #fff;
  border-color: #4da3ff;
  margin-top: 0.5rem;
  border-radius: 999px;
  padding: 0.9rem 2.2rem;
}

.contact-hero .btn-primary:hover {
  background: #2f8df4;
  border-color: #2f8df4;
}

/* ==============================================
   HERO
   ============================================== */
.contact-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  color: #fff;
  padding: 72px 0 92px;
  background: url("../assets/contact-hero.png") center center / cover no-repeat;
}

.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(25, 38, 101, 0.42);
  z-index: 0;
}

.contact-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.contact-hero h1 {
  margin: 0 0 14px;
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.2;
  color: #fff;
}

.contact-hero p {
  margin: 0 auto 28px;
  max-width: 900px;
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.8;
}

.contact-hero-shape {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  line-height: 0;
  z-index: 1;
}

.contact-hero-shape svg {
  display: block;
  width: 100%;
  height: clamp(70px, 10vw, 140px);
}

.contact-hero-shape path {
  fill: #fff;
}

/* ==============================================
   CONTACT SECTIONS
   ============================================== */
.contact-section {
  padding: 34px 0;
}

.section-heading {
  padding-bottom: 8px;
}

.section-heading h2 {
  margin: 0;
  text-align: center;
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.25;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 36px;
  align-items: stretch;
}

.contact-info {
  display: grid;
  gap: 18px;
  align-content: stretch;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-card);
  flex: 1;
}

.info-icon {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 41, 224, 0.08);
}

.info-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--color-primary);
}

.info-text h3 {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  line-height: 1.3;
}

.info-text p {
  margin: 0;
  color: var(--color-text-soft);
}

/* Form */
.contact-form-wrap {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 28px;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: #fff;
  color: rgba(0, 0, 0, 0.8);
  border-radius: 10px;
  padding: 14px 16px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-row input {
  min-height: 50px;
}

.form-row textarea {
  min-height: 140px;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(0, 41, 224, 0.08);
}

.form-row input.is-error,
.form-row textarea.is-error {
  border-color: #d63637;
}

.error-text {
  min-height: 18px;
  font-size: 0.88rem;
  color: #d63637;
}

.honeypot-field {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  margin-top: 4px;
}

.form-status {
  margin: 4px 0 0;
  font-size: 0.95rem;
  color: var(--color-text-soft);
}

/* Map */
.map-section {
  padding-top: 8px;
  padding: 0;
}

.map-card {
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.map-card iframe {
  display: block;
  min-height: 420px;
  width: 100%;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==============================================
   FOOTER — identical to home.css
   ============================================== */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
}

.footer-main {
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
}

.footer-main .container {
  width: 100%;
  max-width: 100%;
  padding-inline: clamp(1.5rem, 4vw, 3rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2rem;
  align-items: start;
  width: 100%;
}

.footer-brand,
.footer-links,
.footer-contact,
.footer-map {
  min-width: 0;
}

.footer-brand img {
  height: 52px;
  margin-bottom: 1rem;
  filter: brightness(2);
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--color-footer-link);
  line-height: 1.7;
  overflow-wrap: break-word;
  word-break: normal;
}

.footer-links h3,
.footer-contact h3,
.footer-map h3 {
  font-size: 1rem;
  color: var(--color-footer-text);
  margin-bottom: 1rem;
  font-family: var(--font-heading);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--color-footer-link);
  font-size: 0.9rem;
  transition: color var(--transition);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--color-white);
  text-decoration: none;
}

.contact-phone,
.contact-email {
  color: var(--color-footer-link);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  overflow-wrap: break-word;
  word-break: normal;
}

.contact-email a {
  color: var(--color-footer-link);
  text-decoration: none;
  transition: color var(--transition);
}

.contact-email a:hover {
  color: var(--color-white);
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-footer-link);
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}

.social-icons a:hover {
  background: var(--color-primary);
  color: #fff;
}

.social-icons svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.map-embed iframe {
  width: 100%;
  height: 200px;
  border: none;
  border-radius: var(--radius);
}

/* Office addresses */
.footer-addresses {
  background: var(--color-footer-bg);
  padding: 2rem 0 3rem;
}

.addresses-heading {
  text-align: center;
  color: var(--color-white);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
}

.addresses-grid {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.address-card {
  background: rgba(65, 65, 65, 0.603);
  color: #fff;
  padding: 1.5rem 1.75rem;
  width: 320px;
  max-width: 100%;
  border-radius: var(--radius);
  border-left: 4px solid var(--color-green);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  transition: transform var(--transition);
}

.address-card:hover {
  transform: translateY(-4px);
}

.address-card h4 {
  color: var(--color-green);
  font-size: 1rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-heading);
}

.address-card p {
  color: #d1d1d1;
  font-size: 0.9rem;
  line-height: 1.7;
  overflow-wrap: break-word;
  word-break: normal;
  margin: 0;
}

/* Footer bottom bar */
.footer-bottom {
  background: var(--color-footer-bg);
  padding-bottom: 1.5rem;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
}

.footer-bottom p {
  text-align: center;
  font-size: 0.85rem;
  margin: 0;
}

.footer-bottom a {
  color: var(--color-footer-link);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--color-white);
}

/* ==============================================
   FLOATING BUTTONS
   ============================================== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 200;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition);
  display: block;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 41, 224, 0.4);
  transition: background var(--transition), transform var(--transition);
  line-height: 1;
}

.back-to-top.visible {
  display: flex;
}

.back-to-top:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-map {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .header-inner {
    min-height: 78px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid rgba(16, 16, 17, 0.06);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
    display: none;
    z-index: 100;
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    padding: 0.75rem 0;
  }

  .site-nav a {
    padding: 0.65rem 1.5rem;
  }

  .contact-hero {
    padding: 56px 0 82px;
  }

  .contact-form-wrap {
    padding: 22px;
  }

  .map-card iframe {
    min-height: 320px;
  }

  .whatsapp-float {
    width: 54px;
    height: 54px;
    left: 16px;
    bottom: 16px;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .contact-phone,
  .contact-email {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .social-icons {
    justify-content: flex-start;
  }

  .footer-main {
    padding: 2.5rem 0 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .site-logo img,
  .logo img {
    width: 160px;
    height: auto;
  }

  .info-card {
    padding: 20px;
  }

  .contact-form-wrap {
    padding: 18px;
  }
}

/* =============================================
   MOBILE NAV OVERLAY
   ============================================= */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9000;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-nav-overlay.open {
  display: flex;
}

.mobile-nav-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mobile-nav-logo img {
  height: 72px;
  width: auto;
}

.mobile-nav-close {
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text);
  padding: 0.25rem 0.5rem;
  margin-top: 0.25rem;
}

.mobile-nav-links {
  padding: 1.5rem 1.5rem 2rem;
}

.mobile-nav-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.mobile-nav-links li {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mobile-nav-links a {
  display: block;
  padding: 1.1rem 0;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition);
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  color: var(--color-primary);
  text-decoration: none;
}