/* ===== Bot Network Solution — Shared Styles ===== */

:root {
  /* Brand */
  --c-primary: #1E5F9E;        /* Bot Network blue */
  --c-primary-dark: #144876;
  --c-primary-soft: #E8F1F9;
  --c-teal: #6FBCD0;           /* light circle from logo */
  --c-teal-soft: #DCEEF4;
  --c-warm: #F59E0B;           /* friendly CTA */
  --c-warm-dark: #D97706;
  --c-line: #06C755;           /* LINE brand green */

  /* Neutrals */
  --c-ink: #0F172A;
  --c-ink-2: #334155;
  --c-muted: #64748B;
  --c-divider: #E2E8F0;
  --c-bg: #FFFFFF;
  --c-bg-soft: #F6F9FC;
  --c-bg-warm: #FBF7EF;

  /* Type */
  --f-thai: 'IBM Plex Sans Thai', 'Prompt', 'Sarabun', system-ui, sans-serif;
  --f-display: 'Manrope', 'IBM Plex Sans Thai', sans-serif;

  /* Layout */
  --max: 1240px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --shadow-sm: 0 2px 6px rgba(20, 72, 118, 0.06);
  --shadow-md: 0 10px 30px rgba(20, 72, 118, 0.10);
  --shadow-lg: 0 24px 60px rgba(20, 72, 118, 0.14);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--f-thai);
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  color: var(--c-ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(34px, 4.4vw, 56px); font-weight: 800; }
h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 800; }
h3 { font-size: clamp(20px, 1.5vw, 24px); font-weight: 700; }
p  { margin: 0 0 1em; color: var(--c-ink-2); text-wrap: pretty; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ===== Top utility bar ===== */
.utility {
  background: var(--c-primary-dark);
  color: #DCEAF5;
  font-size: 13px;
}
.utility .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 16px;
  flex-wrap: wrap;
}
.utility .left,
.utility .right {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}
.utility a { display: inline-flex; align-items: center; gap: 8px; }
.utility a:hover { color: #fff; }
.utility svg { width: 14px; height: 14px; }

/* ===== Site header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--c-divider);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 56px; width: 56px; object-fit: contain; }
.brand .name {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--c-primary);
  letter-spacing: 0.02em;
  line-height: 1.05;
}
.brand .name small {
  display: block;
  font-weight: 500;
  font-size: 12px;
  color: var(--c-teal);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
nav.primary {
  display: flex;
  gap: 6px;
  align-items: center;
}
nav.primary a {
  padding: 10px 16px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 15px;
  color: var(--c-ink-2);
  transition: all .2s ease;
}
nav.primary a:hover { background: var(--c-primary-soft); color: var(--c-primary); }
nav.primary a.active { background: var(--c-primary); color: white; }

.header-cta {
  display: flex;
  gap: 10px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  border: 0;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--c-primary); color: white; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--c-primary-dark); box-shadow: var(--shadow-md); }
.btn-warm { background: var(--c-warm); color: #2B1A00; box-shadow: var(--shadow-sm); }
.btn-warm:hover { background: var(--c-warm-dark); color: #fff; }
.btn-line { background: var(--c-line); color: white; }
.btn-line:hover { background: #05a648; }
.btn-ghost { background: transparent; color: var(--c-primary); border: 1.5px solid var(--c-primary); }
.btn-ghost:hover { background: var(--c-primary-soft); }
.btn-sm { padding: 10px 16px; font-size: 14px; }

/* ===== Section ===== */
section { padding: 90px 0; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--c-primary-soft);
  color: var(--c-primary);
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 12px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 18px;
}
.section-eyebrow.warm { background: #FEF3C7; color: var(--c-warm-dark); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 18px; color: var(--c-muted); }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 80px 0 100px;
  background:
    radial-gradient(900px 500px at 90% 10%, rgba(111,188,208,0.18), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(30,95,158,0.10), transparent 60%),
    linear-gradient(180deg, #F4F9FD 0%, #FFFFFF 100%);
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero h1 .accent { color: var(--c-primary); }
.hero h1 .accent-warm { color: var(--c-warm-dark); }
.hero p.lead {
  font-size: 19px;
  color: var(--c-ink-2);
  max-width: 560px;
}
.hero .ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero .quick-stats {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 540px;
}
.hero .quick-stats .stat .num {
  font-family: var(--f-display);
  font-size: 36px; font-weight: 800;
  color: var(--c-primary);
  line-height: 1;
}
.hero .quick-stats .stat .label {
  margin-top: 6px;
  font-size: 14px;
  color: var(--c-muted);
}

/* Hero visual */
.hero-visual {
  position: relative;
  aspect-ratio: 5 / 4.4;
}
.hero-visual .photo {
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  background:
    linear-gradient(135deg, rgba(30,95,158,.55), rgba(111,188,208,.35)),
    repeating-linear-gradient(135deg, #1E5F9E 0 2px, #2B6FAE 2px 14px);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex; align-items: flex-end;
  color: white;
  padding: 28px;
}
.hero-visual .photo .label {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .9;
}
.hero-visual .badge {
  position: absolute;
  background: white;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  font-weight: 600;
}
.hero-visual .badge .dot {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--c-primary-soft);
  color: var(--c-primary);
}
.hero-visual .badge.b1 { left: -10px; top: 30px; }
.hero-visual .badge.b2 { right: -16px; bottom: 60px; }
.hero-visual .badge.b3 { left: 30px; bottom: -18px; }
.hero-visual .badge .dot.warm { background: #FEF3C7; color: var(--c-warm-dark); }
.hero-visual .badge .dot.teal { background: var(--c-teal-soft); color: var(--c-primary); }

/* ===== Logo cluster (clients) ===== */
.clients {
  padding: 36px 0;
  border-top: 1px solid var(--c-divider);
  border-bottom: 1px solid var(--c-divider);
  background: var(--c-bg-soft);
}
.clients .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
}
.clients .label {
  font-size: 13px;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: .15em;
  font-family: var(--f-display);
  font-weight: 700;
}
.clients .logos {
  display: flex; gap: 38px; flex-wrap: wrap;
  font-family: var(--f-display);
  font-weight: 700;
  color: #94A3B8;
  font-size: 18px;
  letter-spacing: .04em;
}

/* ===== Features / Services grid ===== */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.svc-card {
  background: white;
  border: 1px solid var(--c-divider);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}
.svc-card:hover {
  border-color: var(--c-teal);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.svc-card .icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--c-primary-soft);
  color: var(--c-primary);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.svc-card .icon svg { width: 28px; height: 28px; }
.svc-card.warm .icon { background: #FEF3C7; color: var(--c-warm-dark); }
.svc-card.teal .icon { background: var(--c-teal-soft); color: var(--c-primary); }
.svc-card h3 { margin-bottom: 10px; }
.svc-card p { font-size: 15px; color: var(--c-muted); margin-bottom: 0; }
.svc-card ul {
  margin: 14px 0 0; padding: 0; list-style: none;
}
.svc-card ul li {
  font-size: 14px;
  color: var(--c-ink-2);
  padding: 6px 0 6px 22px;
  position: relative;
}
.svc-card ul li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-teal);
  position: absolute; left: 6px; top: 14px;
}

/* ===== Process steps ===== */
.process {
  background: var(--c-bg-soft);
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}
.step {
  background: white;
  border-radius: var(--r-lg);
  padding: 28px 24px;
  border: 1px solid var(--c-divider);
  position: relative;
}
.step .num {
  display: inline-flex;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--c-primary);
  color: white;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 18px;
  align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { font-size: 14px; margin: 0; color: var(--c-muted); line-height: 1.6; }

/* ===== Why / About bullets ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.about-photo {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background:
    linear-gradient(160deg, rgba(30,95,158,.7), rgba(111,188,208,.5)),
    repeating-linear-gradient(45deg, #1E5F9E 0 6px, #2C6BAA 6px 12px);
  position: relative;
  box-shadow: var(--shadow-lg);
}
.about-photo .photo-tag {
  position: absolute;
  bottom: 22px; left: 22px;
  color: white;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.about-photo .corner {
  position: absolute;
  top: -22px; right: -22px;
  background: var(--c-warm);
  color: #2B1A00;
  border-radius: 50%;
  width: 130px; height: 130px;
  display: grid; place-items: center;
  text-align: center;
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 1.1;
  padding: 14px;
  box-shadow: var(--shadow-md);
  transform: rotate(-8deg);
}
.about-photo .corner small { display: block; font-size: 12px; font-weight: 600; opacity: .7; }
.about-photo .corner .big { font-size: 30px; }
.about-bullets { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 18px; }
.about-bullets li {
  display: grid; grid-template-columns: auto 1fr; gap: 14px;
  align-items: flex-start;
}
.about-bullets li .check {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--c-primary);
  color: white;
  display: grid; place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.about-bullets li .check svg { width: 16px; height: 16px; }
.about-bullets li strong { display: block; color: var(--c-ink); margin-bottom: 4px; }
.about-bullets li span { color: var(--c-muted); font-size: 15px; }

/* ===== CTA Strip ===== */
.cta-strip {
  background: linear-gradient(115deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
  color: white;
  border-radius: var(--r-lg);
  padding: 56px 64px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.cta-strip::before, .cta-strip::after {
  content: ""; position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.cta-strip::before { width: 320px; height: 320px; right: -100px; top: -120px; }
.cta-strip::after  { width: 200px; height: 200px; left: 25%; bottom: -80px; }
.cta-strip h2 { color: white; margin-bottom: 8px; position: relative; }
.cta-strip p { color: rgba(255,255,255,.85); margin: 0; position: relative; font-size: 17px; }
.cta-strip .ctas { display: flex; gap: 12px; position: relative; flex-wrap: wrap; }

/* ===== Footer ===== */
footer.site-footer {
  background: #0E2A45;
  color: #C2D6E7;
  padding: 70px 0 30px;
  font-size: 15px;
}
footer.site-footer .grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}
footer.site-footer .brand .name { color: white; }
footer.site-footer p { color: #94B0C7; font-size: 14px; }
footer.site-footer h4 {
  color: white; font-size: 14px; letter-spacing: .15em;
  text-transform: uppercase; margin: 6px 0 18px;
  font-family: var(--f-display);
}
footer.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
footer.site-footer a:hover { color: white; }
footer.site-footer .legal {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex; justify-content: space-between; gap: 20px;
  font-size: 13px; color: #6B8AA4;
  flex-wrap: wrap;
}
footer.site-footer .social { display: flex; gap: 10px; margin-top: 14px; }
footer.site-footer .social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  display: grid; place-items: center;
}
footer.site-footer .social a:hover { background: var(--c-primary); }
footer.site-footer .social svg { width: 18px; height: 18px; }

/* ===== Page hero (smaller, for inner pages) ===== */
.page-hero {
  padding: 60px 0 70px;
  background:
    radial-gradient(800px 380px at 90% 0%, rgba(111,188,208,.18), transparent 60%),
    linear-gradient(180deg, #F4F9FD 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--c-divider);
}
.page-hero .breadcrumbs {
  font-size: 14px;
  color: var(--c-muted);
  margin-bottom: 16px;
}
.page-hero .breadcrumbs a:hover { color: var(--c-primary); }
.page-hero h1 { max-width: 720px; }
.page-hero p.lead { max-width: 640px; font-size: 18px; color: var(--c-ink-2); }

/* ===== Portfolio ===== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.portfolio-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: white;
  border: 1px solid var(--c-divider);
  transition: all .25s;
  display: flex; flex-direction: column;
}
.portfolio-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.portfolio-card .ph {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, rgba(30,95,158,.6), rgba(111,188,208,.4));
  position: relative;
  display: grid; place-items: center;
  color: white;
}
.portfolio-card .ph::after {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background: repeating-linear-gradient(45deg, transparent 0 14px, rgba(255,255,255,.05) 14px 28px);
}
.portfolio-card .ph img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block; z-index: 1;
}
.portfolio-card .ph svg { width: 48px; height: 48px; opacity: .9; position: relative; z-index: 1; }
.portfolio-card .body { padding: 22px 24px 26px; }
.portfolio-card .tag {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  letter-spacing: .1em;
  color: var(--c-primary);
  background: var(--c-primary-soft);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  margin-bottom: 12px;
  font-family: var(--f-display);
  text-transform: uppercase;
}
.portfolio-card h3 { font-size: 19px; margin-bottom: 6px; }
.portfolio-card .meta {
  font-size: 14px; color: var(--c-muted);
  display: flex; gap: 16px; margin-top: 10px;
  border-top: 1px solid var(--c-divider);
  padding-top: 14px;
}

.filters {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 36px;
}
.filters button {
  padding: 9px 18px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--c-divider);
  background: white;
  color: var(--c-ink-2);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
}
.filters button:hover { border-color: var(--c-primary); color: var(--c-primary); }
.filters button.active { background: var(--c-primary); color: white; border-color: var(--c-primary); }

/* ===== Contact / Form ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
}
.contact-info {
  background: var(--c-bg-soft);
  border-radius: var(--r-lg);
  padding: 36px;
  border: 1px solid var(--c-divider);
}
.contact-info .item {
  display: grid; grid-template-columns: 48px 1fr; gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--c-divider);
}
.contact-info .item:last-child { border-bottom: 0; }
.contact-info .item .ic {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--c-primary-soft); color: var(--c-primary);
  display: grid; place-items: center;
}
.contact-info .item .ic svg { width: 22px; height: 22px; }
.contact-info .item h4 { margin: 0 0 4px; font-size: 14px; color: var(--c-muted); letter-spacing: .1em; text-transform: uppercase; }
.contact-info .item p { margin: 0; color: var(--c-ink); font-weight: 600; font-size: 17px; }
.contact-info .item span { color: var(--c-muted); font-size: 14px; font-weight: 400; }

form.contact {
  background: white;
  border-radius: var(--r-lg);
  padding: 36px;
  border: 1px solid var(--c-divider);
  box-shadow: var(--shadow-sm);
}
form.contact .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
form.contact label {
  display: block;
  font-size: 13px; font-weight: 700;
  margin-bottom: 6px;
  color: var(--c-ink-2);
  font-family: var(--f-display);
  letter-spacing: .04em;
}
form.contact input, form.contact textarea, form.contact select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--c-divider);
  border-radius: var(--r-md);
  font-family: var(--f-thai);
  font-size: 15px;
  color: var(--c-ink);
  background: white;
  transition: border .2s;
}
form.contact input:focus, form.contact textarea:focus, form.contact select:focus {
  outline: none; border-color: var(--c-primary);
}
form.contact textarea { resize: vertical; min-height: 120px; }
form.contact .submit-row { margin-top: 8px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
form.contact .submit-row small { color: var(--c-muted); font-size: 13px; }

.map {
  margin-top: 50px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--c-divider);
  height: 360px;
  background:
    repeating-linear-gradient(0deg, #E2E8F0 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg, #E2E8F0 0 1px, transparent 1px 64px),
    linear-gradient(180deg, #ECF3FA, #DDE9F4);
  position: relative;
}
.map .pin {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -100%);
}
.map .pin .dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--c-warm);
  border: 4px solid white;
  box-shadow: var(--shadow-md);
}
.map .pin .label {
  margin-top: 6px;
  background: white;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  color: var(--c-primary);
}
.map .roads {
  position: absolute; inset: 0;
}
.map .roads .road {
  position: absolute;
  background: white;
  height: 14px;
  box-shadow: 0 0 0 1px #CBD8E5 inset;
}
.map .roads .road.h { left: 0; right: 0; }
.map .roads .road.v { top: 0; bottom: 0; width: 14px; }

/* ===== FAQ ===== */
.faq { display: grid; gap: 12px; max-width: 900px; margin: 0 auto; }
.faq details {
  background: white;
  border: 1px solid var(--c-divider);
  border-radius: var(--r-md);
  padding: 20px 24px;
  transition: all .2s;
}
.faq details[open] { border-color: var(--c-primary); box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-family: var(--f-display);
  font-size: 17px;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  color: var(--c-ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--c-primary-soft); color: var(--c-primary);
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 20px;
  flex-shrink: 0;
  transition: transform .2s;
}
.faq details[open] summary::after { content: "−"; background: var(--c-primary); color: white; }
.faq details p { margin: 14px 0 0; color: var(--c-ink-2); font-size: 15px; }

/* ===== Service detail (services.html) ===== */
.svc-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 70px 0;
  border-bottom: 1px solid var(--c-divider);
}
.svc-detail.reverse > .visual { order: 2; }
.svc-detail .visual {
  border-radius: var(--r-lg);
  aspect-ratio: 4/3;
  background:
    linear-gradient(135deg, rgba(30,95,158,.55), rgba(111,188,208,.4)),
    repeating-linear-gradient(45deg, #1E5F9E 0 6px, #2B6BA8 6px 14px);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.svc-detail .visual .icon-big {
  position: absolute;
  right: 24px; top: 24px;
  width: 86px; height: 86px;
  border-radius: 50%;
  background: white;
  display: grid; place-items: center;
  color: var(--c-primary);
  box-shadow: var(--shadow-sm);
}
.svc-detail .visual .icon-big svg { width: 44px; height: 44px; }
.svc-detail .visual .label {
  position: absolute;
  bottom: 22px; left: 22px;
  color: white;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 13px; letter-spacing: .14em;
  text-transform: uppercase;
}
.svc-detail h2 { margin-bottom: 10px; }
.svc-detail .price-row {
  display: flex; gap: 16px; align-items: center;
  margin: 18px 0 24px;
  font-family: var(--f-display);
}
.svc-detail .price-row .from { color: var(--c-muted); font-size: 14px; }
.svc-detail .price-row .price { color: var(--c-primary); font-weight: 800; font-size: 28px; }
.svc-detail ul.feat { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.svc-detail ul.feat li { display: flex; gap: 10px; font-size: 15px; color: var(--c-ink-2); }
.svc-detail ul.feat li::before {
  content: "✓"; color: var(--c-primary);
  font-weight: 800; font-size: 16px;
}

/* ===== Floating chat buttons ===== */
.float-cta {
  position: fixed; right: 22px; bottom: 22px; z-index: 100;
  display: flex; flex-direction: column; gap: 12px;
}
.float-cta a {
  width: 58px; height: 58px;
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
  transition: transform .2s, box-shadow .2s;
  color: white;
}
.float-cta a:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.float-cta a.line { background: var(--c-line); }
.float-cta a.phone { background: var(--c-warm); color: #2B1A00; }
.float-cta a svg { width: 26px; height: 26px; }

/* ===== Hamburger / Mobile nav ===== */
.menu-btn {
  display: none;
  width: 44px; height: 44px;
  background: var(--c-primary-soft);
  border: 0; border-radius: 10px;
  cursor: pointer; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
  flex-shrink: 0;
}
.menu-btn span {
  display: block; width: 22px; height: 2px;
  background: var(--c-primary); border-radius: 2px;
  transition: all .25s ease;
}
.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed; inset: 0; z-index: 200;
}
.mobile-nav.open { display: block; }
.mobile-nav .overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.4);
}
.mobile-nav .drawer {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(300px, 85vw);
  background: white;
  display: flex; flex-direction: column;
  box-shadow: -8px 0 32px rgba(0,0,0,.12);
  overflow-y: auto;
  animation: slideInRight .25s ease;
}
@keyframes slideInRight {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}
.mobile-nav .drawer .mn-head {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--c-divider);
  display: flex; align-items: center; justify-content: space-between;
}
.mobile-nav .drawer .mn-close {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--c-bg-soft); border: 0; cursor: pointer;
  font-size: 18px; display: grid; place-items: center; color: var(--c-muted);
}
.mobile-nav .drawer nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  font-size: 16px; font-weight: 600;
  color: var(--c-ink-2);
  border-bottom: 1px solid var(--c-divider);
  transition: background .15s;
}
.mobile-nav .drawer nav a:hover,
.mobile-nav .drawer nav a.active { background: var(--c-primary-soft); color: var(--c-primary); }
.mobile-nav .drawer .mn-footer {
  padding: 20px;
  margin-top: auto;
  display: grid; gap: 10px;
}

