/* =====================================================================
   SITE-COMMON.CSS
   Loaded on every page AFTER the page's own stylesheet, so these rules
   win the cascade without needing !important everywhere.
   Covers: 1) unified font system  2) floating Contact Us (email/WhatsApp)
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@500;600;700&display=swap');

/* ---------------------- 1. UNIFIED FONT SYSTEM ---------------------- */
/* Body copy everywhere -> Inter. This also overrides the old
   `font-family: cursive;` that was leaking onto headings site-wide
   (that's what made "Our Partners" / FAQ headings look like script). */
body,
p, li, span, label, input, textarea, select, a,
div, blockquote, td, th, figcaption, small, strong, em, b, i, button, option {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
    'Helvetica Neue', sans-serif;
}

/* Headings everywhere -> Poppins */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  font-weight: 600;
}
h1 { font-weight: 700; }

/* FAQ questions specifically -> Poppins SemiBold (matches other headings,
   just being explicit per spec) */
.faq-item h3 {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  font-weight: 600;
}

/* Nav links + buttons -> Poppins Medium/SemiBold */
.nav-links a,
.menu li a,
button,
input[type="submit"],
#submit,
.svc-btn,
.grid-item h2,
.cta-btn {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  font-weight: 500;
}

/* ---------------------- NAV: shop icon + quote CTA ---------------------- */
.nav-shop-link {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
}
.nav-icon {
  flex-shrink: 0;
}
.nav-quote-btn {
  display: inline-block;
  background: #00bfff;
  color: #fff !important;
  padding: 7px 16px;
  border-radius: 20px;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}
.nav-quote-btn:hover {
  background: #0090c2;
  transform: translateY(-1px);
}
/* Inside the open mobile menu the pill can go full width of its row */
@media (max-width: 850px) {
  .nav-quote-btn {
    display: inline-block;
    margin-top: 4px;
  }
}

/* =====================================================================
   2. FLOATING "CONTACT US" WIDGET (email + WhatsApp)
   Present on every page, bottom-right, above everything else.
   ===================================================================== */
.floating-contact {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.fc-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fc-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
}

.fc-whatsapp {
  background-color: #25d366;
}

.fc-whatsapp img {
  width: 28px;
  height: 28px;
}

.fc-email {
  background-color: #0bbfff;
}

.fc-email svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

/* =====================================================================
   3. FAQ ACCORDION (click a question to reveal its answer)
   Works with the existing .faq-item > h3 + p markup already on every
   page -- no HTML changes needed, site-common.js adds the behaviour.
   ===================================================================== */
.faq-item h3 {
  cursor: pointer;
  position: relative;
  margin: 0;
  padding-right: 32px;
  user-select: none;
}
.faq-item h3::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.3rem;
  line-height: 1;
  color: #0bbfff;
  transition: transform 0.2s ease;
}
.faq-item.open h3::after {
  content: '\2212'; /* minus sign */
}
.faq-item p {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin: 0;
  transition: max-height 0.3s ease, opacity 0.25s ease, margin 0.3s ease;
}
.faq-item.open p {
  max-height: 600px;
  opacity: 1;
  margin-top: 10px;
}

@media (max-width: 850px) {
  .floating-contact {
    right: 14px;
    bottom: 14px;
    gap: 10px;
  }
  .fc-btn {
    width: 48px;
    height: 48px;
  }
  .fc-whatsapp img { width: 24px; height: 24px; }
  .fc-email svg { width: 20px; height: 20px; }
}


/* =====================================================================
   MOBILE / TABLET RESPONSIVENESS FIXES
   Added to prevent horizontal overflow, ensure media scales down
   correctly, and improve spacing/logo sizing on small screens.
   ===================================================================== */

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

img, video, iframe {
  max-width: 100%;
}

.client-logo {
  overflow: hidden;
}

@media (max-width: 850px) {
  .grid-container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 480px) {
  .grid-container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .client-logo {
    width: 130px;
    height: 60px;
  }
}


