/* Styles for the Solutions section: header dropdown, ODM page, Design page.
   Kept in a separate file so the hashed Vite bundle stays untouched.
   Loaded from partials/header.html (dropdown) and from odm.html / design.html. */

/* ---------- Header dropdown ---------- */

.main-header .nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  /* Matches .main-header height so the menu drops below the header bar. */
  height: 90px;
  margin-left: 10px;
}

.main-header .nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 0;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--darkblue);
  font-size: 25px;
  transition: all .5s;
}

.main-header .nav-dropdown-trigger:hover,
.main-header .nav-dropdown:hover .nav-dropdown-trigger,
.main-header .nav-dropdown.open .nav-dropdown-trigger {
  color: #035da9;
}

.nav-dropdown-caret {
  width: 14px;
  height: 14px;
  transition: transform .3s;
}

.nav-dropdown:hover .nav-dropdown-caret,
.nav-dropdown.open .nav-dropdown-caret {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-top: 3px solid var(--orange);
  box-shadow: 0 10px 25px #01203a26;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .25s, transform .25s, visibility .25s;
  z-index: 1001;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-header .nav-dropdown-menu a {
  display: block;
  margin-left: 0;
  padding: 10px 24px;
  color: var(--darkblue);
  font-size: 22px;
  letter-spacing: .02em;
}

.main-header .nav-dropdown-menu a:hover {
  background-color: #eeeef7;
  color: #035da9;
}

/* Five nav items no longer fit inside the 16% page gutter the header inherits,
   so the bar gets its own narrower padding and steps typography down. */
.main-header .header-link,
.main-header .nav-dropdown-trigger {
  white-space: nowrap;
}

@media (max-width: 1700px) {
  .main-header {
    padding-left: 5%;
    padding-right: 5%;
  }
}

@media (max-width: 1250px) {
  .main-header .header-link,
  .main-header .nav-dropdown-trigger {
    font-size: 21px;
  }

  .main-header .header-logo-img {
    width: 210px;
    height: 60px;
  }

  .main-header .nav-dropdown-menu a {
    font-size: 20px;
  }
}

/* ---------- Mobile burger menu ----------
   Note: the stylesheet in the bundle applies `body { zoom: .7 }` below 1000px,
   so the layout gets ~1.4x more room than the viewport width suggests. The
   burger therefore only kicks in on genuinely narrow screens. */

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 52px;
  height: 52px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-burger-bar {
  display: block;
  width: 38px;
  height: 4px;
  border-radius: 2px;
  background-color: var(--darkblue);
  transition: transform .3s, opacity .3s;
}

@media (max-width: 700px) {
  .nav-burger {
    display: flex;
  }

  .main-header.nav-open .nav-burger-bar:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
  }

  .main-header.nav-open .nav-burger-bar:nth-child(2) {
    opacity: 0;
  }

  .main-header.nav-open .nav-burger-bar:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
  }

  .main-header .header-logo-img {
    width: 200px;
    height: 57px;
    margin-left: 0;
  }

  /* Nav turns into a panel that drops out of the header bar. */
  .main-header .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0 16px;
    background-color: #fff;
    border-top: 3px solid var(--orange);
    box-shadow: 0 14px 28px #01203a26;
    z-index: 1001;
  }

  .main-header.nav-open .main-nav {
    display: flex;
  }

  /* Reset the horizontal spacing utilities inherited from the desktop row. */
  .main-header .main-nav > * {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .main-header .main-nav .header-link {
    display: block;
    padding: 12px 28px;
    font-size: 26px;
  }

  /* Services: submenu is always expanded inside the panel. */
  .main-header .main-nav .nav-dropdown {
    height: auto;
    flex-direction: column;
    align-items: stretch;
  }

  .main-header .main-nav .nav-dropdown-trigger {
    width: 100%;
    padding: 12px 28px;
    font-size: 26px;
    /* .header-link forces display:block here, so undo the button default. */
    text-align: left;
  }

  .main-header .main-nav .nav-dropdown-caret {
    display: none;
  }

  .main-header .main-nav .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    background-color: #eeeef7;
  }

  .main-header .main-nav .nav-dropdown-menu a {
    padding: 11px 28px 11px 50px;
    font-size: 23px;
  }

  /* Keep the language switcher button-sized so its menu still lines up. */
  .main-header .main-nav #lang-dropdown {
    width: max-content;
    margin: 14px 0 0 28px;
  }

  .main-header .main-nav #lang-button {
    margin-left: 0;
  }
}

