/* ============================================================
   LINC GROUP — style.css
   ============================================================ */

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--navy);
  color: var(--white);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 24px rgba(10,22,40,.25);
  transform: translateY(-100%);
  transition: transform .35s ease;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-banner__text {
  flex: 1;
  font-size: .9rem;
  line-height: 1.55;
  color: rgba(255,255,255,.85);
  min-width: 220px;
}
.cookie-banner__text a {
  color: var(--cyan);
  text-decoration: underline;
}
.cookie-banner__actions {
  display: flex;
  gap: .75rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.cookie-banner__accept {
  background: var(--cyan);
  color: var(--navy);
  border: none;
  padding: .6rem 1.4rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: background .2s;
}
.cookie-banner__accept:hover { background: var(--cyan-lt); }
.cookie-banner__decline {
  background: transparent;
  color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.3);
  padding: .6rem 1.4rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: .9rem;
  cursor: pointer;
  transition: all .2s;
}
.cookie-banner__decline:hover {
  color: var(--white);
  border-color: rgba(255,255,255,.7);
}
@media (max-width: 600px) {
  .cookie-banner__inner { flex-direction: column; align-items: stretch; }
  .cookie-banner__actions { justify-content: stretch; }
  .cookie-banner__accept,
  .cookie-banner__decline { flex: 1; text-align: center; }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #0a1628;
  --blue:    #0d4fa0;
  --blue-lt: #1a6fd4;
  --cyan:    #00b4d8;
  --cyan-lt: #90e0ef;
  --white:   #ffffff;
  --off:     #f4f7fc;
  --text:    #1e2a3a;
  --muted:   #64748b;
  --border:  #e2eaf4;

  --font-body:    'Inter', sans-serif;
  --font-display: 'Poppins', sans-serif;

  --max-w: 1200px;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(10,22,40,.1);
  --shadow-lg: 0 12px 48px rgba(10,22,40,.18);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.75rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  cursor: pointer;
  transition: all .2s ease;
  border: 2px solid transparent;
}
.btn--primary {
  background: var(--cyan);
  color: var(--navy);
  border-color: var(--cyan);
}
.btn--primary:hover { background: var(--cyan-lt); border-color: var(--cyan-lt); }
.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn--outline:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn--white {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn--white:hover { background: var(--off); }
.btn--full { width: 100%; }

/* ---- SECTION LABELS ---- */
.section__eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: .5rem;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1100;
  padding: .75rem 2rem;
  background: var(--white);
  box-shadow: 0 1px 12px rgba(10,22,40,.1);
  transition: box-shadow .3s;
}
.nav.scrolled {
  box-shadow: 0 2px 20px rgba(10,22,40,.15);
}
.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo { display: flex; align-items: center; }
.nav__logo-img {
  height: 52px;
  width: auto;
  display: block;
}
.nav__logo-img--footer {
  height: 34px;
  filter: brightness(0) invert(1) opacity(0.75);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__links a {
  color: var(--text);
  font-size: .9rem;
  font-weight: 500;
  transition: color .2s;
}
.nav__links a:hover { color: var(--blue); }
.nav__cta {
  background: var(--cyan) !important;
  color: var(--navy) !important;
  padding: .5rem 1.25rem;
  border-radius: 6px;
  font-weight: 600 !important;
}
.nav__cta:hover { background: var(--cyan-lt) !important; }
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all .25s;
}

/* ---- NAV DROPDOWN ---- */
.nav__item {
  position: relative;
}
.nav__dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  font-size: .9rem;
  font-weight: 500;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: 0;
  transition: color .2s;
}
.nav__dropdown-toggle:hover { color: var(--blue); }
.nav__dropdown-toggle svg {
  width: 14px; height: 14px;
  transition: transform .25s;
}
.nav__item.open .nav__dropdown-toggle svg { transform: rotate(180deg); }
.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 1.1rem);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(10,22,40,.15);
  border: 1px solid var(--border);
  min-width: 230px;
  padding: .5rem;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity .2s ease, transform .2s ease;
  z-index: 200;
}
.nav__dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 6px;
  background: var(--white);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}
