/* ==========================================================================
   Blue Mountain Web: Harbor design system
   Tokens → base → layout → components → sections.
   ========================================================================== */

:root {
  /* Ink and text */
  --ink: #14213d;
  --body: #34405e;
  --slate: #5f6b86;
  --line: #e2e7ef;
  --white: #ffffff;

  /* Blues */
  --blue: #1264ff;
  --blue-deep: #0b4ac2;
  --blue-tint: #e8f0fd;
  --blue-line: #c9daf8;
  --harbor: #1e3358;
  --harbor-card: #26406b;
  --harbor-line: #34507e;
  --harbor-text: #b8c7e3;
  --harbor-accent: #8fb4ff;

  /* Sage (lighter scale) */
  --sage-50: #f0f8f5;
  --sage-100: #e3f3ee;
  --sage-200: #bfe3d7;
  --sage-300: #8ccbb8;
  --sage-500: #4fa28d;
  --sage-700: #2f7363;

  /* Surfaces */
  --mist: #f5f8fc;
  --sand: #faf7f2;
  --sand-line: #ede6da;

  /* Type */
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-h1: clamp(2.125rem, 1.4rem + 2.6vw, 3.25rem);
  --lh-h1: 1.15;
  --fs-h2: clamp(1.75rem, 1.35rem + 1.4vw, 2.375rem);
  --lh-h2: 1.2;
  --fs-h3: 1.25rem;
  --fs-lead: 1rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;

  /* Shape and space */
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 20px;
  --pill: 999px;
  --shadow: 0 1px 2px rgba(20, 33, 61, 0.05), 0 8px 24px rgba(20, 33, 61, 0.06);
  --shadow-lg: 0 12px 32px rgba(20, 33, 61, 0.1);
  --section: clamp(4rem, 2.5rem + 5vw, 6.5rem);
  --gutter: clamp(1rem, 0.5rem + 2vw, 1.5rem);
  --max: 1280px;
  --max-width-x: 1140px;
  --max-width-md: 860px;
  --max-width-sm: 720px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  text-wrap: balance;
}
h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  letter-spacing: -0.02em;
}
h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  letter-spacing: -0.015em;
}
h3 {
  font-size: var(--fs-h3);
  line-height: 1.4;
}
p {
  margin: 0;
}
a {
  color: var(--blue-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--ink);
}
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: var(--white);
  padding: 0.5rem 1rem;
}
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow {
  max-width: var(--max-width-md);
}

.container--wide {
  max-width: var(--max-width-x);
}

.section {
  padding-block: var(--section);
}
.section--mist {
  background: var(--mist);
}
.section--sand {
  background: var(--sand);
}
.section--harbor {
  background: var(--harbor);
  color: var(--harbor-text);
}
.section--harbor h1,
.section--harbor h2,
.section--harbor h3 {
  color: var(--white);
}
.split {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: center;
}
.split > * {
  flex: 1 1 420px;
  min-width: 0;
}
.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1.25rem;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  max-width: var(--max-width-sm);
  margin-bottom: 2.75rem;
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
  align-items: center;
}

/* ---------- Type helpers ---------- */
.eyebrow {
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--sage-700);
}
.section--harbor .eyebrow {
  color: var(--sage-200);
}
.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--slate);
}
.section--harbor .lead {
  color: var(--harbor-text);
}
.muted {
  color: var(--slate);
  font-size: var(--fs-small);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 50px;
  padding: 0 1.75rem;
  border-radius: var(--pill);
  font: 600 1rem/1 var(--font);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}
