/* ==========================================================================
   Webcasata — main stylesheet
   Single file, no framework. Mobile-first. ~14KB unminified.
   ========================================================================== */

:root {
  --ink: #14161f;
  --ink-2: #3b3f4e;
  --muted: #6b6f7d;
  --paper: #faf8f3;
  --paper-2: #f1ede4;
  --line: #e3ddd0;
  --white: #ffffff;
  --accent: #e4532a;        /* vermilion */
  --accent-ink: #b83c18;
  --accent-soft: #fde7de;
  --green: #367a23;
  --green-soft: #e4f3dd;

  /* Logo palette (pinwheel) — bright tones for fills, deep tones for text */
  --brand-blue: #5bb8e4;   --brand-blue-ink: #16709d;   --brand-blue-soft: #e3f3fb;
  --brand-green: #68bc4e;  --brand-green-ink: #367a23;  --brand-green-soft: #e4f3dd;
  --brand-orange: #f8a81c; --brand-orange-ink: #9a5c08; --brand-orange-soft: #fef1d8;
  --brand-purple: #b462a6; --brand-purple-ink: #94408a; --brand-purple-soft: #f5e6f2;
  --brand-gradient: linear-gradient(90deg, var(--brand-blue) 0 25%, var(--brand-green) 25% 50%, var(--brand-orange) 50% 75%, var(--brand-purple) 75% 100%);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(20,22,31,.05), 0 8px 24px -12px rgba(20,22,31,.18);
  --wrap: 1260px;
  --font-head: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--paper); }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-blue-ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--brand-blue); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--tint { background: var(--paper-2); }
