/* ═══════════════════════════════════════════════════════════════════════
   SENSORIUM AGENCY — base.css
   Shared design system for all public pages.
   Covers: CSS variables, reset, typography, header/nav, footer,
           shared components (buttons, eyebrows, cookie banner,
           WhatsApp float, scroll-to-top).
   Breakpoints: mobile <576px | tablet 576–991px | desktop ≥992px
   ═══════════════════════════════════════════════════════════════════════ */

/* ── CSS CUSTOM PROPERTIES ──────────────────────────────────────────── */
:root {
  /* Brand colours */
  --clr-navy:        #153C5F;   /* primary brand */
  --clr-navy-deep:   #0D2840;   /* darker navy for hover / active */
  --clr-coral:       #0419dc;   /* CTA, accent */
  --h1-em-f:         #e75032f5; 
  --clr-coral-dark:  #06118b;   /* coral hover */
  --clr-sky:         #38b6ff;   /* secondary accent, links */
  --clr-sky-dark:    #1a9de8;
  --clr-emerald:     #10b981;   /* success / verified */
  --clr-red:         #EF4444;   /* error */
  --clr-amber:       #F59E0B;   /* warning */

  /* Neutrals */
  --clr-white:       #ffffff;
  --clr-surface:     #f8fafc;   /* page background */
  --clr-surface-2:   #EDF2F7;   /* card background */
  --clr-border:      #E2E8F0;   /* subtle border */
  --clr-text:        #1A202C;   /* body text */
  --clr-text-muted:  #64748B;   /* secondary text */

  /* Typography */
  --font-display:    'Space Grotesk', sans-serif;
  --font-body:       'Poppins', sans-serif;

  /* Type scale */
  --fs-xs:   1.0rem;
  --fs-fs:   0.65rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.15rem;
  --fs-xl:   1.5rem;
  --fs-2xl:  2rem;
  --fs-3xl:  2.5rem;
  --fs-4xl:  3.25rem;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  /* Layout */
  --container-max: 1200px;
  --container-pad: 1.25rem;
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-pill:50px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.14);

  /* Transitions */
  --transition: 0.25s ease;
}


/* ── RESET ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--clr-surface);
  color: var(--clr-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }
address { font-style: normal; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--clr-coral);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}


/* ── LAYOUT UTILITIES ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.center { text-align: center; }

/* Skip link for screen readers */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--clr-navy);
  color: var(--clr-white);
  padding: .5rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 9999;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }


/* ── TYPOGRAPHY ─────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-body);
  line-height: 1.2;
  color: var(--clr-navy);
}

h1 { font-size: clamp(2rem, 5vw, var(--fs-4xl)); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, var(--fs-3xl)); font-weight: 600; }
h3 { font-size: clamp(1.1rem, 2vw, var(--fs-xl)); font-weight: 600; }

.section-title {
  margin-bottom: var(--space-md);
  color: var(--clr-navy);
  font-size: var(--fs-md);
}

.section-eyebrow {
  display: block;
  font-size: var(--fs-xs);
  font-weight: bold;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clr-coral);
  margin-bottom: .5rem;
}

.section-eyebrow.center { text-align: center; }

.section-sub {
  font-size: var(--fs-md);
  color: var(--clr-text);
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: var(--space-lg);
}


/* ── BUTTONS ────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--clr-coral);
  color: var(--clr-white);
  padding: .85rem 2rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-base);
  font-weight: 600;
  font-family: var(--font-body);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--clr-coral-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(244,125,85,.35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: transparent;
  color: var(--clr-navy);
  padding: .8rem 1.75rem;
  border: 2px solid var(--clr-navy);
  border-radius: var(--radius-pill);
  font-size: var(--fs-base);
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn-outline:hover, .btn-outline:focus-visible {
  background: var(--clr-navy);
  color: var(--clr-white);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.9);
  padding: .8rem 1.75rem;
  border: 2px solid rgba(255,255,255,.5);
  border-radius: var(--radius-pill);
  font-size: var(--fs-base);
  font-weight: 500;
  transition: border-color var(--transition), background var(--transition);
  white-space: nowrap;
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  border-color: var(--clr-white);
  background: rgba(255,255,255,.12);
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--clr-white);
  padding: .8rem 1.75rem;
  border: 2px solid rgba(255,255,255,.55);
  border-radius: var(--radius-pill);
  font-size: var(--fs-base);
  font-weight: 500;
  transition: border-color var(--transition), background var(--transition);
  white-space: nowrap;
}
.btn-outline-light:hover, .btn-outline-light:focus-visible {
  border-color: var(--clr-white);
  background: rgba(255,255,255,.15);
}


/* ── HEADER / NAV ───────────────────────────────────────────────────── */
#site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: var(--clr-white);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-md);
  z-index: 1000;
  transition: box-shadow var(--transition);
}

