/* ==========================================================================
   KYLIN INFOTECH — Design System
   Palette derived from the logo: orange #F26522 + deep navy #1B2A4A
   Signature motif: the stadium/capsule shape from the logo's border.
   Utility label face: monospace, a nod to software development.
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  --navy-950: #0F1A30;
  --navy-900: #14213A;
  --navy-800: #1B2A4A;   /* logo navy */
  --navy-700: #24365C;
  --navy-600: #33477A;

  --orange:      #F26522; /* logo orange */
  --orange-600:  #E4550F;
  --orange-300:  #FF8A4C;
  --orange-soft: #FFEDE2;

  --paper:  #FFFFFF;
  --mist:   #F4F6FB;      /* cool light section bg */
  --mist-2: #EAEEF7;
  --line:   #E1E7F2;

  --ink:    #1B2A4A;      /* body text on light */
  --muted:  #5C6B8A;      /* secondary text */
  --muted-2:#8593AE;

  --ink-invert: #EAF0FB;
  --muted-invert: #9FB0D0;

  --radius-pill: 999px;
  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --shadow-sm: 0 2px 8px rgba(20, 33, 58, .06);
  --shadow-md: 0 12px 34px rgba(20, 33, 58, .10);
  --shadow-lg: 0 30px 70px rgba(20, 33, 58, .16);
  --shadow-orange: 0 14px 30px rgba(242, 101, 34, .30);

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --container: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(64px, 9vw, 128px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(48px, 6vw, 84px); }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy-900); color: var(--ink-invert); }
.section--navy .lede, .section--navy .section-head p { color: var(--muted-invert); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--navy-800);
}
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }
h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p { color: var(--muted); }
strong { color: var(--ink); font-weight: 600; }

/* Monospace capsule label — the recurring "software" cue */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange-600);
  background: var(--orange-soft);
  padding: 7px 15px;
  border-radius: var(--radius-pill);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange);
}
.section--navy .eyebrow {
  background: rgba(242,101,34,.14);
  color: var(--orange-300);
}

.section-head { max-width: 680px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: 18px; }
.section-head p { margin-top: 18px; font-size: 1.08rem; }
.lede { font-size: 1.15rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: -.01em;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--orange); color: #fff; box-shadow: var(--shadow-orange); }
.btn--primary:hover { background: var(--orange-600); transform: translateY(-2px); }
.btn--dark { background: var(--navy-800); color: #fff; }
.btn--dark:hover { background: var(--navy-700); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--navy-800); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy-800); transform: translateY(-2px); }
.section--navy .btn--ghost { color: #fff; border-color: rgba(255,255,255,.24); }
.section--navy .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn--white { background: #fff; color: var(--navy-800); }
.btn--white:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 78px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 42px; height: 42px; flex: none; }
.brand__type { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: -.02em;
  color: var(--navy-800);
}
.brand__name .k { color: var(--orange); }
.brand__tag {
  font-family: var(--font-mono);
  font-size: .54rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 4px;
}

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  font-weight: 500;
  font-size: .96rem;
  color: var(--navy-700);
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  transition: background .2s, color .2s;
}
.nav__links a:hover { background: var(--mist); color: var(--navy-800); }
.nav__links a.active { color: var(--orange-600); }

/* dropdown */
.has-drop { position: relative; }
.drop {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 320px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  display: grid;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, transform .2s, visibility .2s;
}
.has-drop:hover .drop, .has-drop:focus-within .drop {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.drop a {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 11px 13px; border-radius: var(--radius-sm);
}
.drop a:hover { background: var(--mist); }
.drop .di { color: var(--orange); flex: none; margin-top: 2px; }
.drop .dt { font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: var(--navy-800); }
.drop .dd { font-size: .78rem; color: var(--muted-2); }

.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  color: var(--navy-800);
}
.nav__phone svg { width: 17px; height: 17px; color: var(--orange); }

