/*
  =====================================================================
  SHARED STYLESHEET
  ---------------------------------------------------------------------
  Purpose:
  - Holds cross-page UI foundations used by all pages.
  - Defines global reset, typography defaults, navbar, footer, and core
    responsive adjustments shared by Home, About, Brands, and Contact.
  - Keeps repeated structural styles in one place to reduce duplication.
  =====================================================================
*/

/* Global reset and consistent box model across all elements. */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* Base document styling used as the visual default for all pages. */
body {
  background: #ffffff;
  color: #333;
  line-height: 1.6;
}

/* NAVBAR */
/*
  Header/navigation system injected by scripts/layout.js.
  The navbar is sticky so key links remain available while scrolling.
*/
/* =========================
   HEADER / NAVBAR
========================= */

/* Sticky top navigation container with subtle elevation shadow. */
header {
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 0 6%;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Horizontal flex layout: logo on the left, links on the right. */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: 80px;
}
/* Logo wrapper ensures vertical centering and consistent header height. */
.logo {
  display: flex;
  align-items: center;
  height: 80px;
}

/* Logo image scales proportionally while preserving aspect ratio. */
.logo img {
  height: 74px;
  width: auto;
  display: block;
}

/* Top-level navigation list in a horizontal row. */
nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

/* Interactive nav links with pill-like hover/active affordances. */
nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 6px;
  transition: 0.3s;
}

/* Active state applied by scripts/layout.js based on current page. */
nav li.active a {
  background: #ff4646;
  color: #fff;
}

/* Hover provides a light accent without changing layout. */
nav a:hover {
  color: #4eb3f6;
}

/* ===== Mobile Navbar ===== */
/*
  Tablet/mobile navbar collapse:
  - Stack logo above nav links.
  - Allow wrapping so links stay readable on smaller widths.
*/

@media (max-width: 900px) {
  .nav-container {
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }
}
/* ═══════════════════════════════════════════════════════════════
   HERO — Split layout (reference image style)
   Left: image panel | Right: red text panel
   ═══════════════════════════════════════════════════════════════ */