/* ---------- Shared page building blocks ---------- */

.section-page-banner img {
  width: 100% !important;
  height: 249px;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
}

/* Copy still waiting on real figures from the client. Deliberately loud:
   nothing marked this way should reach production. */
.ph {
  background-color: #fff3d6;
  border-bottom: 2px solid #e68a00;
  padding: 0 4px;
  /* Long placeholders span several lines; highlight each fragment. */
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.sol-section {
  color: var(--darkblue);
  background-color: #fff;
  padding: 64px var(--paddingHorizontal);
}

.sol-section--tint {
  background-color: #eeeef7;
}

.sol-section--dark {
  background-color: var(--darkblue);
  color: #fff;
}

.sol-h2 {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.25em;
  margin-bottom: 22px;
}

.sol-lead {
  font-size: 22px;
  line-height: 1.6em;
  max-width: 1000px;
  margin-bottom: 22px;
}

.sol-p {
  font-size: 19px;
  line-height: 1.65em;
  max-width: 1000px;
  margin-bottom: 18px;
  color: #3b5568;
}

.sol-section--dark .sol-p {
  color: #c6d4de;
}

.sol-rule {
  border: 0;
  border-top: 3px solid var(--orange);
  width: 90px;
  margin: 0 0 32px;
}

/* ---------- Hero ---------- */

.sol-hero {
  position: relative;
  color: #fff;
  background-color: var(--darkblue);
  padding: 74px var(--paddingHorizontal);
  overflow: hidden;
}

.sol-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .28;
}

/* Scrim so the headline stays readable over the brighter parts of the photo. */
.sol-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, #01203af2 0%, #01203abf 48%, #01203a73 100%);
}

.sol-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1000px;
}

.sol-eyebrow {
  display: inline-block;
  font-size: 17px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}

.sol-hero-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15em;
  margin-bottom: 20px;
}

.sol-hero-sub {
  font-size: 22px;
  line-height: 1.6em;
  color: #d3dee6;
}

.sol-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.sol-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 17px;
  letter-spacing: .08em;
  border: 2px solid var(--orange);
  transition: all .3s;
}

.sol-btn--primary {
  background-color: var(--orange);
  color: #fff;
}

.sol-btn--primary:hover {
  background-color: transparent;
  color: var(--orange);
}

.sol-btn--ghost {
  color: #fff;
  border-color: #7d93a3;
}

.sol-btn--ghost:hover {
  border-color: #fff;
}

/* ---------- Product cards ---------- */

.sol-cards {
  display: grid;
  /* Wide enough that four cards fall into a 2x2 block rather than 3 + 1. */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 24px;
}

.sol-card {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-top: 4px solid var(--orange);
  box-shadow: 0 2px 14px #01203a14;
}

.sol-section--tint .sol-card {
  box-shadow: none;
}

.sol-card--featured {
  border-top-color: #035da9;
  background-color: var(--darkblue);
  color: #fff;
}

.sol-card-img {
  width: 100%;
  height: 180px;
  /* Illustrations, not photos — show them whole rather than cropping. */
  object-fit: contain;
  background-color: #eeeef7;
  display: block;
}

.sol-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.sol-card-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3em;
}

.sol-card-text {
  font-size: 17px;
  line-height: 1.6em;
  color: #3b5568;
  flex: 1;
}

