/* ==========================================================================
   Emstell Technology Consulting — main stylesheet
   Primary colours are taken from the logo gradient (deep blue → sky blue).
   ========================================================================== */

:root {
  --brand-900: #0d2a63;
  --brand-700: #1a4fa3;
  --brand-600: #1f63bd;
  --brand-500: #2580d3;
  --brand-400: #2e97e0;
  --brand-300: #3fb0ea;
  --brand-50:  #eef6fd;
  --grad: linear-gradient(135deg, #1a4fa3 0%, #2580d3 50%, #3fb0ea 100%);
  --grad-soft: linear-gradient(135deg, rgba(26,79,163,.08), rgba(63,176,234,.10));

  --ink: #0b1526;
  --ink-2: #26324a;
  --muted: #5d6779;
  --line: #e4e9f2;
  --bg: #ffffff;
  --soft: #f5f8fd;
  --whatsapp: #25d366;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 8px rgba(13, 42, 99, .06);
  --shadow: 0 18px 50px -18px rgba(13, 42, 99, .25);
  --container: 1240px;
  --gutter: 24px;
  --header-h: 78px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--brand-300); outline-offset: 3px; border-radius: 6px; }
body.no-scroll { overflow: hidden; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section--soft { background: var(--soft); }
.section--white { background: #fff; }
.text-grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Section headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-600);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--grad); border-radius: 2px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 5vw, 56px); flex-wrap: wrap; }
.section-head h2 { font-size: clamp(32px, 4.6vw, 56px); margin-top: 14px; max-width: 760px; }
.section-head p { color: var(--muted); max-width: 460px; font-size: 17px; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head--center h2 { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 24px; min-height: 54px;
  border-radius: 999px; font-weight: 700; font-size: 15px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn .btn-icon {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
  transition: transform .3s ease;
}
.btn .btn-icon svg { width: 18px; height: 18px; }
.btn:hover .btn-icon { transform: rotate(-45deg); }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 12px 30px -12px rgba(37,128,211,.7); }
.btn--primary .btn-icon { background: #fff; color: var(--brand-700); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -12px rgba(37,128,211,.75); }
.btn--outline { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn--outline .btn-icon { background: var(--grad); color: #fff; }
.btn--outline:hover { border-color: var(--brand-400); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--brand-700); }
.btn--light .btn-icon { background: var(--grad); color: #fff; }
.btn--light:hover { transform: translateY(-2px); }
.btn--ghost-light { color: #fff; border: 1.5px solid rgba(255,255,255,.45); }
.btn--ghost-light .btn-icon { background: rgba(255,255,255,.18); }
.btn--ghost-light:hover { background: rgba(255,255,255,.1); }
.btn--block { width: 100%; justify-content: space-between; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.nav__logo img { height: 46px; width: auto; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a {
  padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--ink-2);
  transition: background .2s ease, color .2s ease;
}
.nav__links a:hover { background: var(--soft); color: var(--brand-700); }
.nav__links a[aria-current="page"] { color: var(--brand-700); background: var(--brand-50); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
  transition: transform .2s ease, box-shadow .2s ease;
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover { transform: translateY(-2px); }
.icon-btn--wa { background: var(--whatsapp); color: #fff; box-shadow: 0 8px 20px -8px rgba(37,211,102,.8); }
.icon-btn--call { background: var(--grad); color: #fff; box-shadow: 0 8px 20px -8px rgba(37,128,211,.8); }
.nav__toggle {
  display: none; width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--line); place-items: center; background: #fff;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative;
  transition: transform .3s ease, background .3s ease;
}
.nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; }
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: #fff; padding: 24px var(--gutter) 32px;
  display: flex; flex-direction: column; gap: 6px;
  transform: translateY(-12px); opacity: 0; visibility: hidden;
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
  overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu a.mm-link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 4px; border-bottom: 1px solid var(--line);
  font-size: 24px; font-weight: 700;
}
.mobile-menu a.mm-link small { font-size: 13px; color: var(--muted); font-weight: 600; }
.mobile-menu .mm-contact { margin-top: auto; padding-top: 28px; display: grid; gap: 12px; }

@media (max-width: 1080px) {
  .nav__links a { padding: 10px 12px; }
}
@media (max-width: 991px) {
  :root { --header-h: 70px; }
  .nav__links { display: none; }
  .nav__actions { margin-left: auto; gap: 8px; }
  .nav__toggle { display: grid; }
  .nav__logo img { height: 40px; }
}
@media (max-width: 400px) {
  :root { --gutter: 16px; }
  .nav__logo img { height: 34px; }
  .icon-btn, .nav__toggle { width: 42px; height: 42px; }
  .icon-btn svg { width: 20px; height: 20px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(56px, 8vw, 110px) 0 clamp(56px, 7vw, 96px);
  background:
    radial-gradient(60% 60% at 90% 10%, rgba(63,176,234,.16), transparent 60%),
    radial-gradient(50% 50% at 0% 100%, rgba(26,79,163,.10), transparent 60%),
    #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to right, rgba(13,42,99,.06) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  mask-image: linear-gradient(to bottom, #000 40%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 8px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 14px; font-weight: 600; color: var(--ink-2);
}
.hero__badge b { background: var(--grad); color: #fff; padding: 3px 10px; border-radius: 999px; font-size: 12px; }
.hero h1 {
  font-size: clamp(40px, 5.6vw, 78px);
  line-height: 1.02; letter-spacing: -0.035em;
  margin: 26px 0 26px;
}
.hero h1 .line { display: block; }
.hero__lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 560px; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.hero__visual { position: relative; }
.hero__card {
  border-radius: var(--radius-lg); overflow: hidden; background: #fff;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  transform: rotate(2deg);
}
.hero__card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.hero__float {
  position: absolute; background: #fff; border-radius: var(--radius); padding: 16px 20px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px;
  animation: floaty 6s ease-in-out infinite;
}
.hero__float strong { font-size: 26px; line-height: 1; display: block; }
.hero__float span { font-size: 13px; color: var(--muted); font-weight: 600; }
.hero__float .dot { width: 44px; height: 44px; border-radius: 14px; background: var(--grad); display: grid; place-items: center; color: #fff; }
.hero__float .dot svg { width: 22px; height: 22px; }
.hero__float--a { left: -36px; bottom: -28px; }
.hero__float--b { right: -18px; top: -26px; animation-delay: -3s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 991px) {
  .hero__inner { grid-template-columns: 1fr; gap: 64px; }
  .hero__visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .hero__float--a { left: 8px; }
  .hero__float--b { right: 8px; }
}
@media (max-width: 560px) {
  .hero__ctas .btn { width: 100%; justify-content: space-between; }
  .hero__float { padding: 12px 14px; gap: 10px; }
  .hero__float strong { font-size: 20px; }
  .hero__float .dot { width: 36px; height: 36px; border-radius: 11px; }
}

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); background: #fff; padding: 22px 0; overflow: hidden; }
.marquee__label { text-align: center; font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-size: clamp(20px, 2.4vw, 28px); font-weight: 800; color: #b5c0d3; padding: 0 28px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 28px;
}
.marquee__track span::after { content: "✦"; font-size: 14px; color: var(--brand-300); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Projects carousel (home) ---------- */
.carousel-nav { display: flex; gap: 10px; align-items: center; }
.circle-btn {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--brand-400); color: var(--brand-600); background: #fff;
  transition: background .2s ease, color .2s ease, opacity .2s;
}
.circle-btn svg { width: 20px; height: 20px; }
.circle-btn:hover:not(:disabled) { background: var(--grad); color: #fff; border-color: transparent; }
.circle-btn:disabled { opacity: .35; cursor: default; }

.projects-track {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: min(78vw, 520px);
  gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))) 24px;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.projects-track::-webkit-scrollbar { display: none; }
.project-card {
  scroll-snap-align: start;
  background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .35s ease, box-shadow .35s ease;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.project-card__media { background: var(--soft); aspect-ratio: 16 / 10; overflow: hidden; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.project-card:hover .project-card__media img { transform: scale(1.05); }
.project-card__body { padding: 22px 24px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.project-card__body h3 { font-size: 22px; }
.tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em;
  color: var(--brand-700); background: var(--brand-50); padding: 5px 12px; border-radius: 999px; margin-top: 8px;
}
.arrow-chip {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: var(--soft); color: var(--brand-700); transition: background .25s, color .25s, transform .3s;
}
.arrow-chip svg { width: 18px; height: 18px; }
.project-card:hover .arrow-chip { background: var(--grad); color: #fff; transform: rotate(-45deg); }

.project-card--more {
  background: var(--grad); color: #fff; border: 0; justify-content: space-between; padding: 36px;
  position: relative; isolation: isolate;
}
.project-card--more::before {
  content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%;
  border: 60px solid rgba(255,255,255,.08); right: -140px; top: -140px; z-index: -1;
}
.project-card--more strong { font-size: clamp(56px, 6vw, 84px); line-height: 1; letter-spacing: -.04em; display: block; }
.project-card--more p { font-size: 20px; font-weight: 700; margin-top: 6px; }
.project-card--more .btn { align-self: flex-start; margin-top: 32px; }
.projects-footer { display: flex; justify-content: center; margin-top: 28px; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.service {
  grid-column: span 2; position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; display: flex; flex-direction: column; gap: 14px; min-height: 320px;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.service:nth-child(4), .service:nth-child(5) { grid-column: span 3; }
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service__num { position: absolute; right: 28px; top: 24px; font-weight: 800; font-size: 15px; color: #c3ccdb; }
.service__icon {
  width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center;
  background: var(--grad-soft); color: var(--brand-600); margin-bottom: 8px;
  transition: background .35s ease, color .35s ease;
}
.service__icon svg { width: 30px; height: 30px; }
.service:hover .service__icon { background: var(--grad); color: #fff; }
.service h3 { font-size: 24px; }
.service p { color: var(--muted); }
.service ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; }
.service li { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--soft); color: var(--ink-2); }
.service--feature { background: var(--grad); color: #fff; border: 0; }
.service--feature p { color: rgba(255,255,255,.85); }
.service--feature .service__icon { background: rgba(255,255,255,.18); color: #fff; }
.service--feature .service__num { color: rgba(255,255,255,.55); }
.service--feature li { background: rgba(255,255,255,.16); color: #fff; }

@media (max-width: 991px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service, .service:nth-child(4), .service:nth-child(5) { grid-column: span 1; }
  .service:last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .service:last-child { grid-column: auto; }
  .service { min-height: 0; padding: 26px; }
}

/* ---------- About (white) ---------- */
.about { background: #fff; }
.about__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.about__media { position: relative; }
.about__media .frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.about__media .frame img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.about__stamp {
  position: absolute; right: -20px; bottom: -24px;
  width: 150px; height: 150px; border-radius: 50%; background: var(--grad); color: #fff;
  display: grid; place-items: center; text-align: center; box-shadow: var(--shadow);
  border: 6px solid #fff;
}
.about__stamp strong { font-size: 40px; line-height: 1; display: block; }
.about__stamp span { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.about h2 { font-size: clamp(32px, 4.4vw, 52px); margin: 14px 0 22px; }
.about__text p { color: var(--muted); font-size: 17px; margin-bottom: 16px; }
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin: 28px 0 34px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.checklist li svg { width: 24px; height: 24px; flex-shrink: 0; color: var(--brand-500); }
@media (max-width: 991px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 520px; margin: 0 auto 24px; width: 100%; }
  .about__stamp { right: 8px; }
}
@media (max-width: 520px) {
  .checklist { grid-template-columns: 1fr; }
  .about__stamp { width: 120px; height: 120px; }
  .about__stamp strong { font-size: 30px; }
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 36px 24px 8px 0; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line); }
.stat strong { display: block; font-size: clamp(44px, 5.4vw, 72px); line-height: 1; letter-spacing: -.04em; }
.stat span { display: block; color: var(--muted); font-weight: 600; margin-top: 10px; }
@media (max-width: 860px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Why / process ---------- */
.why { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.why__panel {
  position: sticky; top: calc(var(--header-h) + 24px);
  background: var(--brand-900); color: #fff; border-radius: var(--radius-lg); padding: clamp(32px, 4vw, 48px);
  overflow: hidden; isolation: isolate;
}
.why__panel::before, .why__panel::after { content: ""; position: absolute; border-radius: 50%; z-index: -1; filter: blur(2px); }
.why__panel::before { width: 360px; height: 360px; background: radial-gradient(circle, rgba(63,176,234,.55), transparent 70%); right: -120px; top: -120px; }
.why__panel::after { width: 260px; height: 260px; background: radial-gradient(circle, rgba(37,128,211,.6), transparent 70%); left: -80px; bottom: -100px; }
.why__panel .eyebrow { color: var(--brand-300); }
.why__panel h2 { font-size: clamp(30px, 3.8vw, 46px); margin: 16px 0 18px; }
.why__panel p { color: rgba(255,255,255,.75); }
.why__panel .btn { margin-top: 30px; }
.steps { display: grid; gap: 16px; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start;
  padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  transition: border-color .3s, box-shadow .3s;
}
.step:hover { border-color: var(--brand-300); box-shadow: var(--shadow-sm); }
.step__num {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  font-weight: 800; font-size: 18px; color: #fff; background: var(--grad);
}
.step h3 { font-size: 21px; margin-bottom: 6px; }
.step p { color: var(--muted); }
@media (max-width: 991px) {
  .why { grid-template-columns: 1fr; }
  .why__panel { position: relative; top: 0; }
}
@media (max-width: 480px) {
  .step { grid-template-columns: 1fr; gap: 14px; padding: 22px; }
}

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq__head { position: sticky; top: calc(var(--header-h) + 24px); }
.faq__head h2 { font-size: clamp(32px, 4.2vw, 50px); margin: 14px 0 18px; }
.faq__head p { color: var(--muted); font-size: 17px; }
.faq__head a { color: var(--brand-600); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.faq__list { display: grid; gap: 12px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .25s, box-shadow .25s; }
.faq__item[open] { border-color: var(--brand-300); box-shadow: var(--shadow-sm); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 24px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.faq__icon { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; background: var(--soft); position: relative; transition: background .25s, transform .3s; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: var(--brand-700); border-radius: 2px; transform: translate(-50%, -50%); transition: transform .3s, background .25s; }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__icon { background: var(--grad); }
.faq__item[open] .faq__icon::before, .faq__item[open] .faq__icon::after { background: #fff; }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__item p { padding: 0 24px 24px; color: var(--muted); }
@media (max-width: 991px) { .faq { grid-template-columns: 1fr; } .faq__head { position: static; } }
@media (max-width: 480px) { .faq__item summary { padding: 18px; } .faq__item p { padding: 0 18px 20px; } .faq__item summary h3 { font-size: 16px; } }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--grad); color: #fff; border-radius: var(--radius-lg);
  padding: clamp(44px, 7vw, 88px) clamp(24px, 6vw, 80px);
  text-align: center;
}
.cta-band::before, .cta-band::after {
  content: ""; position: absolute; border-radius: 50%; border: 70px solid rgba(255,255,255,.07); z-index: -1;
}
.cta-band::before { width: 480px; height: 480px; left: -200px; top: -220px; }
.cta-band::after { width: 380px; height: 380px; right: -140px; bottom: -200px; }
.cta-band h2 { font-size: clamp(34px, 5.4vw, 68px); max-width: 860px; margin: 0 auto; }
.cta-band p { color: rgba(255,255,255,.85); font-size: 18px; max-width: 560px; margin: 18px auto 0; }
.cta-band__btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
@media (max-width: 560px) {
  .cta-band__btns .btn { width: 100%; justify-content: space-between; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 80px 0 28px; margin-top: clamp(72px, 9vw, 128px); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer__brand img { height: 48px; width: auto; background: #fff; padding: 8px 12px; border-radius: 12px; }
.footer__brand p { margin-top: 18px; max-width: 320px; }
.site-footer .footer__title { color: #fff; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.footer__links li + li { margin-top: 10px; }
.footer__links a { transition: color .2s; }
.footer__links a:hover { color: var(--brand-300); }
.footer__contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer__contact li + li { margin-top: 14px; }
.footer__contact svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; color: var(--brand-300); }
.footer__contact a:hover { color: #fff; }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 56px; padding-top: 24px; font-size: 14px;
}
@media (max-width: 991px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__top { grid-template-columns: 1fr; } .site-footer { padding-top: 56px; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 6vw, 72px);
  background:
    radial-gradient(55% 70% at 100% 0%, rgba(63,176,234,.16), transparent 60%),
    radial-gradient(45% 60% at 0% 100%, rgba(26,79,163,.09), transparent 60%), #fff;
}
.page-hero h1 { font-size: clamp(42px, 7vw, 84px); letter-spacing: -0.035em; margin: 16px 0 18px; }
.page-hero p { color: var(--muted); font-size: 18px; max-width: 620px; }
.breadcrumb { display: flex; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.breadcrumb a:hover { color: var(--brand-600); }

/* ---------- Portfolio page ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.filter-btn {
  padding: 11px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
  font-weight: 700; font-size: 14px; color: var(--ink-2); transition: all .2s;
}
.filter-btn span { color: var(--muted); font-weight: 600; margin-left: 4px; }
.filter-btn:hover { border-color: var(--brand-400); }
.filter-btn.is-active { background: var(--grad); color: #fff; border-color: transparent; }
.filter-btn.is-active span { color: rgba(255,255,255,.8); }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.portfolio-grid .project-card { text-align: left; width: 100%; animation: fadeUp .5s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.portfolio-grid .project-card__body h3 { font-size: 19px; }
@media (max-width: 991px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .portfolio-grid { grid-template-columns: 1fr; gap: 18px; } }
.load-more-wrap { display: flex; justify-content: center; margin-top: 40px; }

/* Modal */
.modal {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px;
  background: rgba(11, 21, 38, .62); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__dialog {
  background: #fff; border-radius: var(--radius-lg); width: min(980px, 100%); max-height: calc(100dvh - 40px);
  overflow-y: auto; position: relative; transform: translateY(20px) scale(.98); transition: transform .3s ease;
}
.modal.is-open .modal__dialog { transform: none; }
.modal__close {
  position: absolute; right: 16px; top: 16px; width: 44px; height: 44px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-sm); display: grid; place-items: center; z-index: 2;
}
.modal__close svg { width: 20px; height: 20px; }
.modal__media { background: var(--soft); }
.modal__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.modal__body { padding: clamp(24px, 4vw, 40px); }
.modal__body h3 { font-size: clamp(26px, 3.4vw, 38px); margin: 4px 0 16px; }
.modal__body p { color: var(--muted); }
.store-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.store-links img { height: 46px; width: auto; }
.store-links .btn { min-height: 46px; padding: 5px 5px 5px 18px; }
.store-links .btn .btn-icon { width: 36px; height: 36px; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact-cards { display: grid; gap: 16px; }
.contact-card {
  display: flex; gap: 18px; align-items: center; padding: 22px 24px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .25s, box-shadow .25s, transform .25s;
}
a.contact-card:hover { border-color: var(--brand-300); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.contact-card__icon {
  width: 54px; height: 54px; border-radius: 16px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--grad); color: #fff;
}
.contact-card__icon svg { width: 24px; height: 24px; }
.contact-card__icon--wa { background: var(--whatsapp); }
.contact-card small { display: block; color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.contact-card strong { font-size: 18px; display: block; word-break: break-word; }
.contact-card .hours { font-size: 15px; color: var(--ink-2); line-height: 1.55; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-sm); }
.form-card h2 { font-size: clamp(28px, 3.2vw, 38px); margin-bottom: 8px; }
.form-card > p { color: var(--muted); margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 700; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--soft);
  transition: border-color .2s, background .2s, box-shadow .2s; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-400); background: #fff; box-shadow: 0 0 0 4px rgba(63,176,234,.15); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.field .chip input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; padding: 0; margin: 0; border: 0; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line);
  font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s; background: #fff;
}
.chip input:checked + span { background: var(--grad); color: #fff; border-color: transparent; }
.chip input:focus-visible + span { outline: 3px solid var(--brand-300); outline-offset: 2px; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.form-status { margin-top: 14px; font-weight: 600; color: var(--brand-700); min-height: 1.4em; }
.map { margin-top: clamp(40px, 6vw, 72px); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.map iframe { display: block; width: 100%; height: clamp(320px, 45vw, 460px); border: 0; }
@media (max-width: 991px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-actions .btn { width: 100%; justify-content: space-between; }
}

/* ---------- Floating WhatsApp (mobile helper) ---------- */
.fab-wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: var(--whatsapp); color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37,211,102,.8);
  transition: transform .2s;
}
.fab-wa:hover { transform: scale(1.06); }
.fab-wa svg { width: 30px; height: 30px; }

/* ---------- Reveal on scroll ---------- */
/* Content is only hidden for animation when JS is running, so crawlers and no-JS users always see it. */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
/* Hero text animates with CSS only (never waits on JS, keeps LCP fast). */
.hero__title, .hero__lead { animation: heroIn .7s ease both; }
.hero__lead { animation-delay: .12s; }
@keyframes heroIn { from { opacity: .001; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   v1.4 additions — social links, offices, search, careers, 404, quick links
   ========================================================================== */
.footer__social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.footer__social a { display: inline-block; padding: 6px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; font-size: 13px; transition: border-color .2s, color .2s; }
.footer__social a:hover { color: #fff; border-color: var(--brand-300); }

.offices-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.office-card { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.office-card__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--grad); color: #fff; margin-bottom: 16px; }
.office-card__icon svg { width: 22px; height: 22px; }
.office-card h3 { font-size: 19px; margin: 0 0 8px; }
.office-card h3 small { display: block; font-size: 13px; font-weight: 600; color: var(--brand-600); margin-top: 2px; }
.office-card p { margin: 0; color: var(--muted); font-size: 15px; }
.offices-note { margin-top: 24px; color: var(--muted); }
.offices-note a { color: var(--brand-700); font-weight: 600; }
@media (max-width: 991px) { .offices-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .offices-grid { grid-template-columns: 1fr; } }

.portfolio-tools { margin-bottom: 18px; }
.search-box input { width: 100%; max-width: 520px; font: inherit; font-size: 16px; padding: 14px 18px 14px 46px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6779' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 16px center / 20px no-repeat; }
.search-box input:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(37,128,211,.12); }
.empty-state { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; }

/* Careers */
.jobs { display: grid; gap: 20px; }
.job { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow-sm); }
.job__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.job h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 0 0 10px; }
.job__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.job__meta li { font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--brand-50); color: var(--brand-700); }
.job h3 { font-size: 16px; margin: 22px 0 8px; }
.job ul.job__list { margin: 0; padding-left: 20px; color: var(--ink-2); }
.job ul.job__list li + li { margin-top: 6px; }
.job p { color: var(--ink-2); }
.apply-box { background: var(--grad); color: #fff; border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px); margin-top: 40px; }
.apply-box h2 { color: #fff; margin-top: 0; }
.apply-box code { background: rgba(255,255,255,.16); padding: 3px 8px; border-radius: 8px; font-size: .95em; }
.apply-box a:not(.btn) { color: #fff; font-weight: 700; text-decoration: underline; }

/* 404 */
.notfound { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 80px 0 40px; }
.notfound__code { font-size: clamp(96px, 18vw, 180px); font-weight: 800; line-height: 1; letter-spacing: -0.05em; margin: 0; }
.notfound h1 { font-size: clamp(28px, 4vw, 44px); margin: 12px 0; }
.notfound p { color: var(--muted); max-width: 520px; margin: 0 auto 28px; }
.notfound__btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.notfound__links { margin-top: 28px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; font-weight: 600; }
.notfound__links a { color: var(--brand-700); }

/* Quick links page */
.ql-hero { padding: 36px 0 12px; text-align: center; }
.ql-hero h1 { font-size: clamp(32px, 5vw, 52px); margin: 10px 0; letter-spacing: -0.03em; }
.ql-hero p { color: var(--muted); max-width: 640px; margin: 0 auto; }
.ql-tools { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 28px 0 32px; }
.ql-tools .search-box { width: 100%; display: flex; justify-content: center; }
.ql-tools .filters { margin: 0; justify-content: center; }
.ql-footer { text-align: center; padding: 40px 0 32px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); margin-top: 64px; }
.ql-footer a { color: var(--brand-700); font-weight: 600; }