.section--ink { background: var(--ink); color: #d9dbe3; }
.section--ink h2, .section--ink h3 { color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-blue-ink); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 28px; height: 4px; border-radius: 2px; background: var(--brand-gradient); }
.section--ink .eyebrow { color: var(--brand-blue); }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease; font-family: inherit; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-ink); color: #fff; }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { color: var(--accent-ink); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250,248,243,.9); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(0,0,0,.4); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; color: var(--ink); text-decoration: none; letter-spacing: -.03em; }
.logo img { width: 184px; height: 44px; }
.logo--chip { background: #fff; padding: 8px 14px; border-radius: 12px; }
.brand-stripe { height: 4px; background: var(--brand-gradient); }

.nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav { position: fixed; inset: 72px 0 auto 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px 20px 24px; display: none; }
.nav-open .main-nav { display: block; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 12px 4px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.main-nav a[aria-current="page"] { color: var(--brand-blue-ink); }
.main-nav .btn { margin-top: 16px; width: 100%; justify-content: center; border-bottom: 0; color: #fff; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .main-nav { position: static; display: flex !important; align-items: center; gap: 28px; padding: 0; background: none; border: 0; }
  .main-nav ul { display: flex; gap: 4px; }
  .main-nav a { padding: 8px 12px; border: 0; border-radius: 8px; font-size: .96rem; }
  .main-nav a:hover { background: var(--paper-2); color: var(--ink); }
  .main-nav a[aria-current="page"] { background: var(--brand-blue-soft); }
  .main-nav .btn { margin: 0; width: auto; padding: 10px 20px; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 96px); position: relative; overflow: hidden; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }
.hero h1 em { font-style: normal; color: var(--accent); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.06em; height: .12em; border-radius: 4px; background: var(--brand-gradient); }
.hero .lead { font-size: 1.22rem; margin: 22px 0 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); list-style: none; padding-left: 0; }
.hero-trust li { display: flex; flex-direction: column; }
.hero-trust strong { font-family: var(--font-head); font-size: 1.8rem; line-height: 1; }
.hero-trust li:nth-child(1) strong { color: var(--brand-blue-ink); } .hero-trust li:nth-child(2) strong { color: var(--accent); } .hero-trust li:nth-child(3) strong { color: var(--brand-purple-ink); }
.hero-trust span { font-size: .88rem; color: var(--muted); margin-top: 4px; }

.hero-card { background: var(--ink); color: #e9eaf0; border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); position: relative; }
.hero-card::after { content: ""; position: absolute; inset: auto -14px -14px auto; width: 60%; height: 60%; border-radius: var(--radius-lg); background: var(--brand-gradient); z-index: -1; }
.hero-card .bar { display: flex; gap: 6px; margin-bottom: 20px; }
.hero-card .bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3d4b; }
.hero-card .bar i:nth-child(1) { background: var(--brand-blue); } .hero-card .bar i:nth-child(2) { background: var(--brand-green); } .hero-card .bar i:nth-child(3) { background: var(--brand-orange); }
.score-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 22px; }
.score { text-align: center; }
.score b { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 8px; border-radius: 50%; border: 4px solid var(--brand-green); font-family: var(--font-head); font-size: 1.2rem; color: #fff; }
.score small { font-size: .72rem; color: #a7aab8; line-height: 1.2; display: block; }
.serp { background: #fff; color: var(--ink); border-radius: 12px; padding: 16px; font-size: .9rem; }
.serp cite { color: var(--brand-green-ink); font-style: normal; font-size: .8rem; }
.serp strong { display: block; color: #1a0dab; font-weight: 500; font-size: 1.05rem; margin: 2px 0; }
.serp p { margin: 0; color: #4d5156; font-size: .85rem; line-height: 1.5; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
@media (min-width: 640px) { .grid--2, .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; margin-bottom: 18px; }
.card-icon svg { width: 26px; height: 26px; }
.grid > .card:nth-child(4n+1) .card-icon, .service-block:nth-child(4n+1) .card-icon, .contact-list li:nth-child(4n+1) .card-icon { background: var(--brand-blue-soft); color: var(--brand-blue-ink); }
.grid > .card:nth-child(4n+2) .card-icon, .service-block:nth-child(4n+2) .card-icon, .contact-list li:nth-child(4n+2) .card-icon { background: var(--brand-green-soft); color: var(--brand-green-ink); }
.grid > .card:nth-child(4n+3) .card-icon, .service-block:nth-child(4n+3) .card-icon, .contact-list li:nth-child(4n+3) .card-icon { background: var(--brand-orange-soft); color: var(--brand-orange-ink); }
.grid > .card:nth-child(4n+4) .card-icon, .service-block:nth-child(4n+4) .card-icon, .contact-list li:nth-child(4n+4) .card-icon { background: var(--brand-purple-soft); color: var(--brand-purple-ink); }
.card { position: relative; overflow: hidden; }
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--brand-gradient); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.card:hover::before { transform: scaleX(1); }
.card p { color: var(--ink-2); margin-bottom: 14px; }
.card .more { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.card .more::after { content: "→"; transition: transform .2s; }
.card:hover .more::after { transform: translateX(4px); }

/* ---------- Split / about ---------- */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } .split--rev > :first-child { order: 2; } }
.checklist { list-style: none; padding: 0; margin: 0 0 28px; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23367a23' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/13px no-repeat; }

.stat-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.stat-panel div strong { display: block; font-family: var(--font-head); font-size: 2.6rem; line-height: 1; color: var(--ink); }
.stat-panel { border-top: 5px solid transparent; border-image: var(--brand-gradient) 1; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.stat-panel div:nth-child(1) strong { color: var(--brand-blue-ink); } .stat-panel div:nth-child(2) strong { color: var(--brand-green-ink); } .stat-panel div:nth-child(3) strong { color: var(--brand-orange-ink); } .stat-panel div:nth-child(4) strong { color: var(--brand-purple-ink); }
.stat-panel div span { color: var(--muted); font-size: .92rem; }

/* ---------- Process ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { counter-increment: step; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 28px; position: relative; }
.section:not(.section--ink) .step { background: var(--white); border-color: var(--line); }
.step::before { content: counter(step, decimal-leading-zero); font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; color: var(--brand-blue); line-height: 1; display: block; margin-bottom: 14px; }
.step:nth-child(4n+2)::before { color: var(--brand-green); }
.step:nth-child(4n+3)::before { color: var(--brand-orange); }
.step:nth-child(4n+4)::before { color: var(--brand-purple); }
.section:not(.section--ink) .step:nth-child(4n+1)::before { color: var(--brand-blue-ink); }
.section:not(.section--ink) .step:nth-child(4n+2)::before { color: var(--brand-green-ink); }
.section:not(.section--ink) .step:nth-child(4n+3)::before { color: var(--brand-orange-ink); }
.section:not(.section--ink) .step:nth-child(4n+4)::before { color: var(--brand-purple-ink); }
.step p { margin: 0; color: inherit; opacity: .85; }

/* ---------- Portfolio ---------- */
.work-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.work-filters button { border: 1px solid var(--line); background: var(--white); padding: 8px 16px; border-radius: 999px; font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.work-filters button.is-active, .work-filters button:hover { background: var(--brand-blue-ink); color: #fff; border-color: var(--brand-blue-ink); }
.work-grid { display: grid; gap: 24px; }
@media (min-width: 640px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .work-grid { grid-template-columns: repeat(3, 1fr); } }
.work-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.work-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.work-thumb { aspect-ratio: 16/10; background: var(--paper-2); overflow: hidden; position: relative; }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s ease; }
.work-item:hover .work-thumb img { transform: scale(1.04); }
.work-thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-head); font-size: 1.5rem; color: var(--muted); }
.work-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.work-body h3 { margin: 0; font-size: 1.15rem; }
.work-body .tag { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-blue-ink); }
.work-item:nth-child(4n+2) .tag { color: var(--brand-green-ink); } .work-item:nth-child(4n+3) .tag { color: var(--brand-orange-ink); } .work-item:nth-child(4n+4) .tag { color: var(--brand-purple-ink); }
.work-thumb { border-bottom: 4px solid transparent; border-image: var(--brand-gradient) 1; }
.work-body p { color: var(--muted); font-size: .94rem; margin: 0 0 8px; }
.work-body a { margin-top: auto; font-weight: 600; text-decoration: none; }
.work-item.is-hidden { display: none; }
.work-body h2 {font-size: clamp(1.8rem, 3.6vw, 2.1rem);}

/* ---------- Pricing ---------- */
.price-grid { display: grid; gap: 22px; }
@media (min-width: 900px) { .price-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.price { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; }
.price--featured { background: var(--ink); color: #d9dbe3; border-color: var(--ink); position: relative; box-shadow: 0 0 0 4px var(--paper), 0 0 0 8px var(--brand-blue); }
.price.price--featured h2, .price.price--featured h3, .price.price--featured .amount { color: #fff; }
.price.price--featured .amount small { color: #a7aab8; }
.price--featured .badge { position: absolute; top: -13px; left: 32px; background: var(--brand-orange); color: var(--ink); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.price .amount { font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; line-height: 1; margin: 14px 0 6px; color: var(--ink); }
.price .amount small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.price .checklist { margin: 22px 0 28px; flex: 1; }
.price--featured .checklist li::before { background-color: var(--brand-green-soft); }
.price .btn { justify-content: center; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 22px 44px 22px 0; font: inherit; font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; color: var(--ink); cursor: pointer; position: relative; }
.faq-q::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 400; color: var(--brand-blue-ink); transition: transform .2s; }
.faq-q[aria-expanded="true"]::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { padding: 0 0 22px; color: var(--ink-2); }
.js .faq-a[hidden] { display: none; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--accent); color: #fff; position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 64px); display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.4fr auto; } }
.cta-band::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--brand-gradient); }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; opacity: .92; font-size: 1.1rem; }

/* ---------- Page header / breadcrumb ---------- */
.page-hero { padding: 56px 0 48px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); max-width: 26ch; }
.breadcrumb { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 6px; font-size: .9rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand-blue-ink); }

/* ---------- Service detail blocks ---------- */
.service-block { display: grid; gap: 28px; padding: 56px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.service-block:last-child { border-bottom: 0; }
@media (min-width: 900px) { .service-block { grid-template-columns: 300px 1fr; gap: 64px; } }
.service-block aside .card-icon { width: 64px; height: 64px; }
.service-block aside h2 { font-size: 1.9rem; }
.service-block .pill-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 18px 0 0; }
.pill-list li { background: var(--paper-2); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; list-style: none; padding: 0; }
.toc a { display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: .92rem; font-weight: 600; text-decoration: none; color: var(--ink); }
.toc a:hover { border-color: var(--brand-blue); color: var(--brand-blue-ink); }

/* ---------- Forms ---------- */
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); }
.form-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 18px; }
.field label, .field legend { display: block; font-weight: 600; font-size: .94rem; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); transition: border-color .15s, background .15s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-blue); background: #fff; box-shadow: 0 0 0 3px var(--brand-blue-soft); }
.field textarea { min-height: 140px; resize: vertical; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #c62828; }
.field .error-msg { color: #c62828; font-size: .85rem; margin-top: 4px; display: none; }
.field.has-error .error-msg { display: block; }
fieldset.field { border: 0; padding: 0; margin: 0 0 18px; }
.radio-group { display: grid; gap: 8px; }
@media (min-width: 640px) { .radio-group { grid-template-columns: 1fr 1fr; } }
.radio-group label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; margin: 0; background: var(--paper); }
.radio-group input { width: auto; margin-top: 5px; accent-color: var(--brand-blue-ink); }
.radio-group label:has(input:checked) { border-color: var(--brand-blue); background: var(--brand-blue-soft); }
.hp-field { position: absolute; left: -9999px; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 10px; display: none; font-weight: 500; }
.form-status.is-success { display: block; background: var(--green-soft); color: var(--green); }
.form-status.is-error { display: block; background: #fdecea; color: #a12121; }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.contact-list .card-icon { margin: 0; width: 44px; height: 44px; flex: none; }
.contact-list strong { display: block; font-size: .85rem; color: var(--muted); font-weight: 600; }
.contact-list a, .contact-list span { color: var(--ink); font-weight: 600; text-decoration: none; }

/* ---------- Prose ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.7rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #a7aab8; padding: 72px 0 28px; font-size: .95rem; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--brand-gradient); }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #d2d4dd; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid #2b2e3b; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .88rem; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 38px; height: 38px; border-radius: 10px; background: #232634; display: grid; place-items: center; }
.social a:nth-child(1):hover { background: var(--brand-blue-ink); } .social a:nth-child(2):hover { background: var(--brand-green-ink); }
.social svg { width: 18px; height: 18px; fill: #fff; }

/* ---------- Floating WhatsApp + back-to-top ---------- */
.float-wa { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 24px -6px rgba(0,0,0,.35); z-index: 60; }
.float-wa svg { width: 28px; height: 28px; fill: #fff; }
.to-top { position: fixed; right: 24px; bottom: 86px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--brand-blue-ink); color: #fff; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 60; font-size: 1.2rem; }
.to-top.is-visible { opacity: 1; pointer-events: auto; }

/* ---------- Reveal on scroll (progressive enhancement) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 120px 0; }
.notfound .big { font-family: var(--font-head); font-size: clamp(6rem, 20vw, 12rem); line-height: 1; font-weight: 700; background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ==========================================================================
   SEO / internal-linking components
   ========================================================================== */

/* ---------- Mega menu ---------- */
.has-mega { display: flex; flex-wrap: wrap; align-items: center; }
.has-mega > a { flex: 1; }
.mega-toggle { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.mega-toggle::before { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.has-mega.is-open .mega-toggle::before { transform: translateY(2px) rotate(-135deg); }
.mega { display: none; width: 100%; padding: 4px 0 14px 12px; }
.has-mega.is-open .mega { display: block; }
.mega-h { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-blue-ink); margin: 12px 0 4px; }
.main-nav .mega ul { display: block; }
.main-nav .mega a { padding: 8px 4px; font-weight: 500; font-size: .96rem; border-bottom: 0; }
.mega-foot { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 10px; }
.main-nav .mega-foot a { font-weight: 600; color: var(--brand-blue-ink); }
.main-nav { max-height: calc(100vh - 72px); overflow-y: auto; }
.mega-col:nth-child(1) .mega-h { color: var(--brand-blue-ink); }
.mega-col:nth-child(2) .mega-h { color: var(--brand-green-ink); }
.mega-col:nth-child(3) .mega-h { color: var(--brand-orange-ink); }
.mega-col:nth-child(4) .mega-h { color: var(--brand-purple-ink); }

@media (min-width: 960px) {
  .header-inner { position: relative; }
  .main-nav { max-height: none; overflow: visible; height: 100%; }
  .main-nav > ul { height: 100%; align-items: center; }
  .has-mega { position: static; height: 100%; flex-wrap: nowrap; }
  .has-mega > a { flex: none; }
  .mega-toggle { width: 22px; height: 32px; margin-left: -8px; }
  .mega { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 28px; position: absolute; top: 100%; left: 50%; transform: translate(-50%, 6px); width: min(940px, calc(100vw - 40px)); padding: 26px 30px 20px; background: #fff; border: 1px solid var(--line); border-top: 4px solid transparent; border-image: var(--brand-gradient) 1; box-shadow: 0 24px 48px -20px rgba(20,22,31,.35); opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s; z-index: 70; }
  .has-mega:hover .mega, .has-mega:focus-within .mega, .has-mega.is-open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .mega-h { margin-top: 0; }
  .main-nav .mega a { padding: 6px 8px; margin: 0 -8px; border-radius: 8px; color: var(--ink-2); }
  .main-nav .mega a:hover { background: var(--paper-2); color: var(--ink); }
  .mega-foot { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 8px; }
  .main-nav .mega-foot a { margin: 0; }
}

/* ---------- Card as a whole link ---------- */
.card--link { position: relative; }
.card--link h2 a, .card--link h3 a { color: var(--ink); text-decoration: none; }
.card--link h2 a::after, .card--link h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card--link:hover h2 a, .card--link:hover h3 a { color: var(--brand-blue-ink); }
.card--link .more { font-weight: 600; color: var(--brand-blue-ink); }
.post-card h2 { font-size: 1.3rem; }
.post-meta { font-size: .86rem; color: var(--muted); margin-bottom: 10px; }

/* ---------- Homepage extras ---------- */
.also-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 32px; }
.also-row > span { font-weight: 700; color: var(--ink-2); }
.also-row ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.also-row ul a { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: .92rem; text-decoration: none; color: var(--ink); }
.also-row ul a:hover { border-color: var(--brand-blue); color: var(--brand-blue-ink); }
.also-row .btn { margin-left: auto; }
.conv-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .conv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .conv-grid { grid-template-columns: repeat(4, 1fr); } }
.conv-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: transform .2s, box-shadow .2s; }
.conv-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.conv-tile h3 { font-size: 1.12rem; }
.conv-tile p { color: var(--ink-2); font-size: .95rem; margin: 0; }
.conv-tile:nth-child(1) .card-icon { background: var(--brand-blue-soft); color: var(--brand-blue-ink); }
.conv-tile:nth-child(2) .card-icon { background: var(--brand-green-soft); color: var(--brand-green-ink); }
.conv-tile:nth-child(3) .card-icon { background: var(--brand-orange-soft); color: var(--brand-orange-ink); }
.conv-tile:nth-child(4) .card-icon { background: var(--brand-purple-soft); color: var(--brand-purple-ink); }

/* ---------- Service hub ---------- */
.hub-group { padding: 64px 0 8px; scroll-margin-top: 80px; }
.hub-group + .hub-group { border-top: 1px solid var(--line); }
.hub-group:last-child { padding-bottom: 72px; }
.grid > .card[id] { scroll-margin-top: 90px; }

/* ---------- Service page ---------- */
.page-hero .pill-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 26px 0 0; }
.feature-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature { background: #fff; padding: 26px; }
.feature h3 { font-size: 1.08rem; display: flex; gap: 10px; align-items: baseline; }
.feature h3::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--brand-blue); transform: translateY(-1px); }
.feature:nth-child(4n+2) h3::before { background: var(--brand-green); }
.feature:nth-child(4n+3) h3::before { background: var(--brand-orange); }
.feature:nth-child(4n+4) h3::before { background: var(--brand-purple); }
.feature p { color: var(--ink-2); margin: 0; font-size: .96rem; }

