/* ==========================================================================
   Resume by Design Incorporated — shared stylesheet
   Palette: Ink (deep navy-charcoal) · Crimson (sampled from the RBD logo)
            Ivory / Sand (warm neutrals) · Slate (body text)
   Type:    Fraunces (display serif, one Google Font) + system sans for body
   ========================================================================== */

:root {
  --ink: #17212e;
  --ink-soft: #2b3849;
  --crimson: #c0322f;
  --crimson-dark: #8f2320;
  --crimson-wash: #fbeeed;
  --ivory: #fbf9f6;
  --sand: #f0eae2;
  --line: #e3dbd1;
  --slate: #56606e;
  --white: #ffffff;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --wrap: 1120px;
  --gap: clamp(1.5rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 9vw, 7rem);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(23, 33, 46, 0.04), 0 12px 32px rgba(23, 33, 46, 0.07);
  --nav-h: 76px;
}

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

body,
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }

ul[class] { list-style: none; padding: 0; }

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--slate);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

/* --- Typography ----------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.25rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); line-height: 1.3; }

p + p { margin-top: 1rem; }

a { color: var(--crimson); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--crimson-dark); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 0.9rem;
}

.lead { font-size: clamp(1.125rem, 1.9vw, 1.3125rem); line-height: 1.6; color: var(--ink-soft); }

.muted { color: var(--slate); }

/* --- Layout --------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.section { padding-block: var(--section-y); }
.section--sand { background: var(--sand); }
.section--ink { background: var(--ink); color: #cfd6df; }
.section--ink h2, .section--ink h3 { color: #fff; }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 1rem; color: #fff; }

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

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  font-weight: 600;
  line-height: 1;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease,
    border-color 0.18s ease, transform 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary { background: var(--crimson); color: #fff; }
.btn--primary:hover { background: var(--crimson-dark); color: #fff; }

.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); background: var(--white); }

.section--ink .btn--ghost { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.section--ink .btn--ghost:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }

/* --- Header / nav --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 246, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex: none;
}
.brand img {
  width: auto;
  height: 42px;
  object-fit: contain;
  /* The logo ships on an opaque white field; multiply drops it onto the ivory bar. */
  mix-blend-mode: multiply;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand-name span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 3px;
}
@media (min-width: 900px) {
  .brand img { height: 50px; }
  .brand-name { font-size: 1.0625rem; }
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
}

.nav-links a {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.7rem 0;
}
.nav-links a:hover { color: var(--crimson); }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 700; }

.nav-links .nav-cta {
  color: #fff;
  background: var(--crimson);
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
  text-align: center;
  font-weight: 600;
}
.nav-links .nav-cta:hover { background: var(--crimson-dark); color: #fff; }

/* Mobile: panel expands under the bar */
.site-header.is-open .nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  width: 100%;
  padding: 0.5rem 0 1.25rem;
  border-top: 1px solid var(--line);
  margin-top: 0.25rem;
}
.site-header.is-open .nav { flex-wrap: wrap; }
.site-header.is-open .nav-links .nav-cta { margin-top: 0.6rem; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
  }
  .nav-links a { padding: 0.35rem 0; }
  .nav-links a[aria-current="page"] { border-bottom: 2px solid var(--crimson); }
  .nav-links a.nav-cta[aria-current="page"] { border-bottom: 0; }
}

/* --- Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60rem 30rem at 78% 12%, var(--crimson-wash), transparent 62%),
    linear-gradient(180deg, var(--ivory), var(--sand));
  border-bottom: 1px solid var(--line);
}
.hero .wrap { padding-block: clamp(3.5rem, 10vw, 6.5rem); }

.hero-grid {
  display: grid;
  gap: clamp(2.25rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
}

.hero h1 { margin-bottom: 1.25rem; }
.hero .lead { max-width: 34rem; }

.hero-figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}
.hero-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Compact hero for interior pages */
.page-hero {
  background: linear-gradient(180deg, var(--ivory), var(--sand));
  border-bottom: 1px solid var(--line);
}
.page-hero .wrap { padding-block: clamp(3rem, 8vw, 5rem); }
.page-hero .lead { max-width: 42rem; margin-top: 1.1rem; }