.nav__item.open .nav__dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav__dropdown-menu a {
  display: block;
  padding: .6rem 1rem;
  font-size: .875rem;
  color: var(--text) !important;
  border-radius: 6px;
  transition: background .15s, color .15s !important;
  font-weight: 500;
}
.nav__dropdown-menu a:hover {
  background: var(--off);
  color: var(--blue) !important;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(0,180,216,.12) 0%, transparent 70%),
    linear-gradient(to right, rgba(5,13,26,.97) 0%, rgba(10,22,40,.88) 45%, rgba(10,22,40,.5) 100%);
}
.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}
.hero__slide--active { opacity: 1; }
.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
}
.hero__content-inner {
  max-width: 620px;
}
.hero__eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.hero__title span { color: var(--cyan); }
.hero__sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.7);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero__scroll span {
  display: block;
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 12px;
  position: relative;
}
.hero__scroll span::after {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: var(--cyan);
  border-radius: 2px;
  animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot {
  0% { top: 6px; opacity: 1; }
  100% { top: 20px; opacity: 0; }
}

/* ============================================================
   AFFILIATES TICKER
   ============================================================ */
.affiliates {
  background: var(--off);
  border-top: 2px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.affiliates__inner {
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 2rem;
  height: 48px;
  overflow: hidden;
}
.affiliates__label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
  padding-right: 1.5rem;
  border-right: 1px solid var(--border);
}
.affiliates__track-wrap {
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}
.affiliates__track {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: max-content;
  animation: ticker 32s linear infinite;
}
.affiliates__track:hover { animation-play-state: paused; }
.affiliates__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  opacity: .7;
  transition: opacity .2s;
}
.affiliates__logo:hover { opacity: 1; }
.affiliates__logo svg {
  height: 22px;
  width: auto;
}
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   STATS
   ============================================================ */
