/* =========================================================
   Vorst Digital Consulting — styles
   A single-page, modern, accessible marketing site.
   ========================================================= */

:root {
  /* Palette — editorial navy + warm cream */
  --ink: #0b1a33;        /* midnight navy near-black */
  --ink-2: #15284a;
  --paper: #fbf8f1;      /* warm cream */
  --paper-2: #f3efe2;
  --paper-3: #e8e1cd;
  --muted: #596273;
  --line: #e4ddc9;

  --brand: #1e3a8a;      /* rich navy blue */
  --brand-2: #0b1a33;    /* midnight navy */
  --brand-3: #93c5fd;    /* soft sky — for subtle glows only */
  --brand-glow: rgba(30, 58, 138, 0.3);

  /* Type */
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --display: "Fraunces", "Inter", ui-serif, Georgia, serif;

  /* Layout */
  --container: 1160px;
  --radius: 14px;
  --radius-lg: 22px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--brand);
  text-decoration: none;
}
a:hover,
a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.75rem);
}
h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
}
h3 {
  font-size: 1.25rem;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
  color: var(--ink-2);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}


/* --------------------------- Buttons --------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 600;
  padding: 0.85em 1.2em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease),
    background 160ms var(--ease), color 160ms var(--ease),
    border-color 160ms var(--ease);
  white-space: nowrap;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn--lg {
  padding: 1em 1.5em;
  font-size: 1.02rem;
}
.btn--sm {
  padding: 0.55em 0.9em;
  font-size: 0.9rem;
}
.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 24px -10px var(--brand-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn--primary:hover {
  box-shadow: 0 14px 28px -10px var(--brand-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn--ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}
.btn--ghost:hover {
  border-color: var(--ink);
  background: var(--paper-2);
}

/* --------------------------- Nav --------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 241, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(251, 248, 241, 0.9);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.nav__brand:hover {
  text-decoration: none;
}
.nav__mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--ink), var(--ink-2));
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 6px 16px -10px rgba(11, 15, 25, 0.6);
}
.nav__name {
  font-size: 0.98rem;
}
.nav__menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav__menu a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav__menu a:hover {
  color: var(--brand);
  text-decoration: none;
}
.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0;
  cursor: pointer;
  position: relative;
}
.nav__toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 200ms var(--ease), opacity 200ms var(--ease),
    top 200ms var(--ease);
}
.nav__toggle span:nth-child(1) {
  top: 14px;
}
.nav__toggle span:nth-child(2) {
  top: 19px;
}
.nav__toggle span:nth-child(3) {
  top: 24px;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  top: 19px;
  transform: rotate(-45deg);
}

/* --------------------------- Hero --------------------------- */
.hero {
  position: relative;
  padding: clamp(4rem, 9vw, 8rem) 0 clamp(4rem, 7vw, 7rem);
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, #f6f2e4 0%, var(--paper) 100%);
}
.hero__inner {
  position: relative;
  max-width: 980px;
  text-align: left;
}
.hero__title {
  font-size: clamp(2.75rem, 7.2vw, 5.25rem);
  letter-spacing: -0.035em;
  margin-bottom: 1rem;
}
.hero__title .accent {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__title .accent-2 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  z-index: 0;
}
.hero__title .accent-2::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.08em;
  height: 0.18em;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--brand) 40%, transparent),
    color-mix(in srgb, var(--brand-2) 40%, transparent)
  );
  border-radius: 999px;
  z-index: -1;
}
.hero__lede {
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 2rem;
}
.hero__lede strong {
  color: var(--ink);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}
.hero__proof {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 2.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.hero__proof li {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
}
.hero__proof span {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.03em;
}

/* Hero background */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      to right,
      rgba(11, 26, 51, 0.06) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(11, 26, 51, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(
    ellipse 80% 70% at 50% 20%,
    #000 40%,
    transparent 80%
  );
  mask-image: radial-gradient(
    ellipse 80% 70% at 50% 20%,
    #000 40%,
    transparent 80%
  );
}
.hero__glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}
.hero__glow--a {
  top: -120px;
  right: -120px;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--brand) 45%, transparent),
    transparent 70%
  );
  opacity: 0.35;
}
.hero__glow--b {
  bottom: -180px;
  left: -120px;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--brand-3) 55%, transparent),
    transparent 70%
  );
  opacity: 0.4;
}

/* --------------------------- Sections --------------------------- */
.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}
.section--alt {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section__head {
  max-width: 780px;
  margin: 0 auto 3.5rem;
  text-align: center;
}
.section__lede {
  font-size: 1.1rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

/* --------------------------- Grid --------------------------- */
.grid {
  display: grid;
  gap: 1.25rem;
}
.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* --------------------------- Cards --------------------------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease),
    border-color 220ms var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
  box-shadow: 0 18px 36px -24px rgba(11, 15, 25, 0.2);
}
.card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--paper-2), var(--paper));
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--brand);
  margin-bottom: 1rem;
}
.card__icon svg {
  width: 22px;
  height: 22px;
}
.card p {
  color: var(--muted);
  margin-bottom: 0;
}

