/* Contact page + reusable Diode Solutions footer. Load AFTER style.css. */

.ds-content {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding-left: 4%;
    padding-right: 4%;
}

/* =========================================
   CONTACT NAVBAR - RESPONSIVE
========================================= */

.ds-contact-nav {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;
    min-height: 78px;
    padding: 16px 4%;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    background: rgba(8, 18, 31, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-bottom: 1px solid rgba(105, 165, 255, 0.1);
}

/* Keep navbar logo and links aligned */
.ds-contact-nav .ds-nav-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.ds-contact-nav .ds-nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
    margin-left: auto;
}

/* =========================================
   TABLET - 768px to 991px
========================================= */

@media (max-width: 991px) {

    .ds-contact-nav {
        min-height: 70px;
        padding: 14px 3%;
        gap: 15px;
    }

    .ds-contact-nav .ds-nav-links {
        gap: 18px;
    }
}

/* =========================================
   MOBILE - up to 767px
========================================= */

@media (max-width: 767px) {

    .ds-contact-nav {
        min-height: 64px;
        padding: 12px 20px;
        gap: 12px;
    }

    .ds-contact-nav .ds-nav-links {
        gap: 14px;
    }
}

/* =========================================
   SMALL MOBILE - up to 480px
========================================= */

@media (max-width: 480px) {

    .ds-contact-nav {
        padding: 12px 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .ds-contact-nav .ds-nav-brand {
        justify-content: center;
    }

    .ds-contact-nav .ds-nav-links {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        gap: 20px;
    }
}

.ds-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff !important;
  text-decoration: none;
  font-size: 23px;
  font-weight: 700;
}

.ds-logo-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: #1976d2;
  border-radius: 6px;
  font-size: 17px;
}

.ds-nav-links {
  display: flex;
  gap: 24px;
}

.ds-nav-links a {
  color: #b9c7d9;
  text-decoration: none;
  font-size: 15px;
}

.ds-nav-links a:hover,
.ds-nav-links a[aria-current] {
  color: #58a6ff;
}

.ds-contact-hero {
  padding: 95px 0;
  background: radial-gradient(ellipse at 5% 40%, rgba(37, 99, 235, 0.28), transparent 55%),
              radial-gradient(ellipse at 95% 60%, rgba(124, 58, 237, 0.2), transparent 55%),
              #08121f;
}

.ds-kicker {
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 2px;
  color: #58a6ff !important;
}

.ds-contact-hero h1 {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.1;
  font-weight: 800;
  max-width: 780px;
  margin: 18px 0 22px;
  color: #e5edf5;
}