/* --- Cards / grids -------------------------------------------------------- */
.grid { display: grid; gap: var(--gap); }
@media (min-width: 720px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.6rem; }
.card p { font-size: 1rem; }

.card-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--crimson-wash);
  margin-bottom: 1.25rem;
}
.card-icon img { width: 32px; height: 32px; object-fit: contain; }

.card-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}
.card-link::after { content: " →"; }
.card-link:hover { text-decoration: underline; }

/* Numbered steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 3.25rem; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--crimson);
}
.step h3 { font-size: 1.1875rem; margin-bottom: 0.4rem; }
.step p { font-size: 1rem; }

/* --- Service detail blocks ------------------------------------------------ */
.service {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 4rem);
  border-top: 1px solid var(--line);
}
.service:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 860px) {
  .service { grid-template-columns: 0.9fr 1.1fr; }
  .service--flip .service-art { order: 2; }
}

.service-art {
  display: grid;
  place-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.25rem);
  box-shadow: var(--shadow);
}
.service-art img { width: min(190px, 60%); }

.service h2 { margin-bottom: 1rem; }

/* --- Tick list ------------------------------------------------------------ */
.ticks { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 0.7rem; }
.ticks li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--ink-soft);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--crimson);
  box-shadow: 0 0 0 4px var(--crimson-wash);
}

/* --- Split (image + text) ------------------------------------------------- */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; } }

.split-figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.split-figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* --- Placeholder (awaiting real content) ---------------------------------- */
.placeholder {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}
.placeholder h3 { margin-bottom: 0.75rem; }
.placeholder p { max-width: 44rem; margin-inline: auto; }
.placeholder .tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--crimson);
  background: var(--crimson-wash);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  margin-bottom: 1.1rem;
}

/* --- Contact -------------------------------------------------------------- */
.contact-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.25fr 0.75fr; } }

.form-slot {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 3vw, 2rem);
  margin-top: 1.5rem;
  max-width: 40rem;
  overflow: hidden;
}

/* Jotform's script injects the iframe as the embed script's next sibling, so it
   lands in this card. It sizes the frame itself (inline width:10px + min-width:100%)
   and drives the height over postMessage — so only cap the width and drop the chrome. */
.form-slot iframe {
  display: block;
  max-width: 100%;
  border: 0;
}

.detail-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; }
.detail-list dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.detail-list dd { margin: 0; color: var(--slate); }

/* --- CTA band ------------------------------------------------------------- */
.cta-band { text-align: center; }
.cta-band .lead { color: #b9c2ce; max-width: 40rem; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; }

/* --- Footer --------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: #9aa5b3;
  padding-block: clamp(2.75rem, 6vw, 4rem);
  font-size: 0.9375rem;
}
.footer-top {
  display: grid;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
@media (min-width: 760px) {
  .footer-top { grid-template-columns: 1.4fr 1fr; align-items: start; }
}
/* On the dark footer the white logo field needs to become a deliberate plate. */
.brand--footer img {
  height: 46px;
  background: #fff;
  border-radius: 10px;
  padding: 6px 10px;
  mix-blend-mode: normal;
}
.brand--footer .brand-name { color: #fff; }
.brand--footer .brand-name span { color: #7e8a99; }
.footer-blurb { margin-top: 1.25rem; max-width: 30rem; color: #9aa5b3; }

.footer-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer-nav a { color: #cfd6df; text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: 0.875rem;
  color: #7e8a99;
}

/* --- 404 ------------------------------------------------------------------ */
.notfound { text-align: center; padding-block: clamp(4rem, 12vw, 8rem); }
.notfound .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 7rem);
  line-height: 1;
  color: var(--crimson);
  margin-bottom: 1rem;
}
.notfound .btn-row { justify-content: center; }

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