/* ==========================================================================
   Design tokens
   One file, every site. Change a value here and all 9 sites follow.
   ========================================================================== */

:root {
  /* --- Brand -------------------------------------------------------- */
  --blue:        #0857b3;   /* ss-blue, primary */
  --blue-bright: #0a6fe0;   /* ss-blue-bright, hover and highlight */
  --blue-dark:   #06407f;   /* pressed state, derived */
  --tint:        #e9f1fd;   /* ss-tint, light blue wash */
  --terra:       #c25a33;   /* ss-terra, warm accent */
  --terra-tint:  #fcefe9;   /* ss-terra-tint */
  --gradient:    linear-gradient(90deg, var(--blue), var(--blue-bright));
  --gradient-45: linear-gradient(135deg, var(--blue), var(--blue-bright));

  /* --- Neutrals ------------------------------------------------------ */
  --ink:      #0f1723;      /* ss-ink, headings */
  --ink-soft: #22304a;      /* ss-ink-2 */
  --body:     #22304a;      /* body text */
  --muted:    #4d5769;      /* ss-muted */
  --line:     #b8c4d6;      /* ss-line */
  --line-soft:#dde5ef;      /* derived, hairlines */
  --paper:    #fefeff;      /* ss-white */
  --panel:    #f4f6f8;      /* ss-grey */
  --ground:   #f4f6f8;
  --dark:     #0f1723;

  /* --- Meaning ------------------------------------------------------- */
  --good:     #1d6b3a;
  --good-bg:  #e7f3ec;
  --warn:     #8a5a00;
  --warn-bg:  #fdf3e3;
  --bad:      #a3321c;
  --bad-bg:   var(--terra-tint);
  --star:     #e8a33d;

  /* --- Type ---------------------------------------------------------- */
  --font-display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    ui-monospace, SFMono-Regular, Menlo, monospace;

  --text-xs:   0.75rem;    /* 12 */
  --text-sm:   0.875rem;   /* 14 */
  --text-base: 1rem;       /* 16 */
  --text-md:   1.125rem;   /* 18 */
  --text-lg:   1.375rem;   /* 22 */
  --text-xl:   1.75rem;    /* 28 */
  --text-2xl:  2.25rem;    /* 36 */
  --text-h5:   0.9375rem;  /* 15, small card and sidebar titles */
  --text-hero: clamp(2.125rem, 4.6vw, 3.5rem);  /* H1 everywhere, hero included */
  --text-3xl:  var(--text-hero);

  --leading-tight: 1.15;
  --leading-snug:  1.35;
  --leading-body:  1.65;
  --tracking-wide: 0.14em;

  /* --- Space (4px step) ---------------------------------------------- */
  --s-1:  0.25rem;  /*  4 */
  --s-2:  0.5rem;   /*  8 */
  --s-3:  0.75rem;  /* 12 */
  --s-4:  1rem;     /* 16 */
  --s-5:  1.5rem;   /* 24 */
  --s-6:  2rem;     /* 32 */
  --s-7:  3rem;     /* 48 */
  --s-8:  4rem;     /* 64 */
  --s-9:  6rem;     /* 96 */
  --section-y: clamp(3rem, 7vw, 5.5rem);

  /* --- Radius -------------------------------------------------------- */
  --r-sm:   6px;
  --r-md:   12px;   /* default for buttons, inputs, chips */
  --r-lg:   16px;   /* cards */
  --r-xl:   24px;   /* images, big panels */
  --r-full: 999px;

  /* --- Shadow -------------------------------------------------------- */
  --shadow-sm: 0 2px 6px -2px rgba(16, 16, 40, .12);
  --shadow-md: 0 10px 26px -18px rgba(16, 16, 40, .55);
  --shadow-lg: 0 24px 60px -34px rgba(16, 16, 40, .65);

  /* --- Layout -------------------------------------------------------- */
  --container: 1200px;
  --container-narrow: 820px;
  --gutter: 1.5rem;        /* 24px between columns */
  --page-pad: 1.25rem;     /* side padding on small screens */

  /* --- Motion -------------------------------------------------------- */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --fast: .15s;
  --slow: .35s;
}