/* --------------------------- Services --------------------------- */
.service {
  position: relative;
  padding: 1.75rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease),
    border-color 220ms var(--ease);
}
.service:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
  box-shadow: 0 18px 36px -24px rgba(11, 15, 25, 0.2);
}
.service h3 {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.service__num {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.02em;
}
.service p {
  color: var(--muted);
  margin-bottom: 0;
}

/* --------------------------- About --------------------------- */
.about {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 880px) {
  .about {
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
  }
}
.about__text p {
  color: var(--muted);
  font-size: 1.05rem;
}
.about__text .btn {
  margin-top: 1rem;
}
.about__person {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin: 0.25rem 0 1.25rem;
}
.about__avatar {
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 20px;
  object-fit: cover;
  background: var(--paper-2);
  border: 1px solid var(--line);
  box-shadow: 0 20px 36px -22px rgba(13, 31, 23, 0.35);
}
.about__person h2 {
  margin: 0;
  line-height: 1;
}
.about__role {
  margin: 0.4rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}
@media (max-width: 520px) {
  .about__person {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
  }
}
.about__card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 24px 40px -28px rgba(11, 15, 25, 0.25);
}
.about__card h3 {
  margin-bottom: 1.25rem;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.steps li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 0.9rem;
  align-items: start;
  color: var(--muted);
}
.steps__num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 10%, var(--paper-2));
  color: var(--brand);
  font-weight: 700;
  font-size: 0.85rem;
}
.steps strong {
  color: var(--ink);
}

/* --------------------------- FAQ --------------------------- */
.faq {
  max-width: 820px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__icon {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--ink);
  border-radius: 2px;
}
.faq__icon::before {
  width: 14px;
  height: 2px;
}
.faq__icon::after {
  width: 2px;
  height: 14px;
  transition: transform 220ms var(--ease);
}
.faq__item[open] .faq__icon::after {
  transform: rotate(90deg);
}
.faq__body {
  padding-bottom: 1.25rem;
  color: var(--muted);
  max-width: 70ch;
}
.faq__body p {
  margin: 0;
}
.faq__body strong {
  color: var(--ink);
}
.faq__body a {
  color: var(--brand);
  font-weight: 600;
}

/* --------------------------- Writing --------------------------- */
.writing {
  max-width: 880px;
  margin: 0 auto;
}
.writing [data-supascribe-feed] {
  width: 100%;
}

/* --------------------------- CTA --------------------------- */
.section--cta {
  position: relative;
  background: radial-gradient(
      1200px 600px at 80% -10%,
      rgba(30, 58, 138, 0.55),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at 0% 110%,
      rgba(147, 197, 253, 0.18),
      transparent 60%
    ),
    linear-gradient(180deg, var(--ink), var(--ink-2));
  color: #fff;
  overflow: hidden;
}
.section--cta h2,
.section--cta p {
  color: #fff;
}
.cta {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.cta__lede {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}
.cta__note {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* --------------------------- Contact form --------------------------- */
.contact-wrap {
  display: grid;
  gap: 3rem 4rem;
  grid-template-columns: 1fr;
  align-items: start;
  max-width: 1040px;
  margin: 0 auto;
  text-align: left;
}
@media (min-width: 860px) {
  .contact-wrap {
    grid-template-columns: 1fr 1fr;
  }
}

/* keep existing CTA text styles working on the left col */
.contact-wrap .cta__lede {
  color: rgba(255, 255, 255, 0.75);
}
.contact-wrap .eyebrow--light {
  display: inline-block;
}

.form {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.form__group {
  margin-bottom: 1.1rem;
}
.form__label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}
.form__input,
.form__textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  font-family: var(--sans);
  font-size: 0.97rem;
  color: #fff;
  outline: none;
  transition: border-color 160ms var(--ease), background 160ms var(--ease);
}
.form__input::placeholder,
.form__textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
.form__input:focus,
.form__textarea:focus {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.11);
}
.form__textarea {
  resize: vertical;
  min-height: 110px;
}
.form__submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.4rem;
}
.form__submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}
.form__status {
  display: none;
  border-radius: 10px;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  margin-top: 0.75rem;
  font-weight: 500;
}
.form__status--success {
  display: block;
  background: rgba(134, 239, 172, 0.15);
  border: 1px solid rgba(134, 239, 172, 0.35);
  color: #bbf7d0;
}
.form__status--error {
  display: block;
  background: rgba(252, 165, 165, 0.12);
  border: 1px solid rgba(252, 165, 165, 0.3);
  color: #fca5a5;
}
.form__success-msg {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}
.form__success-msg svg {
  margin: 0 auto 1rem;
  color: #bbf7d0;
}
.form__success-msg h3 {
  color: #fff;
  margin-bottom: 0.5rem;
}
.form__success-msg p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* --------------------------- Footer --------------------------- */
.footer {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
}
.footer__inner {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .footer__inner {
    grid-template-columns: 1.1fr 1fr auto;
    align-items: center;
  }
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer__brand strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
}
.footer__brand p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.footer__links a {
  color: var(--ink-2);
  font-size: 0.95rem;
}
.footer__links a:hover {
  color: var(--brand);
  text-decoration: none;
}
.footer__copy {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
  text-align: right;
}
@media (max-width: 759px) {
  .footer__copy {
    text-align: left;
  }
}

/* --------------------------- Reveal on scroll --------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal:nth-child(2) {
  transition-delay: 80ms;
}
.reveal:nth-child(3) {
  transition-delay: 160ms;
}
.reveal:nth-child(4) {
  transition-delay: 240ms;
}
.reveal:nth-child(5) {
  transition-delay: 320ms;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * {
    animation-duration: 0ms !important;
    transition-duration: 0ms !important;
  }
}

/* --------------------------- Responsive --------------------------- */
@media (max-width: 760px) {
  .nav__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(251, 248, 241, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1rem 1rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms var(--ease), transform 200ms var(--ease);
  }
  .nav__menu a {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--line);
  }
  .nav__menu a:last-child {
    border-bottom: 0;
    margin-top: 0.5rem;
    text-align: center;
  }
  .nav__menu.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav__toggle {
    display: inline-grid;
    place-items: center;
  }
  .hero__proof {
    gap: 1.25rem 1.75rem;
  }
  .hero__proof span {
    font-size: 1.6rem;
  }
}
