body {
  font-size: 13px;
}

body,
section,
header,
footer,
main {
  min-width: 0;
  width: 100%;
  overflow-x: hidden;
}

form .row {
  flex-wrap: wrap;
  flex-direction: column;
  row-gap: 20px;
}

form .half,
form .third {
  width: 100%;
}

input,
textarea,
select {
  font-size: .9em;
}

.is-compact .fancybox__content>.f-button.is-close-btn {
  width: 50px;
  min-width: 0;
  max-width: 50px;
  height: 50px;
  overflow: hidden;
}

form button {
  width: 100%;
  margin-bottom: 10px;
}

input,
textarea,
select {
  font-size: .9em;
}

.modal {
  min-width: 100%;
}

/* Menu */

.slide-left {
  left: 0 !important;
  filter: opacity(1);
}

.desktop-menu {
  left: -100%;
}

#desktop-menu-btn {
  width: 40px;
}

#desktop-menu-btn>div {
  height: 4px;
}

.desktop-menu {
  width: 100%;
  padding-top: 60px;
}


.hero {
  height: 60vh;

  .content {
    padding-top: 30px;

    h1 {
      font-size: 2.2em;

      span {
        display: flex;
        flex-direction: column;
      }
    }
  }
}

.home {

  .hero {
    height: fit-content;
    min-height: 70dvh;
    padding: 50px 5%;

    .content {
      width: 100%;
      padding: 0;
      margin-top: 0;

      h1 {
        font-size: 1.4em;
        line-height: 100%;
        padding: 0;
        text-wrap: balance;

        span {
          line-height: 100%;
          position: relative;
          margin-bottom: 20px;
          font-size: 1.5em;
        }
      }

      button {
        margin-top: 20px;
        background-color: transparent;
        border: 1px #fff solid;
        border-radius: 0;
        color: #fff;
      }
    }
  }

  .about-sec {
    padding: 100px 5%;

    overflow: visible;

    .wrapper {
      grid-template-columns: repeat(1, 1fr);
      text-align: center;

      margin-top: -80px;

      .left {
        .title {
          font-size: 2em;
          text-align: left;
        }

        .title::after {
          left: 50%;
        }

        p {
          text-align: left;
          font-size: 1.2em;
        }
      }
    }
  }

  .sec1 {
    min-height: 0;
    height: fit-content;
    overflow: hidden;
    padding: 80px 5%;

    display: flex;
    flex-direction: column;
    padding: 40px 3%;

    .title {
      font-size: 2em;
    }

    .left {
      h3 {
        font-size: 3em;
      }
    }

    .grid {
      grid-template-columns: repeat(1, 1fr);
    }
  }

  .sec3 {
    overflow-y: scroll;

    .wrapper {
      min-width: 1200px;
    }
  }

  .sec4 {
    .wrapper {
      .content {
        .innerdiv {
          flex-direction: column;

          .left {
            width: 100% !important;
            height: 250px;
          }

          .right {
            width: 100% !important;
          }
        }
      }
    }

  }
}

/* General Page Styles */
.page {
  .sec1 {
    height: 250px;
    padding-left: 5%;
    padding-right: 5%;

    .title {
      h1 {
        font-size: 1.8em;
        text-wrap: balance;
      }
    }


  }
}

/* Background Page */
.background-page {
  .sec1 {
    background-position: center;
  }

  section {
    .border {}
  }

  .sec2 {
    .wrapper {
      display: flex;
      flex-direction: column;
      row-gap: 40px;
      margin-bottom: 0;
      padding-bottom: 40px;

      >.left {
        width: 100%;
        padding: 20px;
        display: flex;
        flex-direction: column;
        min-height: 300px;
      }

      >.right {
        display: block;
        width: 100%;
        height: auto;
        margin-left: 0%;
        margin-top: 0;

        h2 {
          font-size: 1.8em;
        }
      }
    }

    .row {
      .left {
        display: block;
        margin-top: 0;
        margin-left: 0;
        padding: 20px;
        width: 100%;
      }
    }
  }

  section {
    .pic {
      height: 300px;
      width: 100%;
      top: 40px;
    }

    p {
      font-size: 1em;
    }
  }

  .sec3 {
    overflow-y: scroll;

    .wrapper {
      min-width: 1200px;
    }
  }

  .sec4 {
    .wrapper {
      .content {
        .innerdiv {
          flex-direction: column;

          .left {
            width: 100% !important;
            height: 250px;
          }

          .right {
            width: 100% !important;
          }
        }
      }
    }

  }
}

