/* vanbelkum.com additions on top of the shared help.css + site.css chrome:
   dropdown nav, photo hero, article prose, post cards, contact form, footer. */

.proto{ margin:0; padding:6px var(--gutter); background:#FFE14D; color:#3D3100; font-size:13px; font-weight:600; text-align:center; }

/* Nav dropdowns (details/summary: works without JS, closes on outside click via the tiny script-free pattern of one open at a time being fine) */
.top__nav{ align-items:center; }
.menu{ position:relative; }
.menu summary{ list-style:none; cursor:pointer; padding:0 14px; font-size:14px; font-weight:500; line-height:72px; white-space:nowrap; color:var(--fg); }
.menu summary::-webkit-details-marker{ display:none; }
.menu summary::after{ content:""; display:inline-block; width:6px; height:6px; margin-left:8px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:translateY(-3px) rotate(45deg); }
.menu summary:hover, .menu.is-current summary{ color:var(--accent); }
.menu__panel{ position:absolute; top:100%; left:0; min-width:240px; padding:8px; background:#fff; border:1px solid var(--line); border-radius:var(--r); box-shadow:var(--shadow); display:grid; }
.menu__panel a{ line-height:1.3 !important; padding:10px 12px !important; border-radius:4px; }
.menu__panel a:hover{ background:var(--card); }
.menu__panel a[aria-current]::after{ display:none; }

@media (max-width:1100px){
  .top__row{ grid-template-columns:auto auto; height:auto; padding:12px 0; row-gap:4px; }
  .top__nav{ grid-column:1 / -1; grid-row:2; flex-wrap:wrap; justify-content:flex-start; margin-left:-14px; }
  .top__nav a, .menu summary{ line-height:40px; }
  .top__tools{ justify-self:end; }
}
@media (max-width:560px){
  .top__tools .btn{ display:none; }
  .top__nav a, .menu summary{ padding:0 10px; font-size:13.5px; }
  .menu__panel{ position:fixed; left:var(--gutter); right:var(--gutter); top:auto; }
}

/* Page heads */
.phero{ position:relative; background:var(--ink) center/cover no-repeat; color:#fff; }
.phero__scrim{ position:absolute; inset:0; background:linear-gradient(90deg, rgba(11,26,38,.82) 0%, rgba(11,26,38,.55) 60%, rgba(11,26,38,.35) 100%); }
.phero__inner{ position:relative; padding:120px 0 96px; }
.phero h1{ max-width:18ch; }
.phero .eyebrow{ color:#8CC2FF; }
.ptitle{ padding:72px 0 0; }
.ptitle h1{ max-width:24ch; }

/* Article prose: carried-over WordPress content */
.article{ max-width:760px; }
.article > * + *{ margin-top:16px; }
.article h2{ font-size:clamp(1.6rem,3vw,2.25rem); margin-top:48px; line-height:1.1; }
.article h3{ font-size:1.4rem; margin-top:36px; }
.article h4{ font-size:1.125rem; font-weight:600; margin:28px 0 0; line-height:1.3; }
.article h2 + *, .article h3 + *, .article h4 + *{ margin-top:12px; }
.article > :first-child{ margin-top:0; }
.article p, .article li{ color:var(--muted); font-size:17px; line-height:1.65; }
.article strong, .article b{ color:var(--fg); font-weight:600; }
.article ul, .article ol{ padding-left:22px; }
.article li + li{ margin-top:6px; }
.article img{ height:auto; border-radius:var(--r); margin:24px 0; }
.article a{ text-decoration:underline; text-underline-offset:3px; text-decoration-thickness:1px; }
.article__meta{ font-size:14px !important; color:var(--muted-2) !important; }
.band > .article:first-child{ margin-top:-24px; }

/* Blog and case-study cards */
.cards{ display:grid; gap:24px; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); }
.card{ display:flex; flex-direction:column; border:1px solid var(--line); border-radius:var(--r); overflow:hidden; color:var(--fg); background:#fff; transition:border-color .4s var(--ease); }
.card:hover{ border-color:var(--accent); color:var(--fg); }
.card__img{ aspect-ratio:3/2; background:var(--card); overflow:hidden; }
.card__img img{ width:100%; height:100%; object-fit:cover; }
.card__body{ padding:20px 22px 24px; }
.card small{ font-size:12px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--accent); }
.card h3{ font-size:1.2rem; font-weight:600; margin:8px 0 10px; line-height:1.25; }
.card p{ font-size:15px; color:var(--muted); line-height:1.55; }

/* Closing call to action */
.cta{ display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:24px; }
.cta__btns{ display:flex; flex-wrap:wrap; gap:12px; }

/* Contact form */
.form{ display:grid; gap:16px; padding:32px; background:var(--card); border-radius:var(--r); }
.form h2{ font-size:1.6rem; }
.field{ display:grid; gap:6px; font-size:14px; font-weight:500; }
.field input, .field textarea{ font:inherit; font-size:16px; padding:10px 12px; border:1px solid var(--line); border-radius:4px; background:#fff; color:var(--fg); }
.field input:focus, .field textarea:focus{ outline:2px solid var(--accent); outline-offset:0; border-color:var(--accent); }
.form__two{ display:grid; gap:16px; grid-template-columns:1fr 1fr; }
.form .btn{ justify-self:start; }
.form__note{ font-size:14px; color:var(--confirm-ink); background:var(--confirm); padding:10px 12px; border-radius:4px; }
@media (max-width:560px){ .form{ padding:20px; } .form__two{ grid-template-columns:1fr; } }

/* Footer */
.foot__grid{ display:grid; gap:32px; grid-template-columns:1.4fr repeat(3,1fr); padding:56px 0 32px; }
.foot__grid b{ display:block; margin-bottom:10px; font-size:13px; letter-spacing:.06em; text-transform:uppercase; color:var(--fg); }
.foot__grid a{ display:block; padding:3px 0; font-size:14.5px; color:var(--muted); }
.foot__grid a:hover{ color:var(--accent); }
.foot__grid p{ font-size:14.5px; color:var(--muted); margin-top:12px; line-height:1.55; }
.foot__logo{ height:22px; width:auto; }
.foot__base{ padding:20px 0 32px; border-top:1px solid var(--line); font-size:13.5px; color:var(--muted-2); }
@media (max-width:900px){ .foot__grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:520px){ .foot__grid{ grid-template-columns:1fr; } }

.article .article__btn{ margin-top:24px; }
.article .article__btn a{ text-decoration:none; color:#fff; }

.stats{ display:grid; gap:16px; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); margin:32px 0 !important; padding:28px; background:var(--ink); border-radius:var(--r); }
.stat b{ display:block; font-size:2.25rem; font-weight:600; color:#fff; line-height:1.1; }
.stat span{ font-size:14px; color:rgba(255,255,255,.72); }

/* help.css styles .foot .container as a one-line flex row; the com footer is a grid. */
.foot{ padding:0; }
.foot .foot__grid{ display:grid; }
.foot .foot__base{ display:block; }
.foot__grid a, .foot__grid p{ line-height:1.45; white-space:normal; }

/* site.css lays .field out as label-beside-input; the contact form stacks them. */
.form .field{ display:grid; grid-template-columns:1fr; gap:6px; }
.form .field input, .form .field textarea{ width:100%; }

/* help.css hides the nav below 960px (its sites have few pages). vanbelkum.com
   needs it: keep it as a second header row, phone and button beside the logo. */
@media (max-width:1100px){ .top__phone{ display:inline; } }
@media (max-width:960px){
  .top .top__row{ display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; height:auto; padding:12px 0 0; row-gap:4px; }
  .top .top__nav{ display:flex; order:3; flex-basis:100%; flex-wrap:wrap; justify-content:flex-start; margin-left:-10px; }
  .top .top__tools{ display:flex; gap:14px; }
}
@media (max-width:560px){
  .top .top__phone{ font-size:13px; }
  .top .top__nav a, .top .menu summary{ padding:0 9px; font-size:14px; line-height:40px; }
}