@media (min-width: 992px) {
  :root { --page-pad: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Base ------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--ink);
  line-height: var(--leading-tight);
  text-wrap: balance;
  font-weight: 700;
}

h1 { font-size: var(--text-hero); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: var(--text-2xl); letter-spacing: -0.01em; }
h3 { font-size: var(--text-lg); }
h4 { font-size: var(--text-md); }
h5, .title-sm {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-h5);
  line-height: var(--leading-snug);
  color: var(--ink);
  margin: 0;
}
.title-xs {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

p  { margin: 0; }
p + p { margin-top: var(--s-4); }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

img, video { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0; padding-left: 1.25rem; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

::selection { background: var(--tint); color: var(--ink); }

/* --- Text helpers ---------------------------------------------------- */

.eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--terra);
}

.lead      { font-size: var(--text-md); max-width: 62ch; }
.measure   { max-width: 66ch; }
.muted     { color: var(--muted); }
.small     { font-size: var(--text-sm); }
.nums      { font-variant-numeric: tabular-nums; }
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
/* ==========================================================================
   12 column grid
   Bootstrap style class names, no framework. Mobile first.
   Breakpoints: sm 576, md 768, lg 992, xl 1200
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--page-pad);
}

.container--narrow { max-width: var(--container-narrow); }
.container--wide   { max-width: 1400px; }

/* Vertical rhythm for a block of page */
.section        { padding-block: var(--section-y); }
.section--tight { padding-block: var(--s-6); }
.section--panel { background: var(--panel); }
.section--dark  { background: var(--ink); color: #c2cedd; }
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: #fff; }

/* --- Row and columns -------------------------------------------------- */

.row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
}

.row--tight { gap: var(--s-3); }
.row--loose { gap: var(--s-6); }
.row--middle { align-items: center; }
.row--end    { align-items: end; }

/* every column is full width until a breakpoint says otherwise */
[class*="col-"] { grid-column: span 12; }

.col-1  { grid-column: span 1; }
.col-2  { grid-column: span 2; }
.col-3  { grid-column: span 3; }
.col-4  { grid-column: span 4; }
.col-5  { grid-column: span 5; }
.col-6  { grid-column: span 6; }
.col-7  { grid-column: span 7; }
.col-8  { grid-column: span 8; }
.col-9  { grid-column: span 9; }
.col-10 { grid-column: span 10; }
.col-11 { grid-column: span 11; }
.col-12 { grid-column: span 12; }

@media (min-width: 576px) {
  .col-sm-1  { grid-column: span 1; }
  .col-sm-2  { grid-column: span 2; }
  .col-sm-3  { grid-column: span 3; }
  .col-sm-4  { grid-column: span 4; }
  .col-sm-6  { grid-column: span 6; }
  .col-sm-8  { grid-column: span 8; }
  .col-sm-12 { grid-column: span 12; }
}

@media (min-width: 768px) {
  .col-md-1  { grid-column: span 1; }
  .col-md-2  { grid-column: span 2; }
  .col-md-3  { grid-column: span 3; }
  .col-md-4  { grid-column: span 4; }
  .col-md-5  { grid-column: span 5; }
  .col-md-6  { grid-column: span 6; }
  .col-md-7  { grid-column: span 7; }
  .col-md-8  { grid-column: span 8; }
  .col-md-9  { grid-column: span 9; }
  .col-md-12 { grid-column: span 12; }
}

@media (min-width: 992px) {
  .col-lg-1  { grid-column: span 1; }
  .col-lg-2  { grid-column: span 2; }
  .col-lg-3  { grid-column: span 3; }
  .col-lg-4  { grid-column: span 4; }
  .col-lg-5  { grid-column: span 5; }
  .col-lg-6  { grid-column: span 6; }
  .col-lg-7  { grid-column: span 7; }
  .col-lg-8  { grid-column: span 8; }
  .col-lg-9  { grid-column: span 9; }
  .col-lg-10 { grid-column: span 10; }
  .col-lg-12 { grid-column: span 12; }
}