/* Vision Mission Values Page */
.who-we-are .sec2 .left,
.who-we-are .sec3 .right,
.who-we-are .sec4 .left,
.culture .sec2 .left,
.mio .sec2 .right,
.ore_plant .sec2 .left,
.envi .sec2 .left,
.transformation .sec2 .left {
  min-height: 360px;
  width: 100%;
}

.who-we-are section .wrapper,
.culture section .wrapper,
.mio section .wrapper,
.ore_plant section .wrapper {
  flex-direction: column;
  flex-wrap: wrap;
  row-gap: 30px;
}

.who-we-are section .pic,
.culture section .pic,
.mio section .pic,
.ore_plant section .pic,
.envi .sec2 .left .pic,
.transformation .sec2 .left .pic {
  height: 300px;
  width: 100%;
  top: 30px;
  margin-bottom: 40px;
}

.who-we-are {
  section {
    p {
      font-size: 1em;
    }
  }
}

.who-we-are .sec2 .right,
.who-we-are .sec3 .left,
.who-we-are .sec4 .right,
.culture .sec2 .right,
.mio .sec2 .left,
.ore_plant .sec2 .right {
  width: 100%;
}

.who-we-are .sec3 .right {
  order: 0;
}

.who-we-are .sec3 .left {
  order: 1;
}

.who-we-are h6 {
  margin-top: 0;
}

.who-we-are h2,
.who-we-are h3,
.who-we-are h4,
.who-we-are h5,
.who-we-are h6 {
  font-size: 1.8em;
}

p,
li {
  font-size: 1rem;
}


/* Footer */
#main-footer {
  padding: 40px 0 0;

  .content {
    flex-direction: column;
    row-gap: 40px;
    padding: 0 5%;
    width: 100%;
    margin-bottom: 40px;

    .logo-wrap {
      img {
        height: 70px;
      }
    }

    .links {
      margin-top: 20px;
      display: grid;
      grid-template-columns: repeat(1, 1fr);
      gap: 20px;

      a {
        justify-content: center;
        line-height: 1;
        text-align: center;
      }
    }

    .web-address {
      font-size: 1.1em;
    }

    .grid {
      display: grid;
      grid-template-columns: repeat(1, 1fr);
      justify-content: center;
      align-items: center;
      gap: 40px;

      .item {
        justify-content: center;
        align-items: center;
        display: flex;
        flex-direction: column;

        h4 {
          margin-bottom: 10px;
        }
      }
    }
  }

  .legal {
    flex-direction: column;
    row-gap: 20px;
    text-align: center;
  }
}

.gallery {

  .sec1 {
    columns: 1;
    padding: 60px 5%;
  }
}

.insights {

  .sec1 {
    padding: 60px 5%;

    .grid {
      grid-template-columns: repeat(1, 1fr);
      row-gap: 60px;
    }
  }
}

.itrends {

  .sec1 {
    padding: 60px 5%;

    .grid {
      display: grid;
      grid-template-columns: repeat(1, 1fr);
      column-gap: 20px;
      row-gap: 60px;

    }
  }
}

.page {

  .hero {
    height: 150px;
    padding: 0 5%;

    .content {
      padding-top: 0;
      padding: 0;

      h1 {
        font-size: 1em;
      }
    }
  }

  .breadcrumb {
    font-size: .9em;
    padding: 20px 5%;
  }
}


/* About Us Page */
.about {

  .sec1 {
    padding: 60px 5%;

    .title {
      font-size: 2em;
    }

    .intro {
      font-size: 1.4em;
    }
  }

  .sec2,
  .sec3 {
    padding-left: 5%;
    padding-right: 5%;
    flex-direction: column;
    row-gap: 40px;

    .left,
    .right {
      width: 100%;
    }

    .left {
      height: 250px;
    }

    .right {

      h2 {
        font-size: 2em;
        line-height: 100%;
        text-align: center;
      }

      p {
        text-align: center;
        font-size: 1.4em;
      }
    }
  }

  .sec2 {
    .right {

      li {
        font-size: 1.2em;
      }
    }
  }

  .sec3 {
    padding-top: 40px;

    .right {
      order: 2;
      padding-bottom: 40px;

      li {
        font-size: 1.4em;
      }
    }

    .left {
      order: 1;
    }
  }

  .sec4 {
    padding: 60px 5%;

    .title {
      font-size: 2em;
    }
  }
}

