/* ---------------------------------------------------------------------------
   site.css — refinement layer on top of style.css / responsive.css
   Loaded last so it can tighten spacing, hierarchy and mobile behaviour
   without touching the theme's original rules.
   --------------------------------------------------------------------------- */

:root {
  --ink: #16204a;
  --ink-soft: #4b5573;
  --brand: #00319a;
  --brand-soft: #eef2ff;
  --line: #e4e7f2;
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(22, 32, 74, .06);
  --shadow-md: 0 12px 32px rgba(22, 32, 74, .10);
}

/* --- Typography ----------------------------------------------------------- */
body {
  color: var(--ink-soft);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  line-height: 1.25;
}

.section_title h2 {
  font-size: clamp(24px, 3.4vw, 40px);
  letter-spacing: -.02em;
}

/* Keep long unbroken strings (URLs, emails, addresses) from pushing layout wide. */
p, li, td, h1, h2, h3, h4 {
  overflow-wrap: anywhere;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Images --------------------------------------------------------------- */
/* Every <img> keeps its aspect ratio so lazy-loaded content cannot shift layout. */
img {
  max-width: 100%;
  height: auto;
}

/* --- Header --------------------------------------------------------------- */
.navbar-brand img {
  width: 180px;
  height: auto;
}

.navbar-expand-lg .navbar-nav .nav-link {
  padding: 8px 14px;
  font-size: 15px;
}

.drp_btn {
  background: none;
  border: 0;
  padding: 4px 6px;
  color: inherit;
  cursor: pointer;
  line-height: 1;
}

.sub_menu ul li a {
  display: block;
  padding: 9px 18px;
  font-size: 14px;
  transition: background-color .18s ease, color .18s ease;
}

.sub_menu ul li a:hover {
  background-color: var(--brand-soft);
  color: var(--brand);
}

.current_lang {
  display: block;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
}

/* --- Buttons / CTA -------------------------------------------------------- */
.puprple_btn,
.white_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 32px;
  font-size: 15px;
  border-radius: 100px;
  transition: transform .18s ease, box-shadow .18s ease, color .18s ease, background-color .18s ease;
}

.puprple_btn:hover,
.white_btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* --- Cards / sections ----------------------------------------------------- */
.blog_text .section_title h2,
.data_block h4 {
  margin-bottom: 8px;
}

.data_block {
  margin-bottom: 26px;
}

.blog_img img,
.slider_img img {
  border-radius: var(--radius);
}

/* --- Forms ---------------------------------------------------------------- */
.form-control {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 15px;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 49, 154, .12);
}

textarea.form-control {
  min-height: 130px;
}

label {
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}

/* --- Footer --------------------------------------------------------------- */
.footer_contact {
  font-size: 14px;
  line-height: 1.65;
  color: #ffffff;
}

/* The address lines carry inline <br> and sit inside plain <li> elements, so a
   bare `color` on the list was being lost to the body colour inheritance. */
.footer_contact li {
  color: #ffffff;
}

.footer_contact li + li {
  margin-top: 6px;
}

.footer_contact a,
.footer_contact a:hover {
  color: #ffffff;
}

.footer_offices {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  font-size: 14px;
}

.footer_offices li {
  width: 50%;
}

.footer_offices li a {
  color: #dbe2f0;
  transition: color .18s ease;
}

.footer_offices li a:hover {
  color: #fff;
}

/* Floating action buttons live in floating-actions.css so their positions stay
   in one place; only the opacity transition belongs here. */
.go_top {
  transition: transform .18s ease, opacity .2s ease;
}

.bottom_footer .developer_text {
    /* Reserve room so the floating action buttons never cover the credit line. */
    padding-right: calc(var(--fab-size, 56px) * 3 + var(--fab-gap, 12px) * 3 + var(--fab-edge, 24px));
}

@media (max-width: 767px) {
  .bottom_footer .developer_text {
    padding-right: calc(var(--fab-size, 52px) * 2 + var(--fab-gap, 10px) * 2 + var(--fab-edge, 16px));
  }
}

