/* CGL Appraisals — site styles. No external dependencies. */
:root {
  --navy-950: #081a30;
  --navy-900: #0d2440;
  --navy-800: #13325a;
  --blue-600: #2459a8;
  --blue-500: #2c64b8;
  --blue-300: #7fa3d6;
  --blue-50: #eef3fb;
  --amber-500: #f0a23b;
  --amber-400: #f6b65c;
  --amber-50: #fff6ea;
  --ink: #17212f;
  --ink-2: #3a4657;
  --muted: #5b6779;
  --line: #e2e7ef;
  --surface: #f5f7fb;
  --bg: #ffffff;
  --ok: #1f7a4d;

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(13, 36, 64, .06), 0 2px 8px rgba(13, 36, 64, .05);
  --shadow: 0 2px 6px rgba(13, 36, 64, .06), 0 12px 32px rgba(13, 36, 64, .10);
  --shadow-lg: 0 24px 60px rgba(8, 26, 48, .22);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --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) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font: 17px/1.65 var(--font-sans); color: var(--ink); background: var(--bg); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-900); }
:focus-visible { outline: 3px solid var(--amber-500); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--navy-900); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .5vw, 1.4rem); }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { padding-left: 1.2em; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; margin-inline: auto; }
.eyebrow { display: inline-block; font: 700 .78rem/1 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--blue-600); margin-bottom: .9rem; }
.lede { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: var(--ink-2); }
.muted { color: var(--muted); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }

/* Buttons */
.btn { --b: var(--amber-500); display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: .75em 1.35em; border-radius: 999px; border: 2px solid var(--b); background: var(--b); color: var(--navy-950); font: 700 1rem/1.1 var(--font-sans); text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; box-shadow: 0 6px 18px rgba(240, 162, 59, .32); }
.btn:hover { background: var(--amber-400); border-color: var(--amber-400); color: var(--navy-950); transform: translateY(-1px); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); box-shadow: none; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }
.btn-outline { background: transparent; color: var(--navy-900); border-color: var(--navy-900); box-shadow: none; }
.btn-outline:hover { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.btn-navy { --b: var(--navy-900); color: #fff; box-shadow: 0 6px 18px rgba(13, 36, 64, .25); }
.btn-navy:hover { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Top bar + header */
.topbar { background: var(--navy-950); color: #c9d5e8; font-size: .86rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-block: 7px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar .wrap > div { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-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 transparent; transition: box-shadow .2s, border-color .2s; }
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy-900); flex: none; }
.brand svg { width: 52px; height: 30px; }
.brand-name { font: 700 1.38rem/1 var(--font-serif); letter-spacing: -.01em; }
.brand-name small { display: block; font: 600 .66rem/1.3 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { white-space: nowrap; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .96rem; padding: .55em .8em; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue-600); background: var(--blue-50); }
.nav .btn { margin-left: 10px; min-height: 44px; padding: .6em 1.1em; font-size: .95rem; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 24px; height: 24px; }
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; background: #fff; padding: 12px var(--gutter) 22px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .18s ease; max-height: calc(100vh - var(--header-h)); overflow: auto; }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: .85em .8em; font-size: 1.05rem; }
  .nav .btn { margin: 10px 0 0; }
  .topbar .hide-sm { display: none; }
}

/* Hero */
.hero { position: relative; color: #fff; isolation: isolate; overflow: hidden; background: var(--navy-900); }
.hero picture, .hero .hero-img { position: absolute; inset: 0; z-index: -2; }
.hero .hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(8, 26, 48, .94) 0%, rgba(8, 26, 48, .82) 42%, rgba(8, 26, 48, .35) 100%); }
.hero .wrap { padding-block: clamp(64px, 10vw, 128px) clamp(56px, 8vw, 104px); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--amber-400); }
.hero .lede { color: #dbe4f2; max-width: 56ch; }
.hero .eyebrow { color: var(--amber-400); }
.hero-points { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: #dbe4f2; font-size: .95rem; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--amber-400); flex: none; }
.hero-card { background: rgba(255, 255, 255, .97); color: var(--ink); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow-lg); }
.hero-card h2 { font-size: 1.45rem; margin-bottom: .3em; }
.hero-card p { color: var(--muted); font-size: .95rem; }
.hero-card .btn { width: 100%; }
.hero-card .or { text-align: center; color: var(--muted); font-size: .85rem; margin: 12px 0; }
.hero-card .contact-line { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--navy-900); text-decoration: none; padding: 10px 0; border-top: 1px solid var(--line); }
.hero-card .contact-line svg { width: 20px; height: 20px; color: var(--blue-600); }
.page-hero { background: radial-gradient(1200px 400px at 85% -10%, rgba(44, 100, 184, .35), transparent 60%), linear-gradient(180deg, var(--navy-900), var(--navy-950)); color: #fff; }
.page-hero .wrap { padding-block: clamp(48px, 7vw, 88px); }
.page-hero h1 { color: #fff; max-width: 22ch; }
.page-hero .lede { color: #d2ddee; max-width: 62ch; }
.page-hero .eyebrow { color: var(--amber-400); }
.page-hero .btn-row { margin-top: 22px; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero::after { background: linear-gradient(180deg, rgba(8, 26, 48, .86), rgba(8, 26, 48, .94)); } }

/* Breadcrumbs */
.crumbs { font-size: .85rem; margin-bottom: 18px; color: #b9c7dc; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { color: #dfe7f3; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }

/* Trust strip */
.trust { background: var(--surface); border-bottom: 1px solid var(--line); }
.trust ul { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.trust li { display: flex; gap: 12px; align-items: center; font-size: .93rem; color: var(--ink-2); line-height: 1.35; }
.trust strong { display: block; color: var(--navy-900); font-size: 1rem; }
.trust .ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--blue-600); box-shadow: var(--shadow-sm); }
.trust .ico svg { width: 22px; height: 22px; }
@media (max-width: 900px) { .trust ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .trust ul { grid-template-columns: 1fr; } }

/* Sections */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section.alt { background: var(--surface); }
.section.dark { background: var(--navy-900); color: #dbe4f2; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { text-align: center; }
.grid { display: grid; gap: clamp(16px, 2.4vw, 26px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.wide-left { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
@media (max-width: 860px) { .split, .split.wide-left { grid-template-columns: 1fr; } }

/* Cards */
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 2.4vw, 28px); box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; display: flex; flex-direction: column; }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--ink-2); font-size: .97rem; }
.card .more { margin-top: auto; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.card .more::after { content: "→"; transition: transform .15s; }
a.card { text-decoration: none; color: inherit; }
a.card:hover, .card.link:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cdd8e8; }
a.card:hover .more::after { transform: translateX(3px); }
.card .ico { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-600); margin-bottom: 16px; }
.card .ico svg { width: 26px; height: 26px; }
.card-photo { padding: 0; overflow: hidden; }
.card-photo img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card-photo .body { padding: 18px 20px 22px; }
.card-photo h3 { font-size: 1.15rem; }

/* Audience pills */
.audience { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.audience li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: .94rem; color: var(--navy-900); display: inline-flex; gap: 8px; align-items: center; }
.audience svg { width: 18px; height: 18px; color: var(--blue-600); }

/* Process */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.steps li { position: relative; padding: 26px 22px 22px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--amber-500); color: var(--navy-950); font: 800 1.1rem/1 var(--font-sans); margin-bottom: 14px; }
.steps h3 { font-size: 1.15rem; margin-bottom: .3em; }
.steps p { font-size: .95rem; margin: 0; color: #c5d1e4; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.section:not(.dark) .steps li { background: #fff; border-color: var(--line); box-shadow: var(--shadow-sm); }
.section:not(.dark) .steps p { color: var(--ink-2); }

/* Media */
.media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--surface); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media.contain img { object-fit: contain; background: #fff; }
.media-stack { position: relative; }
.media-stack .badge { position: absolute; left: -14px; bottom: 22px; background: #fff; border-radius: 12px; padding: 14px 18px; box-shadow: var(--shadow); font-size: .9rem; color: var(--ink-2); max-width: 240px; line-height: 1.35; }
.media-stack .badge strong { display: block; color: var(--navy-900); font-family: var(--font-serif); font-size: 1.15rem; }
@media (max-width: 860px) { .media-stack .badge { left: 12px; } }

/* Checklists */
.checks { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .28em; width: 21px; height: 21px; border-radius: 50%; background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232459a8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.checks.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .checks.cols { grid-template-columns: 1fr; } }
.section.dark .checks li::before { background-color: rgba(255, 255, 255, .1); }

/* Quote block */
.pullquote { border-left: 4px solid var(--amber-500); padding: 6px 0 6px 22px; margin: 24px 0; font: italic 1.2rem/1.5 var(--font-serif); color: var(--navy-900); }
.pullquote cite { display: block; font: 600 .85rem/1.4 var(--font-sans); font-style: normal; color: var(--muted); margin-top: 8px; }

/* Areas */
.area-card h3 { display: flex; align-items: center; gap: 10px; }
.area-card h3 svg { width: 22px; height: 22px; color: var(--blue-600); }
.cities { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 6px 0 16px; }
.cities li { font-size: .85rem; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 3px 9px; color: var(--ink-2); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 180px; gap: 12px; }
.gallery figure { margin: 0; min-width: 0; }
.gallery button { all: unset; display: block; width: 100%; height: 100%; box-sizing: border-box; cursor: zoom-in; position: relative; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery button:focus-visible { outline: 3px solid var(--amber-500); outline-offset: 3px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery button:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; inset: auto 0 0 0; padding: 26px 14px 12px; color: #fff; font-size: .85rem; font-weight: 600; background: linear-gradient(transparent, rgba(8, 26, 48, .85)); }
.gallery .g1 { grid-column: span 3; grid-row: span 2; }
.gallery .g2, .gallery .g3 { grid-column: span 3; }
.gallery .g4, .gallery .g5, .gallery .g6 { grid-column: span 2; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; } .gallery .g1 { grid-column: span 2; grid-row: span 2; } .gallery .g2, .gallery .g3, .gallery .g4, .gallery .g5, .gallery .g6 { grid-column: span 1; } }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; }
dialog.lightbox::backdrop { background: rgba(8, 26, 48, .88); }
dialog.lightbox img { max-height: 84vh; width: auto; margin: 0 auto; border-radius: 10px; }
dialog.lightbox p { color: #fff; text-align: center; margin: 12px 0 0; }
dialog.lightbox .close { position: fixed; top: 16px; right: 16px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: var(--navy-900); font-size: 1.6rem; cursor: pointer; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 22px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 34px 18px 0; position: relative; font-weight: 700; color: var(--navy-900); font-size: 1.04rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 2px; top: 50%; width: 11px; height: 11px; border-right: 2.5px solid var(--blue-600); border-bottom: 2.5px solid var(--blue-600); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding-bottom: 18px; color: var(--ink-2); }
.faq details > div p:last-child { margin-bottom: 0; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--blue-600), var(--navy-900)); color: #fff; border-radius: calc(var(--radius) + 6px); padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 26px; align-items: center; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; right: -60px; top: -40px; width: 340px; height: 200px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 60'%3E%3Cpath d='M4 44 40 12l36 32' fill='none' stroke='%23ffffff' stroke-opacity='.08' stroke-width='9'/%3E%3Cpath d='M38 52 76 18l40 34' fill='none' stroke='%23ffffff' stroke-opacity='.1' stroke-width='9'/%3E%3C/svg%3E") no-repeat center / contain; pointer-events: none; }
.cta-band h2 { color: #fff; margin-bottom: .25em; }
.cta-band p { color: #d7e2f3; margin: 0; max-width: 60ch; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* Profile */
.profile { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.profile .media img { aspect-ratio: 507 / 581; }
@media (max-width: 760px) { .profile { grid-template-columns: 1fr; } .profile .media { max-width: 320px; } }
.creds { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 14px 0 20px; }
.creds li { background: var(--amber-50); color: #7a4a0c; border: 1px solid #f6d9ae; border-radius: 999px; padding: 4px 12px; font-size: .85rem; font-weight: 700; }

/* Partners */
.partners { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: center; }
.partners a { display: block; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .15s; }
.partners a:hover { transform: translateY(-2px); }
.partners img { width: 300px; }

/* Forms */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-weight: 700; font-size: .9rem; color: var(--navy-900); margin-bottom: 6px; }
label .opt { font-weight: 500; color: var(--muted); }
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1.5px solid #cfd8e5; border-radius: 10px; padding: 12px 14px; min-height: 48px; transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(44, 100, 184, .16); }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: .85rem; color: var(--muted); margin: 14px 0 0; }
.form-status { margin-top: 14px; padding: 12px 14px; border-radius: 10px; font-weight: 600; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #e8f6ee; color: var(--ok); }
.form-status.err { background: #fdecec; color: #a12a2a; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-600); }
.contact-list .ico svg { width: 22px; height: 22px; }
.contact-list strong { display: block; color: var(--navy-900); }
.contact-list a { font-weight: 600; }

/* Prose */
.prose h2 { margin-top: 1.6em; font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); }
.prose h3 { margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }
.prose li { margin-bottom: .45em; }
.aside-card { position: sticky; top: calc(var(--header-h) + 20px); }
.layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 960px) { .layout-aside { grid-template-columns: 1fr; } .aside-card { position: static; } }
.related { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.related a { display: block; padding: 8px 10px; border-radius: 8px; text-decoration: none; font-weight: 600; color: var(--ink); }
.related a:hover { background: var(--blue-50); color: var(--blue-600); }

/* Footer */
.site-footer { background: var(--navy-950); color: #aebcd2; font-size: .94rem; padding-top: 64px; }
.site-footer h2 { font: 700 .8rem/1 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.site-footer a { color: #dfe7f3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 36px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand-name small { color: #8ea0bb; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 48px; padding: 20px 0 28px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .85rem; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); }
.social a:hover { background: rgba(255, 255, 255, .16); }
.social svg { width: 20px; height: 20px; fill: #fff; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

/* Mobile sticky action bar */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px; position: fixed; inset: auto 0 0 0; z-index: 60; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(13, 36, 64, .1); }
  .mobile-bar .btn { min-height: 48px; padding: .6em .8em; font-size: .95rem; }
  body { padding-bottom: 76px; }
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.site-footer .contact-list strong { color: #fff; font-size: .85rem; }
.site-footer .contact-list .ico { background: rgba(255, 255, 255, .08); color: var(--amber-400); }
.site-footer .contact-list span { color: #aebcd2; }