.btn:active {
  transform: scale(0.98);
}
.btn--primary {
  background: var(--blue);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--blue-deep);
  color: var(--white);
}
.btn--soft {
  background: var(--blue-tint);
  color: var(--blue-deep);
}
.btn--soft:hover {
  background: var(--blue-line);
  color: var(--ink);
}
.btn--dark {
  background: var(--harbor-card);
  color: var(--white);
}
.btn--dark:hover {
  background: var(--harbor-line);
  color: var(--white);
}
.btn--outline {
  background: var(--white);
  color: var(--blue-deep);
  border-color: var(--blue-line);
}
.btn--sm {
  min-height: 44px;
  padding: 0 1.375rem;
  font-size: 0.9375rem;
}
.btn--block {
  width: 100%;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Chips, badges, checks ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.chip {
  padding: 0.5rem 1.125rem;
  border-radius: var(--pill);
  background: var(--blue-tint);
  font-size: 0.9375rem;
  color: var(--ink);
}
.chips--center {
  justify-content: center;
}
.badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: var(--pill);
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--sage-100);
  color: var(--sage-700);
}
.badge--blue {
  background: var(--blue-tint);
  color: var(--blue-deep);
}
.badge--solid {
  background: var(--blue);
  color: var(--white);
}
.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.checks li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.checks li::before {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  background: var(--blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpolygon points='13 24 4 15 5.414 13.586 13 21.171 26.586 7.586 28 9 13 24'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpolygon points='13 24 4 15 5.414 13.586 13 21.171 26.586 7.586 28 9 13 24'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
.checks--compact {
  gap: 0.75rem;
  font-size: 0.9375rem;
}
.checks--compact li::before {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.card p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--slate);
}
.card--dark {
  background: var(--harbor-card);
  border-color: transparent;
  box-shadow: none;
}
.card--dark p {
  color: var(--harbor-text);
}
/* Process steps: big number, small blue title under it (like production) */
.card__step {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.section--harbor .card__step + h3 {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--harbor-accent);
}
.icon-chip {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--blue-tint);
  color: var(--blue-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.card--dark .icon-chip {
  background: var(--harbor-line);
  color: var(--harbor-accent);
}

/* ---------- Header and navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 76px;
}
.site-logo,
.custom-logo-link {
  flex-shrink: 0;
  display: block;
}
.site-logo img,
.custom-logo {
  width: 180px;
  max-width: none;
  height: auto;
}
.site-nav {
  margin-left: auto;
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-item {
  position: relative;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 44px;
  padding: 0 0.75rem;
  font: 500 0.9375rem/1 var(--font);
  color: var(--body);
  text-decoration: none;
  white-space: nowrap;
  background: none;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-link:hover,
.nav-item.is-current > .nav-link {
  color: var(--blue-deep);
}
.nav-caret {
  transition: transform 0.18s ease;
}
.nav-split {
  display: flex;
  align-items: center;
}
.nav-link--split {
  padding-right: 0.15rem;
}
.nav-link--caret {
  padding: 0 0.6rem 0 0.15rem;
}
.nav-link--toggle[aria-expanded="true"] .nav-caret {
  transform: rotate(180deg);
}
.nav-sub {
  position: absolute;
  top: calc(100% + 8px);
  left: -0.5rem;
  min-width: 300px;
  padding: 0.625rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    visibility 0.16s;
}
.nav-item--parent.is-open > .nav-sub {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.nav-sub__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-sub__link {
  display: block;
  padding: 0.625rem 0.75rem;
  border-radius: 10px;
  text-decoration: none;
}
.nav-sub__link strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
}
.nav-sub__link span {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--slate);
}
.nav-sub__link:hover,
.nav-sub__link[aria-current] {
  background: var(--mist);
}
.site-header__cta {
  flex-shrink: 0;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle .icon--close {
  display: none;
}
.menu-open .nav-toggle .icon--menu {
  display: none;
}
.menu-open .nav-toggle .icon--close {
  display: block;
}

@media (max-width: 1199px) {
  .nav-toggle {
    display: inline-flex;
  }
  .site-header__cta {
    display: none;
  }
  .site-nav {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--white);
    overflow-y: auto;
    padding: 1rem var(--gutter) 2rem;
    display: none;
  }
  .menu-open .site-nav {
    display: block;
  }
  .menu-open {
    overflow: hidden;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-item {
    border-bottom: 1px solid var(--line);
  }
  .nav-link {
    width: 100%;
    justify-content: space-between;
    min-height: 56px;
    font-size: 1.0625rem;
    padding: 0 0.25rem;
  }
  .nav-split .nav-link--split {
    flex: 1;
  }
  .nav-split .nav-link--caret {
    width: auto;
    min-width: 44px;
    justify-content: center;
  }
  .nav-sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 0 0 0.75rem;
    min-width: 0;
    display: none;
  }
  .nav-item--parent.is-open > .nav-sub {
    display: block;
  }
  .site-nav .btn {
    margin-top: 1.5rem;
    width: 100%;
  }
}
@media (min-width: 1200px) {
  .site-nav .nav-mobile-cta {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(4rem, 2.5rem + 5vw, 6.5rem);
}
.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 1.375rem;
}
.hero__subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
}
.hero__copy .lead {
  max-width: 560px;
}
.hero--light {
  background: var(--white);
  padding-bottom: 0;
}
.hero--light .hero__subtitle {
  color: var(--ink);
}
.hero__media {
  max-width: 1100px;
  margin: 3rem auto 0;
}
.hero__media img {
  width: 100%;
  height: auto;
}
.hero--center .hero__copy {
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
  align-items: center;
}
.hero--center .hero__copy .lead {
  max-width: var(--max-width-sm);
}
.hero--center .btn-row,
.hero--center .trust {
  justify-content: center;
}
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.875rem;
  padding: 0.25rem 0 0;
  margin: 0;
  list-style: none;
}
.trust li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.trust .icon--star {
  color: #f2c14e;
}

/*---------Hero Portfolio------------*/
.hero--center--portfolio {
  padding-bottom: 0;
}
.hero--center--portfolio .container {
  align-items: end;
}
.hero--center--portfolio .hero__copy {
  max-width: 860px;
  align-items: start;
  align-self: center;
  padding-bottom: clamp(3rem, 2rem + 4vw, 6.5rem);
}
/* Featured image sits on the bottom edge of the hero */
.hero__shot {
  display: flex;
  justify-content: center;
}
.hero__shot .hero__image {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Results card */
.results {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.results__head {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.results__head strong {
  color: var(--ink);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.45;
}
.results__head span {
  font-size: 0.8125rem;
  color: var(--slate);
}
.results__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.875rem;
}
.metric {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.125rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.metric__label,
.metric__was {
  font-size: 0.8125rem;
  color: var(--slate);
  line-height: 1.4;
}
.metric__value {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  line-height: 1.25;
  font-weight: 600;
  color: var(--ink);
}
.metric .badge {
  align-self: flex-start;
  margin-top: 0.25rem;
}
.split--top {
  align-items: flex-start;
}

/* ---------- Pricing ---------- */
.pricing {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
.plan {
  flex: 1 1 340px;
  max-width: 460px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.plan__head {
  padding: 1.875rem 1.875rem 1.5rem;
  background: var(--mist);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.plan__title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}
.plan__title h3 {
  font-size: 1.25rem;
}
.plan__price {
  font-size: 2.75rem;
  line-height: 1.15;
  font-weight: 600;
  color: var(--ink);
}
.plan__price small {
  font-size: 1rem;
  font-weight: 400;
  color: var(--slate);
}
.plan__body {
  padding: 1.625rem 1.875rem 1.875rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex-grow: 1;
}
.plan__body .btn {
  margin-top: auto;
}
.plan--featured {
  border: 2px solid var(--blue);
  box-shadow: 0 12px 32px rgba(18, 100, 255, 0.12);
}
.plan--featured .plan__head {
  background: var(--blue-tint);
  border-bottom-color: var(--blue-line);
}
.pricing-note {
  max-width: 760px;
  margin: 1.75rem auto 0;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--slate);
}

/* ---------- Callout band ---------- */
.callout {
  background: var(--blue-tint);
  border: 1px solid var(--blue-line);
  border-radius: 14px;
  padding: 1.625rem 1.875rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
}
.callout p {
  flex: 1 1 480px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  font-weight: 500;
}

/* ---------- FAQ (native details) ---------- */
.faq {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.375rem 1.625rem;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ink);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B4AC2' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E")
    center / contain no-repeat;
  transition: transform 0.18s ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  padding: 0 1.625rem 1.375rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--slate);
}

/* ---------- CTA band and footer ---------- */
.cta-band {
  background: var(--ink);
  color: var(--harbor-text);
  padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}
.cta-band h2 {
  color: var(--white);
}
.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.cta-band__inner > div:first-child {
  flex: 1 1 480px;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.cta-band .lead {
  color: var(--harbor-text);
}
.site-footer {
  background: var(--white);
  color: var(--slate);
  font-size: 0.875rem;
  line-height: 1.8;
  border-top: 1px solid var(--line);
}
.site-footer a {
  color: var(--slate);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--blue-deep);
}
.site-footer__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
  padding-block: 3.5rem 3rem;
}
@media (max-width: 900px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-footer__brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 520px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}
.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 380px;
}
.site-footer__brand .site-logo img,
.site-footer__brand .custom-logo {
  width: 170px;
}
.site-footer__contact a,
.site-footer__contact span {
  display: block;
}
.site-footer h2 {
  font-size: 0.9375rem;
  color: var(--ink);
  margin-bottom: 0.625rem;
  letter-spacing: 0;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rating-pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  font-size: 0.8125rem;
  color: var(--ink);
}
.rating-pill .stars {
  color: #f2b81e;
  letter-spacing: 1px;
}
.social {
  display: flex;
  gap: 0.625rem;
  margin-top: 0.25rem;
}
.social a {
  width: 40px;
  height: 40px;
  border-radius: var(--pill);
  background: var(--blue);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.social a:hover {
  background: var(--blue-deep);
  color: var(--white);
}
.social svg {
  width: 20px;
  height: 20px;
}
.site-footer__bottom {
  border-top: 1px solid var(--line);
  padding-block: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
}

.card--post {
  padding: 0 0 1.5rem;
  overflow: hidden;
  gap: 0.625rem;
}
.card--post > *:not(.card__media) {
  margin-inline: 1.5rem;
}
.card__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.card--post h3 a {
  color: var(--ink);
  text-decoration: none;
}
.card--post h3 a:hover {
  color: var(--blue-deep);
}
.pagination {
  margin-top: 2.5rem;
}

/* ---------- Content (blog posts, default pages) ---------- */
.entry {
  max-width: 760px;
  margin-inline: auto;
}
.entry > * + * {
  margin-top: 1.25em;
}
.entry h2 {
  margin-top: 2em;
}
.entry h3 {
  margin-top: 1.6em;
}
.entry ul,
.entry ol {
  padding-left: 1.25rem;
}
.entry img {
  border-radius: var(--radius);
}
.page-head {
  padding-block: clamp(3.5rem, 2rem + 4vw, 5.5rem) 2.5rem;
  background: var(--mist);
  border-bottom: 1px solid var(--line);
}
.page-head .container {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

/* ---------- Service page extras ---------- */
.media-figure img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
}
@media (min-width: 700px) {
  .card--wide {
    grid-column: span 2;
  }
}
/* CTA cards at the end of a grid: content starts in the middle, not at the top */
.card--wide,
.card--span-2 {
  justify-content: center;
}
.card--dark h3 {
  color: var(--white);
}
.plan__subtitle {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
}
.extras {
  margin-top: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}
.checks--light li {
  color: var(--harbor-text);
}
.checks--light li::before {
  background: var(--harbor-accent);
}
.portfolio-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 2rem;
}
.portfolio-card {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  text-decoration: none;
  color: inherit;
  text-align: center;
}
.portfolio-card__media {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--mist);
  border: 1px solid var(--line);
}
.portfolio-card__media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  transition: transform 0.3s ease;
}
.portfolio-card:hover .portfolio-card__media img {
  transform: scale(1.03);
}
.portfolio-card__title {
  font-size: 1.125rem;
  line-height: 1.45;
  font-weight: 600;
  color: var(--ink);
}
.portfolio-card:hover .portfolio-card__title {
  color: var(--blue-deep);
}
.portfolio-card__kind {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.badge--new {
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
}
.portfolio-card--compact .portfolio-card__title {
  font-size: 1rem;
}

/* ---------- Projects page (/projects/) ---------- */
.chips--outline {
  margin-top: 0.5rem;
}
.chips--outline .chip {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--body);
}
.chips--outline .chip strong {
  color: var(--ink);
}
.project-feature {
  display: grid;
  grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 4vw, 3.5rem);
  align-items: center;
}
.project-feature__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.project-feature__kind {
  margin: 0;
  font-weight: 500;
  color: var(--slate);
}
.section--tight-top {
  padding-top: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}
