/* Autoflowmatrix design system — single stylesheet for the public site.
   Palette taken from the logo: navy #0b2a5b, azure #1673e6, slate #3a4552. */
:root {
  --navy-900: #071c3d;
  --navy-800: #0b2a5b;
  --navy-700: #12397a;
  --blue-600: #1673e6;
  --blue-500: #2f88f0;
  --blue-50:  #eef5fe;
  --slate-700: #3a4552;
  --slate-600: #4f5b69;
  --slate-500: #6b7685;
  --slate-300: #c9d1db;
  --slate-200: #e3e8ef;
  --slate-100: #f1f4f8;
  --slate-50:  #f7f9fc;
  --white: #ffffff;
  --green-600: #138a52;
  --red-600: #c62f2f;
  --text: #13213a;
  --muted: var(--slate-600);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 42, 91, .06), 0 1px 3px rgba(11, 42, 91, .06);
  --shadow: 0 10px 30px -12px rgba(11, 42, 91, .18);
  --container: 1200px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--text); background: var(--white); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--navy-900); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.02em; font-weight: 750; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy-800); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; }

/* Layout */
.afm-container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.afm-narrow { max-width: 820px; }
.afm-section { padding: clamp(56px, 8vw, 104px) 0; }
.afm-section-sm { padding: clamp(40px, 5vw, 64px) 0; }
.afm-bg-soft { background: var(--slate-50); }
.afm-bg-navy { background: radial-gradient(1200px 500px at 85% -10%, rgba(22,115,230,.35), transparent 60%), var(--navy-900); color: #d5def0; }
.afm-bg-navy h1, .afm-bg-navy h2, .afm-bg-navy h3 { color: #fff; }
.afm-bg-navy .afm-lead, .afm-bg-navy p { color: #c4d0e6; }
.afm-grid { display: grid; gap: 24px; }
.afm-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.afm-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.afm-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.afm-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.afm-split-top { align-items: start; }
@media (max-width: 980px) {
  .afm-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .afm-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .afm-split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .afm-grid-2, .afm-grid-3, .afm-grid-4 { grid-template-columns: 1fr; }
}

/* Type helpers */
.afm-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-600); margin: 0 0 14px; }
.afm-eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.afm-bg-navy .afm-eyebrow { color: #7fb6ff; }
.afm-lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 64ch; }
.afm-section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.afm-section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.afm-section-head.center .afm-lead { margin-left: auto; margin-right: auto; }
.afm-muted { color: var(--muted); }
.afm-small { font-size: .9rem; }

/* Buttons */
.afm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font-weight: 650; font-size: .98rem; line-height: 1.2; border: 1.5px solid transparent; cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease; text-decoration: none !important; font-family: inherit; }
.afm-btn svg { width: 18px; height: 18px; }
.afm-btn-primary { background: var(--blue-600); color: #fff; }
.afm-btn-primary:hover { background: var(--navy-700); }
.afm-btn-dark { background: var(--navy-800); color: #fff; }
.afm-btn-dark:hover { background: var(--navy-900); }
.afm-btn-ghost { background: transparent; color: var(--navy-800); border-color: var(--slate-300); }
.afm-btn-ghost:hover { border-color: var(--navy-800); }
.afm-bg-navy .afm-btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.afm-bg-navy .afm-btn-ghost:hover { border-color: #fff; }
.afm-btn-sm { min-height: 40px; padding: 8px 16px; font-size: .9rem; }
.afm-btn:active { transform: translateY(1px); }
.afm-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.afm-link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; }
.afm-link-arrow svg { width: 16px; height: 16px; transition: transform .15s ease; }
.afm-link-arrow:hover svg { transform: translateX(3px); }

/* Header */
.afm-topbar { background: var(--navy-900); color: #b9c6dd; font-size: .84rem; }
.afm-topbar .afm-container { display: flex; justify-content: space-between; gap: 16px; min-height: 38px; align-items: center; }
.afm-topbar a { color: #dbe5f5; }
.afm-topbar-links { display: flex; gap: 20px; flex-wrap: wrap; }
.afm-topbar-links a, .afm-topbar-links span { display: inline-flex; align-items: center; gap: 6px; }
.afm-topbar svg { width: 14px; height: 14px; }
@media (max-width: 760px) { .afm-topbar-hide-sm { display: none !important; } }
.afm-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--slate-200); }
.afm-header .afm-container { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }
.afm-logo { display: flex; align-items: center; flex-shrink: 0; }
.afm-logo img { height: 46px; width: auto; }
.afm-nav { display: flex; align-items: center; gap: 4px; }
.afm-nav > a, .afm-nav-item > button { color: var(--slate-700); font-weight: 600; font-size: .95rem; padding: 10px 12px; border-radius: var(--radius-sm); background: none; border: 0; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; gap: 4px; }
.afm-nav > a:hover, .afm-nav-item > button:hover, .afm-nav a[aria-current="page"] { color: var(--blue-600); text-decoration: none; background: var(--blue-50); }
.afm-nav-item { position: relative; }
.afm-nav-item > button svg { width: 16px; height: 16px; transition: transform .15s; }
.afm-nav-item[data-open="true"] > button svg { transform: rotate(180deg); }
.afm-dropdown { position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%); width: min(680px, 90vw); background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; display: none; grid-template-columns: 1fr 1fr; gap: 4px; }
.afm-nav-item[data-open="true"] .afm-dropdown { display: grid; }
/* Desktop hover menu: always laid out, shown with visibility so it can stay open briefly
   (0.2 s) after the pointer leaves, and an invisible bridge covers the 8px gap below the button. */
@media (hover: hover) and (min-width: 1081px) {
  .afm-dropdown { display: grid; visibility: hidden; opacity: 0; transform: translate(-50%, 6px); transition: opacity .15s ease, transform .15s ease, visibility 0s linear .2s; }
  .afm-dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
  .afm-nav-item:hover .afm-dropdown, .afm-nav-item:focus-within .afm-dropdown, .afm-nav-item[data-open="true"] .afm-dropdown { visibility: visible; opacity: 1; transform: translate(-50%, 0); transition-delay: 0s; }
}
@media (hover: hover) and (min-width: 1081px) and (prefers-reduced-motion: reduce) { .afm-dropdown { transition: visibility 0s linear .2s; transform: translateX(-50%); } }
.afm-dropdown a { display: flex; align-items: flex-start; gap: 14px; padding: 12px; border-radius: var(--radius-sm); color: var(--text); }
.afm-dropdown a:hover, .afm-dropdown a:focus-visible { background: var(--slate-50); text-decoration: none; }
.afm-dropdown .afm-icon { width: 40px; height: 40px; border-radius: 10px; transition: background-color .15s, color .15s; }
.afm-dropdown .afm-icon svg { width: 20px; height: 20px; }
.afm-dropdown a:hover .afm-icon, .afm-dropdown a:focus-visible .afm-icon { background: var(--blue-600); color: #fff; }
.afm-dd-text { display: block; min-width: 0; padding-top: 1px; }
.afm-dropdown strong { display: block; font-size: .93rem; line-height: 1.35; color: var(--navy-900); }
.afm-dd-desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; margin-top: 3px; font-size: .82rem; line-height: 1.45; color: var(--slate-500); }
.afm-dropdown-all { grid-column: 1 / -1; border-top: 1px solid var(--slate-200); margin-top: 6px; padding-top: 6px; }
.afm-dropdown a.afm-dropdown-all { align-items: center; gap: 8px; border-radius: 0 0 var(--radius-sm) var(--radius-sm); font-weight: 600; color: var(--navy-900); }
.afm-dropdown a.afm-dropdown-all svg { width: 18px; height: 18px; }
.afm-header-cta { display: flex; align-items: center; gap: 10px; }
.afm-menu-toggle { display: none; width: 44px; height: 44px; border-radius: var(--radius-sm); border: 1px solid var(--slate-200); background: #fff; align-items: center; justify-content: center; cursor: pointer; color: var(--navy-800); }
.afm-menu-toggle svg { width: 22px; height: 22px; }
@media (max-width: 1080px) {
  .afm-menu-toggle { display: inline-flex; }
  .afm-header-cta .afm-btn { display: none; }
  /* The header's backdrop-filter makes it the containing block for fixed children,
     so position the panel relative to the header with an explicit height. */
  .afm-nav { position: fixed; top: 100%; left: 0; right: 0; height: calc(100dvh - var(--header-h)); background: #fff; flex-direction: column; align-items: stretch; padding: 16px 20px 32px; gap: 2px; overflow-y: auto; display: none; border-top: 1px solid var(--slate-200); }
  .afm-nav[data-open="true"] { display: flex; }
  .afm-nav > a, .afm-nav-item > button { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 1.02rem; }
  .afm-dropdown { position: static; transform: none; width: 100%; box-shadow: none; border: 0; padding: 0 0 8px 8px; grid-template-columns: 1fr; }
  .afm-nav > a.afm-btn { margin-top: 12px; justify-content: center; color: #fff; background: var(--blue-600); }
  .afm-nav > a.afm-btn:hover { background: var(--navy-700); color: #fff; }
  body.afm-nav-open { overflow: hidden; }
}
@media (min-width: 1081px) { .afm-nav .afm-nav-mobile-cta { display: none; } }

/* Icons */
.afm-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: var(--blue-50); color: var(--blue-600); flex-shrink: 0; }
.afm-icon svg { width: 55%; height: 55%; }
.afm-bg-navy .afm-icon { background: rgba(127,182,255,.12); color: #8fc0ff; }

/* Hero */
.afm-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); background: linear-gradient(180deg, var(--slate-50), #fff 70%); position: relative; overflow: hidden; }
.afm-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--slate-200) 1px, transparent 1px), linear-gradient(90deg, var(--slate-200) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 75%); opacity: .55; pointer-events: none; }
.afm-hero .afm-container { position: relative; }
.afm-hero h1 .accent { color: var(--blue-600); }
.afm-hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--slate-700); font-weight: 550; font-size: .95rem; }
.afm-hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.afm-hero-points svg { width: 18px; height: 18px; color: var(--green-600); }
.afm-page-hero { padding: clamp(44px, 6vw, 80px) 0 clamp(40px, 5vw, 64px); background: linear-gradient(180deg, var(--slate-50), #fff); border-bottom: 1px solid var(--slate-200); }
.afm-page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); max-width: 22ch; }
.afm-page-hero .afm-lead { margin-bottom: 0; }

