/*-----------------------------------------------------------------------------------*/
/*    AV Technologies — main stylesheet (modernised 2026)                            */
/*-----------------------------------------------------------------------------------*/

:root {
  --brand-navy: #113856;
  --brand-navy-dark: #0c2940;
  --brand-blue: #1f72be;
  --brand-blue-dark: #17598f;
  --accent: #ddae39;
  --accent-dark: #c9992a;
  --heading: #16283a;
  --text: #2b3440;
  --text-muted: #5b6674;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --border: #e3e8ee;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(16, 42, 67, .08);
  --shadow-md: 0 6px 18px rgba(16, 42, 67, .10);
  --shadow-lg: 0 14px 34px rgba(16, 42, 67, .16);
  --container: 1140px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/*-----------------------------------------------------------------------------------*/
/*    Base                                                                            */
/*-----------------------------------------------------------------------------------*/

*, ::before, ::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.25;
  color: var(--heading);
  margin: 0 0 .6em;
}
h1 { font-size: clamp(1.85rem, 1.3rem + 1.8vw, 2.5rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2rem); letter-spacing: -.01em; }
h3 { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1.1em; }
ul { padding-left: 22px; }
li { margin-bottom: 5px; }

a { color: var(--brand-blue); text-decoration: none; }
a:hover { color: var(--brand-blue-dark); text-decoration: underline; }
:focus-visible { outline: 3px solid rgba(31, 114, 190, .45); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--brand-blue); color: #fff; }

/*-----------------------------------------------------------------------------------*/
/*    Layout                                                                          */
/*-----------------------------------------------------------------------------------*/

.container { width: 100%; max-width: var(--container); margin-left: auto; margin-right: auto; padding-left: 22px; padding-right: 22px; }
#main-content { padding-top: 56px; padding-bottom: 64px; }
.ny-row { margin-bottom: 32px; }
.ny-row::after { content: ""; display: table; clear: both; }

/*-----------------------------------------------------------------------------------*/
/*    Buttons                                                                         */
/*-----------------------------------------------------------------------------------*/

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  background-color: var(--brand-blue);
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.3;
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.btn:hover {
  background-color: var(--brand-blue-dark);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-primary { background-color: var(--brand-blue); }
.btn-light { background-color: var(--accent); color: var(--brand-navy); }
.btn-light:hover { background-color: var(--accent-dark); color: var(--brand-navy); }
.btn-outline { background-color: transparent; border-color: rgba(255, 255, 255, .65); box-shadow: none; }
.btn-outline:hover { background-color: rgba(255, 255, 255, .12); border-color: #fff; }

/*-----------------------------------------------------------------------------------*/
/*    Header Bar                                                                      */
/*-----------------------------------------------------------------------------------*/

.avx-header-main { background: #fff; border-bottom: 1px solid var(--border); }
.avx-header-content {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.avx-header-logo { display: block; line-height: 0; }
.avx-site-branding { width: 150px; height: auto; display: block; }
.avx-head-tel a { display: inline-flex; align-items: center; gap: 10px; color: var(--brand-navy); font-weight: 600; font-size: 1.02rem; }
.avx-head-tel a:hover { text-decoration: none; color: var(--brand-blue); }
.avx-head-tel .fa-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--brand-blue);
  font-size: .9rem;
}

/*-----------------------------------------------------------------------------------*/
/*    Navigation Menu                                                                 */
/*-----------------------------------------------------------------------------------*/

.avx-topnav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-navy-dark) 100%);
  box-shadow: 0 2px 12px rgba(12, 41, 64, .28);
}
.topnav {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: stretch;
  padding: 0 10px;
}
.topnav a.nav-link {
  position: relative;
  display: block;
  color: #fff;
  padding: 15px 22px;
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .01em;
  transition: background-color .2s ease;
}
.topnav a.nav-link::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 9px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.topnav a.nav-link:hover { background-color: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; }
.topnav a.nav-link:hover::after { transform: scaleX(1); }
.topnav a.nav-link.active { background-color: rgba(255, 255, 255, .1); font-weight: 600; }
.topnav a.nav-link.active::after { transform: scaleX(1); }
.topnav .icon { display: none; }