.burger {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  position: relative;
}
.burger span {
  position: absolute; left: 12px; right: 12px; height: 2px;
  background: var(--navy-800); border-radius: 2px;
  transition: transform .3s, opacity .2s; top: 50%;
}
.burger span:nth-child(1) { transform: translateY(-6px); }
.burger span:nth-child(3) { transform: translateY(6px); }
.burger.open span:nth-child(1) { transform: rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; overflow: hidden; background: var(--paper); }
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 82% 12%, rgba(242,101,34,.10), transparent 42%),
    radial-gradient(circle at 6% 88%, rgba(27,42,74,.06), transparent 45%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(56px, 8vw, 104px);
}
.hero h1 { margin-top: 22px; }
.hero h1 .accent { color: var(--orange); position: relative; }
.hero__lede { margin-top: 24px; max-width: 34ch; font-size: 1.16rem; }
.hero__cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__meta {
  margin-top: 38px; padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex; gap: 34px; flex-wrap: wrap;
}
.hero__meta .n { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; color: var(--navy-800); }
.hero__meta .l { font-size: .82rem; color: var(--muted); }

/* Hero visual — capsule frame holding an abstract product surface */
.hero__visual { position: relative; }
.capsule {
  position: relative;
  border-radius: 34px;
  padding: 14px;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-950));
  box-shadow: var(--shadow-lg);
  border: 1.5px solid rgba(255,255,255,.06);
}
.capsule__bar { display: flex; align-items: center; gap: 7px; padding: 8px 10px 14px; }
.capsule__bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.capsule__bar i:nth-child(1){ background:#FF5F57; }
.capsule__bar i:nth-child(2){ background:#FEBC2E; }
.capsule__bar i:nth-child(3){ background:#28C840; }
.capsule__bar span {
  margin-left: auto; font-family: var(--font-mono); font-size: .68rem;
  color: var(--muted-invert); letter-spacing: .04em;
}
.capsule__screen {
  background: #0B1424;
  border-radius: 22px;
  padding: 20px;
  overflow: hidden;
  position: relative;
}
.code-line { display:flex; gap:10px; align-items:center; margin-bottom: 12px; font-family: var(--font-mono); font-size:.8rem; }
.code-line .ln { color:#3C4A66; width:18px; text-align:right; flex:none; }
.code-line .tk { height: 9px; border-radius: 4px; }
.tk.o { background: var(--orange); }
.tk.b { background: #3B6FE0; }
.tk.g { background: #2FBF71; }
.tk.m { background: #5C6B8A; }
.tk.w { background: #8FA0C0; }

.mini-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; }
.mini-card {
  background: #101B31; border: 1px solid rgba(255,255,255,.05);
  border-radius: 14px; padding: 14px;
}
.mini-card .mc-ico { color: var(--orange); margin-bottom: 8px; }
.mini-card .mc-n { font-family: var(--font-display); font-weight: 700; color:#fff; font-size: 1.35rem; }
.mini-card .mc-l { font-size: .72rem; color: var(--muted-invert); }

.hero__badge {
  position: absolute; z-index: 3;
  background: #fff; border-radius: var(--radius-pill);
  padding: 10px 18px 10px 12px; display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-md); font-weight: 600; font-size: .85rem; color: var(--navy-800);
  font-family: var(--font-display);
}
.hero__badge .dot { width: 30px; height: 30px; border-radius: 50%; display:grid; place-items:center; color:#fff; flex:none; }
.hero__badge--tl { top: -18px; left: -24px; }
.hero__badge--br { bottom: -20px; right: -18px; }
.hero__badge--tl .dot { background: var(--orange); }
.hero__badge--br .dot { background: var(--navy-800); }

/* ==========================================================================
   Trust strip
   ========================================================================== */
.trust { border-block: 1px solid var(--line); background: #fff; }
.trust .container { display: flex; align-items: center; gap: clamp(20px, 4vw, 56px); flex-wrap: wrap; padding-block: 26px; }
.trust__label { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.trust__row { display: flex; gap: clamp(20px, 4vw, 46px); flex-wrap: wrap; align-items: center; flex: 1; }
.trust__row span { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--navy-600); opacity: .78; letter-spacing: -.01em; }

/* ==========================================================================
   Service cards
   ========================================================================== */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.svc {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.svc::after {
  content: ""; position: absolute; top: 0; right: 0;
  width: 78px; height: 78px;
  background: linear-gradient(135deg, transparent 50%, var(--orange-soft) 50%);
  opacity: 0; transition: opacity .3s;
}
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.svc:hover::after { opacity: 1; }
.svc__ico {
  width: 54px; height: 54px; border-radius: 15px;
  background: var(--navy-800); color: #fff;
  display: grid; place-items: center; margin-bottom: 20px;
  transition: background .3s;
}
.svc:hover .svc__ico { background: var(--orange); }
.svc__ico svg { width: 26px; height: 26px; }
.svc h3 { margin-bottom: 10px; }
.svc p { font-size: .95rem; margin-bottom: 18px; flex: 1; }
.svc__link {
  font-family: var(--font-display); font-weight: 600; font-size: .9rem;
  color: var(--orange-600); display: inline-flex; align-items: center; gap: 7px;
}
.svc__link svg { width: 16px; height: 16px; transition: transform .25s; }
.svc:hover .svc__link svg { transform: translateX(4px); }

/* ==========================================================================
   Feature split (why us / about)
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.split--flip .split__media { order: -1; }
.feature-list { display: grid; gap: 18px; margin-top: 30px; }
.feature-item { display: flex; gap: 16px; }
.feature-item .fi-ico {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  background: var(--orange-soft); color: var(--orange-600);
  display: grid; place-items: center;
}
.feature-item h4 { font-size: 1.05rem; margin-bottom: 3px; }
.feature-item p { font-size: .92rem; }

/* media panel */
.media-panel {
  position: relative; border-radius: var(--radius-lg);
  background: linear-gradient(155deg, var(--navy-800), var(--navy-950));
  padding: 40px; color: #fff; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.media-panel::before {
  content:""; position:absolute; width:280px; height:280px; border-radius:50%;
  background: radial-gradient(circle, rgba(242,101,34,.4), transparent 70%);
  top: -80px; right: -80px; filter: blur(10px);
}
.media-panel__stat { position: relative; z-index: 1; }
.media-panel__stat + .media-panel__stat { margin-top: 26px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.1); }
.media-panel .mp-n { font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; line-height: 1; }
.media-panel .mp-n .u { color: var(--orange-300); }
.media-panel .mp-l { color: var(--muted-invert); margin-top: 6px; font-size: .95rem; }

/* image placeholder (until real photos dropped in) */
.img-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); background: var(--mist-2);
  aspect-ratio: 4 / 3;
}
.img-frame img { width: 100%; height: 100%; object-fit: cover; }
.img-frame--tall { aspect-ratio: 3 / 4; }

/* ==========================================================================
   Process
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding-top: 26px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-mono); font-size: .8rem; font-weight: 700;
  color: var(--orange); letter-spacing: .1em;
}
.step__line { height: 3px; background: var(--line); border-radius: 3px; margin: 14px 0 20px; position: relative; overflow: hidden; }
.step__line::after { content:""; position:absolute; inset:0; width: 40%; background: var(--orange); border-radius: 3px; }
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { font-size: .9rem; }

/* ==========================================================================
   Tech stack marquee
   ========================================================================== */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 16px; width: max-content; animation: slide 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line);
  padding: 13px 22px; border-radius: var(--radius-pill);
  font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--navy-700);
  white-space: nowrap;
}
.chip .cd { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ==========================================================================
   Stats band
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 20px; }
.stat .sn { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 4vw, 3.2rem); color: #fff; letter-spacing: -.03em; }
.stat .sn .u { color: var(--orange-300); }
.stat .sl { color: var(--muted-invert); margin-top: 6px; font-size: .92rem; }

/* ==========================================================================
   Portfolio
   ========================================================================== */
.work { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--navy-900); aspect-ratio: 4 / 3; box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s;
}
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.work-card img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: transform .5s, opacity .3s; }
.work-card:hover img { transform: scale(1.05); opacity: 1; }
.work-card__body {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px; background: linear-gradient(to top, rgba(15,26,48,.92), rgba(15,26,48,.15) 55%, transparent);
  color: #fff;
}
.work-card__tag {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange-300); margin-bottom: 8px;
}
.work-card__body h3 { color: #fff; font-size: 1.25rem; }
.work-card__body p { color: rgba(255,255,255,.72); font-size: .88rem; margin-top: 4px; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.quote {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 30px; box-shadow: var(--shadow-sm); position: relative; height: 100%;
  display: flex; flex-direction: column;
}
.quote__mark { font-family: var(--font-display); font-size: 3.4rem; line-height: .6; color: var(--orange); opacity: .35; }
.quote p { color: var(--ink); font-size: 1.02rem; margin: 12px 0 22px; flex: 1; }
.quote__who { display: flex; align-items: center; gap: 13px; }
.quote__ava { width: 46px; height: 46px; border-radius: 50%; background: var(--navy-800); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; flex: none; }
.quote__n { font-family: var(--font-display); font-weight: 600; color: var(--navy-800); font-size: .95rem; }
.quote__r { font-size: .8rem; color: var(--muted-2); }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-950));
  border-radius: clamp(24px, 4vw, 40px);
  padding: clamp(40px, 6vw, 72px);
  color: #fff; text-align: center;
}
.cta-band::before, .cta-band::after {
  content:""; position:absolute; border-radius:50%;
}
.cta-band::before { width: 320px; height:320px; background: radial-gradient(circle, rgba(242,101,34,.35), transparent 70%); top:-120px; left:-80px; }
.cta-band::after { width: 260px; height:260px; background: radial-gradient(circle, rgba(59,111,224,.28), transparent 70%); bottom:-110px; right:-60px; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--muted-invert); max-width: 560px; margin: 16px auto 30px; }
.cta-band__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   Page hero (interior pages)
   ========================================================================== */