/* Flow visual (hero) */
.afm-flow { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 22px; max-width: 460px; margin-left: auto; width: 100%; }
.afm-flow-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-size: .85rem; color: var(--slate-500); font-weight: 600; }
.afm-flow-head b { color: var(--navy-900); font-size: 1rem; }
.afm-live { display: inline-flex; align-items: center; gap: 6px; color: var(--green-600); }
.afm-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(19,138,82,.15); }
.afm-flow ol { list-style: none; margin: 0; padding: 0; position: relative; }
.afm-flow ol::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: linear-gradient(var(--blue-600), var(--slate-200)); }
.afm-flow li { position: relative; display: flex; gap: 14px; align-items: center; padding: 10px 0; }
.afm-flow li .afm-icon { width: 44px; height: 44px; border: 4px solid #fff; box-shadow: 0 0 0 1px var(--slate-200); z-index: 1; }
.afm-flow li strong { display: block; font-size: .95rem; color: var(--navy-900); }
.afm-flow li span { font-size: .82rem; color: var(--slate-500); }
.afm-flow li em { margin-left: auto; font-style: normal; font-size: .75rem; font-weight: 650; color: var(--green-600); background: #e9f7ef; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 980px) { .afm-flow { margin: 8px auto 0; } }

/* Cards */
.afm-card { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 26px; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; height: 100%; display: flex; flex-direction: column; }
.afm-card h3 { margin-top: 18px; }
.afm-card p { color: var(--muted); font-size: .97rem; }
.afm-card .afm-link-arrow { margin-top: auto; padding-top: 6px; }
a.afm-card { color: inherit; text-decoration: none; }
a.afm-card:hover, .afm-card-hover:hover { border-color: rgba(22,115,230,.45); box-shadow: var(--shadow); transform: translateY(-2px); }
.afm-bg-navy .afm-card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.afm-bg-navy .afm-card p { color: #b6c3da; }
.afm-card-flat { background: var(--slate-50); border-color: transparent; }

/* Lists */
.afm-checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.afm-checklist li { display: flex; gap: 12px; align-items: flex-start; }
.afm-checklist svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; color: var(--blue-600); }
.afm-checklist.problems svg { color: var(--red-600); }
.afm-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.afm-tags li { background: var(--slate-100); color: var(--slate-700); border-radius: 999px; padding: 6px 14px; font-size: .88rem; font-weight: 550; }

/* Process */
.afm-steps { counter-reset: step; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.afm-steps li { counter-increment: step; position: relative; padding: 22px 18px; background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius); }
.afm-steps li::before { content: counter(step, decimal-leading-zero); display: block; font-weight: 800; font-size: .85rem; color: var(--blue-600); margin-bottom: 10px; letter-spacing: .04em; }
.afm-steps h3 { font-size: 1.05rem; margin-bottom: 6px; }
.afm-steps p { font-size: .9rem; color: var(--muted); margin: 0; }
@media (max-width: 1080px) { .afm-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .afm-steps { grid-template-columns: 1fr; } }

/* Portfolio */
.afm-project { overflow: hidden; padding: 0; }
.afm-project-media { aspect-ratio: 16 / 10; background: var(--slate-100); overflow: hidden; }
.afm-project-media img, .afm-project-media video { width: 100%; height: 100%; object-fit: cover; }
.afm-project-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.afm-project-body h3 { margin: 8px 0 8px; }
.afm-badge { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-600); background: var(--blue-50); padding: 4px 10px; border-radius: 999px; align-self: flex-start; }
.afm-video-btn { position: relative; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer; background: linear-gradient(135deg, var(--navy-800), var(--navy-700)); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font: inherit; font-weight: 600; }
.afm-video-btn svg { width: 56px; height: 56px; }

/* Portfolio image zoom + lightbox (site.js: [data-zoom]) */
.afm-zoom { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.afm-zoom img { transition: transform .35s ease; }
.afm-zoom:hover img, .afm-zoom:focus-visible img { transform: scale(1.04); }
.afm-zoom:focus-visible { outline: 3px solid var(--blue-600); outline-offset: -3px; }
.afm-zoom-hint { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--navy-900); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(15,23,42,.18); opacity: 0; transform: scale(.85); transition: opacity .2s ease, transform .2s ease; }
.afm-zoom-hint svg { width: 18px; height: 18px; }
.afm-zoom:hover .afm-zoom-hint, .afm-zoom:focus-visible .afm-zoom-hint { opacity: 1; transform: none; }
@media (hover: none) { .afm-zoom-hint { opacity: 1; transform: none; } }
.afm-lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 64px 80px 40px; border: 0; background: transparent; overflow: hidden; }
.afm-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.afm-lightbox::backdrop { background: rgba(6,14,32,.95); }
.afm-lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; animation: afmLbIn .2s ease; }
.afm-lightbox img { display: block; width: auto; height: auto; max-width: min(1100px, 100%); max-height: calc(100dvh - 160px); object-fit: contain; border-radius: 12px; background: #fff; box-shadow: 0 24px 64px rgba(0,0,0,.45); }
.afm-lightbox figcaption { color: #e6ecf6; font-size: .95rem; font-weight: 600; text-align: center; white-space: pre; }
.afm-lb-btn { position: fixed; z-index: 1; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color .15s; }
.afm-lb-btn[hidden] { display: none; }
.afm-lb-btn:hover, .afm-lb-btn:focus-visible { background: rgba(255,255,255,.3); }
.afm-lb-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.afm-lb-btn svg { width: 24px; height: 24px; }
.afm-lb-close { top: 16px; right: 16px; }
.afm-lb-prev, .afm-lb-next { top: 50%; transform: translateY(-50%); }
.afm-lb-prev { left: 16px; }
.afm-lb-next { right: 16px; }
html.afm-lb-open { overflow: hidden; }
@keyframes afmLbIn { from { opacity: 0; transform: scale(.97); } }
@media (prefers-reduced-motion: reduce) { .afm-lightbox figure { animation: none; } .afm-zoom img { transition: none; } }
@media (max-width: 640px) {
  .afm-lightbox { padding: 68px 12px 92px; }
  .afm-lightbox img { max-height: calc(100dvh - 200px); }
  .afm-lb-prev, .afm-lb-next { top: auto; bottom: 22px; transform: none; }
  .afm-lb-prev { left: calc(50% - 60px); }
  .afm-lb-next { right: calc(50% - 60px); }
}

/* FAQ */
.afm-faq { display: grid; gap: 12px; }
.afm-faq details { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 0 22px; }
.afm-faq details[open] { border-color: rgba(22,115,230,.35); box-shadow: var(--shadow-sm); }
.afm-faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 650; color: var(--navy-900); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.afm-faq summary::-webkit-details-marker { display: none; }
.afm-faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--blue-600); transition: transform .2s; flex-shrink: 0; }
.afm-faq details[open] summary::after { transform: rotate(45deg); }
.afm-faq details > div { padding: 0 0 18px; color: var(--muted); }