.sol-card--featured .sol-card-text {
  color: #c6d4de;
}

.sol-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sol-tag {
  font-size: 14px;
  letter-spacing: .04em;
  padding: 5px 11px;
  background-color: #eeeef7;
  color: #3b5568;
}

.sol-card--featured .sol-tag {
  background-color: #0d3350;
  color: #d3dee6;
}

.sol-card-link {
  font-size: 17px;
  font-weight: 700;
  color: #035da9;
}

.sol-card--featured .sol-card-link {
  color: var(--orange);
}

/* ---------- Process table ---------- */

.sol-table-scroll {
  overflow-x: auto;
}

.sol-process {
  width: 100%;
  border-collapse: collapse;
  font-size: 17px;
  min-width: 720px;
}

.sol-process th {
  text-align: left;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #6b7f8e;
  padding: 0 16px 12px;
  border-bottom: 2px solid #cfd7de;
}

.sol-process td {
  padding: 18px 16px;
  border-bottom: 1px solid #dfe4e9;
  vertical-align: top;
  line-height: 1.55em;
}

.sol-process td:first-child {
  font-weight: 700;
  color: var(--orange);
  width: 56px;
}

.sol-process td:nth-child(2) {
  font-weight: 700;
  width: 210px;
}

.sol-process td:last-child {
  width: 150px;
  color: #3b5568;
}

/* ---------- Capability figures ---------- */

.sol-figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.sol-figure {
  padding: 26px;
  background-color: #0d3350;
  border-left: 4px solid var(--orange);
}

.sol-figure-num {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1em;
  color: #fff;
}

.sol-figure-label {
  margin-top: 8px;
  font-size: 17px;
  color: #c6d4de;
}

/* ---------- Terms, checklists, FAQ ---------- */

.sol-terms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.sol-term-title {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 10px;
}

.sol-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 1000px;
}

.sol-list li {
  position: relative;
  padding-left: 30px;
  font-size: 18px;
  line-height: 1.6em;
  color: #3b5568;
}

.sol-list li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 12px;
  height: 3px;
  background-color: var(--orange);
}

.faq-item {
  border-top: 1px solid #dfe4e9;
  padding: 22px 0;
  max-width: 1000px;
}

.faq-q {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 10px;
}

.faq-a {
  font-size: 18px;
  line-height: 1.65em;
  color: #3b5568;
}

.sol-note {
  border-left: 5px solid var(--orange);
  background-color: #fff3d6;
  padding: 20px 24px;
  font-size: 17px;
  line-height: 1.6em;
  color: #4a3a17;
  max-width: 1000px;
}

/* ---------- Product detail blocks ---------- */

.prod {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 36px 0;
  border-top: 1px solid #dfe4e9;
}

.prod-media {
  flex: 1;
  min-width: 280px;
}

.prod-media img {
  width: 100%;
  background-color: #eeeef7;
  display: block;
}

.prod-body {
  flex: 1.6;
  min-width: 320px;
}

.prod-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}

.spec-head {
  font-size: 15px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #6b7f8e;
  margin: 24px 0 12px;
}

.spec {
  margin: 0;
  font-size: 17px;
  line-height: 1.5em;
}

.spec-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #eaeef1;
}

.spec-key {
  flex: 0 0 210px;
  font-weight: 700;
}

.spec-val {
  flex: 1;
  min-width: 200px;
  color: #3b5568;
}

/* Marks copy that must be confirmed before the site goes live. */
.sol-note--internal {
  border-left-color: #b91c1c;
  background-color: #fee2e2;
  color: #7f1d1d;
}

.sol-note-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.prod-media figcaption {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.5em;
  color: #6b7f8e;
}

.sol-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.sol-chip {
  font-size: 17px;
  padding: 9px 16px;
  background-color: #fff;
  border: 1px solid #c3ccd6;
  color: var(--darkblue);
}

.sol-section--tint .sol-chip {
  background-color: #fff;
}