/* --- Utility classes used by the refreshed views -------------------------- */
.skip_link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100000;
  padding: 12px 20px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  border-radius: 0 0 10px 0;
}

.skip_link:focus {
  left: 0;
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form_alert {
  font-size: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
}

.form_alert--success {
  background: #e8f7ee;
  color: #146c43;
  border: 1px solid #b7e4c7;
}

.form_alert--error {
  background: #fdecec;
  color: #a11212;
  border: 1px solid #f5c2c2;
}

.form-control.is-invalid {
  border-color: #dc3545;
}

.contact_submit {
  margin-top: 10px;
  width: 100%;
}

.review_box_link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.review_box_link p {
  margin-bottom: 10px;
}

.review_box_more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
}

.review_box_link:hover .review_box_more {
  text-decoration: underline;
}

.newsletter_cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 34px;
  border-radius: 100px;
  background: #fff;
  color: #080888;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease;
}

.newsletter_cta:hover {
  color: #080888;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* --- Icons (inline SVG sprite, replaces the icofont webfont) -------------- */
svg.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  fill: none;
  flex-shrink: 0;
}

.icon_faq {
  font-size: 14px;
  transition: transform .2s ease;
}

/* SD-WAN documentation gallery: source photos share 3:2 ratio. The old
   malformed `<img ... / width>` attributes made browsers render 16x11px icons;
   these rules provide one proportional frame at every grid breakpoint. */
.sdwan-documentation .documentation-card {
  height: 100%;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.sdwan-documentation .documentation-card .icon {
  width: 100%;
  height: auto;
  margin: 0;
  line-height: 0;
  overflow: hidden;
  border-radius: 10px;
}

.sdwan-documentation .documentation-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 10px;
}

/* --- Overflow guards ------------------------------------------------------ */

iframe {
  max-width: 100%;
  border: 0;
}

table {
  width: 100%;
}

/* --- Motion (respect users who ask for less of it) ------------------------ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Tablet: 768–1023px --------------------------------------------------- */
@media (max-width: 1023px) {
  .section_title h2 {
    font-size: clamp(22px, 4vw, 32px);
  }

  .footer_offices li {
    width: 100%;
  }
}

/* --- Mobile: below 768px -------------------------------------------------- */
@media (max-width: 767px) {
  body {
    font-size: 15px;
  }

  .row_am {
    padding: 38px 0;
  }

  .navbar {
    padding-top: 16px;
  }

  .navbar-collapse {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    margin-top: 12px;
    padding: 8px 4px 14px;
    max-height: 75vh;
    overflow-y: auto;
  }

  .navbar-expand-lg .navbar-nav {
    align-items: stretch;
  }

  .navbar-expand-lg .navbar-nav .nav-link,
  .navbar-expand-lg .navbar-nav .has_dropdown {
    padding: 10px 16px;
  }

  .navbar-expand-lg .navbar-nav .has_dropdown .sub_menu {
    position: static;
    min-width: 0;
    max-width: none;
    margin: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    display: none;
    background: var(--brand-soft);
    border-radius: 10px;
  }

  .navbar-expand-lg .navbar-nav .has_dropdown .sub_menu ul li a {
    padding: 8px 16px;
  }

  .navbar-expand-lg .navbar-nav .has_dropdown .drp_btn {
    position: absolute;
    right: 8px;
    top: 8px;
    padding: 12px;
    min-width: 44px;
    min-height: 44px;
  }

  /* Touch targets */
  .puprple_btn,
  .white_btn {
    width: 100%;
    min-height: 48px;
    margin-bottom: 10px;
  }

  /* Floating buttons are sized in floating-actions.css. */

  .app_statstic li {
    margin-bottom: 18px;
  }
}

/* --- Small phones: 320–479px --------------------------------------------- */
@media (max-width: 479px) {
  .navbar-brand img {
    width: 140px;
  }

  .puprple_btn,
  .white_btn {
    padding: 12px 20px;
    font-size: 14px;
  }

  .footer_offices li {
    width: 100%;
  }
}
