/* Embla Software Innovation — embla.asia
   Colours and type follow the previous Salient theme settings. */

/* Self-hosted Poppins (no requests to Google). Until the .woff2 files are in
   assets/fonts/, browsers fall back to the system font stack below. */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); }

:root {
  --blue: #52c5f2;      /* accent */
  --blue-dark: #2aa8da;
  --red: #e72430;
  --green: #8cc341;
  --wine: #943134;
  --navy: #324a6d;
  --ink: #000;
  --muted: #555;
  --panel: #f5f5f7;
  --radius: 20px;
  --wrap: 1300px;
  --gutter: clamp(16px, 5vw, 7vw);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink);
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.7rem, 3.4vw, 2.25rem); }
h4 { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 600; }
h5 { font-size: clamp(1.05rem, 1.7vw, 1.375rem); font-weight: 400; line-height: 1.5; }
h6 { font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }
.panel { background: var(--panel); border-radius: var(--radius); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .8em 2.2em;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.btn:hover, .btn:focus-visible { background: var(--blue-dark); transform: translateY(-1px); }
.btn-block { display: block; text-align: center; }
.btn-light {
  display: block; text-align: center; text-decoration: none;
  background: #fff; border-radius: 8px; padding: .55em .8em; margin-top: .5em;
  font-size: .875rem; font-weight: 500; overflow-wrap: anywhere;
  transition: background .2s, color .2s;
}
.btn-light:hover, .btn-light:focus-visible { background: var(--blue); color: #fff; }
.link-more { color: var(--red); font-weight: 600; text-decoration: none; }
.link-more:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding: 12px var(--gutter);
  transition: transform .3s;
}
.site-header.is-hidden { transform: translateY(-110%); }
.nav-bar {
  max-width: var(--wrap); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: rgba(245, 245, 247, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 50px;
  padding: 10px 14px 10px 28px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}
.logo img { height: 32px; width: auto; }
.nav-menu { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  display: block; padding: 8px 16px; border-radius: 50px;
  text-decoration: none; font-weight: 500; font-size: .95rem;
  transition: background .2s;
}
.nav-menu a:hover, .nav-menu a:focus-visible { background: #e6e6ea; }
.nav-menu .nav-cta a { background: var(--blue); color: #fff; }
.nav-menu .nav-cta a:hover { background: var(--blue-dark); }
.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; cursor: pointer;
  width: 44px; height: 44px; border-radius: 50%;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 22px; height: 2px; background: #000; position: relative; transition: transform .25s, background .25s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .nav-menu {
    display: none;
    position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% - 4px);
    flex-direction: column; gap: 0;
    background: var(--blue); border-radius: var(--radius); padding: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .15);
  }
  .nav-open .nav-menu { display: flex; }
  .nav-menu a { color: #fff; font-size: 1.15rem; padding: 12px 16px; }
  .nav-menu a:hover { background: rgba(255, 255, 255, .18); }
  .nav-menu .nav-cta a { background: #fff; color: #000; text-align: center; margin-top: 8px; }
}

/* ---------- Sections ---------- */
section { padding: clamp(40px, 7vw, 100px) 0; }
.section-tight { padding-top: 20px; padding-bottom: 20px; }
.heading-icon { display: inline-flex; align-items: center; gap: .35em; }
.heading-icon img { width: .8em; height: .8em; }
.grid { display: grid; gap: 30px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.align-center { align-items: center; }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1000px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 690px) { .grid-2, .grid-4 { grid-template-columns: 1fr; } }

/* Hero */
.hero { padding-top: 30px; }
.hero-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.hero-title .tagline { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 500; margin: 0 0 1.5em; }
.hero-title img { width: 90px; flex-shrink: 0; }
.hero-image { border-radius: var(--radius); width: 100%; }
@media (max-width: 690px) {
  .hero h1 { font-size: 1.85rem; }
  .hero-title img { width: 56px; }
}

/* Client logo marquee */
.logos { overflow: hidden; padding: 30px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.logos-track { display: flex; gap: 70px; width: max-content; animation: marquee 35s linear infinite; }
.logos:hover .logos-track { animation-play-state: paused; }
.logos img { height: 52px; width: auto; max-width: 190px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.logos img:hover { filter: none; opacity: 1; }
.logos img.logo-on-dark { filter: invert(1) grayscale(1); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .logos-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .logos-track [aria-hidden="true"] { display: none; }
}

/* Specialist banner */
.specialist {
  background: var(--panel) url("../img/bg-border.jpeg") center bottom / 100% auto no-repeat;
  border-radius: var(--radius);
  padding: clamp(30px, 5vw, 50px) clamp(20px, 5vw, 80px) clamp(40px, 6vw, 80px);
  display: grid; grid-template-columns: 9fr 3fr; gap: 30px; align-items: center;
}
.specialist h2 { margin-bottom: .4em; }
.specialist h5 { margin-bottom: 1.4em; }
.specialist .award { max-width: 140px; margin: 0 auto; }
@media (max-width: 690px) {
  .specialist { grid-template-columns: 1fr; text-align: center; background-image: none; }
  .specialist .award { order: -1; max-width: 100px; }
}

/* About */
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-frame iframe, .video-frame button { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.short-line { width: 80px; margin: 0 0 1.2em; }
.about-grid { grid-template-columns: 7fr 5fr; gap: 60px; }
@media (max-width: 1000px) { .about-grid { grid-template-columns: 1fr; gap: 30px; } }

/* Extended office */
.extended { max-width: 900px; margin: 0 auto; text-align: center; }
.extended h3 { justify-content: center; }

/* Feature rows (text + image card) */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: stretch; margin-bottom: clamp(40px, 7vw, 100px); }
.feature:last-child { margin-bottom: 0; }
.feature-text { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.feature-text h3 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
.feature-image { border-radius: 15px; min-height: 320px; background: center / cover no-repeat; }
.feature.reverse .feature-text { order: 2; }
@media (max-width: 690px) {
  .feature { grid-template-columns: 1fr; }
  .feature.reverse .feature-text { order: 0; }
  .feature-text { padding: 0; }
  .feature-image { min-height: 220px; order: -1; }
}

/* Video testimonials */
.testimonial { padding: 15px 20px 20px; }
.testimonial .play {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 16 / 9; margin-bottom: 12px;
}
.testimonial .play img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, opacity .3s; }
.testimonial .play:hover img { transform: scale(1.04); opacity: .9; }
.play-icon {
  position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px;
  border-radius: 50%; background: var(--red); display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .3); transition: transform .2s;
}
.play-icon::after { content: ""; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent #fff; margin-left: 4px; }
.play:hover .play-icon { transform: scale(1.1); }
.testimonial strong { display: block; font-size: 1.1rem; }
.testimonial span { font-size: .9rem; color: var(--muted); }

/* News cards */
.news-card { padding: 30px; display: flex; flex-direction: column; }
.news-card h4 { hyphens: auto; }
.news-card p { flex: 1; }
.news-card img { border-radius: 12px; margin-bottom: 20px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

/* Team */
.member { padding: 15px 15px 20px; display: flex; flex-direction: column; }
.member img { border-radius: 14px; width: 100%; aspect-ratio: 314 / 400; object-fit: cover; object-position: top; margin-bottom: 14px; }
.member strong { font-size: 1.1rem; line-height: 1.3; }
.member .role { color: var(--muted); font-size: .9rem; margin-bottom: .4em; }
.member .socials { display: flex; gap: 10px; margin-top: 12px; }

/* Social icons */
.icon-link { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--blue); transition: background .2s, color .2s; }
.icon-link svg { width: 26px; height: 26px; fill: currentColor; }
.icon-link:hover, .icon-link:focus-visible { background: var(--blue); color: #fff; }

/* Video lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .85); display: none; place-items: center; padding: 20px; }
.lightbox.is-open { display: grid; }
.lightbox-inner { width: min(1100px, 100%); aspect-ratio: 16 / 9; position: relative; }
.lightbox iframe { width: 100%; height: 100%; border: 0; border-radius: 12px; }
.lightbox-close { position: absolute; top: -48px; right: 0; background: none; border: 0; color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer; padding: 4px 10px; }

/* ---------- Footer ---------- */
.site-footer { padding-top: 60px; color: var(--navy); }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding-bottom: 50px; }
.footer-grid img { max-width: 200px; margin-bottom: 14px; }
.footer-grid h4 { color: var(--navy); }
.footer-grid address { font-style: normal; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.copyright { background: var(--blue); color: #fff; text-align: center; padding: 12px var(--gutter); font-size: .9rem; }
.copyright p { margin: 0; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Article pages ---------- */
.article { max-width: 820px; margin: 0 auto; padding: 30px var(--gutter) 80px; }
.article-meta { color: var(--muted); font-size: .9rem; margin-bottom: 1.5em; }
.article h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); hyphens: auto; overflow-wrap: break-word; }
.article h4, .article h5 { margin-top: 1.6em; font-weight: 600; }
.article img, .article figure { margin: 1.8em 0; border-radius: 14px; }
.article figure { margin-left: 0; margin-right: 0; }
.article ul { padding-left: 1.3em; }
.article li { margin-bottom: .6em; }
.article .lead { font-size: 1.15rem; }
.article .video-frame { margin: 1.8em 0; }
.article-cta { margin-top: 3em; padding: 30px; text-align: center; }
.back-link { display: inline-block; margin-bottom: 1.5em; text-decoration: none; font-weight: 500; color: var(--muted); }
.back-link:hover { color: var(--ink); }
.team-grid { grid-template-columns: repeat(2, minmax(0, 270px)); justify-content: center; }
@media (max-width: 690px) { .team-grid { grid-template-columns: minmax(0, 320px); } }

/* Featured event on the homepage */
.event-feature { padding: 20px; align-items: center; }
.event-image img { display: block; width: 100%; height: auto; border-radius: 15px; }
.event-feature .eyebrow { color: var(--blue-dark); font-weight: 600; font-size: .9rem; margin-bottom: .6em; }
.event-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: .6em; }
.event-actions .btn-light { margin-top: 0; font-size: 1rem; padding: .7em 1.4em; }
@media (max-width: 690px) { .event-feature .feature-text { padding: 10px 6px 6px; } }
