/*
---------------------------------------------
E7creatives — site theme (loaded last, overrides legacy styles)
---------------------------------------------
*/

:root {
  --navy-950: #061433;
  --navy-900: #0b1f4d;
  --navy-800: #13306e;
  --navy-100: #e8eefb;
  --accent: #ff5a1f;
  --accent-600: #e84a10;
  --ink: #0f172a;
  --body: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f6f8fc;
  --white: #fff;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
  --shadow-lg: 0 30px 60px -20px rgba(11, 31, 77, .35);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --header-h: 76px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

html, body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--white);
}

body.no-scroll { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--ink);
  letter-spacing: -0.02em;
}

p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
}

::selection { background: var(--accent); color: #fff !important; }

/* ---------- Buttons ---------- */

.btn-brand,
.btn-ghost,
.btn-plain {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}

.btn-brand {
  background: var(--accent);
  color: #fff !important;
  box-shadow: 0 8px 20px -8px rgba(255, 90, 31, .6);
}
.btn-brand:hover { background: var(--accent-600); transform: translateY(-1px); }
.btn-brand i { font-size: .85em; }

.btn-ghost {
  color: #fff !important;
  border-color: rgba(255, 255, 255, .35);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }

.btn-plain {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-plain:hover { border-color: var(--ink); }

.btn-lg-brand { padding: 1rem 1.7rem; font-size: 16px; }
.btn-block { width: 100%; padding: 1rem; font-size: 16px; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px -12px rgba(15, 23, 42, .2);
}

.sh-inner {
  max-width: 1320px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.sh-brand { flex-shrink: 0; display: block; }
.sh-brand img {
  width: auto;
  height: 42px;
  border-radius: 10px;
  display: block;
}

.sh-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin: 0 auto;
}

.sh-item { position: static; }

.sh-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem .9rem;
  border-radius: 10px;
  background: none;
  border: 0;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink) !important;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.sh-link:hover,
.sh-item:hover > .sh-link,
.sh-item.open > .sh-link { background: var(--soft); color: var(--navy-800) !important; }

.sh-chev { font-size: 10px; transition: transform .2s ease; }

.sh-mega {
  position: absolute;
  top: calc(100% - 6px);
  left: 50%;
  width: min(1040px, calc(100vw - 48px));
  transform: translate(-50%, 8px);
  display: grid;
  grid-template-columns: 260px repeat(3, 1fr);
  gap: 2rem;
  padding: 1.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.sh-mega::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -24px;
  height: 24px;
}

.sh-mega-feature {
  background: var(--soft);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.sh-mega-feature img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #fff;
  border-radius: 12px;
  margin-bottom: .6rem;
}
.sh-mega-feature strong { font-family: var(--font-head); color: var(--ink); font-size: 16px; }
.sh-mega-feature span { font-size: 14px; color: var(--muted); line-height: 1.5; }

.sh-mega-col { display: flex; flex-direction: column; gap: .15rem; }
.sh-mega-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .5rem;
}
.sh-mega-col a {
  padding: .45rem .6rem;
  margin-left: -.6rem;
  border-radius: 8px;
  font-size: 15px;
  color: var(--ink);
  transition: background-color .15s ease, color .15s ease;
}
.sh-mega-col a:hover { background: var(--soft); color: var(--accent-600); }

@media (min-width: 992px) {
  .sh-item:hover > .sh-mega,
  .sh-item:focus-within > .sh-mega {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }
  .sh-item:hover .sh-chev { transform: rotate(180deg); }
  /* the mega panel only covers two-thirds when there are two link columns */
  .sh-item:nth-child(2) .sh-mega { grid-template-columns: 260px repeat(2, 1fr); width: min(820px, calc(100vw - 48px)); }
}

.sh-cta { margin-left: 0; }
.sh-cta-mobile { display: none; }