/* ---------- Home: two ways to work with us ---------- */

.two-ways {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.two-way {
  padding: 34px;
  background-color: #eeeef7;
  border-top: 4px solid var(--orange);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.two-way--odm {
  background-color: var(--darkblue);
  color: #fff;
  border-top-color: #035da9;
}

.two-way-title {
  font-size: 26px;
  font-weight: 700;
}

.two-way-text {
  font-size: 18px;
  line-height: 1.6em;
  color: #3b5568;
  flex: 1;
}

.two-way--odm .two-way-text {
  color: #c6d4de;
}

.two-way-link {
  font-size: 18px;
  font-weight: 700;
  color: #035da9;
}

.two-way--odm .two-way-link {
  color: var(--orange);
}

/* ---------- Contact enquiry form ---------- */

.enquiry {
  max-width: 820px;
}

.enquiry-field {
  margin-bottom: 20px;
}

.enquiry-field label {
  display: block;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 7px;
  color: var(--darkblue);
}

.enquiry-field input,
.enquiry-field select,
.enquiry-field textarea {
  width: 100%;
  padding: 11px 14px;
  font-size: 17px;
  color: var(--darkblue);
  background-color: #fff;
  border: 1px solid #c3ccd6;
}

.enquiry-field input:focus,
.enquiry-field select:focus,
.enquiry-field textarea:focus {
  outline: 2px solid #035da9;
  outline-offset: -1px;
}

.enquiry-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0 20px;
}

.enquiry-note {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.6em;
  color: #3b5568;
}

.enquiry-status {
  margin-top: 14px;
  font-size: 17px;
  font-weight: 700;
}

/* ---------- Narrow screens ---------- */

@media (max-width: 700px) {
  .sol-hero-title {
    font-size: 36px;
  }

  .sol-h2 {
    font-size: 28px;
  }

  .spec-key {
    flex: 0 0 100%;
  }
}

/* ---------- Custom file picker (contact form) ----------
   The native control is labelled in the browser's UI language, so it is kept
   for function only and the visible parts are ours. */

.file-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  position: relative;
}

/* Scoped under .enquiry-field to outrank its generic `input { width: 100% }`. */
.enquiry-field .file-picker-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
  overflow: hidden;
}

.file-picker-btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--darkblue);
  background-color: #fff;
  border: 2px solid var(--darkblue);
  cursor: pointer;
  transition: all .3s;
}

.file-picker-btn:hover,
.file-picker-input:focus-visible + .file-picker-btn {
  background-color: var(--darkblue);
  color: #fff;
}

.file-picker-names {
  font-size: 16px;
  color: #3b5568;
}

/* ---------- Telecom: reference platforms table ---------- */

.sol-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 17px;
  min-width: 720px;
}

.sol-table th {
  text-align: left;
  font-size: 15px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #6b7f8e;
  padding: 0 16px 12px;
  border-bottom: 2px solid #cfd7de;
}

.sol-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #dfe4e9;
  vertical-align: top;
  line-height: 1.5em;
}

.sol-table tr.group td {
  background-color: #eeeef7;
  color: var(--darkblue);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 10px 16px;
}

.sol-table .model {
  font-weight: 700;
  white-space: nowrap;
}

.pill {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  padding: 3px 10px;
  white-space: nowrap;
}

.pill--mp {
  background-color: #dcfce7;
  color: #166534;
}

.pill--samp {
  background-color: #fff3d6;
  color: #7a4d00;
}

.pill--dev {
  background-color: #e5e7eb;
  color: #3b5568;
}

.sol-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.sol-col-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  border-top: 3px solid var(--orange);
  padding-top: 14px;
  margin-bottom: 10px;
}

.sol-col-head h3 {
  font-size: 22px;
  font-weight: 700;
}

.sol-col-head em {
  font-style: normal;
  font-size: 15px;
  color: #6b7f8e;
  white-space: nowrap;
}