.page-hero { position: relative; background: var(--navy-900); color: #fff; overflow: hidden; }
.page-hero::before {
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(circle at 85% 20%, rgba(242,101,34,.18), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(59,111,224,.14), transparent 45%);
}
.page-hero__inner { position: relative; padding-block: clamp(56px, 8vw, 96px); max-width: 760px; }
.page-hero h1 { color: #fff; margin-top: 18px; }
.page-hero p { color: var(--muted-invert); margin-top: 18px; font-size: 1.14rem; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: .82rem; color: var(--muted-invert); font-family: var(--font-mono); letter-spacing: .04em; }
.crumbs a:hover { color: var(--orange-300); }
.crumbs span { color: var(--orange-300); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.info-card { display: flex; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; transition: border-color .25s, box-shadow .25s; }
.info-card:hover { border-color: transparent; box-shadow: var(--shadow-md); }
.info-card .ic-ico { width: 48px; height: 48px; border-radius: 13px; background: var(--orange-soft); color: var(--orange-600); display: grid; place-items: center; flex: none; }
.info-card h4 { font-size: 1rem; margin-bottom: 3px; }
.info-card p, .info-card a { font-size: .95rem; color: var(--muted); }
.info-card a:hover { color: var(--orange-600); }
.info-stack { display: grid; gap: 16px; }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-display); font-weight: 600; font-size: .88rem; color: var(--navy-800); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px;
  font: inherit; font-size: .96rem; color: var(--ink); background: var(--mist); transition: border-color .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); background: #fff; }
.field textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__note { font-size: .8rem; color: var(--muted-2); margin-top: 12px; }
.form__ok { display: none; padding: 14px 16px; border-radius: 12px; background: #E9F8EF; color: #1B7A45; font-size: .92rem; margin-bottom: 18px; border: 1px solid #BFE9CF; }
.form__ok.show { display: block; }

/* map */
.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map-embed iframe { display: block; width: 100%; height: 340px; border: 0; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 14px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--navy-800); }
.faq-q .pm { width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--orange-soft); color: var(--orange-600); display: grid; place-items: center; transition: transform .3s, background .3s, color .3s; }
.faq-item.open .faq-q .pm { transform: rotate(45deg); background: var(--orange); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 24px 22px; font-size: .96rem; }