/* Push a column across, e.g. an offset hero */
@media (min-width: 992px) {
  .start-lg-2 { grid-column-start: 2; }
  .start-lg-3 { grid-column-start: 3; }
  .start-lg-4 { grid-column-start: 4; }
}

/* Order swap, so an image can lead on desktop and follow on mobile */
.order-first { order: -1; }
.order-last  { order: 1; }
@media (min-width: 768px) {
  .order-md-first { order: -1; }
  .order-md-last  { order: 1; }
}

/* --- Simple auto grids, for card rows ---------------------------------- */

.grid      { display: grid; gap: var(--gutter); }
.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)); }
.grid--5   { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid--auto{ grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

@media (max-width: 991px) {
  .grid--4, .grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
  .grid--2, .grid--3, .grid--4, .grid--5 { grid-template-columns: 1fr; }
}

/* --- Stack and cluster -------------------------------------------------- */

.stack     { display: flex; flex-direction: column; gap: var(--s-4); }
.stack--sm { gap: var(--s-2); }
.stack--lg { gap: var(--s-6); }

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
}
.cluster--between { justify-content: space-between; }

/* --- Spacing helpers ---------------------------------------------------- */

.mt-2 { margin-top: var(--s-2); }
.mt-4 { margin-top: var(--s-4); }
.mt-6 { margin-top: var(--s-6); }
.mb-4 { margin-bottom: var(--s-4); }
.mb-6 { margin-bottom: var(--s-6); }
/* ==========================================================================
   Components
   Every site uses these. Bootstrap Icons are used inline as <i class="bi bi-x">.
   ========================================================================== */

/* --- Buttons ---------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0.75rem 1.25rem;
  border: 0;
  border-radius: var(--r-md);
  background: var(--gradient);
  color: #fff;
  font: 600 var(--text-sm) / 1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: none; }
.btn .bi { font-size: 1.2em; }

.btn--ghost { background: var(--line-soft); color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--lg { padding: 0.95rem 1.6rem; font-size: var(--text-base); }
.btn--sm { padding: 0.5rem 0.9rem; font-size: var(--text-xs); }
.btn--block { width: 100%; justify-content: center; }

/* --- Link with arrow --------------------------------------------------- */

.link-arrow { font-weight: 600; color: var(--terra); display: inline-flex; gap: .4rem; align-items: center; }
.link-arrow { font-size: var(--text-sm); }
.link-arrow .bi { font-size: 1.15em; }
.link-arrow .bi { transition: transform var(--fast) var(--ease); }
.link-arrow:hover .bi { transform: translateX(3px); }

/* --- Cards ------------------------------------------------------------- */

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  box-shadow: var(--shadow-sm);
}
.card--flat { box-shadow: none; }
.card--panel { background: var(--panel); border-color: transparent; }
.card--feature .card__icon {
  width: 60px; height: 60px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--gradient-45);
  color: #fff;
  font-size: 1.7rem;
  margin-bottom: var(--s-3);
}
.icon-tint {
  width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 14px; background: var(--tint); color: var(--blue); font-size: 1.5rem;
}
.card__title { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: var(--text-base); }
.card__text  { font-size: var(--text-sm); }

/* --- Price cards -------------------------------------------------------- */

.price {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.price--popular { border: 2px solid var(--blue-bright); }
.price__tag {
  position: absolute; top: -0.7rem; left: var(--s-5);
  background: var(--gradient); color: #fff;
  font: 700 var(--text-xs)/1 var(--font-body);
  letter-spacing: .06em; text-transform: uppercase;
  padding: .35rem .6rem; border-radius: var(--r-sm);
}
.price__amount { font-family: var(--font-display); font-size: var(--text-xl); color: var(--ink); font-weight: 700; }
.price__per    { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 400; color: var(--muted); }
.price__note   { font-size: var(--text-sm); color: var(--good); font-weight: 600; min-height: 1.4em; }
.price__list   { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s-2); font-size: var(--text-sm); }
.price__list li { display: flex; gap: .5rem; align-items: flex-start; }
.price__list .bi { color: var(--blue-bright); font-size: 1.1rem; margin-top: .1rem; }
.price__fee { border-top: 1px dashed var(--line); padding-top: var(--s-3); font-size: var(--text-sm); color: var(--muted); }