/* CTA band */
.afm-cta { border-radius: var(--radius-lg); padding: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center; }
.afm-cta h2 { margin-bottom: .3em; }
.afm-cta p { margin: 0; }
.afm-cta .afm-actions { margin-top: 0; }
@media (max-width: 860px) { .afm-cta { grid-template-columns: 1fr; } }

/* Breadcrumbs */
.afm-breadcrumbs { font-size: .86rem; color: var(--slate-500); margin-bottom: 18px; }
.afm-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.afm-breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--slate-300); }
.afm-breadcrumbs a { color: var(--slate-600); }

/* Forms */
.afm-form { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius-lg); padding: clamp(22px, 3.5vw, 36px); box-shadow: var(--shadow-sm); }
.afm-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.afm-form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .afm-form-grid { grid-template-columns: 1fr; } }
.afm-field label { display: block; font-weight: 600; font-size: .9rem; color: var(--navy-900); margin-bottom: 6px; }
.afm-field label .opt { font-weight: 450; color: var(--slate-500); }
.afm-input, .afm-field input, .afm-field select, .afm-field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: #fff; border: 1.5px solid var(--slate-300); border-radius: 10px; padding: 12px 14px; min-height: 48px; transition: border-color .15s, box-shadow .15s; }
.afm-field textarea { min-height: 130px; resize: vertical; }
.afm-field input:focus, .afm-field select:focus, .afm-field textarea:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(22,115,230,.15); }
.afm-field .is-invalid { border-color: var(--red-600); }
.afm-error { color: var(--red-600); font-size: .85rem; margin-top: 5px; }
.afm-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.afm-form-note { font-size: .85rem; color: var(--slate-500); margin: 14px 0 0; }
.afm-alert { border-radius: var(--radius); padding: 14px 18px; margin-bottom: 20px; font-weight: 550; }
.afm-alert-success { background: #e9f7ef; color: #0d6b3e; border: 1px solid #bfe6d0; }
.afm-alert-error { background: #fdeeee; color: #9b2222; border: 1px solid #f3c7c7; }
.afm-contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.afm-contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.afm-contact-list strong { display: block; color: var(--navy-900); }
.afm-contact-list a, .afm-contact-list span { color: var(--slate-700); }

/* Prose (blog, CMS pages, legal) */
.afm-prose { font-size: 1.06rem; color: var(--slate-700); max-width: 74ch; }
.afm-prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.afm-prose h3 { font-size: 1.25rem; margin-top: 1.5em; }
.afm-prose img { border-radius: var(--radius); margin: 1.5em 0; }
.afm-prose a { text-decoration: underline; }
.afm-prose blockquote { border-left: 4px solid var(--blue-600); margin: 1.5em 0; padding: .3em 1.2em; color: var(--slate-600); background: var(--slate-50); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.afm-prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; }
.afm-prose th, .afm-prose td { border: 1px solid var(--slate-200); padding: 10px 12px; text-align: left; }
@media (max-width: 640px) { .afm-prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; } .afm-prose th, .afm-prose td { min-width: 120px; } }
.afm-prose li { margin-bottom: .4em; }
.afm-article-meta { display: flex; flex-wrap: wrap; gap: 18px; color: var(--slate-500); font-size: .92rem; margin-top: 14px; }
.afm-article-cover { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 36px; aspect-ratio: 16/8; background: var(--slate-100); }
.afm-article-cover img { width: 100%; height: 100%; object-fit: cover; }
.afm-blog-card .afm-project-media { aspect-ratio: 16/9; }
.afm-blog-card time { font-size: .85rem; color: var(--slate-500); }
.afm-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }

/* Footer */
.afm-footer { background: var(--navy-900); color: #aebbd3; padding: 72px 0 0; font-size: .95rem; }
.afm-footer a { color: #d4deef; }
.afm-footer h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin-bottom: 18px; }
.afm-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.afm-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.afm-footer .afm-contact-list span, .afm-footer .afm-contact-list a { color: #d4deef; }
.afm-footer-logo { display: inline-block; background: #fff; border-radius: 12px; padding: 8px 12px; margin-bottom: 16px; }
.afm-footer-logo img { height: 40px; width: auto; }
.afm-social { display: flex; gap: 10px; margin-top: 18px; }
.afm-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); display: inline-flex; align-items: center; justify-content: center; }
.afm-social a:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.afm-social svg { width: 18px; height: 18px; }
.afm-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 56px; padding: 22px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .86rem; }
.afm-footer-bottom ul { display: flex; flex-wrap: wrap; gap: 18px; }
@media (max-width: 980px) { .afm-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .afm-footer-grid { grid-template-columns: 1fr; } }

/* WhatsApp float: above the FlowBot widget frame (120x120 at bottom/right 10px) and centred on its bubble */
.afm-wa { position: fixed; right: 42px; bottom: 138px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #1fa855; color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px -8px rgba(0,0,0,.35); }
.afm-wa svg { width: 28px; height: 28px; }
.afm-wa:hover { background: #178a45; }

/* Misc */
.afm-status-page { text-align: center; min-height: 52vh; display: flex; align-items: center; }
.afm-status-page .afm-actions { justify-content: center; }
.afm-status-code { font-size: clamp(4rem, 12vw, 7rem); font-weight: 800; color: var(--blue-600); line-height: 1; letter-spacing: -.04em; margin-bottom: 8px; }
.afm-divider { height: 1px; background: var(--slate-200); border: 0; margin: 40px 0; }
.afm-note { font-size: .88rem; color: var(--slate-500); border-left: 3px solid var(--slate-300); padding-left: 12px; }
.afm-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.afm-pagination a, .afm-pagination span { min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--slate-200); padding: 0 12px; color: var(--slate-700); }
.afm-pagination .active { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .afm-header, .afm-topbar, .afm-footer, .afm-wa, .afm-cta { display: none !important; }
}