/* ==========================================================================
   Service detail specifics
   ========================================================================== */
.svc-body { display: grid; grid-template-columns: 1fr 320px; gap: clamp(32px, 5vw, 60px); align-items: start; }
.prose h2 { margin: 40px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 16px; }
.prose ul.check { display: grid; gap: 12px; margin: 8px 0 24px; }
.prose ul.check li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-size: .98rem; }
.prose ul.check li::before {
  content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--orange-soft); color: var(--orange-600); font-weight: 700; font-size: .8rem;
  display: grid; place-items: center; margin-top: 2px;
}
.aside-card { position: sticky; top: 100px; background: var(--navy-900); color: #fff; border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-lg); }
.aside-card h3 { color: #fff; margin-bottom: 8px; }
.aside-card p { color: var(--muted-invert); font-size: .92rem; margin-bottom: 20px; }
.aside-card .btn { width: 100%; justify-content: center; }
.aside-list { margin-top: 22px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: grid; gap: 12px; }
.aside-list a { display: flex; justify-content: space-between; align-items: center; color: var(--ink-invert); font-size: .92rem; padding: 6px 0; }
.aside-list a:hover { color: var(--orange-300); }
.aside-list a svg { width: 15px; color: var(--orange-300); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy-950); color: var(--muted-invert); padding-top: clamp(56px, 7vw, 88px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer-brand .brand__name { color: #fff; }
.footer-brand p { margin: 18px 0; font-size: .94rem; max-width: 34ch; color: var(--muted-invert); }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 40px; height: 40px; border-radius: 11px; border: 1px solid rgba(255,255,255,.12); display: grid; place-items: center; color: var(--ink-invert); transition: background .2s, border-color .2s, color .2s; }
.footer-social a:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.footer-col h4 { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-family: var(--font-mono); font-weight: 600; margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { font-size: .93rem; color: var(--muted-invert); transition: color .2s; }
.footer-col a:hover { color: var(--orange-300); }
.footer-contact li { display: flex; gap: 11px; font-size: .93rem; margin-bottom: 13px; align-items: flex-start; }
.footer-contact svg { width: 17px; color: var(--orange-300); flex: none; margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-block: 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .84rem; }
.footer-bottom a:hover { color: var(--orange-300); }

/* ==========================================================================
   Reveal animation
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"]{ transition-delay: .08s; }
.reveal[data-delay="2"]{ transition-delay: .16s; }
.reveal[data-delay="3"]{ transition-delay: .24s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .work { grid-template-columns: repeat(2, 1fr); }
  .svc-body { grid-template-columns: 1fr; }
  .aside-card { position: static; }
}
@media (max-width: 880px) {
  .nav__links, .nav__phone { display: none; }
  .burger { display: block; }
  .hero__grid, .split, .split--flip .split__media { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
  .hero__visual { max-width: 480px; margin-inline: auto; }
  .contact-grid { grid-template-columns: 1fr; }

  /* mobile drawer */
  .mobile-menu {
    position: fixed; inset: 78px 0 auto 0; background: #fff; z-index: 99;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    transform: translateY(-120%); transition: transform .35s cubic-bezier(.2,.8,.2,1);
    padding: 16px var(--gutter) 26px; max-height: calc(100vh - 78px); overflow-y: auto;
  }
  .mobile-menu.open { transform: translateY(0); }
  .mobile-menu a { display: block; padding: 14px 4px; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--navy-800); border-bottom: 1px solid var(--line); }
  .mobile-menu .btn { width: 100%; justify-content: center; margin-top: 18px; }
  .mobile-menu .mm-phone { color: var(--orange-600); }
}
@media (max-width: 640px) {
  .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; }
  .steps, .stats, .work { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .hero__badge--tl { left: 0; }
  .hero__badge--br { right: 0; }
  .trust .container { flex-direction: column; align-items: flex-start; gap: 14px; }
}
@media (max-width: 420px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* mobile menu hidden on desktop */
.mobile-menu { display: none; }
@media (max-width: 880px) { .mobile-menu { display: block; } }

/* Accessibility */
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Logo slot (user drops in /assets/logo.png)
   ========================================================================== */
.brand { min-width: 150px; min-height: 52px; }
.brand__logo { height: 50px; width: auto; max-width: 230px; object-fit: contain; display: block; }
.brand__logo--empty { opacity: 0; }

/* ==========================================================================
   Burger on the left
   ========================================================================== */
.burger { order: -1; margin-right: 4px; cursor: pointer; }

/* ==========================================================================
   Mega dropdown (Readymade Scripts)
   ========================================================================== */
.drop--mega {
  display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 2px; width: 520px; left: 50%; transform: translateX(-50%) translateY(8px);
}
.has-drop:hover .drop--mega, .has-drop:focus-within .drop--mega { transform: translateX(-50%) translateY(0); }

/* ==========================================================================
   Off-canvas mobile drawer
   ========================================================================== */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(15,26,48,.5);
  opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 200;
}
.drawer-overlay.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: min(86vw, 340px);
  background: #fff; z-index: 210; transform: translateX(-104%);
  transition: transform .34s cubic-bezier(.22,.75,.24,1);
  display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(15,26,48,.28);
  overflow: hidden;
}
.drawer.open { transform: translateX(0); }
.drawer__top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--line);
}
.drawer__title { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-2); }
.drawer__close {
  width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; display: grid; place-items: center; cursor: pointer;
}
.drawer__close svg { width: 20px; height: 20px; color: var(--navy-800); transform: rotate(45deg); }
.drawer__nav { flex: 1; overflow-y: auto; padding: 8px 14px 14px; }
.drawer__nav > a, .drawer__group {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 14px 10px; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
  color: var(--navy-800); border-bottom: 1px solid var(--line); background: none; border-left: 0; border-right: 0; border-top: 0;
  text-align: left; cursor: pointer;
}
.drawer__group svg { width: 18px; height: 18px; color: var(--muted-2); transition: transform .25s; }
.drawer__group[aria-expanded="true"] svg { transform: rotate(90deg); color: var(--orange); }
.drawer__sub {
  max-height: 0; overflow: hidden; transition: max-height .32s ease;
  border-bottom: 1px solid var(--line);
}
.drawer__sub.open { max-height: 720px; }
.drawer__sub a {
  display: flex; align-items: center; gap: 10px; padding: 11px 10px 11px 14px;
  font-size: .92rem; color: var(--navy-700);
}
.drawer__sub a svg { width: 17px; height: 17px; color: var(--orange); flex: none; }
.drawer__sub a:hover { color: var(--orange-600); }
.drawer__all { font-weight: 600; color: var(--orange-600) !important; }
.drawer__foot { padding: 16px 20px 22px; border-top: 1px solid var(--line); }
.drawer__foot .mm-phone { display: flex; align-items: center; gap: 8px; color: var(--orange-600); font-family: var(--font-display); font-weight: 600; margin-bottom: 14px; }
.drawer__foot .mm-phone svg { width: 18px; height: 18px; }
.drawer__foot .btn { width: 100%; justify-content: center; }