/* --- Chips, pills, badges ----------------------------------------------- */

.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--tint); color: var(--blue);
  border-radius: var(--r-full);
  padding: .3rem .8rem;
  font-size: var(--text-xs); font-weight: 600;
}
.pill { display: inline-block; border-radius: var(--r-full); padding: .2rem .7rem; font-size: var(--text-xs); font-weight: 700; }
.pill--good { background: var(--good-bg); color: var(--good); }
.pill--warn { background: var(--warn-bg); color: var(--warn); }

.badge-live {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--blue-bright);
  border-radius: var(--r-md);
  padding: .5rem .85rem;
  box-shadow: var(--shadow-md);
  line-height: 1.25;
}
.badge-live__dot {
  flex: none;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--blue-bright);
  box-shadow: 0 0 0 0 rgba(10, 111, 224, .55);
  animation: pulse 2.4s infinite;
}
.badge-live__text {
  font-family: var(--font-display);
  font-size: var(--text-sm); font-weight: 700; color: var(--ink);
  display: block;
}
.badge-live__month {
  font-size: var(--text-xs); font-weight: 600; color: var(--muted);
  display: block;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(10, 111, 224, 0); } 100% { box-shadow: 0 0 0 0 rgba(10, 111, 224, 0); } }

/* one line variant, for tight spots */
.badge-live--inline { gap: .5rem; }
.badge-live--inline .badge-live__text { font-size: var(--text-xs); }
.badge-live--inline .badge-live__month { display: inline; margin-left: .35rem; }

/* --- Stat tiles ---------------------------------------------------------- */

.stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-3);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat__label {
  display: block;
  font-size: 0.625rem;              /* 10px, it is a caption not a headline */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
}
.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  margin-top: .15rem;
}
.stat--brand { background: var(--gradient-45); border-color: transparent; }
.stat--brand .stat__value, .stat--brand .stat__label { color: #fff; }

/* --- Stars ---------------------------------------------------------------- */

.stars { display: inline-flex; gap: .15rem; color: var(--star); font-size: 1rem; }

/* --- Hero image with overlay element -------------------------------------- */

.hero-shot { position: relative; padding-bottom: var(--s-6); }
.hero-shot__img { border-radius: var(--r-xl); width: 100%; }
.hero-shot__badge { position: absolute; top: var(--s-3); right: calc(var(--s-3) * -1); }
.hero-shot__stats {
  position: absolute; left: var(--s-3); right: var(--s-3); bottom: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-2);
}
@media (max-width: 575px) {
  .hero-shot__stats { position: static; margin-top: var(--s-3); grid-template-columns: repeat(2, 1fr); }
  .hero-shot { padding-bottom: 0; }
  .hero-shot__badge { right: var(--s-3); }
}

/* --- Media and text side by side ------------------------------------------- */

.media-text__img { border-radius: var(--r-xl); box-shadow: var(--shadow-md); }

/* --- Carousel (portfolio) --------------------------------------------------- */

.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding-bottom: var(--s-3);
}
.carousel > * { scroll-snap-align: start; }
.carousel::-webkit-scrollbar { height: 6px; }
.carousel::-webkit-scrollbar-thumb { background: var(--line); border-radius: var(--r-full); }
.work { display: flex; flex-direction: column; gap: var(--s-2); }
.work img { border-radius: var(--r-md); border: 1px solid var(--line); }
.work__name { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: var(--text-sm); }
.work__type { font-size: var(--text-xs); color: var(--muted); }