/* Certificates section */
.certs-section { background: #F8FAFC; }
.certs-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
}
.cert-card {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center;
  width: 240px; max-width: 100%;
}
.cert-card a {
  display: block;
  width: 100%; aspect-ratio: 4/3;
  background: white;
  border: 1px solid var(--c-border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
  overflow: hidden;
  position: relative;
}
.cert-card a:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.cert-card img {
  width: 100%; height: 100%;
  object-fit: contain; display: block;
}
.cert-card p {
  font-size: 13px; font-weight: 600;
  color: var(--c-ink2);
  margin: 0; line-height: 1.4;
}
@media (max-width: 640px) {
  .certs-strip { gap: 14px; }
  .cert-card { width: calc(50% - 7px); }
  .cert-card a { padding: 10px; border-radius: 10px; }
  .cert-card p { font-size: 12px; }
}

/* Portfolio photo count badge */
.ph-count {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(0,0,0,.55); color: white;
  font-size: 12px; font-weight: 700;
  padding: 4px 9px; border-radius: 20px;
  z-index: 2; backdrop-filter: blur(4px);
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { max-width: 100%; margin: 0 auto; aspect-ratio: 16/11; }
  .hero .quick-stats { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .svc-grid, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .svc-detail { grid-template-columns: 1fr; gap: 30px; }
  .svc-detail.reverse > .visual { order: 0; }
  .cta-strip { grid-template-columns: 1fr; padding: 40px; }
  footer.site-footer .grid { grid-template-columns: 1fr 1fr; }
  nav.primary, .header-cta .btn:not(.btn-warm) { display: none; }
  .menu-btn { display: flex; }
  section { padding: 70px 0; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .svc-grid, .portfolio-grid, .steps { grid-template-columns: 1fr; }
  form.contact .row { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 64px; }
  .hero h1 { font-size: clamp(28px, 8vw, 40px); }
  .hero p.lead { font-size: 16px; }
  .hero .ctas { gap: 10px; }
  .hero .ctas .btn { width: 100%; justify-content: center; }
  .hero .quick-stats { grid-template-columns: 1fr 1fr; }
  .hero-visual .badge { display: none; }
  footer.site-footer .grid { grid-template-columns: 1fr; }
  .cta-strip { padding: 28px 20px; }
  .cta-strip h2 { font-size: 22px; }
  .utility .left span:not(:first-child) { display: none; }
  .utility .right span { display: none; }
  .site-header .container { height: 68px; }
  .brand img { height: 44px; width: 44px; }
  .brand .name { font-size: 17px; }
  .header-cta .btn-warm { padding: 9px 14px; font-size: 13px; }
  section { padding: 56px 0; }
  .svc-detail ul.feat { grid-template-columns: 1fr; }
  .page-hero { padding: 40px 0 50px; }
  .about-photo { aspect-ratio: 4/3; width: 100%; }
  .about-photo .corner { width: 100px; height: 100px; font-size: 13px; top: -14px; right: -14px; }
  .hero-visual { aspect-ratio: 4/3; }
  .hero-visual .photo { padding: 20px; }
  .cta-strip .ctas { flex-wrap: wrap; }
  .cta-strip .ctas .btn { flex: 1 1 100%; justify-content: center; }
}

/* ===== Reading progress bar ===== */
.read-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--c-primary), var(--c-teal));
  z-index: 1000;
  transition: width .1s linear;
  pointer-events: none;
}