#site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.14); }

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1320px;
  margin-inline: auto;
  padding: .85rem var(--container-pad);
  gap: 1rem;
}

.logo img {
  height: 46px;
  width: auto;
}

/* Desktop nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  flex-wrap: nowrap;
}

.nav-links li a {
  display: block;
  padding: .5rem .85rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--clr-coral);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.nav-links li a:hover,
.nav-links li a.active {
  background: var(--clr-surface-2);
  color: var(--clr-coral);
}

/* CTA button in nav */
.nav-cta .btn-nav-cta {
  background: var(--clr-coral);
  color: var(--clr-white) !important;
  padding: .55rem 1.3rem !important;
  border-radius: var(--radius-pill) !important;
  font-weight: 600;
}
.nav-cta .btn-nav-cta:hover {
  background: var(--clr-coral-dark) !important;
  color: var(--clr-white) !important;
}

/* Dropdown */
.nav-links li.dropdown { position: relative; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + .5rem);
  left: 0;
  background: var(--clr-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 210px;
  z-index: 1001;
  padding: .5rem 0;
  border: 1px solid var(--clr-border);
}

.dropdown-menu li a {
  padding: .65rem 1.25rem !important;
  font-size: .9rem !important;
  color: var(--clr-coral) !important;
  border-radius: 0 !important;
  display: block;
}
.dropdown-menu li a:hover {
  background: var(--clr-surface-2) !important;
  color: var(--clr-navy-deep) !important;
}

/* Hover on desktop */
@media (min-width: 992px) {
  .nav-links li.dropdown:hover > .dropdown-menu { display: block; }
  .nav-links li.dropdown:hover > a { background: var(--clr-surface-2); }
}

/* Hamburger (hidden on desktop) */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.menu-toggle .bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.menu-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE NAV (≤991px) ────────────────────────────────────────────── */
@media (max-width: 991px) {
  .menu-toggle { display: flex; }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--clr-white);
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--clr-border);
    padding: .75rem 0 1rem;
    z-index: 999;
    max-height: 80vh;
    overflow-y: auto;
  }

  .nav-links.open { display: flex; }

  .nav-links li a {
    padding: .8rem 1.5rem !important;
    font-size: .95rem !important;
    width: 100%;
    border-radius: 0 !important;
    border-bottom: 1px solid var(--clr-border);
  }

  /* Accordion dropdown on mobile */
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: var(--clr-surface);
    display: none;
    padding: 0;
    min-width: unset;
  }
  .dropdown-menu li a {
    padding: .7rem 2rem !important;
    font-size: .875rem !important;
    color: var(--clr-text-muted) !important;
  }
  .nav-links li.dropdown.open > .dropdown-menu { display: block; }

  .nav-cta { padding: .75rem 1rem; }
  .nav-cta .btn-nav-cta {
    display: block;
    text-align: center;
    width: 100%;
    border-radius: var(--radius-md) !important;
    padding: .9rem !important;
  }
}

@media (max-width: 575px) {
  .nav-container { padding: .75rem 1rem; }
}


/* ── FOOTER ─────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--clr-navy);
  color: rgba(255,255,255,.8);
  padding-top: var(--space-xl);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr;
  gap: var(--space-lg);
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  padding-bottom: var(--space-xl);
}

.footer-brand img { margin-bottom: 1rem; filter: brightness(1.2); }

.footer-brand p {
  font-size: var(--fs-sm);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  color: rgba(255,255,255,.7);
}

.social-icons {
  display: flex;
  gap: .75rem;
  margin-top: .5rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  color: var(--clr-white);
  font-size: .9rem;
  transition: background var(--transition), transform var(--transition);
}
.social-icons a:hover {
  background: var(--clr-coral);
  transform: translateY(-2px);
}

.footer-col h3 {
  color: var(--clr-white);
  font-size: var(--fs-base);
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: .02em;
}

.footer-col ul li { margin-bottom: .5rem; }

.footer-col ul li a,
.footer-col address a,
.footer-col address p {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: .6rem;
  line-height: 2.3;
}

.footer-col ul li a:hover,
.footer-col address a:hover {
  color: var(--clr-sky);
}

.footer-bottom {
  background: var(--clr-navy-deep);
  padding: 1.25rem var(--container-pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  max-width: 100%;
}

.footer-bottom p {
  font-size: var(--fs-fs);
  color: rgba(255,255,255,.45);
}

.brand-highlight {
  color: var(--clr-sky);
  font-weight: 600; /* Makes the name slightly crispier so it stands out */
}

