/* =============================================================
   JG LIFESKILLS SUPPORT LTD — STYLESHEET
   Brand colours extracted from logo:
   Primary dark blue  : #1a3a80
   Primary mid blue   : #2457be
   Accent light blue  : #5b9bd5
   ============================================================= */

/* ─── CUSTOM PROPERTIES ─────────────────────────────────────── */
:root {
  --blue-900:  #0f2354;
  --blue-800:  #1a3a80;
  --blue-600:  #2457be;
  --blue-400:  #5b9bd5;
  --blue-200:  #bfdbfe;
  --blue-100:  #dbeafe;
  --blue-50:   #eff6ff;

  --white:     #ffffff;
  --gray-50:   #f8faff;
  --gray-100:  #f1f5fb;
  --gray-200:  #e2eaf6;
  --gray-600:  #4b5a72;
  --gray-700:  #374151;
  --gray-900:  #111827;

  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Montserrat', var(--font-body);

  --header-h:    90px;
  --container:   1200px;
  --pad-x:       clamp(1rem, 5vw, 2rem);
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 4px rgba(26,58,128,.08);
  --shadow-md: 0 4px 18px rgba(26,58,128,.12);
  --shadow-lg: 0 8px 36px rgba(26,58,128,.16);

  --ease: 0.3s ease;
}