.sh-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.sh-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.menu-open .sh-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .sh-toggle span:nth-child(2) { opacity: 0; }
.menu-open .sh-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1199.98px) {
  .sh-inner { gap: 1rem; }
  .sh-link { padding: .55rem .65rem; font-size: 14.5px; }
}

@media (max-width: 991.98px) {
  :root { --header-h: 68px; }
  /* backdrop-filter would make the header the containing block of the fixed menu panel */
  .site-header { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .sh-brand img { height: 36px; }
  .sh-cta { display: none; }
  .sh-toggle { display: inline-flex; }

  .sh-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 1rem 16px 2rem;
    flex-direction: column;
    align-items: stretch;
    gap: .25rem;
    background: #fff;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .menu-open .sh-nav { opacity: 1; visibility: visible; transform: none; }

  .sh-link {
    width: 100%;
    justify-content: space-between;
    padding: 1rem .75rem;
    font-size: 17px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .sh-link:hover, .sh-item.open > .sh-link { background: none; }
  .sh-item.open .sh-chev { transform: rotate(180deg); }

  .sh-mega {
    position: static;
    width: auto;
    transform: none;
    display: none;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1rem .75rem 1.25rem;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
  }
  .sh-item.open > .sh-mega { display: grid; }
  .sh-mega::before { display: none; }
  .sh-mega-feature { display: none; }

  .sh-cta-mobile { display: inline-flex; margin-top: 1.5rem; padding: 1rem; }
}

/* ---------- Shared section styles ---------- */

.section { padding: 112px 0; }
.section-soft { background: var(--soft); }

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2,
.section-title {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  margin: .75rem 0 1rem;
}
.section-head p { font-size: 18px; color: var(--muted); margin: 0; }

.eyebrow {
  display: inline-block;
  padding: .4rem .85rem;
  border-radius: 999px;
  background: var(--navy-100);
  color: var(--navy-800);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.eyebrow-light { background: rgba(255, 255, 255, .1); color: #c9d7ff; }

.icon-tile {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--navy-900);
  color: #fff;
  font-size: 22px;
}
.icon-tile-sm { width: 46px; height: 46px; border-radius: 13px; font-size: 18px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 88px) 0 112px;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(59, 110, 255, .35), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(255, 90, 31, .18), transparent 60%),
    linear-gradient(160deg, var(--navy-950), var(--navy-900) 60%, var(--navy-800));
  color: #fff;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%);
  pointer-events: none;
}
.hero .container-xl { position: relative; z-index: 1; }

.hero-title {
  font-size: clamp(40px, 5.6vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  color: #fff;
  margin: 1.25rem 0 1.5rem;
}
.hero-accent {
  display: inline-block;
  background: linear-gradient(90deg, #ff8a4c, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: opacity .35s ease;
}

.hero-lead {
  font-size: 18px;
  line-height: 1.75;
  color: #c3cde3;
  max-width: 560px;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin-top: 2.25rem;
}
.hero-points li { font-size: 15px; color: #c3cde3; }
.hero-points i { color: #6ee7b7; margin-right: .35rem; }

.hero-visual { position: relative; padding: 24px 0; }
.hero-visual > img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, .15);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6);
}

.hero-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .85rem 1.1rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}
.hero-badge i {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--navy-100);
  color: var(--navy-800);
  font-size: 17px;
}
.hero-badge strong { display: block; font-size: 14px; font-family: var(--font-head); }
.hero-badge span { display: block; font-size: 12.5px; color: var(--muted); }
.hero-badge-top { top: 0; left: -28px; }
.hero-badge-bottom { bottom: 0; right: -20px; }
.hero-badge-bottom i { background: #dcfce7; color: #15803d; }

@media (max-width: 1199.98px) {
  .hero-badge-top { left: 12px; }
  .hero-badge-bottom { right: 12px; }
}

/* ---------- Clients ---------- */

.clients-strip { padding: 44px 0; border-bottom: 1px solid var(--line); }
.clients-label {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.clients-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem 4rem;
}
.clients-logos img {
  width: auto;
  height: 64px;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .8;
  mix-blend-mode: multiply;
  transition: filter .25s ease, opacity .25s ease;
}
.clients-logos img:hover { filter: none; opacity: 1; }

/* ---------- Solutions ---------- */

.solution-card {
  position: relative;
  height: 100%;
  padding: 2.25rem 2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.solution-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.solution-card h3 { font-size: 22px; font-weight: 700; margin: 1.5rem 0 .5rem; }
.solution-card > p { color: var(--muted); margin-bottom: 1.5rem; }

.solution-card.is-featured {
  background: var(--navy-900);
  border-color: var(--navy-900);
  box-shadow: var(--shadow-lg);
}
.solution-card.is-featured h3 { color: #fff; }
.solution-card.is-featured > p,
.solution-card.is-featured .check-list li { color: #c3cde3; }
.solution-card.is-featured .icon-tile { background: var(--accent); }
.solution-card.is-featured .check-list li::before { background: rgba(255, 255, 255, .12); color: #fff; }

.solution-tag {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.check-list { display: grid; gap: .7rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.solution-card.is-featured .check-list { border-top-color: rgba(255, 255, 255, .12); }
.check-list li {
  position: relative;
  padding-left: 1.85rem;
  font-size: 15px;
  color: var(--ink);
}
.check-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy-100);
  color: var(--navy-800);
  font-size: 10px;
}

/* ---------- What we do ---------- */

.media-card {
  height: 100%;
  padding: 1rem 1rem 1.75rem;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.media-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.media-card-img {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #f8fafc, #eef2f9);
  overflow: hidden;
  display: grid;
  place-items: center;
  margin-bottom: 1.5rem;
}
.media-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.media-card:hover .media-card-img img { transform: scale(1.04); }
.media-card h3 { font-size: 19px; font-weight: 700; margin: 0 .75rem .6rem; }
.media-card p { font-size: 15px; margin: 0 .75rem; color: var(--muted); }

/* ---------- Services & features ---------- */

.framed-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--soft);
  box-shadow: var(--shadow);
}
.framed-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
}

.feature h3 { font-size: 18px; font-weight: 700; margin: 1rem 0 .5rem; }
.feature p { font-size: 15px; color: var(--muted); margin: 0; }

/* ---------- Capabilities (dark) ---------- */

.section-dark {
  background: linear-gradient(180deg, var(--navy-950), var(--navy-900));
  color: #fff;
}
.section-dark .section-head h2 { color: #fff; }
.section-dark .section-head p { color: #a9b6d3; }

.cap-card {
  height: 100%;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  transition: background-color .25s ease, border-color .25s ease;
}
.cap-card:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); }
.cap-card > i {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(255, 90, 31, .15);
  color: #ff8a4c;
  font-size: 18px;
}
.cap-card h3 { color: #fff; font-size: 19px; font-weight: 700; margin: 1.25rem 0 1rem; }
.cap-card li {
  position: relative;
  padding: .35rem 0 .35rem 1.1rem;
  font-size: 15px;
  color: #b9c4dd;
}
.cap-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .95rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6d86c4;
}

/* ---------- Work ---------- */

.work-card { margin: 0; }
.work-card-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--soft);
  box-shadow: var(--shadow);
}
.work-card-img img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .6s ease;
}
.work-card:hover .work-card-img img { transform: scale(1.03); }
.work-card figcaption { padding: 1.5rem .25rem 0; }
.work-tag {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent-600);
}
.work-card h3 { font-size: 22px; font-weight: 700; margin: .4rem 0 .4rem; }
.work-card p { color: var(--muted); margin: 0; }