/* Footer responsive */
@media (max-width: 991px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 575px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}


/* ── COOKIE CONSENT BANNER ───────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  width: min(560px, calc(100vw - 2rem));
  background: var(--clr-navy-deep);
  color: rgba(255,255,255,.9);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  z-index: 9000;
  font-size: var(--fs-sm);
  transition: opacity .3s, transform .3s;
}

.cookie-banner.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(20px);
}

.cookie-banner a { color: var(--clr-sky); text-decoration: underline; }

.cookie-actions { display: flex; gap: .75rem; flex-shrink: 0; }

.cookie-btn {
  padding: .45rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  transition: background var(--transition), opacity var(--transition);
}
.cookie-btn.accept { background: var(--clr-coral); color: var(--clr-white); }
.cookie-btn.accept:hover { background: var(--clr-coral-dark); }
.cookie-btn.decline { background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); }
.cookie-btn.decline:hover { background: rgba(255,255,255,.2); }

@media (max-width: 575px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; }
}


/* ── FLOATING WHATSAPP ────────────────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  width: 52px;
  height: 52px;
  background: #25D366;
  color: var(--clr-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
  z-index: 8000;
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,.55);
}



/* ── SHARED HERO UTILITIES (used on homepage, solutions, about, jobs…) ── */
 
/* Eyebrow pill above headings */
.hero-eyebrow {
  display: inline-block;
  font-size: var(--fs-fs);
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: white;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2);
  padding: .3rem .9rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.25rem;
}
 
/* Row of CTA buttons below hero heading */
.hero-cta-wrap {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
}
 
/* Breadcrumb nav — shown below header on inner pages */
.breadcrumb { margin-bottom: 1rem; }
.breadcrumb ol {
  display: flex;
  justify-content: center;
  gap: .5rem;
  list-style: none;
  font-size: var(--fs-xs);
  color: rgba(255,255,255,.55);
}
.breadcrumb ol li:not(:last-child)::after {
  content: '/';
  margin-left: .5rem;
  opacity: .4;
}
.breadcrumb a {
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
}
.breadcrumb a:hover { color: var(--clr-coral); }
 
/* Trust / stats bar — sits at the bottom of hero sections */
/* Trust bar */
.trust-bar {
  position: relative;
  z-index: 1;
  width: 100%;
  background: rgba(13,40,64,.7);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 0.5cqw 1.5rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: .5rem 2.5rem;
  text-align: center;
}

.trust-item strong {
  font-family: var(--font-body);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--clr-sky);
  line-height: 1;
}

.trust-item span {
  font-size: var(--fs-fs);
  color: rgba(255,255,255,.65);
  margin-top: .2rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.trust-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.15);
  flex-shrink: 0;
}

/* Hero responsive */
@media (max-width: 991px) {
  .hero { min-height: 80vh; }
  .trust-item { padding: .5rem 1.5rem; }
}

@media (max-width: 575px) {
  .hero { min-height: 100svh; }
  .hero-content { padding: 5rem 1rem 2rem; }
  .hero-cta-wrap { flex-direction: column; align-items: center; }
  .search-form { flex-direction: column; border-radius: var(--radius-lg); padding: 1rem; }
  .search-input-wrap { min-width: unset; }
  .trust-bar { gap: .5rem; padding: .75rem 1rem; }
  .trust-divider { display: none; }
  .trust-item { padding: .3rem .75rem; }
  .trust-item strong { font-size: 1.4rem; }
}
 
/* ── SCROLL TO TOP BUTTON ────────────────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: var(--clr-navy);
  color: var(--clr-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 7999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  font-size: .9rem;
}
.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.scroll-top:hover { transform: translateY(-3px); background: var(--clr-navy-deep); }
 