/* ─── RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul { list-style: none; }
a  { color: inherit; text-decoration: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* scroll-margin so sticky header doesn't hide headings */
section, [id] {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

/* ─── ACCESSIBILITY ──────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: .5rem 1rem;
  background: var(--blue-800);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 9999;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Visible focus rings for keyboard nav */
:focus-visible {
  outline: 3px solid var(--blue-400);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ─── LAYOUT UTILITIES ──────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

/* ─── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  transition: background var(--ease), color var(--ease), transform var(--ease), box-shadow var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--blue-800);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn--primary:hover {
  background: var(--blue-600);
  box-shadow: var(--shadow-lg);
}

.btn--white {
  background: var(--white);
  color: var(--blue-800);
  box-shadow: var(--shadow-md);
}
.btn--white:hover {
  background: var(--blue-100);
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.65);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--white);
}

.btn--full { width: 100%; justify-content: center; }

/* ─── SECTION HEADER SHARED ─────────────────────────────────── */
.section__header {
  text-align: center;
  max-width: 660px;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section__tag {
  display: inline-block;
  padding: .3rem .9rem;
  background: var(--blue-50);
  color: var(--blue-600);
  border-radius: var(--radius-full);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}

.section__tag--light {
  background: rgba(255,255,255,.15);
  color: var(--white);
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--blue-800);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section__title--light { color: var(--white); }

.section__desc {
  color: var(--gray-600);
  font-size: 1.05rem;
}

/* Badge (hero) */
.badge {
  display: inline-block;
  padding: .35rem 1rem;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: var(--radius-full);
  color: var(--white);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

/* ─── SCROLL REVEAL ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ─── HEADER ─────────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  background: transparent;
  transition: background var(--ease), box-shadow var(--ease);
}

.header.scrolled {
  background: var(--blue-800);
  box-shadow: 0 4px 20px rgba(15,35,84,.35);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo images are inverted to white so they read clearly on the blue header */
.nav__logo-group {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0;
}

.nav__icon-link,
.nav__wordmark-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav__logo-icon {
  height: 58px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.nav__logo-wordmark {
  height: 50px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}
.nav__menu {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.nav__link {
  padding: .5rem .75rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: .95rem;
  color: var(--white);
  transition: color var(--ease), background var(--ease);
}

.nav__link:hover,
.nav__link.active {
  color: var(--white);
  background: rgba(255,255,255,.15);
}

.nav__link--cta {
  background: var(--white);
  color: var(--blue-800) !important;
  padding: .5rem 1.2rem;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.nav__link--cta:hover {
  background: var(--blue-100) !important;
  color: var(--blue-800) !important;
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 8px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  z-index: 10;
  transition: background var(--ease);
}
.nav__toggle:hover { background: rgba(255,255,255,.15); }

.nav__bar {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
  transform-origin: center;
}

.nav__toggle[aria-expanded="true"] .nav__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__toggle[aria-expanded="true"] .nav__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, var(--blue-900) 0%, var(--blue-800) 55%, var(--blue-600) 100%);
  padding-top: var(--header-h);
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .3;
}
.hero__orb--1 {
  width: 600px; height: 600px;
  background: var(--blue-400);
  top: -200px; right: -100px;
}
.hero__orb--2 {
  width: 400px; height: 400px;
  background: var(--blue-200);
  bottom: -100px; left: -80px;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding-block: clamp(4rem, 10vw, 8rem);
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero__title em {
  font-style: normal;
  color: var(--blue-200);
}

.hero__desc {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(255,255,255,.85);
  max-width: 560px;
  margin-bottom: 2.25rem;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  line-height: 0;
}
.hero__wave svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ─── STATS ──────────────────────────────────────────────────── */
.stats {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding-block: 2.5rem;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
}

.stat__icon {
  font-size: 1.6rem;
  color: var(--blue-600);
  margin-bottom: .25rem;
}

.stat__value {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blue-800);
}

.stat__label {
  font-size: .85rem;
  color: var(--gray-600);
  font-weight: 500;
}

/* ─── ABOUT ──────────────────────────────────────────────────── */
.about {
  background: var(--gray-50);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.about__visual { position: relative; }

.about__img-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.about__team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about__quote-card {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--blue-800);
  color: var(--white);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  max-width: 220px;
  box-shadow: var(--shadow-lg);
  font-size: .9rem;
  line-height: 1.5;
}

.about__quote-card .fa-quote-left {
  color: var(--blue-400);
  font-size: 1.2rem;
  display: block;
  margin-bottom: .5rem;
}

.about__content { padding-block: 1rem; }
.about__content .section__tag { margin-bottom: .75rem; }
.about__content .section__title { text-align: left; margin-bottom: 1rem; }
.about__content p { color: var(--gray-600); margin-bottom: 1.1rem; }

.mission-card {
  display: flex;
  gap: 1rem;
  background: var(--blue-50);
  border-left: 4px solid var(--blue-600);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.5rem;
  margin-block: 1.5rem;
}

.mission-card__icon {
  color: var(--blue-600);
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: .1rem;
}

.mission-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-800);
  margin-bottom: .35rem;
}

.mission-card__text {
  color: var(--gray-600);
  font-size: .95rem;
  font-style: italic;
  margin: 0;
}

.values-list {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  color: var(--gray-700);
  font-size: .95rem;
}

.values-list li {
  display: flex;
  align-items: center;
  gap: .65rem;
}

.values-list .fa-check {
  color: var(--blue-600);
  font-size: .85rem;
  flex-shrink: 0;
  background: var(--blue-100);
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── SERVICES ───────────────────────────────────────────────── */
.services { background: var(--blue-50); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease), box-shadow var(--ease);
  border: 1px solid var(--gray-200);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card__icon-wrap {
  width: 54px; height: 54px;
  background: var(--blue-50);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  color: var(--blue-600);
  font-size: 1.4rem;
  transition: background var(--ease), color var(--ease);
}

.service-card:hover .service-card__icon-wrap {
  background: var(--blue-800);
  color: var(--white);
}

.service-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-800);
  margin-bottom: .6rem;
}

.service-card p {
  font-size: .95rem;
  color: var(--gray-600);
  line-height: 1.65;
}

/* ─── AREAS ──────────────────────────────────────────────────── */
.areas { background: var(--white); }

.areas__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.area-card {
  position: relative;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  border: 2px solid var(--gray-200);
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.area-card:hover {
  border-color: var(--blue-400);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.area-card--primary {
  background: var(--blue-50);
  border-color: var(--blue-200);
}

.area-card__icon-wrap {
  width: 48px; height: 48px;
  background: var(--blue-100);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-600);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.area-card--primary .area-card__icon-wrap {
  background: var(--blue-800);
  color: var(--white);
}

.area-card__badge {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  background: var(--blue-600);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  padding: .25rem .65rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.area-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue-800);
  margin-bottom: .5rem;
}

.area-card p {
  font-size: .93rem;
  color: var(--gray-600);
}

.areas__cta {
  text-align: center;
  color: var(--gray-600);
  font-size: .95rem;
}

.areas__cta-link {
  color: var(--blue-600);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.areas__cta-link:hover { color: var(--blue-800); }

/* ─── TEAM ───────────────────────────────────────────────────── */
.team { background: var(--blue-50); }

.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--ease), box-shadow var(--ease);
  border: 1px solid var(--gray-200);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.team-card__photo {
  background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
  aspect-ratio: 1/1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  color: var(--white);
  overflow: hidden;
}

.team-card__photo .fa-user-tie {
  font-size: 3.5rem;
  opacity: .4;
}

.team-card__photo-note {
  font-size: .8rem;
  opacity: .6;
  font-weight: 500;
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.team-card__body { padding: 1.5rem; }

.team-card__name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue-800);
  margin-bottom: .25rem;
}

.team-card__role {
  font-size: .88rem;
  font-weight: 600;
  color: var(--blue-600);
  margin-bottom: .75rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.team-card__bio {
  font-size: .93rem;
  color: var(--gray-600);
}


/* ─── CONTACT ────────────────────────────────────────────────── */
.contact {
  background: linear-gradient(145deg, var(--blue-900) 0%, var(--blue-800) 100%);
  color: var(--white);
}

.contact__inner {
  text-align: center;
}

.contact__desc {
  color: rgba(255,255,255,.8) !important;
}

.contact__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 0;
}

.contact__card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  text-align: center;
  transition: background var(--ease), border-color var(--ease), transform var(--ease);
}

.contact__card:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.3);
  transform: translateY(-3px);
}