/* =====================================================================
   TABLET / SMALL-LAPTOP OVERFLOW FIX (851px-1024px range)
   .content (About hero text), .box-2, .phone-img and .phone-info
   (IP Telephony page) are hard-coded to fixed pixel widths (600px)
   that exceed their flex containers on tablet/landscape/small-laptop
   widths, causing horizontal overflow. Capping at 100% of their
   container keeps desktop sizing intact while preventing overflow.
   ===================================================================== */

.content,
.box-2,
.phone-img,
.phone-info {
  max-width: 100%;
  box-sizing: border-box;
}


/* =====================================================================
   HOMEPAGE UX IMPROVEMENTS (Aug 2026)
   Site footer, service-card "Learn more" affordance, hero CTA buttons,
   and closing CTA band.
   ===================================================================== */

/* ---- Site footer ---- */
.site-footer {
  background: #0b1f3a;
  color: #c9d3e0;
  padding: 48px 20px 20px;
  margin-top: 60px;
  box-sizing: border-box;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-col {
  flex: 1 1 220px;
  min-width: 200px;
}
.footer-brand {
  color: #ffffff;
  font-size: 18px;
  margin: 0 0 12px;
}
.footer-about p {
  font-size: 14px;
  line-height: 1.6;
  color: #c9d3e0;
  margin: 0 0 16px;
}
.footer-col h4 {
  color: #ffffff;
  font-size: 15px;
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-links, .footer-contact, .footer-socials {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li, .footer-contact li {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.5;
}
.footer-links a, .footer-contact a {
  color: #c9d3e0;
  text-decoration: none;
}
.footer-links a:hover, .footer-contact a:hover {
  color: #00bfff;
  text-decoration: underline;
}
.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.footer-socials li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  transition: background 0.15s ease;
}
.footer-socials li a:hover {
  background: #00bfff;
}
.footer-socials li img {
  filter: brightness(0) invert(1);
}
.footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  font-size: 13px;
  color: #8fa1b8;
}
@media (max-width: 600px) {
  .footer-grid { flex-direction: column; gap: 28px; }
}

/* ---- Service card hover + Learn more affordance ---- */
.grid-item {
  display: block;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.grid-item:hover, .grid-item:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}
.grid-item .learn-more {
  display: block;
  margin-top: 12px;
  color: #00bfff;
  font-weight: 600;
  font-size: 14px;
}

/* ---- Hero CTA buttons ---- */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 24px 0 8px;
}
.btn-primary-cta, .btn-secondary-cta {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary-cta {
  background: #00bfff;
  color: #ffffff;
}
.btn-secondary-cta {
  background: transparent;
  color: #0b1f3a;
  border: 2px solid #0b1f3a;
}
.btn-primary-cta:hover, .btn-secondary-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* ---- Closing CTA band ---- */
.closing-cta {
  background: #0b1f3a;
  color: #ffffff;
  text-align: center;
  padding: 56px 20px;
  margin: 40px 0 0;
}
.closing-cta h2 {
  color: #ffffff;
  margin: 0 0 12px;
}
.closing-cta p {
  color: #c9d3e0;
  margin: 0 0 24px;
  font-size: 16px;
}
.closing-cta .btn-primary-cta {
  padding: 14px 32px;
}


/* ===================== FLUID DESIGN (site-wide shared components) ===================== */
.site-footer {
  padding: clamp(32px, 6vw, 48px) clamp(16px, 4vw, 20px) 20px !important;
}
.footer-grid {
  gap: clamp(20px, 4vw, 32px) !important;
}
.footer-brand {
  font-size: clamp(16px, 0.8vw + 14px, 18px) !important;
}
.footer-col h4 {
  font-size: clamp(14px, 0.5vw + 13px, 15px) !important;
}
.hero-cta {
  gap: clamp(10px, 2vw, 16px) !important;
  margin: clamp(16px, 3vw, 24px) 0 8px !important;
}
.btn-primary-cta, .btn-secondary-cta {
  padding: clamp(10px, 1.5vw, 12px) clamp(18px, 3vw, 26px) !important;
  font-size: clamp(14px, 0.6vw + 12.5px, 15px) !important;
}
.closing-cta {
  padding: clamp(32px, 6vw, 56px) clamp(16px, 4vw, 20px) !important;
}
.closing-cta h2 {
  font-size: clamp(1.4rem, 1rem + 1.6vw, 2rem) !important;
}