/* Mobile navigation */
@media screen and (max-width: 820px) {
  .topnav { flex-wrap: wrap; padding: 0; }
  .topnav a.nav-link { display: none; width: 100%; padding: 14px 24px; }
  .topnav a.nav-link::after { display: none; }
  .topnav a.nav-link:first-child { display: block; width: auto; }
  .topnav .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    padding: 12px 22px;
    color: #fff;
    font-size: 1.3rem;
  }
  .topnav .icon:hover { text-decoration: none; color: var(--accent); }
  .topnav.responsive a.nav-link { display: block; width: 100%; border-top: 1px solid rgba(255, 255, 255, .08); }
  .topnav.responsive a.nav-link:first-child { border-top: none; }
  .topnav.responsive .icon { position: absolute; top: 0; right: 0; }
  .topnav.responsive { position: relative; }
}

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

.hero {
  background:
    radial-gradient(1100px 480px at 82% -10%, rgba(31, 114, 190, .45), transparent 60%),
    linear-gradient(160deg, var(--brand-navy) 0%, var(--brand-navy-dark) 75%);
  color: #fff;
  padding: 72px 22px 84px;
}
.hero-inner { max-width: var(--container); margin-left: auto; margin-right: auto; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #cfe3f7;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  padding: 6px 14px;
  border-radius: 999px;
  margin: 0 0 20px;
}
.hero-kicker svg { height: 12px; width: auto; border-radius: 2px; flex-shrink: 0; }
.hero h1 { color: #fff; margin-bottom: .4em; }
.hero-sub { font-size: 1.1rem; line-height: 1.7; color: #c8d6e4; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.section-head { max-width: 640px; margin: 16px 0 36px; }
.section-head p { color: var(--text-muted); }

/*-----------------------------------------------------------------------------------*/
/*    Cards (homepage services + product grids)                                       */
/*-----------------------------------------------------------------------------------*/

.home-div-1 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 26px;
}
.avxh-col1of3, .avxh-col2of3, .avxh-col3of3, .avt-prod-third {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.avxh-col1of3:hover, .avxh-col2of3:hover, .avxh-col3of3:hover, .avt-prod-third:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.avxh-centered h3, .avxh-centered h4, .avt-prod-centered h4 {
  background: var(--brand-navy);
  color: #fff;
  margin: 0;
  padding: 14px 20px;
  font-size: 1.02rem;
  font-weight: 500;
  text-align: left;
}
.avxh-container a { display: block; overflow: hidden; line-height: 0; }
.avxh-image { display: block; width: 100%; height: auto; transition: transform .4s ease; }
/* Homepage service cards: uniform image crop so mixed aspect ratios stay level */
.avxh-col1of3 .avxh-image, .avxh-col2of3 .avxh-image, .avxh-col3of3 .avxh-image {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.avxh-container:hover .avxh-image { transform: scale(1.04); }
.avxh-info {
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  font-size: .95rem;
}
.avxh-info ul { margin: 20px 22px 18px; padding-left: 20px; color: var(--text-muted); }
.avxh-info p { color: var(--text-muted); margin: 20px 22px 18px; }

/* Full-width button flush to the card bottom (all cards) */
.avxh-info .btn {
  display: block;
  width: 100%;
  align-self: stretch;
  margin-top: auto;
  text-align: center;
  padding: 14px 20px;
  border-radius: 0;
  box-shadow: none;
  background-color: var(--accent);
  color: var(--brand-navy);
}
.avxh-info .btn:hover {
  transform: none;
  box-shadow: none;
  background-color: var(--accent-dark);
  color: var(--brand-navy);
}

/* Product cards (portfolio/archive): padded product shots */
.avt-prod-third .avxh-container a { padding: 24px 24px 16px; }

/* Reseller cards: auto-fill keeps single cards at column width instead of stretching */
.reseller-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 26px;
}
.card-contact-row { display: flex; align-items: flex-start; gap: 12px; margin: 20px 22px 18px; }
.card-contact-row > i { color: var(--brand-blue); margin-top: 6px; width: 16px; text-align: center; flex-shrink: 0; }
.card-contact-row p { margin: 0; }

/*-----------------------------------------------------------------------------------*/
/*    Trusted-by logo strip                                                           */
/*-----------------------------------------------------------------------------------*/

.trusted-section { margin-top: 60px; padding-top: 44px; border-top: 1px solid var(--border); text-align: center; }
.trusted-section h2 {
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--text-muted);
}
.trusted-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 36px 52px;
  margin-top: 28px;
}
.trusted-logos img {
  max-height: 72px;
  width: auto;
  max-width: 200px;
  filter: grayscale(1);
  opacity: .55;
  transition: filter .25s ease, opacity .25s ease;
}
/* Balance visual weight: square logos get more height, bold wordmarks less */
.trusted-logos img.logo-tall { max-height: 104px; max-width: 140px; }
.trusted-logos img.logo-wide { max-height: 50px; }
.trusted-logos img:hover { filter: grayscale(0); opacity: 1; }