.contact__card-icon {
  width: 54px; height: 54px;
  background: rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--blue-200);
  margin-bottom: .25rem;
}

.contact__card-label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--blue-200);
}

.contact__card-value {
  font-size: .97rem;
  color: rgba(255,255,255,.9);
  line-height: 1.5;
}

.contact__link:hover {
  color: var(--white);
  text-decoration: underline;
}

/* ─── CONTACT FORM ───────────────────────────────────────────── */
.contact-form {
  margin-top: 3rem;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: left;
  max-width: 720px;
  margin-inline: auto;
  margin-top: 3rem;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.contact-form__group {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 1.25rem;
}

.contact-form__label {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--blue-200);
}

.contact-form__input {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-md);
  padding: .85rem 1rem;
  color: var(--white);
  font-size: .97rem;
  font-family: inherit;
  transition: border-color var(--ease), background var(--ease);
  width: 100%;
  box-sizing: border-box;
}

.contact-form__input::placeholder { color: rgba(255,255,255,.4); }

.contact-form__input:focus {
  outline: none;
  border-color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.15);
}

.contact-form__textarea { resize: vertical; min-height: 130px; }

.contact-form__input:invalid:not(:placeholder-shown) {
  border-color: #f87171;
}

.contact-form__submit { margin-top: .5rem; }

@media (max-width: 600px) {
  .contact-form__row { grid-template-columns: 1fr; }
  .contact-form { padding: 1.5rem; }
}

/* ─── FOOTER ─────────────────────────────────────────────────── */
.footer {
  background: var(--blue-900);
  color: rgba(255,255,255,.75);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-block: 4rem;
}

.footer__logo-link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
}