.services {

  .sec1 {
    padding: 60px 5%;
    flex-direction: column;
    row-gap: 40px;

    .left {
      width: 100%;

      h2 {
        font-size: 1.8em;
        text-align: center;
      }

      h2::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: -8px;
        transform: translateX(-50%);
        height: 1px;
        width: 10%;
        background-color: #000;
      }

      ul {
        padding-left: 0;

        li {
          line-height: 100%;
          width: 100%;
          font-size: 1.1em;

          span {
            width: fit-content;
            border: none;
            height: fit-content;
            min-width: 15px;
          }
        }
      }
    }

    .right {
      width: 100%;

      .half-left,
      .half-right {
        height: 300px;
      }
    }
  }

  .sec2 {
    .title {
      font-size: 1.8em;
      text-align: center;
    }

    .grid {
      grid-template-columns: repeat(1, 1fr);
    }
  }
}

/* Contact Page */
.contact {

  .sec1 {
    padding: 60px 5%;
    width: 100%;
    flex-direction: column;
    row-gap: 60px;

    .grid {
      flex-direction: column;
      justify-content: center;
      align-items: center;
      row-gap: 60px;

      .item {
        width: 100%;
        flex-direction: column;
        row-gap: 20px;
        text-align: center;

        .lef,
        .righ {
          width: 100%;
        }

        .righ {

          .info {
            font-size: 1.2em;
          }
        }
      }
    }

    .partner {

      img {
        height: 40px !important;
      }
    }

    .flex {
      flex-direction: column;
      row-gap: 60px;

      .left,
      .right {
        width: 100%;
      }

      .left {

        .title {
          font-size: 2.5em;
        }

        .img-wrap {
          padding-bottom: 0;
        }
      }
    }

    form {
      width: 100%;
    }
  }
}

/* Custom Designs Page */
.manufacturing {

  .sec1 {

    h2,
    h3 {
      font-size: 1.8em;
      line-height: 120%;
    }

    .flex3 {
      grid-template-columns: repeat(1, 1fr);
    }

    .grid3 {

      .item {
        width: 100%;

        .left {

          .number {
            font-size: 1.6em;
          }
        }

        .right {

          .h2 {
            font-size: 1.2em;
          }
        }
      }
    }
  }

  .sec2 {

    .box-title {
      font-size: 1.8em;
    }

    .flex3 {
      flex-direction: column;
      row-gap: 20px;

      .item {
        width: 100%;
      }
    }
  }
}

/* Sponsorship Page */
.sponsorships {

  .sec1 {

    .grid3 {
      grid-template-columns: repeat(1, 1fr);
    }
  }
}

/* resellers Page */
.resellers {

  .sec1 {

    .flex-standard {
      flex-direction: column;
      row-gap: 20px;

      .left {
        width: 100%;
      }

      .right {
        width: 100%;
      }
    }
  }
}


/* ── YENDE HOME — MOBILE OVERRIDES ─────────────────────────────────── */

h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.4rem; }