/* --- Process steps ------------------------------------------------------------ */

.step { display: flex; flex-direction: column; gap: var(--s-2); }
.step__num {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--gradient); color: #fff;
  display: grid; place-items: center;
  font: 700 var(--text-sm)/1 var(--font-display);
}

/* --- Reviews -------------------------------------------------------------------- */

.review { display: flex; flex-direction: column; gap: var(--s-3); }
.review__quote { font-size: var(--text-sm); }
.review__who { font-weight: 700; color: var(--ink); font-size: var(--text-sm); margin-top: auto; }
.review__firm { font-size: var(--text-xs); color: var(--muted); }

/* --- Accordion (FAQ) ------------------------------------------------------------- */

.faq { display: flex; flex-direction: column; gap: var(--s-3); }
.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.faq details:hover { border-color: var(--blue-bright); }
.faq details[open] {
  border-color: transparent;
  box-shadow: var(--shadow-md), inset 0 0 0 2px var(--blue-bright);
  background: var(--paper);
}
.faq summary {
  list-style: none; cursor: pointer;
  padding: var(--s-4) var(--s-5);
  display: flex; align-items: center; gap: var(--s-4);
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-base);
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq__q {
  flex: 1;
}
.faq__mark {
  flex: none;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1;
  transition: transform var(--fast) var(--ease), color var(--fast) var(--ease);
}
.faq summary:hover .faq__mark { color: var(--blue-bright); }
.faq details[open] .faq__mark { color: var(--blue-bright); transform: rotate(180deg); }
.faq__answer {
  padding: 0 var(--s-5) var(--s-5) calc(var(--s-5));
  font-size: var(--text-sm);
  max-width: 72ch;
  color: var(--ink-soft);
}
.faq__answer p + p { margin-top: var(--s-3); }

/* numbered variant, for a short list of questions on a town page */
.faq--numbered summary { gap: var(--s-3); }
.faq--numbered .faq__n {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: #fff;
  font: 700 var(--text-xs)/1 var(--font-display);
}
.faq-cta {
  margin-top: var(--s-5);
  background: var(--tint);
  border-radius: var(--r-lg);
  padding: var(--s-4) var(--s-5);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4); flex-wrap: wrap;
}
.faq-cta p { font-size: var(--text-sm); color: var(--ink-soft); }

/* --- Forms ------------------------------------------------------------------------ */

.field { display: flex; flex-direction: column; gap: var(--s-1); }
.label { font-size: var(--text-sm); font-weight: 600; color: var(--ink); }
.input, .textarea, .select {
  width: 100%;
  padding: .75rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  font: 400 var(--text-base)/1.4 var(--font-body);
  color: var(--ink);
}
.input:focus, .textarea:focus, .select:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: transparent; }
.form-embed { width: 100%; border: 0; border-radius: var(--r-lg); min-height: 520px; }

/* Quote form card */
.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.form-card__head {
  background: var(--gradient-45);
  color: #fff;
  padding: var(--s-5);
  display: flex; align-items: center; gap: var(--s-4);
}
.form-card__head .bi { font-size: 1.9rem; }
.form-card__head h3 { color: #fff; font-size: var(--text-lg); }
.form-card__head p  { font-size: var(--text-sm); color: rgba(255,255,255,.85); }
.form-card__body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-4); }
.form-card__foot {
  border-top: 1px solid var(--line-soft);
  padding: var(--s-4) var(--s-5);
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5);
  font-size: var(--text-xs); color: var(--muted);
}
.form-card__foot span { display: inline-flex; align-items: center; gap: .4rem; }
.form-card__foot .bi { color: var(--good); font-size: 1rem; }

.field--icon { position: relative; }
.field--icon .bi {
  position: absolute; left: .9rem; top: 2.35rem;
  color: var(--muted); font-size: 1.1rem; pointer-events: none;
}
.field--icon .input, .field--icon .textarea, .field--icon .select { padding-left: 2.6rem; }
.field--icon .textarea ~ .bi { top: 2.35rem; }
.input::placeholder, .textarea::placeholder { color: #9aa6b8; }
.input, .textarea, .select { transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease); }
.input:hover, .textarea:hover { border-color: var(--blue-bright); }
.hint { font-size: var(--text-xs); color: var(--muted); }