/* ==========================================================================
   Floating action buttons (WhatsApp + Quote)
   ========================================================================== */
.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 150;
  display: flex; flex-direction: column; gap: 12px; align-items: flex-end;
}
.fab__btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 18px; border-radius: var(--radius-pill);
  font-family: var(--font-display); font-weight: 600; font-size: .92rem;
  color: #fff; box-shadow: 0 12px 28px rgba(15,26,48,.28);
  transition: transform .2s, box-shadow .2s;
}
.fab__btn svg { width: 20px; height: 20px; }
.fab__btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(15,26,48,.34); }
.fab__btn--wa { background: #25D366; }
.fab__btn--quote { background: var(--orange); }
@media (max-width: 640px) {
  .fab__btn span { display: none; }
  .fab__btn { padding: 14px; border-radius: 50%; }
  .fab__btn svg { width: 24px; height: 24px; }
}

/* ==========================================================================
   Scripts catalog — hub, categories, product cards
   ========================================================================== */
.jump-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.jump {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .04em;
  padding: 7px 13px; border-radius: var(--radius-pill);
  background: #fff; border: 1px solid var(--line); color: var(--navy-700);
}
.jump:hover { border-color: var(--orange); color: var(--orange-600); }

.cat-list { display: flex; flex-direction: column; gap: 54px; }
.cat-block__head {
  display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 16px;
  padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px solid var(--line);
}
.cat-block__ic {
  width: 48px; height: 48px; border-radius: 12px; flex: none;
  display: grid; place-items: center; background: var(--orange-soft); color: var(--orange-600);
}
.cat-block__ic svg { width: 24px; height: 24px; }
.cat-block__head h2 { font-size: 1.5rem; margin: 0; scroll-margin-top: 96px; }
.cat-block__head p { margin: 6px 0 0; color: var(--muted-2); font-size: .96rem; max-width: 70ch; }
.cat-block__all {
  align-self: center; white-space: nowrap; font-weight: 600; font-size: .9rem; color: var(--orange-600);
  display: inline-flex; align-items: center; gap: 6px;
}
.cat-block__all svg { width: 16px; height: 16px; }

.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pgrid--lg { grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pcard {
  display: flex; flex-direction: column; gap: 10px;
  padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-md);
  background: #fff; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.pcard:hover { border-color: var(--orange); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pcard__ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--mist); color: var(--orange-600); }
.pcard__ic svg { width: 20px; height: 20px; }
.pcard__t { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--navy-800); line-height: 1.35; }
.pcard__go { margin-top: auto; font-size: .82rem; font-weight: 600; color: var(--orange-600); display: inline-flex; align-items: center; gap: 5px; }
.pcard__go svg { width: 15px; height: 15px; }

.cat-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.cat-chips a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--radius-pill);
  background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .88rem; color: var(--navy-700);
}
.cat-chips a svg { width: 17px; height: 17px; color: var(--orange-600); }
.cat-chips a:hover { border-color: var(--orange); color: var(--orange-600); }