.ds-contact-hero h1 span {
  background: linear-gradient(90deg, #4ea3ff, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ds-contact-hero p:not(.ds-kicker) {
  max-width: 690px;
  color: #aebfd5;
  font-size: 18px;
  line-height: 1.8;
}

.ds-contact-section {
  padding-block: 80px;
}

.ds-section-heading {
  text-align: center;
  margin-bottom: 36px;
}

.ds-section-heading h2,
.ds-contact-intro h2 {
  font-size: clamp(30px, 3vw, 42px);
  color: #e5edf5;
  font-weight: 700;
  margin: 12px 0;
}

.ds-section-heading > p:last-child,
.ds-contact-intro > p:not(.ds-kicker) {
  color: #9fb2c9;
}

.ds-location-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.ds-location-card {
  background: linear-gradient(145deg, #122338, #0e1b2e);
  border: 1px solid rgba(78, 163, 255, 0.2);
  border-radius: 20px;
  padding: 28px;
  min-height: 230px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.ds-location-card:hover {
  transform: translateY(-6px);
  border-color: #4ea3ff;
  box-shadow: 0 16px 35px rgba(37, 99, 235, 0.14);
}

.ds-location-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(78, 163, 255, 0.35);
  border-radius: 12px;
  color: #4ea3ff;
  background: rgba(78, 163, 255, 0.08);
}

.ds-location-card h3 {
  font-size: 21px;
  color: #fff;
  margin: 20px 0 6px;
}

.ds-location-card p {
  font-size: 14px;
  color: #9fb2c9;
  margin-bottom: 18px;
}

.ds-location-card a {
  font-size: 13px;
  color: #58a6ff;
  text-decoration: none;
}

.ds-location-card a i {
  margin-left: 5px;
}

.ds-contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: start;
}

.ds-contact-intro > p {
  line-height: 1.8;
}

.ds-contact-email {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 35px 0;
  padding: 20px;
  background: #122338;
  border: 1px solid rgba(78, 163, 255, 0.18);
  border-radius: 14px;
}

.ds-contact-email > i {
  font-size: 23px;
  color: #58a6ff;
}

.ds-contact-email strong,
.ds-contact-email a {
  display: block;
}

.ds-contact-email strong {
  color: #fff;
}

.ds-contact-email a {
  color: #58a6ff;
  text-decoration: none;
}

.ds-contact-form {
  background: linear-gradient(145deg, #122338, #0e1b2e);
  border: 1px solid rgba(78, 163, 255, 0.2);
  border-radius: 22px;
  padding: 34px;
}

.ds-contact-form h3 {
  font-size: 24px;
  color: #fff;
  margin: 0 0 25px;
}

.ds-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ds-contact-form label {
  display: block;
  color: #e5edf5;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 18px;
}

.ds-contact-form label span {
  color: #58a6ff;
}

.ds-contact-form input,
.ds-contact-form select,
.ds-contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 9px;
  padding: 14px;
  border-radius: 9px;
  border: 1px solid #30435d;
  background: #091728;
  color: #e5edf5;
  font: inherit;
  outline: none;
}

.ds-contact-form input:focus,
.ds-contact-form select:focus,
.ds-contact-form textarea:focus {
  border-color: #4ea3ff;
  box-shadow: 0 0 0 3px rgba(78, 163, 255, 0.12);
}

.ds-contact-form button {
  background: linear-gradient(110deg, #2563eb, #7c3aed);
  color: #fff;
  border: 0;
  border-radius: 9px;
  padding: 14px 25px;
  font: 600 15px Outfit, sans-serif;
  cursor: pointer;
}

.ds-contact-form button i {
  margin-left: 10px;
}

.ds-form-note {
  color: #91a7c0;
  font-size: 12px;
  line-height: 1.6;
  margin-top: 14px;
}

.ds-footer {
  background: radial-gradient(ellipse at 0% 0%, rgba(37, 99, 235, 0.14), transparent 52%),
              radial-gradient(ellipse at 100% 100%, rgba(124, 58, 237, 0.12), transparent 50%),
              #08121f;
  border-top: 1px solid rgba(78, 163, 255, 0.18);
  font-family: Outfit, sans-serif;
}

.ds-footer-main {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1.2fr 1fr;
  gap: 42px;
  padding-block: 70px;
}

.ds-footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
}

.ds-footer-col h3 {
  font-size: 17px;
  color: #58a6ff;
  margin: 0 0 12px;
}

.ds-footer-col a:not(.ds-logo),
.ds-footer-col p {
  font-size: 14px;
  color: #aabbd0;
  text-decoration: none;
  margin: 0;
  line-height: 1.7;
}

.ds-footer-col a:hover {
  color: #fff;
}

.ds-footer-brand > p {
  max-width: 330px;
}

.ds-footer-email {
  color: #58a6ff !important;
  overflow-wrap: anywhere;
}

.ds-footer-bottom {
  border-top: 1px solid rgba(78, 163, 255, 0.13);
  background: rgba(4, 12, 23, 0.45);
}

.ds-footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 22px;
  color: #8fa3ba;
  font-size: 12px;
}
/* Footer legal information */

.ds-footer-legal {
    width: 100%;
    padding: 14px 4%;
    text-align: center;

    background: #08121F;
    border-top: 1px solid rgba(105, 165, 255, 0.12);
}

.ds-footer-legal p {
    margin: 0;
    color: #94A3B8;
    font-family: "Outfit", sans-serif;
    font-size: 11px;
    line-height: 1.8;
    letter-spacing: 0.2px;
}

@media (max-width: 576px) {
    .ds-footer-legal {
        padding: 14px 20px;
    }

    .ds-footer-legal p {
        font-size: 10px;
        line-height: 1.9;
    }
}
@media (max-width: 1000px) {
  .ds-location-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ds-footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ds-contact-layout {
    gap: 35px;
  }
}

@media (max-width: 700px) {
  .ds-contact-nav {
    padding: 15px 24px;
  }
  .ds-logo {
    font-size: 19px;
  }
  .ds-nav-links {
    gap: 13px;
  }
  .ds-nav-links a {
    font-size: 13px;
  }
  .ds-contact-layout {
    grid-template-columns: 1fr;
  }
  .ds-contact-section {
    padding-block: 55px;
  }
  .ds-contact-hero {
    padding-block: 65px;
  }
  .ds-form-grid {
    grid-template-columns: 1fr;
  }
  .ds-contact-form {
    padding: 22px;
  }
}

@media (max-width: 480px) {
  .ds-content {
    width: calc(100% - 32px);
  }
  .ds-location-grid,
  .ds-footer-main {
    grid-template-columns: 1fr;
  }
  .ds-footer-main {
    gap: 32px;
    padding-block: 48px;
  }
  .ds-footer-bottom-inner {
    flex-direction: column;
  }
  .ds-contact-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  .ds-contact-hero p:not(.ds-kicker) {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ds-location-card {
    transition: none;
  }
}