/* ============================================================
   Allinnovat Tech Lab LTD — main.css
   Brand: navy + green (from Company Profile Booklet)
   ============================================================ */

:root {
  --navy: #1b2a5e;
  --navy-dark: #121c40;
  --navy-deep: #0c1430;
  --blue: #2f6fed;
  --blue-soft: #e3ecfd;
  --green: #57b25e;
  --green-soft: #e9f6ea;
  --mint: #f2f9f3;
  --ink: #1c2333;
  --ink-soft: #4c5568;
  --line: #e4e9f2;
  --bg: #ffffff;
  --bg-alt: #f7f9fc;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(27, 42, 94, .07);
  --shadow-md: 0 10px 30px rgba(27, 42, 94, .12);
  --shadow-lg: 0 24px 60px rgba(27, 42, 94, .18);
  --font-head: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --header-h: 74px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--navy); margin: 0 0 .5em; }

.container { width: min(1180px, 92%); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.6rem; border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: linear-gradient(135deg, var(--green), #3f9d55); color: #fff; box-shadow: 0 8px 22px rgba(87, 178, 94, .35); }
.btn--primary:hover { box-shadow: 0 12px 30px rgba(87, 178, 94, .45); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--light { background: #fff; color: var(--navy); }
.btn--sm { padding: .55rem 1.15rem; font-size: .85rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }

.brand { display: flex; align-items: center; gap: .65rem; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand__name { font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 1.2rem; line-height: 1.05; display: flex; flex-direction: column; }
.brand__name small { font-size: .62rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.brand--light .brand__name { color: #fff; }

.nav { display: flex; align-items: center; gap: .35rem; }
.nav__link {
  padding: .5rem .85rem; border-radius: 999px;
  font-weight: 600; font-size: .92rem; color: var(--ink-soft);
  transition: color .2s, background .2s;
}
.nav__link:hover, .nav__link.is-active { color: var(--navy); background: var(--blue-soft); }
.nav__cta { margin-left: .6rem; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav__toggle span { width: 24px; height: 2.5px; border-radius: 2px; background: var(--navy); transition: transform .3s var(--ease), opacity .2s; }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav__toggle { display: flex; }
  .nav {
    position: fixed; top: var(--header-h); right: 0;
    width: min(320px, 85vw); height: calc(100dvh - var(--header-h));
    flex-direction: column; align-items: stretch; gap: .25rem;
    background: #fff; border-left: 1px solid var(--line);
    padding: 1.2rem; transform: translateX(105%);
    transition: transform .35s var(--ease);
    box-shadow: var(--shadow-lg); overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__link { padding: .8rem 1rem; font-size: 1rem; }
  .nav__cta { margin: .8rem 0 0; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 70px; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(52rem 30rem at 88% -6%, rgba(47, 111, 237, .16), transparent 60%),
    radial-gradient(40rem 26rem at -8% 22%, rgba(87, 178, 94, .18), transparent 60%),
    radial-gradient(30rem 30rem at 62% 108%, rgba(27, 42, 94, .10), transparent 65%),
    linear-gradient(180deg, #fbfdff 0%, var(--bg-alt) 100%);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(27, 42, 94, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 42, 94, .045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(60rem 40rem at 50% 20%, #000 30%, transparent 75%);
}
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: .45rem 1rem; font-weight: 600; font-size: .82rem; color: var(--navy);
  box-shadow: var(--shadow-sm); margin-bottom: 1.2rem;
}
.hero__eyebrow-icon { color: var(--green); }
.hero__title { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; }
.hero__title::after {
  content: ""; display: block; width: 88px; height: 6px; margin-top: .35em;
  border-radius: 99px; background: linear-gradient(90deg, var(--green), var(--blue));
}
.hero__sub { font-size: 1.1rem; color: var(--ink-soft); max-width: 34rem; margin: 1.1rem 0 1.8rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__badges { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin: 2rem 0 0; }
.hero__badges li {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .82rem; font-weight: 600; color: var(--navy);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .4rem .9rem;
}
.hero__badges li i { color: var(--green); }

.hero__art { display: flex; justify-content: center; }
.hero__logo-ring {
  position: relative; width: min(360px, 72vw); aspect-ratio: 1;
  display: grid; place-items: center; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-lg), inset 0 0 0 14px var(--mint);
  animation: float 7s ease-in-out infinite;
}
.hero__logo-ring::before, .hero__logo-ring::after {
  content: ""; position: absolute; inset: -22px; border-radius: 50%;
  border: 2px dashed rgba(87, 178, 94, .5); animation: spin 32s linear infinite;
}
.hero__logo-ring::after { inset: -44px; border-color: rgba(47, 111, 237, .28); animation-duration: 46s; animation-direction: reverse; }
.hero__logo { width: 62%; height: auto; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; background: #fff; color: var(--navy);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

@media (max-width: 940px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 2.4rem; }
  .hero__sub { margin-inline: auto; }
  .hero__actions, .hero__badges { justify-content: center; }
  .hero__title::after { margin-inline: auto; }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--tint { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 46rem; margin: 0 auto 3.2rem; }
.section__kicker {
  display: inline-block; font-family: var(--font-head); font-weight: 700;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--green); background: var(--green-soft);
  border-radius: 999px; padding: .35rem 1rem; margin-bottom: 1rem;
}
.section__title { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -.015em; }
.section__lead { color: var(--ink-soft); font-size: 1.05rem; margin: 0; }
.section__more { text-align: center; margin-top: 2.6rem; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: start; }
.about__text p { color: var(--ink-soft); margin: 0 0 1.1rem; font-size: 1.03rem; }
.about__motto { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1.15rem; }
.about__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.6rem 1.2rem; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.stat:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.stat__value { display: block; font-family: var(--font-head); font-size: 2.1rem; font-weight: 800; color: var(--green); }
.stat__label { font-size: .86rem; font-weight: 600; color: var(--ink-soft); }
@media (max-width: 820px) { .about__grid { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.process { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; padding: 0; margin: 0; }
.process__step {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 2.2rem 1.6rem 1.8rem;
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.process__step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.process__step:not(:last-child)::after {
  content: "\f061"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; top: 50%; right: -1.15rem; transform: translateY(-50%);
  color: var(--green); font-size: 1.1rem; z-index: 2;
}
.process__step h3 { font-size: 1.15rem; }
.process__step p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.process__icon {
  width: 58px; height: 58px; display: grid; place-items: center;
  border-radius: 16px; margin-bottom: 1.1rem; font-size: 1.35rem; color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  box-shadow: 0 8px 18px rgba(27, 42, 94, .28);
}
.process__step:nth-child(2) .process__icon { background: linear-gradient(135deg, var(--blue), #4f8ef7); }
.process__step:nth-child(3) .process__icon { background: linear-gradient(135deg, var(--green), #3f9d55); }
@media (max-width: 820px) {
  .process { grid-template-columns: 1fr; }
  .process__step:not(:last-child)::after { content: "\f063"; top: auto; bottom: -1.4rem; right: 50%; transform: translateX(50%); }
}

/* ---------- Services ---------- */
.services__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: 2.4rem; }
.services__tab {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .65rem 1.3rem; border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; font-family: var(--font-head); font-weight: 700; font-size: .9rem;
  color: var(--ink-soft); cursor: pointer;
  transition: all .25s var(--ease);
}
.services__tab i { color: var(--green); }
.services__tab:hover { border-color: var(--green); color: var(--navy); }
.services__tab.is-active { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 8px 20px rgba(27, 42, 94, .3); }
.services__tab.is-active i { color: var(--green); }

.services__panel { display: none; }
.services__panel.is-active { display: block; animation: fadeUp .45s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.3rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.7rem 1.5rem; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(87, 178, 94, .45); }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--green-soft); color: var(--green); font-size: 1.25rem; margin-bottom: 1rem;
  transition: background .3s, color .3s;
}
.card:hover .card__icon { background: var(--green); color: #fff; }
.card h3 { font-size: 1.02rem; }
.card p { color: var(--ink-soft); font-size: .92rem; margin: 0; }
.cards--three { grid-template-columns: repeat(3, 1fr); }
.card--center { text-align: center; padding: 2.2rem 1.7rem; }
.card--center .card__icon { margin-inline: auto; width: 64px; height: 64px; font-size: 1.5rem; border-radius: 50%; }
@media (max-width: 820px) { .cards--three { grid-template-columns: 1fr; } }

/* ---------- Projects ---------- */
.projects__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 1.5rem; }
.project {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.project__thumb { position: relative; aspect-ratio: 16/9; background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 120%); display: grid; place-items: center; overflow: hidden; }
.project__thumb img { width: 100%; height: 100%; object-fit: cover; }
.project__ph { color: rgba(255, 255, 255, .85); font-size: 3rem; }
.project__cat {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--font-head); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .3rem .8rem; border-radius: 999px; color: #fff; background: rgba(12, 20, 48, .78); backdrop-filter: blur(4px);
}
.project__cat--android { background: rgba(87, 178, 94, .92); }
.project__cat--web { background: rgba(47, 111, 237, .92); }
.project__cat--data { background: rgba(155, 107, 231, .92); }
.project__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.project__body h3 { font-size: 1.08rem; margin: 0; }
.project__body h3 small { color: var(--ink-soft); font-weight: 600; font-size: .8rem; }
.project__body p { color: var(--ink-soft); font-size: .92rem; margin: 0; flex: 1; }
.project__link { font-weight: 700; font-size: .9rem; display: inline-flex; align-items: center; gap: .4rem; margin-top: .4rem; }

/* ---------- Portfolio page filter ---------- */
.filterbar { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: 2.6rem; }
.filterbar button {
  padding: .55rem 1.2rem; border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; font-family: var(--font-head); font-weight: 700; font-size: .86rem;
  color: var(--ink-soft); cursor: pointer; transition: all .25s var(--ease);
}
.filterbar button:hover { border-color: var(--blue); color: var(--blue); }
.filterbar button.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.project.is-hidden { display: none; }
.page-hero { padding: calc(var(--header-h) + 64px) 0 56px; background: linear-gradient(160deg, var(--navy-deep), var(--navy) 55%, #24408f); color: #fff; text-align: center; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(36rem 20rem at 82% 0%, rgba(87, 178, 94, .25), transparent 60%); pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin-bottom: .4em; position: relative; }
.page-hero p { color: rgba(255, 255, 255, .78); max-width: 40rem; margin: 0 auto; position: relative; }
.breadcrumb { position: relative; font-size: .85rem; margin-bottom: 1rem; display: inline-block; background: rgba(255,255,255,.12); border-radius: 999px; padding: .3rem 1rem; }
.breadcrumb a { color: #bfe6c2; }

/* ---------- Products ---------- */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 1.3rem; }
.product {
  position: relative; display: block; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.7rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
a.product:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(47, 111, 237, .45); }
.product__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue); font-size: 1.25rem; margin-bottom: 1rem;
}
.product h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.product p { color: var(--ink-soft); font-size: .9rem; margin: 0; }
.product__go { position: absolute; top: 1.3rem; right: 1.3rem; color: var(--green); transition: transform .25s var(--ease); }
a.product:hover .product__go { transform: translateX(5px); }

/* ---------- CEO ---------- */
.ceo {
  display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: start;
  margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2.4rem; box-shadow: var(--shadow-md); position: relative;
}
.ceo::before { content: "\201C"; position: absolute; top: -1.6rem; left: 1.6rem; font-family: Georgia, serif; font-size: 7rem; color: var(--green); opacity: .5; line-height: 1; }
.ceo__photo { width: 180px; height: 180px; border-radius: 18px; object-fit: cover; box-shadow: var(--shadow-md); }
.ceo__body p { color: var(--ink-soft); font-size: 1.02rem; margin: 0 0 1rem; }
.ceo__body footer strong { display: block; font-family: var(--font-head); color: var(--navy); }
.ceo__body footer span { color: var(--green); font-weight: 600; font-size: .9rem; }
@media (max-width: 720px) { .ceo { grid-template-columns: 1fr; } .ceo__photo { margin-inline: auto; } }

/* ---------- CTA ---------- */
.cta { padding: 0 0 96px; }
.cta__inner {
  position: relative;
  background:
    radial-gradient(28rem 16rem at 90% -20%, rgba(87, 178, 94, .35), transparent 60%),
    linear-gradient(135deg, var(--navy-deep), var(--navy) 60%, #23408f);
  border-radius: var(--radius-lg); padding: 3.6rem 2.5rem; text-align: center;
  color: #fff; box-shadow: var(--shadow-lg);
}
.cta__inner h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.cta__inner p { color: rgba(255, 255, 255, .8); max-width: 38rem; margin: 0 auto 1.8rem; }

/* ---------- Contact ---------- */
.section--contact { background: var(--mint); }
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2.4rem; align-items: start; }
.contact__info { display: flex; flex-direction: column; gap: .9rem; }
.contact__row {
  display: flex; align-items: center; gap: 1rem; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem;
  color: var(--ink); transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
a.contact__row:hover { transform: translateX(6px); box-shadow: var(--shadow-sm); }
.contact__row strong { display: block; font-family: var(--font-head); font-size: .82rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }
.contact__ico { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--green-soft); color: var(--green); font-size: 1.1rem; }
.contact__map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.contact__map iframe { width: 100%; height: 240px; border: 0; display: block; }

.contact__form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-md); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form__field { margin-bottom: 1rem; }
.form__field label { display: block; font-family: var(--font-head); font-weight: 700; font-size: .85rem; color: var(--navy); margin-bottom: .35rem; }
.form__field input, .form__field textarea {
  width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--ink); background: var(--bg-alt);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form__field input:focus, .form__field textarea:focus {
  outline: none; border-color: var(--blue); background: #fff;
  box-shadow: 0 0 0 4px rgba(47, 111, 237, .14);
}
.form__field textarea { resize: vertical; }
.form__status { margin: .9rem 0 0; font-weight: 600; font-size: .92rem; }
.form__status.is-ok { color: #2c8a3f; }
.form__status.is-err { color: #c0392b; }
#cf-submit[disabled] { opacity: .6; cursor: wait; }
@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .72); padding: 64px 0 0; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 2.4rem; padding-bottom: 2.6rem; }
.site-footer__brand p { font-size: .92rem; margin: 1rem 0 1.2rem; max-width: 22rem; }
.site-footer__col { display: flex; flex-direction: column; gap: .55rem; }
.site-footer__col h4 { color: #fff; font-size: .95rem; margin-bottom: .4rem; }
.site-footer__col a, .site-footer__col span { color: rgba(255, 255, 255, .72); font-size: .92rem; display: inline-flex; align-items: center; gap: .5rem; }
.site-footer__col a:hover { color: #fff; }
.site-footer__col i { color: var(--green); width: 16px; }
.socials { display: flex; gap: .6rem; }
.socials a {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 10px; background: rgba(255, 255, 255, .08); color: #fff; font-size: 1rem;
  transition: background .25s, transform .25s var(--ease);
}
.socials a:hover { background: var(--green); transform: translateY(-3px); }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem;
  border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.3rem 0 1.5rem;
  font-size: .85rem;
}
.site-footer__bottom p { margin: 0; }
.site-footer__legal a { color: rgba(255, 255, 255, .72); }
.site-footer__legal a:hover { color: #fff; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 46px; height: 46px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--navy); color: #fff; font-size: 1rem;
  box-shadow: var(--shadow-md); opacity: 0; pointer-events: none;
  transform: translateY(10px); transition: opacity .3s, transform .3s var(--ease), background .2s;
}
.to-top.is-show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--green); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Legal pages ---------- */
.legal { padding: calc(var(--header-h) + 48px) 0 90px; }
.legal__card {
  max-width: 52rem; margin: 0 auto; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 3rem); box-shadow: var(--shadow-md);
}
.legal__card h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.legal__card h2 { font-size: 1.25rem; margin-top: 1.8em; }
.legal__card p, .legal__card li { color: var(--ink-soft); font-size: .98rem; }
.legal__updated { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--green); background: var(--green-soft); padding: .3rem .9rem; border-radius: 999px; margin-bottom: 1.2rem; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }

/* ============================================================
   Our Work gallery + lightbox + quote wizard (additions)
   ============================================================ */

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.gallery__item {
  margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.gallery__item:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.gallery__item.is-hidden { display: none; }
.gallery__media {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  aspect-ratio: 16/10; background: var(--navy-deep); overflow: hidden;
}
.gallery__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery__item:hover .gallery__media img { transform: scale(1.05); }
.gallery__media--video { cursor: default; }
.gallery__media--video iframe, .gallery__media--video video { width: 100%; height: 100%; border: 0; object-fit: cover; }
.gallery__item figcaption { padding: 1rem 1.2rem 1.2rem; }
.gallery__item figcaption strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: .98rem; }
.gallery__item figcaption span { display: block; color: var(--ink-soft); font-size: .86rem; margin-top: .2rem; }
.gallery__item figcaption a { display: inline-flex; align-items: center; gap: .35rem; font-size: .84rem; font-weight: 700; margin-top: .5rem; }

.empty-gallery { text-align: center; padding: 4rem 1rem; color: var(--ink-soft); }
.empty-gallery i { font-size: 3rem; color: var(--green); margin-bottom: 1rem; }
.empty-gallery h2 { font-size: 1.4rem; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(9, 14, 32, .92); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 3rem;
}
.lightbox.is-open { display: flex; animation: fadeUp .3s var(--ease); }
.lightbox img { max-width: min(1000px, 92vw); max-height: 78vh; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox__close {
  position: absolute; top: 20px; right: 24px; width: 46px; height: 46px;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff;
  font-size: 1.2rem; cursor: pointer; transition: background .2s;
}
.lightbox__close:hover { background: var(--danger); }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; font-size: 1.1rem; cursor: pointer;
  transition: background .2s;
}
.lightbox__nav:hover { background: var(--green); }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }
.lightbox__caption { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: #fff; font-weight: 600; margin: 0; }

/* ---------- Quote wizard ---------- */
.wizard { max-width: 860px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: clamp(1.4rem, 4vw, 2.6rem); }
.wizard__steps { list-style: none; display: flex; gap: .4rem; padding: 0; margin: 0 0 2rem; counter-reset: wstep; flex-wrap: wrap; }
.wizard__steps li {
  flex: 1; min-width: 120px; display: flex; align-items: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 700; font-size: .88rem; color: var(--ink-soft);
  padding: .6rem .9rem; border-radius: 12px; background: var(--bg-alt);
}
.wizard__steps li span {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 2px solid var(--line); color: var(--ink-soft); font-size: .82rem; flex: none;
}
.wizard__steps li.is-active { background: var(--navy); color: #fff; }
.wizard__steps li.is-active span { background: var(--green); border-color: var(--green); color: #fff; }
.wizard__steps li.is-done { background: var(--green-soft); color: #2c7a37; }
.wizard__steps li.is-done span { background: var(--green); border-color: var(--green); color: #fff; }

.wizard__step { display: none; border: 0; padding: 0; margin: 0; }
.wizard__step.is-active { display: block; animation: fadeUp .4s var(--ease); }
.wizard__step h2 { font-size: 1.35rem; }
.wizard__hint { color: var(--ink-soft); font-size: .92rem; }
.wizard__count { font-weight: 700; color: var(--green); }
.wizard__group { margin-bottom: 1.6rem; }
.wizard__group h3 { font-size: 1rem; display: flex; align-items: center; gap: .5rem; }
.wizard__group h3 i { color: var(--green); }
.wizard__options { display: flex; flex-wrap: wrap; gap: .55rem; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span {
  display: inline-block; padding: .55rem 1.1rem; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; font-size: .88rem; font-weight: 600; color: var(--ink-soft);
  transition: all .2s var(--ease);
}
.opt:hover span { border-color: var(--green); color: var(--navy); }
.opt input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 6px 14px rgba(27,42,94,.25); }
.opt input:focus-visible + span { outline: 3px solid rgba(47,111,237,.4); }

.wizard__nav { display: flex; justify-content: space-between; gap: .8rem; margin-top: 2rem; }
.wizard__error { color: var(--danger); font-weight: 600; font-size: .9rem; }
.wizard__summary { background: var(--mint); border: 1px solid #d3ead5; border-radius: var(--radius); padding: 1rem 1.2rem; font-size: .9rem; color: var(--ink-soft); margin-top: 1rem; }
.wizard__summary strong { color: var(--navy); }
.wizard__summary ul { margin: .4rem 0 0; padding-left: 1.2rem; }

.form__field select {
  width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--ink); background: var(--bg-alt);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form__field select:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(47,111,237,.14); }

@media (max-width: 640px) {
  .wizard__steps li { min-width: 0; font-size: 0; justify-content: center; }
  .wizard__steps li span { font-size: .82rem; }
  .wizard__nav { flex-direction: column-reverse; }
  .wizard__nav .btn { justify-content: center; }
}

/* ============================================================
   Product landing pages (product.php)
   ============================================================ */
.container--narrow { max-width: 880px; }
.product-hero { text-align: left; }
.product-hero .breadcrumb { display: inline-block; }
.product-hero__grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 2rem; align-items: center; text-align: left; }
.product-hero h1 { margin-bottom: .3em; }
.product-hero__tagline { font-size: 1.15rem; max-width: 34rem; margin-bottom: 1.6rem; }
.product-hero__badge {
  display: inline-block; margin-bottom: 1rem;
  font-family: var(--font-head); font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #0c1430; background: var(--green); border-radius: 999px; padding: .35rem 1rem;
}
.product-hero__icon {
  pointer-events: none;
  justify-self: center; width: min(220px, 40vw); aspect-ratio: 1;
  display: grid; place-items: center; font-size: 4.5rem; color: #fff;
  background: rgba(255, 255, 255, .08); border: 2px solid rgba(255, 255, 255, .18);
  border-radius: 32px; backdrop-filter: blur(4px);
  transform: rotate(4deg);
}
.btn--ondark { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--ondark:hover { border-color: #fff; color: #fff; }
.product-intro p { font-size: 1.08rem; color: var(--ink-soft); margin: 0 0 1.2rem; }
.product-powered { display: flex; align-items: center; gap: .5rem; color: var(--ink-soft); font-size: .9rem; margin-top: 1.6rem; }
.product-powered i { color: var(--green); }
.product-powered strong { color: var(--navy); }
@media (max-width: 720px) {
  .product-hero__grid { grid-template-columns: 1fr; text-align: center; }
  .product-hero .breadcrumb { display: inline-block; }
  .product-hero__tagline { margin-inline: auto; }
  .product-hero__icon { display: none; }
}