.aside-list__h { display: block; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: #9FB0D0; margin-bottom: 8px; }

@media (max-width: 980px) { .pgrid, .pgrid--lg { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 880px) {
  .nav { justify-content: flex-start; gap: 12px; }
  .nav__cta { display: none; }
  .brand { min-width: 0; margin-right: auto; }
}
@media (max-width: 560px) {
  .pgrid, .pgrid--lg { grid-template-columns: 1fr; }
  .cat-block__head { grid-template-columns: auto 1fr; }
  .cat-block__all { grid-column: 1 / -1; align-self: start; }
}

/* ==========================================================================
   Footer logo (logo.png on a light chip, with text fallback)
   ========================================================================== */
.footer-logo { display: inline-flex; align-items: center; }
.footer-logo img {
  height: 54px; width: auto; max-width: 230px; object-fit: contain;
  background: #fff; padding: 9px 15px; border-radius: 12px;
}
.footer-logo__fallback {
  display: none; font-family: var(--font-display); font-weight: 700;
  font-size: 1.34rem; letter-spacing: -.02em; color: #fff;
}
.footer-logo.is-empty img { display: none; }
.footer-logo.is-empty .footer-logo__fallback { display: inline; }

/* ==========================================================================
   Mobile polish pass
   ========================================================================== */
@media (max-width: 700px) {
  /* Comfortable tap targets + full-width CTAs */
  .hero__cta, .cta-band__btns, .cta__btns { width: 100%; }
  .hero__cta .btn, .cta-band__btns .btn { flex: 1 1 auto; justify-content: center; }
  .btn { min-height: 46px; }

  /* Tighter interior hero + section spacing */
  .page-hero__inner { padding-block: clamp(40px, 12vw, 64px); }
  .page-hero p { font-size: 1.02rem; }
  .section-head p, .hero__lede, .lede { font-size: 1.02rem; }

  /* Aside CTA card breathes less on small screens */
  .aside-card { padding: 24px; }

  /* Product/service prose sizing */
  .prose h2 { margin-top: 30px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  h1 { font-size: clamp(1.95rem, 8.5vw, 2.4rem); }
  h2 { font-size: clamp(1.55rem, 6.5vw, 1.95rem); }
  .hero__meta { gap: 22px; }
  .hero__meta .n { font-size: 1.45rem; }
  .cat-block__ic { width: 42px; height: 42px; }
  .cat-block__head h2 { font-size: 1.3rem; }
  /* keep floating buttons clear of the very bottom */
  .fab { right: 14px; bottom: 14px; gap: 10px; }
  /* footer logo chip slightly smaller */
  .footer-logo img { height: 46px; }
}