/* FOOTER */
/*
  Shared footer injected by scripts/layout.js.
  Structure:
  - Decorative map background layer
  - Main content split (brand summary + contact details)
  - Bottom strip (social + copyright)
*/
footer {
  background: #181818;
  /* background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.95) 50%, rgba(15, 52, 96, 0.95) 100%);*/
  color: white;
  text-align: left;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

/* Inner width/padding container for all visible footer content. */
.footer-content {
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Decorative low-opacity map image behind footer content. */
.footer-map {
  position: absolute;
  inset: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.03;
  z-index: 0;
  pointer-events: none;
}
/* Primary footer row layout for left/right content groups. */
.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
/* Left group aligns logo and tagline in a centered vertical stack. */
.footer-left {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Brand summary copy below footer logo. */
.footer-tagline {
  text-align: center;
  color: #e0e0e0;
  max-width: 550px;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.4;
  padding-top: 15px;
}
/* Clickable logo link target in footer. */
.footer-logo-title {
  display: flex;
  align-items: center;
  text-decoration: none;
}
/* Footer brand mark sizing and subtle elevation. */
.footer-logo-img {
  height: 150px;
  width: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
/* Optional textual title style (kept for reuse/fallback). */
.footer-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
}
/* Right group holds contact information block. */
.footer-right {
  min-width: 260px;
}
/* Section heading for contact information area. */
.footer-right h4 {
  margin-bottom: 12px;
  color: #4eb3f6;
  font-size: 1.15rem;
}
/* Unordered list reset and spacing for contact rows. */
.footer-contact-list {
  list-style: none;
  padding: 5px;
  margin-right: 50px;
}
/* Each contact line uses icon + text/link content alignment. */
.footer-contact-list li {
  display: flex;
  align-items: center;
  margin-bottom: 7px;
  color: #e0e0e0;
  font-size: 1rem;
}
/* Contact links use brand accent color for quick scanability. */
.footer-contact-list a {
  color: #4eb3f6;
  text-decoration: none;
  word-break: break-all;
}
/* Hover state reinforces that items are actionable links. */
.footer-contact-list a:hover {
  text-decoration: underline;
}

/*
  Email pill container:
  - Supports multiple addresses with wrapping.
  - Keeps spacing consistent across viewport sizes.
*/
.footer-emails {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
/* Individual email "pill" visual treatment. */
.email-pill {
  display: inline-block;
  background: rgba(78, 179, 246, 0.08);
  color: #4eb3f6;
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.95rem;
}
/* Stronger hover feedback for interactive pills. */
.email-pill:hover {
  background: rgba(78, 179, 246, 0.15);
  text-decoration: underline;
}
/* Visual separator for pills after the first item. */
.email-pill:not(:first-child)::before {
  content: "|";
  color: #b0b0b0;
  margin-right: 8px;
  margin-left: -8px;
  display: inline-block;
}

/* Compact stacked layout for very narrow phones. */
@media (max-width: 480px) {
  .footer-emails {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .email-pill {
    font-size: 0.92rem;
    padding: 6px 8px;
  }
}

/* Phone number pill row mirrors email-pill behavior. */
.footer-phones {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
/* Individual phone pill visual treatment. */
.phone-pill {
  display: inline-block;
  background: rgba(78, 179, 246, 0.08);
  color: #4eb3f6;
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.95rem;
}
/* Stronger hover feedback for phone links. */
.phone-pill:hover {
  background: rgba(78, 179, 246, 0.15);
  text-decoration: underline;
}
/* Visual separator for phone pills after the first item. */
.phone-pill:not(:first-child)::before {
  content: "|";
  color: #b0b0b0;
  margin-right: 8px;
  margin-left: -8px;
  display: inline-block;
}

/* Compact stacked layout for phone pills on tiny screens. */
@media (max-width: 480px) {
  .footer-phones {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .phone-pill {
    font-size: 0.92rem;
    padding: 6px 8px;
  }
}

/* Generic icon slot used by location/email/phone pseudo-icons. */
.footer-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  margin-right: 8px;
  vertical-align: middle;
  flex-shrink: 0;
}
/* Inline SVG location icon via data URI. */
.footer-icon-location {
  background: url('data:image/svg+xml;utf8,<svg fill="%234EB3F6" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"/></svg>')
    no-repeat center/contain;
}
/* Inline SVG email icon via data URI. */
.footer-icon-email {
  background: url('data:image/svg+xml;utf8,<svg fill="%234EB3F6" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>')
    no-repeat center/contain;
}
/* Inline SVG phone icon via data URI. */
.footer-icon-phone {
  background: url('data:image/svg+xml;utf8,<svg fill="%234EB3F6" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.62 10.79a15.053 15.053 0 006.59 6.59l2.2-2.2a1 1 0 011.11-.21c1.21.49 2.53.76 3.88.76a1 1 0 011 1V20a1 1 0 01-1 1C10.07 21 3 13.93 3 5a1 1 0 011-1h3.5a1 1 0 011 1c0 1.35.26 2.67.76 3.88a1 1 0 01-.21 1.11l-2.2 2.2z"/></svg>')
    no-repeat center/contain;
}

/*
  Footer bottom bar:
  Grid places social icons left, legal text center.
  Right column is reserved for balance/spacing.
*/
.footer-bottom {
  margin-top: 60px;
  color: #b0b0b0;
  font-size: 14px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

/* Copyright text centered within middle grid column. */
.footer-bottom > span {
  text-align: center;
  grid-column: 2;
}

/* Social button row (LinkedIn + Instagram). */
.footer-social {
  display: flex;
  gap: 12px;
  align-items: center;
  grid-column: 1;
}

/* Shared circular icon button behavior. */
.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

/* Normalized icon sizing inside social buttons. */
.social-btn svg {
  width: 20px;
  height: 20px;
}

/* Lift and opacity interaction for hover affordance. */
.social-btn:hover {
  transform: translateY(-3px);
  opacity: 0.85;
}

/* Brand color treatment for LinkedIn action. */
.social-linkedin {
  background: #0a66c2;
  color: white;
}

/* Multi-stop brand gradient for Instagram action. */
.social-instagram {
  background: radial-gradient(
    circle at 30% 110%,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
  color: white;
}

/* RESPONSIVE */
/*
  Legacy responsive helpers used by older shared sections/components.
  Preserved to maintain compatibility if those blocks appear on any page.
*/
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
  }

  .hero-image-panel {
    flex: none;
    width: 100%;
    height: 280px;
    background-size: cover;
    background-position: center;
  }

  .hero-text-panel {
    flex: none;
    width: 100%;
    padding: 40px 8%;
  }

  .hero-headline {
    font-size: 40px;
  }

  .about {
    flex-direction: column;
    text-align: center;
  }

  .industries {
    flex-direction: column;
    text-align: center;
  }

  .about-image img,
  .industries-image img {
    width: 300px;
    margin-top: 30px;
  }
}

/* Tighten horizontal header padding on medium-large widths. */
@media (max-width: 1200px) {
  header {
    padding: 0 4%;
  }
}

/* Additional mobile navbar fine-tuning for compact widths. */
@media (max-width: 900px) {
  .nav-container {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  nav {
    display: block;
    width: 100%;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  nav a {
    padding: 8px 12px;
    font-size: 14px;
  }

  .logo img {
    height: 56px;
  }
}

/* Footer stacks vertically and aligns left for small phones/tablets. */
@media (max-width: 700px) {
  .footer-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer-left,
  .footer-right {
    width: 100%;
    align-items: flex-start;
  }

  .footer-content {
    padding: 0 10px;
  }

  .footer-bottom {
    margin-top: 18px;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .footer-bottom > span {
    grid-column: 1;
    text-align: left;
  }

  .footer-social {
    grid-column: 1;
    justify-content: flex-start;
  }

  .logo {
    margin-left: 0;
  }
}