.svc-layout { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .svc-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; } .svc-aside { position: sticky; top: 96px; } }
.svc-layout .prose { max-width: 720px; }
.prose h2:first-child { margin-top: 0; }
.prose a { font-weight: 600; }
.side-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; border-top: 4px solid transparent; border-image: var(--brand-gradient) 1; }
.side-h { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.side-list { list-style: none; padding: 0; margin: 0 0 22px; }
.side-list li { border-bottom: 1px solid var(--line); }
.side-list li:last-child { border-bottom: 0; }
.side-list a { display: block; padding: 9px 0; font-weight: 600; text-decoration: none; color: var(--ink); }
.side-list a:hover { color: var(--brand-blue-ink); }
.side-list--desc li { padding-bottom: 10px; }
.side-list--desc a { padding-bottom: 2px; }
.side-list--desc span { display: block; font-size: .88rem; color: var(--muted); line-height: 1.5; }
.side-box .btn { width: 100%; justify-content: center; }
.steps--4 { }
@media (min-width: 1040px) { .steps--4 { grid-template-columns: repeat(4, 1fr); } }
.step-link { margin-top: 14px !important; opacity: 1 !important; }
.step-link a { font-weight: 600; text-decoration: none; }
.price-link { margin: -6px 0 0; font-size: .94rem; }
.price-link a { font-weight: 600; text-decoration: none; }
.price--featured a:not(.btn) { color: var(--brand-blue); }

/* ---------- Blog post ---------- */
.toc-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 36px; }
.toc-box ol { margin: 0; padding-left: 1.2em; }
.toc-box li { margin: 4px 0; }
.toc-box a { font-weight: 500 !important; text-decoration: none; }
.prose h2[id] { scroll-margin-top: 96px; }
.prose li { margin-bottom: 6px; }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
.table-wrap th, .table-wrap td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap th { background: var(--paper-2); font-weight: 700; }
.table-wrap tr:last-child td { border-bottom: 0; }
.post-faq { margin-top: 48px; }
.post-faq .faq { max-width: none; }
.page-hero .post-meta { margin-top: 18px; }

/* ---------- Footer 5 columns ---------- */
@media (min-width: 760px) { .footer-grid--5 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .footer-grid--5 { grid-template-columns: 1.3fr 1fr 1.1fr .8fr 1.1fr; } }