/*-----------------------------------------------------------------------------------*/
/*    Product Pages                                                                   */
/*-----------------------------------------------------------------------------------*/

.ret-a { display: inline-block; margin-bottom: 12px; font-size: .9rem; font-weight: 600; }
.ss-img {
  float: left;
  width: 46%;
  margin: 6px 34px 20px 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
@media screen and (max-width: 767px) {
  .ss-img { float: none; width: 100%; margin: 6px 0 22px; }
}

/*-----------------------------------------------------------------------------------*/
/*    Process Steps                                                                   */
/*-----------------------------------------------------------------------------------*/

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.step-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-navy);
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}
.step-card h4 { font-size: 1.02rem; margin-bottom: 8px; }
.step-card p { color: var(--text-muted); font-size: .93rem; margin: 0; }

/*-----------------------------------------------------------------------------------*/
/*    FAQs                                                                            */
/*-----------------------------------------------------------------------------------*/

.faq-list { max-width: 820px; margin-top: 32px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  color: var(--heading);
  list-style: none;
  transition: background-color .2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background-color: var(--bg-soft); }
.faq-item summary i {
  color: var(--accent);
  flex-shrink: 0;
  transition: transform .25s ease;
}
.faq-item[open] summary i { transform: rotate(180deg); }
.faq-answer { padding: 2px 20px 16px; color: var(--text-muted); }
.faq-answer p:last-child { margin-bottom: 0; }

/*-----------------------------------------------------------------------------------*/
/*    Contact Page                                                                    */
/*-----------------------------------------------------------------------------------*/

.phone-contact-page { margin-bottom: 14px; }
.contel a { font-weight: 500; }
.contel .fa-envelope, .contel .fa-phone { color: var(--brand-blue); margin-right: 8px; }

/*-----------------------------------------------------------------------------------*/
/*    Footer                                                                          */
/*-----------------------------------------------------------------------------------*/

.site-footer {
  background: var(--brand-navy-dark);
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .78);
  font-size: .93rem;
}
.footer-main {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) 1fr 1.2fr 1fr;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 42px;
}
.footer-col { min-width: 0; }
.footer-col h4 {
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: 16px;
}
.footer-logo { display: inline-block; margin: 0 0 28px; line-height: 0; }
.footer-logo img { width: 125px; filter: brightness(0) invert(1); opacity: .92; }
.footer-summary { max-width: 340px; color: rgba(255, 255, 255, .72); line-height: 1.7; }
.site-footer a { color: rgba(255, 255, 255, .78); transition: color .3s ease; }
.site-footer a:hover { color: var(--accent); text-decoration: none; }

/* Information menu: sliding arrow hover */
.avx-info-nav ul { list-style: none; margin: 0; padding: 0; }
li.info-nav-item { margin: 0 0 9px; padding: 0; }
.avx-info-nav a.nav-link {
  position: relative;
  display: inline-block;
  padding: 0;
  transition: color .3s ease, padding-left .3s ease;
}
.avx-info-nav a.nav-link::before {
  content: "\2192";
  position: absolute;
  left: 0;
  top: 50%;
  opacity: 0;
  transform: translateY(-50%) translateX(-8px);
  color: var(--accent);
  transition: opacity .3s ease, transform .3s ease;
}
.avx-info-nav a.nav-link:hover { color: var(--accent); padding-left: 22px; }
.avx-info-nav a.nav-link:hover::before { opacity: 1; transform: translateY(-50%) translateX(0); }

.footer-contact-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.footer-contact-row > i {
  color: var(--accent);
  margin-top: 5px;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.social-links { display: flex; gap: 12px; list-style: none; padding: 0; margin: 0; }
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff;
  font-size: 1.05rem;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.social-links a:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--brand-navy);
  transform: translateY(-2px);
}

.footer-legal { background: #081c2e; border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-legal p {
  margin: 0;
  padding: 20px 0 24px;
  font-size: .8rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, .55);
  text-align: center;
}

@media screen and (max-width: 1024px) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: 34px 28px; padding-top: 48px; padding-bottom: 36px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-summary { max-width: 560px; }
}
@media screen and (max-width: 560px) {
  .footer-main { grid-template-columns: 1fr; gap: 30px; padding-top: 40px; padding-bottom: 30px; }
  .hero { padding: 52px 22px 60px; }
  .avx-head-tel .tel-text { display: none; }
}