/* Contact details beside the form */
.contact-line { display: flex; align-items: flex-start; gap: var(--s-3); }
.contact-line .bi { color: var(--blue-bright); font-size: 1.35rem; margin-top: .1rem; }
.contact-line b { display: block; color: var(--ink); font-size: var(--text-sm); }
.contact-line span { font-size: var(--text-sm); }

/* --- Header and nav ---------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding-block: var(--s-3); }
.logo { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: var(--text-base); }
.logo img { height: 34px; width: auto; }

.nav { display: flex; align-items: center; gap: var(--s-5); }
.nav__item { position: relative; }
.nav__link { color: var(--ink-soft); font-size: var(--text-sm); font-weight: 600; display: inline-flex; align-items: center; gap: .3rem; }
.nav__link:hover { color: var(--terra); text-decoration: none; }
.nav__menu {
  position: absolute; top: calc(100% + .6rem); left: -1rem;
  min-width: 230px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--s-2);
  display: none;
  flex-direction: column;
}
.nav__item:hover .nav__menu,
.nav__item:focus-within .nav__menu { display: flex; }
.nav__menu a { padding: .5rem .75rem; border-radius: var(--r-sm); font-size: var(--text-sm); color: var(--ink-soft); }
.nav__menu a:hover { background: var(--tint); text-decoration: none; }

.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; color: var(--ink); cursor: pointer; }

@media (max-width: 991px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: var(--s-2);
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: var(--s-4) var(--page-pad);
  }
  .nav[data-open="true"] { display: flex; }
  .nav__menu { position: static; display: flex; border: 0; box-shadow: none; padding-left: var(--s-4); }
}

/* --- Footer ----------------------------------------------------------------------- */

.site-footer { background: var(--ink); color: #9fadc2; padding-block: var(--s-7) var(--s-5); font-size: var(--text-sm); }
.site-footer h4 { color: #fff; font-size: var(--text-sm); text-transform: uppercase; letter-spacing: .08em; margin-bottom: var(--s-3); }
.site-footer a { color: #cfdaea; }
.site-footer__links { display: flex; flex-direction: column; gap: var(--s-2); }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: var(--s-6); padding-top: var(--s-4); display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; font-size: var(--text-xs); }

/* --- CTA band ---------------------------------------------------------------------- */

.band {
  background: linear-gradient(115deg, var(--ink) 0%, #15304f 55%, var(--blue) 100%);
  color: #d7d8e6;
  border-radius: var(--r-xl);
  padding: var(--s-6);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-5); flex-wrap: wrap;
}
.band h2 { color: #fff; }

/* --- Breadcrumb -------------------------------------------------------------------- */

.crumbs { font-size: var(--text-xs); color: var(--muted); display: flex; gap: .4rem; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }

/* --- Prose (blog) ------------------------------------------------------------------- */

.prose { max-width: 70ch; font-size: var(--text-md); }
.prose h2 { font-size: var(--text-xl); margin-top: var(--s-7); margin-bottom: var(--s-3); }
.prose h3 { margin-top: var(--s-6); margin-bottom: var(--s-2); }
.prose p, .prose ul, .prose ol { margin-top: var(--s-4); }
.prose img { border-radius: var(--r-lg); margin-block: var(--s-6); }
.prose blockquote {
  margin: var(--s-6) 0; padding-left: var(--s-5);
  border-left: 3px solid var(--terra); color: var(--ink-soft); font-style: italic;
}
.prose code { font-family: var(--font-mono); font-size: .9em; background: var(--panel); padding: .1rem .35rem; border-radius: var(--r-sm); }

/* sticky header clearance */
.section, h2, h3, [id] { scroll-margin-top: 90px; }