/* ===== Back-to-top ===== */
.back-top {
  position: fixed; left: 22px; bottom: 22px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--c-primary);
  color: white; border: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0; pointer-events: none;
  transform: translateY(10px);
  transition: opacity .25s, transform .25s, background .15s;
  z-index: 90;
}
.back-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-top:hover { background: var(--c-primary-2, #164975); transform: translateY(-2px); }
.back-top svg { width: 20px; height: 20px; }
@media (max-width: 640px) {
  .back-top { left: 16px; bottom: 16px; width: 42px; height: 42px; }
}

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease-out, transform .6s ease-out;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Trust Badges ===== */
.trust-section {
  background: white;
  padding: 60px 0;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
.trust-section .heading {
  text-align: center;
  font-family: var(--f-display);
  font-size: 14px; font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 32px;
}
.trust-row {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: 40px 60px;
}
.trust-badge {
  display: flex; align-items: center; justify-content: center;
  height: 50px; min-width: 90px;
  filter: grayscale(100%) opacity(.6);
  transition: filter .3s ease;
}
.trust-badge:hover { filter: grayscale(0%) opacity(1); }
.trust-badge img {
  max-height: 100%; max-width: 140px;
  object-fit: contain;
}
.trust-badge .name {
  font-family: var(--f-display);
  font-weight: 800; font-size: 20px;
  color: var(--c-ink2);
  letter-spacing: .02em;
}
@media (max-width: 640px) {
  .trust-section { padding: 40px 0; }
  .trust-row { gap: 24px 32px; }
  .trust-badge { height: 40px; min-width: 70px; }
  .trust-badge .name { font-size: 16px; }
}

/* ===== Recent Projects section (home) ===== */
.recent-projects { background: var(--c-bg-soft, #F8FAFC); }
.recent-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
@media (max-width: 980px) {
  .recent-projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .recent-projects-grid { grid-template-columns: 1fr; }
}

/* ===== Animated counter — pure visual, no layout shift ===== */
.stat-num { font-variant-numeric: tabular-nums; }

/* ===== Portfolio Modal ===== */
.port-modal {
  display: none;
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, .88);
  backdrop-filter: blur(6px);
  z-index: 9998;
  align-items: center; justify-content: center;
  padding: 20px;
}
.port-modal.open { display: flex; }
.port-modal-inner {
  background: white;
  border-radius: 20px;
  max-width: 960px; width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
  animation: pm-in .3s ease-out;
}
@keyframes pm-in {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.port-modal-photos {
  position: relative;
  background: #0F172A;
  display: flex; align-items: center; justify-content: center;
  min-height: 360px;
}
.port-modal-photos img {
  max-width: 100%; max-height: 100%;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.port-modal-photos .pm-nav {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  border: 0; color: white;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
  transition: background .15s;
}
.port-modal-photos .pm-nav:hover { background: rgba(255,255,255,.3); }
.port-modal-photos .pm-prev { left: 12px; }
.port-modal-photos .pm-next { right: 12px; }
.port-modal-photos .pm-counter {
  position: absolute; bottom: 14px; left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.55);
  color: white;
  padding: 4px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
}
.port-modal-body {
  padding: 36px 32px;
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.port-modal-body .pm-tag {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-primary);
  background: var(--c-primary-soft);
  padding: 5px 12px;
  border-radius: 20px;
  align-self: flex-start;
  margin-bottom: 14px;
}
.port-modal-body h2 {
  font-family: var(--f-display);
  font-size: 24px; font-weight: 800;
  margin: 0 0 12px;
  line-height: 1.3;
}
.port-modal-body p {
  color: var(--c-ink2);
  margin: 0 0 20px;
  line-height: 1.6;
}
.port-modal-body .pm-meta {
  display: flex; flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.port-modal-body .pm-meta span {
  background: var(--c-bg-soft, #F1F5F9);
  color: var(--c-ink2);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px; font-weight: 600;
}
.port-modal-body .pm-cta {
  margin-top: auto;
  display: flex; gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--c-border);
}
.pm-close {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  border: 0;
  font-size: 18px;
  cursor: pointer;
  z-index: 2;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: transform .15s;
}
.pm-close:hover { transform: rotate(90deg); }
@media (max-width: 768px) {
  .port-modal-inner { grid-template-columns: 1fr; max-height: 94vh; }
  .port-modal-photos { min-height: 240px; max-height: 280px; }
  .port-modal-body { padding: 24px 22px; }
  .port-modal-body h2 { font-size: 20px; }
  .pm-close { width: 36px; height: 36px; top: 12px; right: 12px; }
}

/* ===== FAQ Search ===== */
.faq-search {
  max-width: 480px;
  margin: 0 auto 28px;
  position: relative;
}
.faq-search input {
  width: 100%;
  padding: 14px 18px 14px 46px;
  border: 1.5px solid var(--c-border);
  border-radius: 12px;
  font-size: 15px;
  font-family: var(--f-body);
  background: white;
  transition: border-color .15s, box-shadow .15s;
}
.faq-search input:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px var(--c-primary-soft);
}
.faq-search svg {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--c-muted);
  pointer-events: none;
}
.faq-empty {
  text-align: center;
  padding: 30px 20px;
  color: var(--c-muted);
  font-size: 14px;
}