.footer__logo-icon {
  height: 44px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.footer__logo-wordmark {
  height: 32px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.footer__tagline {
  font-weight: 600;
  color: var(--white);
  font-size: 1rem;
  margin-bottom: .5rem;
}

.footer__desc {
  font-size: .88rem;
  line-height: 1.65;
}

.footer__nav-title {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--blue-200);
  margin-bottom: 1rem;
}

.footer__nav ul,
.footer__contact-info ul {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.footer__link {
  font-size: .9rem;
  color: rgba(255,255,255,.7);
  transition: color var(--ease);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.footer__link:hover { color: var(--white); }

.footer__contact-info li {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
}

.footer__contact-info .fa-solid {
  color: var(--blue-400);
  width: 16px;
  flex-shrink: 0;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: 1.5rem;
}

.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .85rem;
}

/* ─── BACK TO TOP ────────────────────────────────────────────── */
/* ─── FLOATING CONTACT BUBBLE ────────────────────────────────── */
.contact-bubble {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  gap: .55rem;
  background: var(--blue-600);
  color: var(--white);
  text-decoration: none;
  padding: .7rem 1.2rem;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  box-shadow: 0 4px 18px rgba(0,0,0,.25);
  z-index: 90;
  transition: background var(--ease), transform var(--ease), opacity var(--ease), box-shadow var(--ease);
}

.contact-bubble:hover {
  background: var(--blue-800);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,0,0,.3);
}

.contact-bubble.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

@media (max-width: 480px) {
  .contact-bubble__text { display: none; }
  .contact-bubble { padding: .7rem; }
}

/* ─── BACK TO TOP ────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  width: 44px; height: 44px;
  background: var(--blue-800);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity var(--ease), transform var(--ease), background var(--ease);
  z-index: 90;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.back-to-top:hover {
  background: var(--blue-600);
  transform: translateY(-2px);
}

/* ─── RESPONSIVE — LARGE TABLET (≤1023px) ───────────────────── */
@media (max-width: 1023px) {
  .about__quote-card { display: none; }

  .services__grid { grid-template-columns: repeat(2, 1fr); }

  .team__grid { grid-template-columns: repeat(2, 1fr); }

  .footer__grid   { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer__brand  { grid-column: 1 / -1; }
}

/* ─── NAV: hamburger kicks in at ≤1060px ────────────────────── */
/*
   Set above the ~1040px point where desktop links start to wrap.
*/
@media (max-width: 1060px) {

  .nav__toggle { display: flex; }

  /* Collapse the wrapper so icon, wordmark and hamburger are
     independent flex items in the nav — icon left, wordmark
     absolutely centred, hamburger right */
  .nav {
    position: relative;
  }

  .nav__logo-group {
    display: contents;
  }

  .nav__icon-link {
    flex-shrink: 0;
  }

  .nav__wordmark-link {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .nav__logo-icon     { height: 54px; }
  .nav__logo-wordmark { height: 44px; }

  /* Slide-down dropdown — fixed so it sits above all page content regardless of stacking contexts */
  .nav__menu {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    padding: .75rem 1rem 1.25rem;
    border-top: 1px solid var(--gray-200);
    display: none;
    z-index: 9999;
  }
  .nav__menu.open { display: flex; }

  .nav__link {
    display: block !important;
    color: var(--gray-700) !important;
    padding: .85rem 1rem !important;
    border-radius: var(--radius-md) !important;
    font-size: 1rem !important;
    font-weight: 500;
    background: none !important;
  }
  .nav__link--cta {
    display: block !important;
    background: var(--blue-800) !important;
    color: var(--white) !important;
    padding: .85rem 1rem !important;
    border-radius: var(--radius-md) !important;
    font-size: 1rem !important;
    font-weight: 700;
    text-align: center;
    margin-top: .75rem !important;
  }
  .nav__link--cta:hover { background: var(--blue-600) !important; }
}

/* ─── CONTENT LAYOUT: ≤767px ────────────────────────────────── */
@media (max-width: 767px) {

  /* ── Hero ── */
  .hero__content  { max-width: 100%; }
  .hero__actions  { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  /* ── About ── */
  .about__grid   { grid-template-columns: 1fr; }
  .about__visual { order: -1; }

  /* ── Services ── */
  .services__grid { grid-template-columns: 1fr; }

  /* ── Team ── */
  .team__grid { grid-template-columns: 1fr; }


  /* ── Contact ── */
  .contact__cards { grid-template-columns: repeat(2, 1fr); }

  /* ── Footer ── */
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__brand { grid-column: auto; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }
}

/* ─── SMALL MOBILE: ≤480px ──────────────────────────────────── */
@media (max-width: 480px) {

  /* ── Nav logo: smallest screens ── */
  .nav__logo-icon     { height: 46px; }
  .nav__logo-wordmark { height: 36px; }

  /* ── Hero ── */
  .hero__title { font-size: clamp(1.75rem, 8vw, 2.2rem); }

  /* ── Stats ── */
  .stats__grid { grid-template-columns: repeat(2, 1fr); }

  /* ── Contact ── */
  .contact__cards { grid-template-columns: 1fr; }

  /* ── Gallery ── */
  .gallery__grid { grid-template-columns: 1fr; }
  .gallery__item--wide { grid-column: span 1; }
  .gallery__item--tall { aspect-ratio: 4/3; }
}