.home {

  /* Hero */
  .hero {
    flex-direction: column;
    padding: 50px 5% 60px;
    min-height: fit-content;
    height: auto;
    gap: 36px;

    .left {
      width: 100%;

      h1 {
        font-size: 2.4rem;
        line-height: 1.15;
      }

      p { font-size: 1rem; margin-bottom: 28px; }
    }

    .right {
      width: 100%;
      height: 260px;
      border-radius: 20px;
    }
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;

    .btn-hero-primary,
    .btn-hero-secondary {
      width: 100%;
      justify-content: center;
    }
  }

  /* Sec1 – About */
  .sec1 {
    flex-direction: column;
    padding: 50px 5%;
    gap: 36px;

    .left,
    .right {
      width: 100%;
    }

    .left { height: 260px; }

    .right {
      h2 { font-size: 1.6rem; }

      .flexBox {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 28px;
      }
    }
  }

  /* Sec2 – Mission & Values */
  .sec2 {
    flex-direction: column-reverse;
    padding: 50px 5%;
    gap: 40px;

    .left,
    .bento {
      width: 100%;
    }

    .bento {
      flex-direction: row;
      gap: 16px;

      .flexbox {
        .item-big,
        .bigger { height: 180px; }
      }
    }
  }

  /* Sec3 – Specialized Solutions */
  .sec3 {
    padding: 50px 5%;
    overflow: visible;
    text-align: left;

    > h4, > p { text-align: center; }

    .flexBox {
      flex-direction: column;
      align-items: flex-start;
      margin-top: 40px;
      gap: 40px;

      .left,
      .right {
        width: 100%;
      }

      .right {
        grid-template-columns: 1fr;
        gap: 20px;
      }
    }
  }

  /* Sec4 – Beyond Billing */
  .sec4 {
    padding: 50px 5%;

    .sec4-panels {
      flex-direction: column;

      .sec4-panel {
        padding: 40px 28px;
      }
    }
  }

  /* Sec5 – Leadership */
  .sec5 {
    flex-direction: column-reverse;
    padding: 50px 5%;
    margin: 20px auto;
    width: 92%;
    border-radius: 28px;
    gap: 36px;

    .left,
    .right {
      width: 100%;
    }

    .right { min-height: 300px; border-radius: 28px; }

    .left .list-wrap {
      flex-direction: column;
      gap: 16px;
    }
  }

  /* Contact */
  .contact {
    padding: 60px 5%;

    .contact-inner {
      flex-direction: column;
      gap: 40px;
    }

    .contact-left {
      width: 100%;

      h3 { font-size: 1.7rem; }

      .btn-contact {
        width: 100%;
        max-width: 100%;
        justify-content: center;
      }
    }

    .contact-right {
      width: 100%;
    }
  }
}

/* Contact Modal – mobile */
.contact-modal-overlay {
  align-items: flex-end;
}

.contact-modal-card {
  padding: 36px 20px 28px;
  border-radius: 24px 24px 0 0;
  max-height: 92dvh;
  max-width: 100%;
}

.modal-row {
  flex-direction: column;
  gap: 0;
}

.modal-form-footer {
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}

.modal-submit {
  width: 100%;
  justify-content: center;
}

/* ── YENDE — THOROUGH MOBILE FIXES ─────────────────────────────────── */

/* Contact cards: prevent long email from overflowing */
.contact-card {
  align-items: flex-start;

  .c-icon {
    margin-top: 4px;
    flex-shrink: 0;
  }

  .c-info {
    min-width: 0; /* lets flex child shrink so text wraps */
  }

  .c-value {
    overflow-wrap: break-word;
    word-break: break-all;
    font-size: 0.9rem;
  }
}

/* Hero eyebrow — prevent overflow on very small screens */
.hero-eyebrow {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 1px;
  overflow-wrap: break-word;
}

/* Hero headline — tighten on really small screens */
@media (max-width: 380px) {
  .home .hero .left h1 {
    font-size: 2rem;
  }

  .home .hero .hero-cta {
    flex-direction: column;
    align-items: stretch;

    .btn-hero-primary,
    .btn-hero-secondary {
      width: 100%;
      justify-content: center;
    }
  }
}

/* Sec2 mission circles — lock dimensions so flex-shrink can't squash them into ovals */
.home .sec2 .left .flexBox .flex .number {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
}

/* Sec2 bento — reduce number size on mobile so items don't overflow */
.home .sec2 .bento .item-small .number {
  font-size: 1.8rem;
}

/* Sec3 services — ensure items don't overflow */
.home .sec3 .flexBox .right .item {
  min-width: 0;

  h4 {
    gap: 8px;
    font-size: 0.95rem;
  }

  ul li span {
    font-size: 0.82rem;
  }
}

/* Sec5 leadership — ensure text stays inside the card */
.home .sec5 .left {
  min-width: 0;

  p {
    overflow-wrap: break-word;
  }
}

/* Footer — tighten mobile padding already set; ensure copyright wraps */
footer .footer-logo {
  height: 36px;
}

footer > div {
  text-align: center;
  overflow-wrap: break-word;
}

/* Modal — ensure inputs don't overflow on iOS */
.contact-modal-card input,
.contact-modal-card select,
.contact-modal-card textarea {
  max-width: 100%;
  box-sizing: border-box;
}