/* ---------- Browser-framed project previews ---------- */

.browser-frame {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  transition: transform .3s ease, box-shadow .3s ease;
}
.browser-frame:hover { transform: translateY(-4px); }
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #f1f4f9;
  border-bottom: 1px solid var(--line);
}
.browser-bar > span { width: 10px; height: 10px; border-radius: 50%; background: #d5dbe5; }
.browser-bar > span:nth-child(1) { background: #ff6159; }
.browser-bar > span:nth-child(2) { background: #ffbd2e; }
.browser-bar > span:nth-child(3) { background: #28c941; }
.browser-url {
  flex: 1;
  max-width: 320px;
  margin: 0 auto;
  padding: 4px 12px;
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.browser-url i { font-size: 10px; color: #16a34a; margin-right: 4px; }
.browser-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}

.project-row {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 4rem;
  align-items: center;
}
.project-row + .project-row { margin-top: 120px; }
.project-row.is-reversed .browser-frame { order: 2; }
.project-info h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; margin: .5rem 0 1rem; }
.project-info > p { color: var(--muted); }
.project-features { margin: 1.5rem 0; }
.project-stack { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.project-stack span {
  padding: .3rem .75rem;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

@media (max-width: 991.98px) {
  .project-row { grid-template-columns: 1fr; gap: 2rem; }
  .project-row.is-reversed .browser-frame { order: 0; }
  .project-row + .project-row { margin-top: 80px; }
}

.demo-card { height: 100%; display: flex; flex-direction: column; }
.demo-card .browser-frame { box-shadow: var(--shadow); }
.demo-card figcaption { padding: 1.25rem .25rem 0; }
.demo-card h3 { font-size: 20px; font-weight: 700; margin: .4rem 0; }
.demo-card p { color: var(--muted); font-size: 15px; margin: 0; }
.work-more { text-align: center; margin-top: 3rem; }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink) !important;
  transition: border-color .2s ease, background-color .2s ease;
}
.btn-outline:hover { border-color: var(--ink); background: #fff; }

/* ---------- Process ---------- */

.process-step {
  position: relative;
  height: 100%;
  padding: 2.25rem 2rem;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.process-num {
  display: block;
  font-family: var(--font-head);
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--navy-800);
  margin-bottom: 1.25rem;
}
.process-img {
  display: block;
  width: calc(100% + 4rem);
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin: -2.25rem -2rem 1.75rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.process-step h3 { font-size: 20px; font-weight: 700; margin-bottom: .6rem; }
.process-step p { color: var(--muted); margin: 0; font-size: 15px; }

/* ---------- Testimonials ---------- */

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial {
  margin: 0;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}
.testimonial .stars { color: #f59e0b; letter-spacing: 2px; margin-bottom: 1rem; }
.testimonial blockquote {
  flex: 1;
  margin: 0 0 1.75rem;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
}
.testimonial figcaption { display: flex; align-items: center; gap: .85rem; }
.testimonial .avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy-900);
  color: #fff;
  font-weight: 700;
  font-family: var(--font-head);
}
.testimonial strong { display: block; color: var(--ink); font-size: 15px; }
.testimonial figcaption span:not(.avatar) { display: block; font-size: 14px; color: var(--muted); }

@media (max-width: 991.98px) {
  .testimonials {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 85%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: .5rem;
  }
  .testimonial { scroll-snap-align: start; }
}

/* ---------- Contact ---------- */

.contact-section { padding: 0 0 112px; }
.contact-card {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  overflow: hidden;
  border-radius: 32px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.contact-info {
  margin-top: 0;
  padding: 3.5rem;
  color: #fff;
  background:
    radial-gradient(500px 300px at 100% 0%, rgba(59, 110, 255, .35), transparent 60%),
    linear-gradient(160deg, var(--navy-950), var(--navy-800));
}
.contact-info h2 { color: #fff; font-size: clamp(28px, 3.5vw, 40px); font-weight: 800; margin: 1rem 0; }
.contact-info p { color: #c3cde3; font-size: 17px; }
.contact-points { margin-top: 2rem; display: grid; gap: .9rem; }
.contact-points li { color: #e2e8f5; font-size: 15.5px; }
.contact-points i { color: #6ee7b7; margin-right: .5rem; }

.contact-form { padding: 3.5rem; }
.contact-form h3 { font-size: 24px; font-weight: 700; margin-bottom: 1.5rem; }

.field-label {
  display: block;
  margin-bottom: .4rem;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.field {
  display: block;
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field::placeholder { color: #94a3b8; }
.field:focus {
  outline: none;
  border-color: var(--navy-800);
  box-shadow: 0 0 0 4px rgba(19, 48, 110, .12);
}
textarea.field { resize: vertical; min-height: 120px; }

@media (max-width: 991.98px) {
  .contact-card { grid-template-columns: 1fr; }
  .contact-info, .contact-form { padding: 2.25rem 1.5rem; }
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 72px 0 32px;
  background: var(--navy-950);
  color: #a9b6d3;
}
.site-footer p { color: #a9b6d3; font-size: 15px; max-width: 340px; margin-top: 1.25rem; }
.footer-logo { width: auto; height: 44px; border-radius: 10px; }
.site-footer h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.1rem;
}
.site-footer li { margin-bottom: .6rem; }
.site-footer li a { color: #a9b6d3; font-size: 15px; transition: color .2s ease; }
.site-footer li a:hover { color: #fff; }
.footer-email {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.1rem;
  color: #fff;
  font-size: 15px;
  white-space: nowrap;
  transition: color .2s ease;
}
.footer-email i { color: #ff8a4c; }
.footer-email:hover { color: #ff8a4c; }
.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 14px;
}

/* ---------- Cookie banner & popup ---------- */

#cookie-banner.cookie-banner {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 1100;
  width: min(420px, calc(100vw - 32px));
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  background: #fff;
  color: var(--ink);
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
#cookie-banner.cookie-banner p { font-size: 14px; line-height: 1.6; margin: 0; }
#cookie-banner .cookie-actions { display: flex; gap: .5rem; }
#cookie-banner .cookie-actions button { margin: 0; min-width: 0; padding: .65rem 1.2rem; font-size: 14px; }
#cookie-banner .cookie-actions .btn-brand { background: var(--accent); color: #fff; border-radius: 999px; }
#cookie-banner .cookie-actions .btn-plain { background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; }

@media (max-width: 575.98px) {
  #cookie-banner.cookie-banner { left: 16px; bottom: 16px; }
}

.site-popup {
  position: fixed;
  top: calc(var(--header-h) + 20px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1200;
  width: min(380px, calc(100vw - 32px));
  padding: 1.25rem 3rem 1.25rem 1.4rem;
  background: #fff;
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
}
.site-popup p { margin: 0; color: var(--ink); font-weight: 500; }
.site-popup-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: 0;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

/* ---------- Inner pages (About, Services) ---------- */

main.page { display: block; margin-top: 0; }

.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 80px) 0 88px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(800px 400px at 80% 0%, rgba(59, 110, 255, .35), transparent 60%),
    radial-gradient(600px 300px at 10% 100%, rgba(255, 90, 31, .15), transparent 60%),
    linear-gradient(160deg, var(--navy-950), var(--navy-900) 60%, var(--navy-800));
}
.page-hero h1 {
  max-width: 820px;
  margin: 1.25rem auto 1.25rem;
  color: #fff;
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 800;
  line-height: 1.1;
}
.page-hero p { max-width: 640px; margin: 0 auto; font-size: 18px; color: #c3cde3; }

.page-hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
  margin-top: 2.5rem;
}
.page-hero-chips a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .05);
  color: #e2e8f5;
  font-size: 14px;
  font-weight: 500;
  transition: background-color .2s ease, border-color .2s ease;
}
.page-hero-chips a:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .4); color: #fff; }
.page-hero-chips i { color: #ff8a4c; }

.lead-text { font-size: 17px; margin-bottom: 1rem; }

.framed-image-wide img { aspect-ratio: 1 / 1; object-position: center; }

.value-card {
  height: 100%;
  padding: 2rem 1.75rem;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value-card h3 { font-size: 18px; font-weight: 700; margin: 1.1rem 0 .5rem; }
.value-card p { font-size: 15px; color: var(--muted); margin: 0; }

.process-step-line { border: 1px solid var(--line); box-shadow: none; }

.services-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 4rem;
  padding-top: 88px;
  padding-bottom: 112px;
}

.services-nav {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.services-nav a:not(.btn-brand) {
  padding: .55rem .9rem;
  border-left: 2px solid var(--line);
  font-size: 15px;
  color: var(--muted);
  transition: color .2s ease, border-color .2s ease;
}
.services-nav a:not(.btn-brand):hover { color: var(--ink); }
.services-nav a.active { color: var(--ink); font-weight: 600; border-left-color: var(--accent); }
.services-nav .btn-brand { margin-top: 1.5rem; align-self: flex-start; }

.service-group + .service-group { margin-top: 88px; }
.service-group-head {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}
.service-group-head .icon-tile { flex-shrink: 0; }
.service-group-head h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; margin-bottom: .5rem; }
.service-group-head p { max-width: 680px; color: var(--muted); margin: 0; }

.service-banner {
  margin: 0 0 1.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--soft);
}
.service-banner img { display: block; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.service-card {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.service-card:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-2px); }
.service-card:target { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 90, 31, .12); }
.service-card h3 { font-size: 18px; font-weight: 700; margin-bottom: .6rem; }
.service-card p { font-size: 15px; color: var(--muted); margin: 0; }

@media (max-width: 991.98px) {
  .services-layout { grid-template-columns: 1fr; gap: 0; padding-top: 56px; padding-bottom: 80px; }
  .services-nav { display: none; }
  .page-hero { padding: calc(var(--header-h) + 56px) 0 64px; }
}

@media (max-width: 575.98px) {
  .service-grid { grid-template-columns: 1fr; }
  .service-group + .service-group { margin-top: 64px; }
  .page-hero p { font-size: 16px; }
  .page-hero-chips { display: none; }
}

/* ---------- News ---------- */

.news-section { padding-top: 72px; }

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem 1rem;
  font-size: 13.5px;
  color: var(--muted);
}
.post-tag {
  padding: .25rem .7rem;
  border-radius: 999px;
  background: #fff4ee;
  color: var(--accent-600);
  font-weight: 600;
  font-size: 12.5px;
}
.post-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  color: var(--navy-800);
  transition: gap .2s ease;
}
.post-link i { font-size: .85em; }

.post-featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: box-shadow .25s ease, transform .25s ease;
}
.post-featured:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.post-featured:hover .post-link,
.post-card:hover .post-link { gap: .8rem; }
.post-featured-img { position: relative; min-height: 380px; overflow: hidden; background: var(--navy-950); }
.post-featured-img img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.post-featured:hover .post-featured-img img { transform: scale(1.03); }
.post-featured-body { padding: 3rem; display: flex; flex-direction: column; justify-content: center; }
.post-featured-body h2 { font-size: clamp(24px, 2.8vw, 34px); font-weight: 800; line-height: 1.2; margin: 1.1rem 0 .9rem; }
.post-featured-body p { color: var(--muted); margin-bottom: 1.75rem; }

.post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: box-shadow .25s ease, transform .25s ease;
}
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.post-card-img img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post-card-body h3 { font-size: 19px; font-weight: 700; line-height: 1.3; margin: .9rem 0 .6rem; }
.post-card-body p { font-size: 15px; color: var(--muted); flex: 1; }

.news-more {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
  padding: 1.75rem 2rem;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-lg);
  background: var(--soft);
}
.news-more > div:nth-child(2) { flex: 1; }
.news-more h3 { font-size: 18px; font-weight: 700; margin-bottom: .25rem; }
.news-more p { margin: 0; font-size: 15px; color: var(--muted); }

@media (max-width: 991.98px) {
  .post-featured { grid-template-columns: 1fr; }
  .post-featured-img { min-height: 0; aspect-ratio: 16 / 9; }
  .post-featured-body { padding: 2rem 1.5rem; }
  .news-more { flex-direction: column; align-items: flex-start; padding: 1.5rem; }
}

/* ---------- Article ---------- */

.article-hero { padding-bottom: 180px; }
.article-hero h1 { max-width: 900px; }

.article-crumbs {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .6rem;
  font-size: 14px;
  color: #a9b6d3;
}
.article-crumbs a { color: #c9d7ff; }
.article-crumbs a:hover { color: #fff; }
.article-crumbs i { font-size: 9px; opacity: .6; }
.article-crumbs span { color: #fff; }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 1.75rem;
  font-size: 14px;
  color: #c3cde3;
}
.article-meta i { margin-right: .35rem; color: #ff8a4c; }

.article-cover {
  max-width: 1040px;
  margin: -140px auto 0;
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.article-cover img { display: block; width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }

.article-body {
  max-width: 740px;
  margin: 0 auto;
  padding: 72px 24px 112px;
}
.article-body p { font-size: 18px; line-height: 1.8; color: #334155; margin-bottom: 1.4rem; }
.article-lead { font-size: 21px !important; line-height: 1.7 !important; color: var(--ink) !important; }
.article-body h2 {
  display: flex;
  align-items: baseline;
  gap: .9rem;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 800;
  margin: 3rem 0 1rem;
}
.article-body h2 span { font-size: 15px; font-weight: 700; color: var(--accent); letter-spacing: .04em; }

.article-quote {
  margin: 3rem 0;
  padding: .5rem 0 .5rem 1.75rem;
  border-left: 4px solid var(--accent);
  font-family: var(--font-head);
  font-size: clamp(22px, 2.8vw, 28px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -.02em;
}

.article-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  margin: 3.5rem 0 2rem;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    radial-gradient(400px 220px at 100% 0%, rgba(59, 110, 255, .35), transparent 60%),
    linear-gradient(160deg, var(--navy-950), var(--navy-800));
}
.article-cta h3 { color: #fff; font-size: 26px; font-weight: 800; margin-bottom: .6rem; }
.article-cta p { color: #c3cde3 !important; font-size: 16px !important; margin: 0 !important; }
.article-cta strong { color: #fff; }

.article-note { font-style: italic; color: var(--muted) !important; font-size: 16px !important; }

.article-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.article-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.article-tags span {
  padding: .3rem .8rem;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink);
}

@media (max-width: 575.98px) {
  .article-hero { padding-bottom: 120px; }
  .article-cover { margin-top: -90px; border-radius: var(--radius); }
  .article-cover img { aspect-ratio: 16 / 10; }
  .article-body { padding: 48px 16px 80px; }
  .article-body p { font-size: 17px; }
  .article-lead { font-size: 19px !important; }
  .article-cta { padding: 1.75rem; }
}

/* ---------- Responsive ---------- */

@media (max-width: 991.98px) {
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
  .hero { padding: calc(var(--header-h) + 56px) 0 80px; }
  .contact-section { padding-bottom: 80px; }
}

@media (max-width: 575.98px) {
  .container-xl { padding-left: 16px; padding-right: 16px; }
  .section { padding: 64px 0; }
  .hero-lead, .section-head p { font-size: 16px; }
  .hero-actions a { flex: 1 1 100%; }
  .hero-badge { padding: .6rem .8rem; }
  .hero-badge i { width: 34px; height: 34px; font-size: 14px; }
  .hero-badge-top { left: 8px; }
  .hero-badge-bottom { right: 8px; }
  .clients-logos { gap: 1.5rem 2.5rem; }
  .clients-logos img { height: 48px; }
  .solution-card, .process-step, .cap-card { padding: 1.75rem 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