.project-heading {
  margin-bottom: 1.5rem;
}
.project-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr));
  gap: 1.75rem 1.5rem;
}
@media (max-width: 760px) {
  .project-feature {
    grid-template-columns: minmax(0, 1fr);
  }
  .project-feature__media {
    max-width: 420px;
  }
}

/* ---------- Motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Round 3: blog listing, portfolio filter, single post ---------- */
.blog-grid,
.project-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 2rem;
}
.blog-filters {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.blog-filter,
.project-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
}
.project-filter {
  margin-bottom: 2.5rem;
}
.blog-filter__label {
  min-width: 5.5rem;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--slate);
}
.blog-filter .chip,
.project-filter .chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--body);
  font: 500 0.9375rem var(--font);
  text-decoration: none;
  cursor: pointer;
}
.blog-filter .chip:hover,
.project-filter .chip:hover {
  border-color: var(--blue-line);
  color: var(--blue-deep);
}
.blog-filter .chip.is-active,
.project-filter .chip.is-active {
  background: var(--harbor);
  border-color: var(--harbor);
  color: var(--white);
}
.project-grid__item[hidden] {
  display: none;
}
.post-single__media {
  margin: 0 auto 2.5rem;
  max-width: 760px;
}
.post-single__media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

/* ---------- Round 3: JetFormBuilder forms (base styles) ---------- */
.form-card {
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.form-card .jet-form-builder-row {
  margin-bottom: 1.25rem;
}
.form-card .jet-form-builder__label-text {
  display: inline-block;
  margin-bottom: 0.375rem;
  font-weight: 500;
  color: var(--ink);
}
.form-card .jet-form-builder__required {
  color: var(--blue-deep);
}
.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="tel"],
.form-card input[type="number"],
.form-card input[type="url"],
.form-card select,
.form-card textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  font: 400 1rem var(--font);
  color: var(--ink);
  box-sizing: border-box;
}
.form-card textarea {
  min-height: 140px;
}
.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue);
}
.form-card .jet-form-builder__submit,
.form-card button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 1.75rem;
  border: 0;
  border-radius: var(--pill);
  background: var(--blue);
  color: var(--white);
  font: 600 1rem var(--font);
  cursor: pointer;
}
.form-card .jet-form-builder__submit:hover,
.form-card button[type="submit"]:hover {
  background: var(--blue-deep);
}
.form-card .jet-form-builder-messages-wrap {
  margin-top: 1rem;
}