.stats {
  background: var(--navy);
  padding: 3.5rem 2rem;
}
.stats__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.stat { text-align: center; }
.stat__number {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.stat__suffix {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--cyan);
}
.stat__label {
  font-size: .85rem;
  font-weight: 500;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: .4rem;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: 6rem 2rem;
  background: var(--white);
}
.about__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about__text p {
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.75;
}
.about__values {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.about__values li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .95rem;
  color: var(--text);
  font-weight: 500;
}
.about__values li svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: var(--cyan);
  margin-top: 2px;
}
.about__visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.about__card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  border: 1px solid var(--border);
  transition: box-shadow .2s, transform .2s;
}
.about__card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.about__card-icon {
  width: 40px; height: 40px;
  background: rgba(0,180,216,.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .5rem;
}
.about__card-icon svg { width: 22px; height: 22px; color: var(--cyan); }
.about__card strong {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}
.about__card span { font-size: .8rem; color: var(--muted); font-weight: 500; margin-top: .15rem; }

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  padding: 6rem 2rem;
  background: var(--off);
}
.services__inner { max-width: var(--max-w); margin: 0 auto; }
.services__header { text-align: center; max-width: 600px; margin: 0 auto 3.5rem; }
.services__sub { color: var(--muted); font-size: 1rem; }
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.service-card {
  text-decoration: none;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
  background: var(--navy);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.service-card__img {
  height: 160px;
  background-image: var(--sc-bg);
  background-size: cover;
  background-position: center;
  position: relative;
  flex-shrink: 0;
  transition: transform .4s ease;
}
.service-card--gradient .service-card__img {
  background-image: var(--sc-grad) !important;
}
.service-card--logo .service-card__img {
  background-image: var(--sc-bg) !important;
  background-size: auto 75%;
  background-color: #e8f4fd;
  background-repeat: no-repeat;
  background-position: center;
}
.service-card--logo .service-card__img::after { display: none; }
.service-card:hover .service-card__img {
  transform: scale(1.04);
}
.service-card__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,22,40,0) 30%, rgba(10,22,40,.55) 100%);
}
.service-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  background: var(--white);
  border-top: 3px solid var(--cyan);
}
.service-card__icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, rgba(0,180,216,.15), rgba(13,79,160,.12));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .25rem;
}
.service-card__icon svg { width: 22px; height: 22px; color: var(--blue); }
.service-card__body h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}
.service-card__body p { font-size: .825rem; color: var(--muted); line-height: 1.6; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
  padding: 5rem 2rem;
  text-align: center;
}
.cta-band__inner { max-width: 640px; margin: 0 auto; }
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: .75rem;
}
.cta-band p {
  color: rgba(255,255,255,.7);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, var(--navy) 0%, #0d2a4a 100%);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  top: -180px; right: -180px;
  width: 560px; height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,180,216,.09) 0%, transparent 70%);
  pointer-events: none;
}
.contact::after {
  content: '';
  position: absolute;
  bottom: -120px; left: -120px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13,79,160,.12) 0%, transparent 70%);
  pointer-events: none;
}
.contact__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 5rem;
  align-items: start;
  position: relative;
  z-index: 1;
}
.contact__info .section__eyebrow { color: var(--cyan); }
.contact__info .section__title { color: var(--white); }
.contact__info > p {
  color: rgba(255,255,255,.6);
  margin-bottom: 2.5rem;
  line-height: 1.75;
}
.contact__details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  margin-bottom: 2.5rem;
}
.contact__details li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,.06);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.08);
  transition: background .2s, border-color .2s;
}
.contact__details li:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(0,180,216,.25);
}
.contact__detail-icon {
  width: 40px; height: 40px;
  border-radius: 9px;
  background: rgba(0,180,216,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact__detail-icon svg { width: 18px; height: 18px; color: var(--cyan); }
.contact__detail-text {
  display: flex;
  flex-direction: column;
  gap: .1rem;
}
.contact__detail-text span {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
}
.contact__detail-text a,
.contact__detail-text p {
  font-size: .9rem;
  color: rgba(255,255,255,.85);
  font-weight: 500;
  margin: 0;
  line-height: 1.45;
  transition: color .2s;
}
.contact__detail-text a:hover { color: var(--cyan); }
.contact__social {
  display: flex;
  gap: .6rem;
}
.contact__social a {
  width: 40px; height: 40px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.65);
  transition: background .2s, color .2s, border-color .2s;
}
.contact__social a svg { width: 16px; height: 16px; }
.contact__social a:hover {
  background: var(--cyan);
  color: var(--navy);
  border-color: var(--cyan);
}

/* ---- FORM ---- */
.contact__form {
  background: var(--white);
  border-radius: 16px;
  padding: 2.75rem;
  border: none;
  box-shadow: 0 24px 64px rgba(0,0,0,.28);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form__group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.25rem; }
.form__group label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy);
}
.form__group input,
.form__group select,
.form__group textarea {
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--text);
  background: var(--off);
  transition: border-color .2s, background .2s, box-shadow .2s;
  outline: none;
  resize: vertical;
}
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  border-color: var(--cyan);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(0,180,216,.12);
}
.form__note {
  font-size: .75rem;
  color: var(--muted);
  text-align: center;
  margin-top: 1rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.07);
}
.footer .nav__logo-img {
  filter: brightness(0) invert(1);
  opacity: .75;
}
.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: nowrap;
}
.footer__links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
  flex: 1;
  justify-content: flex-end;
  overflow: hidden;
}
.footer__links a {
  font-size: .78rem;
  white-space: nowrap;
  color: #C1C4C9;
  text-decoration: none;
  transition: color .2s;
}
.footer__links a:hover { color: var(--cyan); }
.footer__social {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-left: 1rem;
  padding-left: 1.25rem;
  border-left: 1px solid rgba(255,255,255,.1);
}
.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.5);
  transition: background .2s, color .2s;
  text-decoration: none;
}
.footer__social a svg { width: 16px; height: 16px; }
.footer__social a:hover { background: var(--cyan); color: var(--white); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 1rem 2rem;
  text-align: center;
}
.footer__bottom p { font-size: .75rem; color: rgba(255,255,255,.3); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ---- Tablet landscape (≤ 1024px) ---- */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(3, 1fr); }
  .about__inner { grid-template-columns: 1fr; gap: 3rem; }
  .contact__inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero__content { padding: 7rem 2rem 4rem; }
}

