/* =========================================================
   Perfect Language Consulting — style.css
   Design: inspired by itamalta.com — corporate, clean, photo-rich
   Palette from logo:
     Cyan    #26C6DA   Navy    #2B2D6E   Grey    #8C8C8C
   ========================================================= */

:root {
  --cyan:       #26c6da;
  --cyan-dark:  #1aa5b8;
  --cyan-light: #e8f9fb;
  --navy:       #2b2d6e;
  --navy-dark:  #1f2152;
  --navy-light: #f0f1f8;
  --grey:       #8c8c8c;
  --ink:        #23264a;
  --muted:      #606480;
  --bg:         #ffffff;
  --tint:       #f5f7fc;
  --line:       #e4e8f0;
  --radius:     12px;
  --radius-lg:  20px;
  --shadow:     0 8px 28px rgba(43,45,110,.09);
  --shadow-lg:  0 20px 50px rgba(43,45,110,.15);
  --shadow-xl:  0 30px 70px rgba(43,45,110,.18);
  --container:  1180px;
  --font-head:  "Poppins", system-ui, sans-serif;
  --font-body:  "Open Sans", system-ui, sans-serif;
  --transition: .22s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--bg); line-height: 1.7; -webkit-font-smoothing: antialiased; }
h1,h2,h3,h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--cyan-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--navy); }
img { max-width: 100%; display: block; }
ul { padding: 0; margin: 0; list-style: none; }
.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }

/* ══════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  padding: .82em 1.8em; border-radius: 50px; cursor: pointer;
  border: 2px solid transparent; text-align: center;
  transition: transform .15s, box-shadow .2s, background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--cyan); color: #fff; box-shadow: 0 8px 22px rgba(38,198,218,.36); }
.btn--primary:hover { background: var(--cyan-dark); color: #fff; box-shadow: 0 14px 30px rgba(38,198,218,.42); }
.btn--ghost   { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.btn--ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn--outline { background: transparent; color: var(--cyan-dark); border-color: var(--cyan); }
.btn--outline:hover { background: var(--cyan); color: #fff; }
.btn--navy  { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-dark); color: #fff; }
.btn--large { padding: 1em 2.4em; font-size: 1.05rem; }

/* ══════════════════════════════════════════════
   TOP BAR
══════════════════════════════════════════════ */
.topbar { background: var(--navy-dark); color: #cdd0e8; font-size: .84rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 44px; gap: 16px; flex-wrap: wrap; }
.topbar__contact { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar a { color: #cdd0e8; transition: color var(--transition); }
.topbar a:hover { color: var(--cyan); }
.topbar .ico { color: var(--cyan); margin-right: 5px; }
.topbar__langs { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.lang-link { color: rgba(255,255,255,.65); font-size: .82rem; letter-spacing: .5px; padding: 2px 4px; border-radius: 4px; transition: color var(--transition), background var(--transition); }
.lang-link:hover { color: #fff; }
.lang-link--active { color: #fff !important; background: var(--cyan); padding: 2px 7px; border-radius: 10px; }
.lang-sep { color: rgba(255,255,255,.25); }
.lang-hint { color: rgba(255,255,255,.4); font-size: .78rem; font-weight: 500; }

/* ══════════════════════════════════════════════
   HEADER / NAV  — sticky, ITA Malta-inspired
══════════════════════════════════════════════ */
.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(43,45,110,.06);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 80px; gap: 20px; }
.brand__logo { height: 54px; width: auto; }

.nav__list { display: flex; align-items: center; gap: 6px; }
.nav__list a {
  font-family: var(--font-head); font-weight: 600; font-size: .9rem;
  color: var(--ink); padding: 8px 12px; border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}
.nav__list a:hover { color: var(--cyan-dark); background: var(--cyan-light); }
.nav__list a.active { color: var(--cyan-dark); background: var(--cyan-light); }
.nav__cta {
  background: var(--cyan) !important; color: #fff !important;
  padding: 10px 20px !important; border-radius: 50px !important;
  box-shadow: 0 6px 18px rgba(38,198,218,.35);
}
.nav__cta:hover { background: var(--cyan-dark) !important; box-shadow: 0 10px 24px rgba(38,198,218,.45); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 26px; height: 2.5px; background: var(--navy); border-radius: 3px; transition: var(--transition); }
.nav__close { display: none; }

/* ══════════════════════════════════════════════
   HERO — full-bleed with real photo bg
══════════════════════════════════════════════ */
.hero {
  position: relative; color: #fff; min-height: 620px;
  background: var(--navy) center/cover no-repeat;
  display: flex; align-items: center;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(31,33,82,.92) 0%, rgba(31,33,82,.80) 55%, rgba(38,198,218,.30) 100%);
}
.hero__inner { position: relative; z-index: 1; padding: 100px 0 110px; max-width: 720px; }
.hero__eyebrow { text-transform: uppercase; letter-spacing: 3.5px; font-weight: 700; font-family: var(--font-head); font-size: .78rem; color: var(--cyan); margin-bottom: 14px; }
.hero__title { font-size: clamp(2.4rem, 5.5vw, 3.8rem); color: #fff; margin-bottom: 20px; line-height: 1.15; }
.hero__lead { font-size: 1.12rem; color: rgba(255,255,255,.88); max-width: 600px; margin-bottom: 36px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ══════════════════════════════════════════════
   PAGE HERO (inner pages)
══════════════════════════════════════════════ */
.page-hero {
  position: relative; color: #fff; min-height: 260px;
  background: var(--navy-dark) center/cover no-repeat;
  display: flex; align-items: flex-end; padding-bottom: 0;
}
.page-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(31,33,82,.93) 0%, rgba(43,45,110,.80) 60%, rgba(38,198,218,.25) 100%);
}
.page-hero__inner { position: relative; z-index: 1; padding: 60px 0 44px; }
.page-hero__inner h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); color: #fff; margin: 10px 0 0; }

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: rgba(255,255,255,.65); }
.breadcrumb a { color: var(--cyan); font-weight: 600; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span[aria-hidden] { opacity: .4; }

/* ══════════════════════════════════════════════
   FEATURE CARDS (strip below hero)
══════════════════════════════════════════════ */
.features { margin-top: -68px; position: relative; z-index: 5; }
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: #fff; border-radius: var(--radius-lg); padding: 34px 28px;
  box-shadow: var(--shadow-xl); border-top: 4px solid var(--cyan);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.feature-card__icon { font-size: 2rem; margin-bottom: 12px; }
.feature-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ══════════════════════════════════════════════
   SECTIONS
══════════════════════════════════════════════ */
.section { padding: 86px 0; }
.section--tint { background: var(--tint); }
.section--navy { background: var(--navy); }
.section--navy .section__eyebrow { color: var(--cyan); }
.section--navy .section__title { color: #fff; }
.section--navy p { color: rgba(255,255,255,.8); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section__eyebrow { text-transform: uppercase; letter-spacing: 3px; font-weight: 700; font-size: .76rem; color: var(--cyan-dark); font-family: var(--font-head); margin-bottom: 10px; }
.section__title { font-size: clamp(1.75rem, 3.5vw, 2.45rem); margin-bottom: 14px; }
.section__sub { color: var(--muted); font-size: 1.02rem; }
.section__more { text-align: center; margin-top: 44px; }

/* ══════════════════════════════════════════════
   ABOUT — real photo
══════════════════════════════════════════════ */
.about__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.about__media { position: relative; }
.about__photo {
  width: 100%; height: 520px; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-xl);
  display: block;
}
.about__badge {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--cyan); color: #fff; border-radius: var(--radius-lg);
  padding: 18px 22px; box-shadow: 0 12px 30px rgba(38,198,218,.45);
  text-align: center; font-family: var(--font-head);
}
.about__badge strong { display: block; font-size: 2rem; font-weight: 800; line-height: 1; }
.about__badge span { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; opacity: .9; }
.about__content p { color: var(--muted); }
.about__content .btn { margin-top: 10px; }

/* ══════════════════════════════════════════════
   STATS STRIP — ITA Malta inspired
══════════════════════════════════════════════ */
.stats { background: var(--navy); padding: 52px 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat-item { text-align: center; padding: 20px; border-right: 1px solid rgba(255,255,255,.1); }
.stat-item:last-child { border-right: 0; }
.stat-item__num { font-family: var(--font-head); font-size: 2.6rem; font-weight: 800; color: var(--cyan); display: block; line-height: 1; margin-bottom: 6px; }
.stat-item__label { font-size: .88rem; color: rgba(255,255,255,.75); font-weight: 500; }

/* ══════════════════════════════════════════════
   SERVICES GRID
══════════════════════════════════════════════ */
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service {
  background: #fff; border-radius: var(--radius-lg); padding: 30px 22px; text-align: center;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--cyan-light); }
.service__icon {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 18px;
  display: grid; place-items: center; font-size: 1.6rem;
  background: linear-gradient(135deg, var(--cyan), var(--navy));
}
.service h3 { font-size: 1.08rem; margin-bottom: 8px; }
.service p { color: var(--muted); font-size: .9rem; margin: 0; }

/* Services DETAIL (services page) */
.services-detail__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.service-detail {
  background: #fff; border-radius: var(--radius-lg); padding: 36px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 14px;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.service-detail:hover { box-shadow: var(--shadow-lg); border-color: var(--cyan-light); }
.service-detail__head { display: flex; align-items: center; gap: 16px; }
.service-detail__icon {
  width: 56px; height: 56px; min-width: 56px; border-radius: 16px;
  display: grid; place-items: center; font-size: 1.5rem;
  background: linear-gradient(135deg, var(--cyan), var(--navy));
}
.service-detail h3 { margin: 0; font-size: 1.2rem; }
.service-detail p { color: var(--muted); margin: 0; flex: 1; }

/* ══════════════════════════════════════════════
   EXPERTISE LIST
══════════════════════════════════════════════ */
.expertise__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.expertise__list li {
  background: #fff; border-radius: var(--radius); padding: 20px 18px;
  font-weight: 600; font-family: var(--font-head); font-size: .93rem;
  color: var(--navy); border-left: 4px solid var(--cyan);
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px;
  transition: transform var(--transition);
}
.expertise__list li:hover { transform: translateX(4px); }
.expertise__icon { font-size: 1.2rem; }

/* ══════════════════════════════════════════════
   CLIENT LOGOS — ITA Malta inspired strip
══════════════════════════════════════════════ */
.logo-strip { background: #fff; padding: 60px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logo-strip__head { text-align: center; margin-bottom: 40px; }
.logo-grid { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: center; }
.logo-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 24px; min-width: 140px; height: 80px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(43,45,110,.06);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.logo-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--cyan); }
.client-logo { max-height: 42px; max-width: 120px; width: auto; object-fit: contain; filter: grayscale(100%) opacity(.7); transition: filter var(--transition), opacity var(--transition); display: block; }
.logo-card:hover .client-logo { filter: none; opacity: 1; }
.client-logo__fallback { font-family: var(--font-head); font-weight: 700; font-size: .82rem; color: var(--navy); text-align: center; line-height: 1.3; }

/* ══════════════════════════════════════════════
   TESTIMONIALS — with avatar photos
══════════════════════════════════════════════ */
.testimonials__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.quote {
  background: #fff; border-radius: var(--radius-lg); padding: 34px 34px 28px; margin: 0;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 16px;
  transition: box-shadow var(--transition);
}
.quote:hover { box-shadow: var(--shadow-lg); }
.quote__stars { color: #f5a623; font-size: 1rem; letter-spacing: 2px; }
.quote blockquote { margin: 0; color: var(--ink); font-style: italic; font-size: .97rem; line-height: 1.7; position: relative; padding-left: 22px; }
.quote blockquote::before { content: "\201C"; font-family: Georgia, serif; font-size: 3.5rem; color: var(--cyan); position: absolute; left: -4px; top: -10px; line-height: 1; opacity: .5; }
.quote__author { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.quote__avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 3px solid var(--cyan); flex-shrink: 0; }
.quote__avatar--initials {
  width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--cyan), var(--navy));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: #fff;
  border: 3px solid var(--cyan); flex-shrink: 0;
}
.quote figcaption strong { display: block; font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: .97rem; }
.quote figcaption span { color: var(--muted); font-size: .84rem; }

/* ══════════════════════════════════════════════
   VALUES (about page)
══════════════════════════════════════════════ */
.values__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value-card {
  background: #fff; border-radius: var(--radius-lg); padding: 32px 24px; text-align: center;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.value-card__icon { font-size: 2.2rem; margin-bottom: 14px; }
.value-card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.value-card p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ══════════════════════════════════════════════
   LANGUAGE CARDS (about page)
══════════════════════════════════════════════ */
.langs__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.lang-card {
  background: #fff; border-radius: var(--radius-lg); padding: 30px 20px; text-align: center;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform var(--transition), border-color var(--transition);
}
.lang-card:hover { transform: translateY(-4px); border-color: var(--cyan); }
.lang-card__flag { font-size: 2.8rem; display: block; margin-bottom: 12px; }
.lang-card h3 { margin-bottom: 4px; font-size: 1.05rem; }
.lang-card p { color: var(--muted); font-size: .86rem; margin: 0; }

/* ══════════════════════════════════════════════
   CTA BANNER
══════════════════════════════════════════════ */
.cta-banner { background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, #2a4a7f 100%); padding: 80px 0; color: #fff; }
.cta-banner__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-banner h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); color: #fff; margin-bottom: 8px; }
.cta-banner p { color: rgba(255,255,255,.82); margin: 0; max-width: 520px; }

/* ══════════════════════════════════════════════
   CONTACT PAGE
══════════════════════════════════════════════ */
.contact__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.contact__form, .careers__form {
  background: #fff; border-radius: var(--radius-lg); padding: 38px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; }
.field label { font-weight: 600; font-size: .87rem; color: var(--navy); margin-bottom: 6px; font-family: var(--font-head); }
.field input, .field textarea, .field select {
  font-family: var(--font-body); font-size: .94rem; padding: 12px 15px;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fafbfe;
  transition: border-color var(--transition), box-shadow var(--transition); color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(38,198,218,.15);
}
.field select { cursor: pointer; }
.form-note { min-height: 1.2em; font-weight: 600; margin: 14px 0 0; }
.form-note.success { color: #1a9e5c; }
.form-note.error   { color: #e05a6b; }
.form-required { font-size: .8rem; color: var(--muted); margin: 10px 0 0; }
.form-recaptcha { font-size: .76rem; color: var(--grey); margin: 10px 0 0; }

.contact__info { background: var(--navy); color: rgba(255,255,255,.85); border-radius: var(--radius-lg); padding: 38px; box-shadow: var(--shadow-lg); }
.contact__info h3 { color: #fff; font-size: 1rem; margin: 24px 0 8px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); }
.contact__info h3:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.contact__info a { color: var(--cyan); }
.contact__info a:hover { color: #fff; }
.contact__info p { color: rgba(255,255,255,.75); margin-bottom: 6px; line-height: 1.6; font-size: .95rem; }

/* Careers */
.careers__box { display: grid; grid-template-columns: 1fr 1.25fr; gap: 44px; align-items: start; }
.careers__text p { color: var(--muted); }

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.footer { background: var(--navy-dark); color: #bcc0dc; padding-top: 64px; }
.footer__inner { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.5fr; gap: 36px; padding-bottom: 48px; }
.footer h4 { color: #fff; font-size: .98rem; margin-bottom: 18px; letter-spacing: .5px; }
.footer ul li { margin-bottom: 10px; font-size: .9rem; }
.footer a { color: #bcc0dc; transition: color var(--transition); }
.footer a:hover { color: var(--cyan); }
.footer__logo { height: 50px; background: #fff; padding: 8px 14px; border-radius: 10px; margin-bottom: 18px; }
.footer__brand p { font-size: .9rem; line-height: 1.65; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; }
.footer__bottom p { margin: 0; font-size: .84rem; text-align: center; color: #8a8eb8; }

/* ══════════════════════════════════════════════
   BACK TO TOP
══════════════════════════════════════════════ */
.to-top {
  position: fixed; right: 24px; bottom: 24px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--cyan); color: #fff; display: grid; place-items: center; font-size: 1.25rem;
  box-shadow: var(--shadow-xl); opacity: 0; pointer-events: none; transform: translateY(12px);
  transition: .25s; z-index: 50;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { background: var(--cyan-dark); color: #fff; transform: translateY(-2px); }

/* ══════════════════════════════════════════════
   REVEAL ON SCROLL
══════════════════════════════════════════════ */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .1s; }
[data-reveal][data-delay="2"] { transition-delay: .2s; }
[data-reveal][data-delay="3"] { transition-delay: .3s; }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner  { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .features__grid         { grid-template-columns: 1fr; }
  .about__inner           { grid-template-columns: 1fr; }
  .about__photo           { height: 380px; }
  .about__badge           { right: 0; bottom: -10px; }
  .services__grid         { grid-template-columns: repeat(2, 1fr); }
  .services-detail__grid  { grid-template-columns: 1fr; }
  .expertise__list        { grid-template-columns: repeat(2, 1fr); }
  .testimonials__grid     { grid-template-columns: 1fr; }
  .contact__grid          { grid-template-columns: 1fr; }
  .careers__box           { grid-template-columns: 1fr; }
  .values__grid           { grid-template-columns: repeat(2, 1fr); }
  .langs__grid            { grid-template-columns: repeat(2, 1fr); }
  .stats__grid            { grid-template-columns: repeat(2, 1fr); }
  .stat-item              { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .cta-banner__inner      { flex-direction: column; text-align: center; }
  .logo-grid              { gap: 14px; }
  .logo-card              { min-width: 110px; height: 66px; padding: 12px 16px; }

  /* Mobile nav */
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(310px, 82%);
    background: #fff; transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
    box-shadow: -16px 0 48px rgba(0,0,0,.18); z-index: 60;
    display: flex; flex-direction: column; overflow: hidden;
    padding: 0;
  }
  .nav.open { transform: translateX(0); }
  .nav__list {
    flex: 1; flex-direction: column; align-items: stretch; gap: 0;
    padding: 72px 28px 24px; overflow: hidden;
    display: flex; justify-content: space-evenly;
  }
  .nav__list li { border-bottom: 1px solid var(--line); }
  .nav__list li:last-child { border-bottom: 0; margin-top: 8px; }
  .nav__list a { display: block; padding: 10px 4px; border-radius: 0; font-size: 1rem; }
  .nav__list a:hover { background: transparent; }
  .nav__cta { border-radius: 50px !important; text-align: center; padding: 10px 20px !important; }
  .nav__toggle { display: flex; }
  .nav__close {
    display: flex; align-items: center; justify-content: center;
    position: absolute; top: 18px; right: 20px;
    width: 40px; height: 40px; font-size: 1.5rem;
    background: var(--tint); border: 0; color: var(--navy); cursor: pointer; border-radius: 50%;
  }
}

@media (max-width: 640px) {
  .services__grid, .expertise__list, .footer__inner { grid-template-columns: 1fr; }
  .values__grid, .langs__grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .topbar__contact { gap: 10px; font-size: .8rem; }
  .hero { min-height: 520px; }
  .hero__inner { padding: 80px 0 100px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .logo-card { min-width: 90px; }
}

/* =========================================================
   SLIDESHOW
   ========================================================= */
.slideshow {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  max-height: 860px;
  overflow: hidden;
  background: var(--navy-dark);
  user-select: none;
}

/* ── Slides ── */
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease, transform 1s ease;
  transform: scale(1.04);
  z-index: 1;
  will-change: opacity, transform;
}
.slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}
.slide.is-leaving {
  opacity: 0;
  transform: scale(1.04);
  z-index: 2;
}

/* ── Overlay ── */
.slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(31, 33, 82, 0.78) 0%,
    rgba(31, 33, 82, 0.50) 60%,
    rgba(38, 198, 218, 0.15) 100%
  );
}

/* ── Slide content ── */
.slide__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-top: 120px;
  padding-bottom: 100px;
}
.slide__eyebrow {
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 18px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s .3s ease, transform .6s .3s ease;
}
.slide__title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  color: #fff;
  max-width: 680px;
  margin: 0 0 22px;
  text-shadow: 0 2px 18px rgba(31,33,82,.35);
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .65s .45s ease, transform .65s .45s ease;
}
.slide__sub {
  font-size: clamp(.95rem, 1.8vw, 1.15rem);
  color: rgba(255,255,255,.88);
  max-width: 560px;
  line-height: 1.7;
  margin: 0 0 36px;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s .58s ease, transform .65s .58s ease;
}
.slide__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s .70s ease, transform .6s .70s ease;
}

/* Animate in when slide is active */
.slide.is-active .slide__eyebrow,
.slide.is-active .slide__title,
.slide.is-active .slide__sub,
.slide.is-active .slide__actions {
  opacity: 1;
  transform: translateY(0);
}

/* Ghost CTA button variant */
.btn--ghost {
  background: transparent;
  border: 2px solid rgba(255,255,255,.72);
  color: #fff;
}
.btn--ghost:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
  color: #fff;
}

/* ── Arrow buttons ── */
.slideshow__arrows {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}
.slide-arrow {
  pointer-events: all;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.slide-arrow:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  transform: scale(1.08);
}
.slide-arrow:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

/* ── Dot indicators ── */
.slideshow__dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
  align-items: center;
}
.slideshow__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.65);
  background: transparent;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), border-color var(--transition);
  padding: 0;
}
.slideshow__dot.is-active {
  background: var(--cyan);
  border-color: var(--cyan);
  transform: scale(1.35);
}
.slideshow__dot:hover:not(.is-active) {
  background: rgba(255,255,255,.4);
}

/* ── Progress bar ── */
.slideshow__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,.15);
  z-index: 10;
}
.slideshow__progress-bar {
  height: 100%;
  background: var(--cyan);
  width: 0%;
  transition: width linear;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .slideshow { max-height: 680px; }
  .slide__content { padding-top: 100px; padding-bottom: 80px; }
  .slide-arrow { width: 42px; height: 42px; }
}
@media (max-width: 640px) {
  .slideshow { height: 90vh; min-height: 520px; max-height: none; }
  .slide__content { padding-top: 90px; padding-bottom: 70px; }
  .slide__actions { flex-direction: column; }
  .slide-arrow { width: 38px; height: 38px; }
  .slideshow__arrows { padding: 0 10px; }
}