/* ---- Tablet portrait (≤ 768px) ---- */
@media (max-width: 768px) {
  /* Nav */
  .nav { padding: .6rem 1.25rem; }
  .nav__logo-img { height: 42px; }
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    gap: .25rem;
    border-top: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(10,22,40,.12);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: .65rem 0; border-bottom: 1px solid var(--border); font-size: .95rem; }
  .nav__links a:last-child { border-bottom: none; }
  .nav__toggle { display: flex; }
  .nav__item--dropdown { width: 100%; flex-direction: column; align-items: stretch; }
  .nav__dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: .65rem 0;
    border-bottom: 1px solid var(--border);
    font-size: .95rem;
  }
  .nav__dropdown-menu {
    position: relative;
    top: auto; left: auto;
    transform: none !important;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    box-shadow: none;
    border: none;
    border-radius: 8px;
    background: var(--off);
    padding: 0;
    pointer-events: none;
    transition: max-height .3s ease, opacity .25s ease, padding .3s ease;
    margin-top: 0;
    z-index: auto;
  }
  .nav__dropdown-menu::before { display: none; }
  .nav__item.open .nav__dropdown-menu {
    opacity: 1;
    max-height: 400px;
    padding: .4rem .5rem;
    pointer-events: auto;
    margin-top: .35rem;
    margin-bottom: .35rem;
  }
  .nav__dropdown-menu a { padding: .55rem .75rem; font-size: .875rem; border-bottom: none; }

  /* Sections */
  .hero__content { padding: 6rem 1.5rem 3rem; }
  .hero__sub { font-size: 1rem; max-width: 100%; }
  .hero__scroll { display: none; }
  .stats { padding: 2.5rem 1.5rem; }
  .stats__inner { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .about { padding: 4rem 1.5rem; }
  .about__inner { gap: 2.5rem; }
  .services { padding: 4rem 1.5rem; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .contact { padding: 4rem 1.5rem; }
  .contact__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact__form { padding: 2rem 1.75rem; }
  .form__row { grid-template-columns: 1fr; }
  .cta-band { padding: 4rem 1.5rem; }

  /* Footer */
  .footer__inner { flex-wrap: wrap; padding: 1.5rem; gap: 1rem; }
  .footer__links { flex-wrap: wrap; gap: .75rem 1.25rem; justify-content: flex-start; flex: 1 1 100%; }
  .footer__social { margin-left: 0; padding-left: 0; border-left: none; }
}

/* ---- Mobile (≤ 480px) ---- */
@media (max-width: 480px) {
  .nav { padding: .5rem 1rem; }
  .nav__logo-img { height: 38px; }
  .hero__content { padding: 5.5rem 1.25rem 3rem; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { text-align: center; }
  .stats { padding: 2rem 1.25rem; }
  .stats__inner { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .about { padding: 3rem 1.25rem; }
  .services { padding: 3rem 1.25rem; }
  .services__grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .contact { padding: 3rem 1.25rem; }
  .contact__form { padding: 1.5rem 1.25rem; }
  .cta-band { padding: 3rem 1.25rem; }
  .footer__inner { flex-direction: column; align-items: flex-start; padding: 1.25rem; }
  .footer__links { flex-wrap: wrap; gap: .5rem 1rem; }
  .footer__social { border-left: none; padding-left: 0; margin-left: 0; margin-top: .25rem; }
  .footer .nav__logo-img { height: 34px; }
}

/* ---- TESTIMONIALS ---- */
.testimonials {
  padding: 5rem 2rem;
  background: var(--navy);
}
.testimonials__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.testimonials .section__eyebrow { color: var(--cyan); }
.testimonials .section__title {
  color: var(--white);
  margin-bottom: 3rem;
}
.testimonials__carousel {
  position: relative;
  overflow: hidden;
}
.testimonials__track {
  display: flex;
  transition: transform .5s ease;
}
.testimonial-card {
  min-width: 100%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-sizing: border-box;
}
.testimonial-card__stars {
  color: #f5a623;
  font-size: 1.1rem;
  letter-spacing: .1em;
}
.testimonial-card__quote {
  font-size: .92rem;
  color: rgba(255,255,255,.8);
  line-height: 1.8;
  font-style: italic;
  margin: 0;
  flex: 1;
}
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: .9rem;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1rem;
}
.testimonial-card__name {
  display: block;
  font-weight: 700;
  font-size: .9rem;
  color: var(--white);
}
.testimonial-card__source {
  display: block;
  font-size: .75rem;
  color: var(--cyan);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.testimonials__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2rem;
}
.testimonials__btn {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: var(--white);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  transition: background .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.testimonials__btn:hover { background: var(--cyan); border-color: var(--cyan); }
.testimonials__dots { display: flex; gap: .5rem; }
.testimonials__dot {
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  border: none;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.testimonials__dot--active {
  background: var(--cyan);
  transform: scale(1.3);
}
@media (max-width: 600px) {
  .testimonial-card { padding: 1.75rem 1.5rem; }
}

/* ============================================================
   AI CHAT POPUP
   ============================================================ */

/* Bubble trigger */
.chat-bubble {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 1000;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--cyan);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,180,216,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.chat-bubble:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(0,180,216,.6);
}
.chat-bubble svg { width: 26px; height: 26px; color: var(--navy); }
.chat-bubble__close { display: none; }
.chat-bubble.open .chat-bubble__open  { display: none; }
.chat-bubble.open .chat-bubble__close { display: block; }

/* Unread badge */
.chat-bubble__badge {
  position: absolute;
  top: -3px; right: -3px;
  width: 18px; height: 18px;
  background: #e11d48;
  border-radius: 50%;
  font-size: .65rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}
.chat-bubble__badge.show { display: flex; }

/* Panel */
.chat-panel {
  position: fixed;
  bottom: 5.5rem;
  right: 1.75rem;
  z-index: 999;
  width: 360px;
  max-height: 540px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(.97);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.chat-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* Header */
.chat-panel__header {
  background: var(--navy);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}
.chat-panel__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--cyan);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chat-panel__avatar svg { width: 20px; height: 20px; color: var(--navy); }
.chat-panel__title { color: var(--white); font-weight: 600; font-size: .95rem; line-height: 1.2; }
.chat-panel__subtitle { color: rgba(255,255,255,.6); font-size: .75rem; }
.chat-panel__online {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  margin-left: auto;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(34,197,94,.3);
}

/* Messages */
.chat-panel__messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  scroll-behavior: smooth;
}
.chat-panel__messages::-webkit-scrollbar { width: 4px; }
.chat-panel__messages::-webkit-scrollbar-track { background: transparent; }
.chat-panel__messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* Message bubbles */
.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 82%;
}
.chat-msg--bot { align-self: flex-start; }
.chat-msg--user { align-self: flex-end; }
.chat-msg__text {
  padding: .65rem .9rem;
  border-radius: 14px;
  font-size: .875rem;
  line-height: 1.5;
}
.chat-msg--bot .chat-msg__text {
  background: var(--off);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.chat-msg--bot .chat-msg__text p {
  margin: 0 0 .45rem;
}
.chat-msg--bot .chat-msg__text p:last-child { margin-bottom: 0; }

.chat-msg--bot .chat-msg__text ol,
.chat-msg--bot .chat-msg__text ul {
  margin: .4rem 0 .5rem;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.chat-msg--bot .chat-msg__text ol { counter-reset: chat-ol; }

/* Numbered items — navy circle badge */
.chat-msg--bot .chat-msg__text ol li {
  counter-increment: chat-ol;
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  line-height: 1.45;
}
.chat-msg--bot .chat-msg__text ol li::before {
  content: counter(chat-ol);
  min-width: 20px;
  height: 20px;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  font-size: .65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Bullet items — cyan dot */
.chat-msg--bot .chat-msg__text ul li {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  line-height: 1.45;
}
.chat-msg--bot .chat-msg__text ul li::before {
  content: '';
  min-width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  flex-shrink: 0;
  margin-top: .45rem;
}

.chat-msg--bot .chat-msg__text strong { font-weight: 600; color: var(--navy); }
.chat-msg--bot .chat-msg__text a { color: var(--blue); text-decoration: underline; }
.chat-msg--bot .chat-msg__text a:hover { color: var(--blue-lt); }
.chat-msg--user .chat-msg__text {
  background: var(--cyan);
  color: var(--navy);
  font-weight: 500;
  border-bottom-right-radius: 4px;
}

/* Typing indicator */
.chat-msg--typing .chat-msg__text {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: .75rem .9rem;
}
.chat-typing-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--muted);
  animation: chatTyping 1.2s infinite ease-in-out;
}
.chat-typing-dot:nth-child(2) { animation-delay: .2s; }
.chat-typing-dot:nth-child(3) { animation-delay: .4s; }
@keyframes chatTyping {
  0%, 80%, 100% { transform: scale(.8); opacity: .4; }
  40% { transform: scale(1); opacity: 1; }
}

/* Input area */
.chat-panel__input {
  border-top: 1px solid var(--border);
  padding: .75rem 1rem;
  display: flex;
  gap: .5rem;
  align-items: flex-end;
  flex-shrink: 0;
}
.chat-panel__input textarea {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .55rem .75rem;
  font-family: var(--font-body);
  font-size: .875rem;
  resize: none;
  outline: none;
  line-height: 1.4;
  max-height: 100px;
  transition: border-color .2s;
}
.chat-panel__input textarea:focus { border-color: var(--cyan); }
.chat-panel__send {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--cyan);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .2s;
}
.chat-panel__send:hover { background: var(--cyan-lt); }
.chat-panel__send svg { width: 16px; height: 16px; color: var(--navy); }
.chat-panel__send:disabled { opacity: .5; cursor: not-allowed; }

@media (max-width: 600px) {
  .chat-panel { max-height: calc(100vh - 9rem); }
}
@media (max-width: 420px) {
  .chat-panel { right: .75rem; left: .75rem; width: auto; bottom: 5rem; max-height: calc(100dvh - 8rem); }
  .chat-bubble { bottom: 1rem; right: 1rem; }
}

/* ============================================================
   SCROLL-IN ANIMATION (moved from JS)
   ============================================================ */
.visible { opacity: 1 !important; transform: none !important; }

/* ============================================================
   FOCUS / ACCESSIBILITY
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible { outline-offset: 4px; }
.nav__links a:focus-visible,
.nav__dropdown-toggle:focus-visible,
.nav__dropdown-menu a:focus-visible { outline-offset: 2px; }
.contact__social a:focus-visible { outline-offset: 3px; }
.form__group input:focus-visible,
.form__group select:focus-visible,
.form__group textarea:focus-visible {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,180,216,.15);
}
.chat-panel__input textarea:focus-visible {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,180,216,.15);
}
.testimonials__btn:focus-visible { outline-offset: 4px; }

/* ============================================================
   TABLET BREAKPOINT (768px–1024px) IMPROVEMENTS
   ============================================================ */
@media (max-width: 1024px) {
  .about { padding: 4.5rem 2rem; }
  .hero__content { padding: 8rem 2rem 4rem; }
}

@media (max-width: 768px) {
  .about { padding: 4rem 1.5rem; }
  .about__inner { gap: 3rem; }
  .services { padding: 4rem 1.5rem; }
  .contact { padding: 4rem 1.5rem; }
  .testimonials { padding: 4rem 1.5rem; }
  .testimonial-card { padding: 2rem 1.5rem; }
  .hero__content { padding: 7rem 1.5rem 3rem; }
  .stats { padding: 2.5rem 1.5rem; }
  .stats__inner { gap: 1.25rem; }
}
