/* ==========================================================================
   Fujita Digital — Design System
   Warm stone · charcoal ink · slate blue · muted sage
   Newsreader (display) + Work Sans (text)
   ========================================================================== */

/* Fonts are loaded via <link> in each page head (preconnect + stylesheet)
   to avoid a render-blocking @import chain. */

:root {
  --bg: #EDEAE4;
  --surface: #F7F5F0;
  --white: #FFFFFF;
  --ink: #2B2B2B;
  --ink-soft: rgba(43, 43, 43, 0.72);
  --ink-faint: rgba(43, 43, 43, 0.68);
  --blue: #3D5A73;
  --blue-deep: #33495C;
  --sage: #7C8B6F;
  --sage-deep: #5A6650;
  --line: rgba(43, 43, 43, 0.12);
  --line-soft: rgba(43, 43, 43, 0.07);

  --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-text: 'Work Sans', -apple-system, 'Segoe UI', sans-serif;

  --container: 1140px;
  --pad-x: 24px;
  --radius: 3px;

  --space-section: clamp(88px, 12vw, 136px);
  --space-block: clamp(48px, 7vw, 72px);
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.18;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 5.6vw, 4rem);
  font-style: italic;
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-style: italic;
}

h3 {
  font-size: 1.4rem;
  font-weight: 600;
  font-style: normal;
  line-height: 1.3;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.1rem, 1.8vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 34em;
}

a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(61, 90, 115, 0.4);
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover { color: var(--blue-deep); text-decoration-color: currentColor; }

ul, ol { padding-left: 1.2em; margin: 0 0 1.1em; }
li { margin-bottom: 0.4em; }

blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.5;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--space-block) 0;
}

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

::selection { background: rgba(61, 90, 115, 0.18); }

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.container--narrow { max-width: 780px; }

.section { padding: var(--space-section) 0; }

.section--tight { padding: var(--space-block) 0; }

.section--rule { border-top: 1px solid var(--line); }

.section--surface { background: var(--surface); }

.kicker {
  display: block;
  font-family: var(--font-text);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 18px;
}

.section-head { max-width: 640px; margin-bottom: var(--space-block); }

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

.btn {
  display: inline-block;
  background: var(--blue);
  color: var(--bg);
  font-family: var(--font-text);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--blue);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
  color: var(--bg);
}

.btn:active { transform: translateY(1px); }

.btn--ghost {
  background: transparent;
  color: var(--blue);
}

.btn--ghost:hover {
  background: rgba(61, 90, 115, 0.07);
  color: var(--blue-deep);
}

.btn--on-blue {
  background: var(--bg);
  border-color: var(--bg);
  color: var(--blue-deep);
}

.btn--on-blue:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--blue-deep);
}

.text-link {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--blue);
}

/* A link sitting alone on its line can't borrow tap area from surrounding text,
   so it gets its own. The negative margin cancels the padding in layout, leaving
   the visual rhythm untouched while the hit box reaches 44px. */
.card-cta a,
.service-item .text-link,
p > .text-link:only-child {
  display: inline-block;
  padding-block: 14px;
  margin-block: -14px;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(237, 234, 228, 0.92);
  border-bottom: 1px solid var(--line-soft);
}

/* Blur lives on a pseudo-element: backdrop-filter on the header itself would
   make it the containing block for the fixed-position mobile nav overlay,
   trapping the menu inside the 76px header strip. */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
}

.brand .mark line {
  stroke: var(--blue);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav a:not(.btn) {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.site-nav a:not(.btn):hover { color: var(--blue); }

.site-nav a[aria-current="page"] { border-bottom-color: var(--sage); }

.btn-nav { padding: 10px 20px; font-size: 0.88rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
  z-index: 60;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Mobile nav */
@media (max-width: 820px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s;
  }

  .site-nav a:not(.btn) {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 500;
    padding: 10px 0;
  }

  .site-nav .btn { margin-top: 20px; font-size: 1rem; padding: 14px 32px; }

  .nav-open .site-nav { opacity: 1; visibility: visible; pointer-events: auto; }

  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { transform: rotate(-45deg); }

  .nav-open body { overflow: hidden; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero { padding: clamp(80px, 11vw, 150px) 0 var(--space-section); }

.hero-inner { max-width: 700px; }

.hero h1 { margin-bottom: 0.45em; }

.hero .lead { margin-bottom: 2em; }

/* --------------------------------------------------------------------------
   Service rows (numbered, editorial)
   -------------------------------------------------------------------------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.service-item {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.service-item .num {
  font-family: var(--font-text);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--sage-deep);
  display: block;
  margin-bottom: 14px;
}

.service-item h3 { margin-bottom: 0.5em; }

.service-item p { color: var(--ink-soft); font-size: 0.98rem; }

.service-item .text-link { font-size: 0.98rem; }

@media (max-width: 820px) {
  .service-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* --------------------------------------------------------------------------
   Proof strip
   -------------------------------------------------------------------------- */

.proof-strip {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 32px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 30px 0;
}

.proof-item {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.proof-item strong {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink);
  margin-right: 6px;
}

@media (max-width: 820px) {
  .proof-strip { flex-direction: column; gap: 14px; }
}

/* --------------------------------------------------------------------------
   Cards (work, packages)
   -------------------------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Cards used as links must not inherit global link styling */
a.card {
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

a.card:hover {
  color: var(--ink);
  border-color: var(--line);
  transform: translateY(-2px);
}

.card-media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #E3DFD6, #D8D4CA);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Thumbnails are shot at 1280x1000 and cropped to the tile's 16:10, which trims
   the third-party cookie banners pinned to the bottom of each captured viewport.
   The image is taken out of flow so it can't stretch the tile past that ratio. */
.card-media {
  position: relative;
  overflow: hidden;
}

.card-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.card-media .mark-placeholder line {
  stroke: rgba(43, 43, 43, 0.18);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.card-body { padding: 26px 26px 30px; flex: 1; display: flex; flex-direction: column; }

.card-body h3 { font-size: 1.2rem; }

.card-body .meta {
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin-bottom: 10px;
}

.card-body p { font-size: 0.95rem; color: var(--ink-soft); }

.card-body .card-cta { margin-top: auto; padding-top: 18px; }

/* Package cards */
.package-card { padding: 38px 32px 34px; background: var(--white); border: 1px solid var(--line-soft); border-radius: 6px; display: flex; flex-direction: column; }

.package-card .package-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 16px;
  min-height: 1em;
}

.package-card h3 { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 1.6rem; }

.package-card .who {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 22px;
}

.package-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  border-top: 1px solid var(--line-soft);
}

.package-card li {
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.92rem;
  margin: 0;
  padding-left: 22px;
  position: relative;
}

.package-card li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 1.15em;
  width: 8px;
  height: 1.5px;
  background: var(--sage);
}

.package-card .btn { margin-top: auto; text-align: center; }

/* --------------------------------------------------------------------------
   Deep service sections (services page)
   -------------------------------------------------------------------------- */

/* Rhythm and divider rules are owned by the wrapping .section--tight/.section--rule;
   padding here would double-stack with the wrapper's. */
.service-deep {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 32px;
}

.service-deep .num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--sage);
  line-height: 1;
  padding-top: 6px;
}

.service-deep h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }

.service-deep .includes {
  margin-top: 28px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 26px 30px;
}

.service-deep .includes h4 {
  font-family: var(--font-text);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 14px;
}

.service-deep .includes ul {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 40px;
}

.service-deep .includes li {
  padding: 7px 0 7px 22px;
  position: relative;
  font-size: 0.94rem;
  break-inside: avoid;
}

.service-deep .includes li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 1.05em;
  width: 8px;
  height: 1.5px;
  background: var(--sage);
}

.service-deep .service-cta { margin-top: 26px; }

@media (max-width: 820px) {
  .service-deep { grid-template-columns: 1fr; gap: 10px; }
  .service-deep .includes ul { columns: 1; }
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-list { border-top: 1px solid var(--line); }

.faq-item { border-bottom: 1px solid var(--line); padding: 26px 0; }

.faq-item h3 {
  font-size: 1.15rem;
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 0.4em;
}

.faq-item p { color: var(--ink-soft); font-size: 0.98rem; max-width: 42em; }

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */

.testimonial {
  border-left: 2px solid var(--sage);
  padding-left: 28px;
  margin-bottom: var(--space-block);
}

.testimonial:last-child { margin-bottom: 0; }

.testimonial cite {
  display: block;
  margin-top: 14px;
  font-family: var(--font-text);
  font-style: normal;
  font-size: 0.88rem;
  color: var(--ink-faint);
}

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

.cta-band {
  background: var(--blue);
  color: var(--bg);
  padding: clamp(72px, 9vw, 110px) 0;
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-band h2 {
  color: var(--bg);
  margin: 0;
  max-width: 15em;
}

.cta-band p {
  color: rgba(237, 234, 228, 0.88);
  margin: 10px 0 0;
  max-width: 32em;
}

/* Blue focus ring is invisible on the blue band — use the light token there */
.cta-band :focus-visible {
  outline-color: var(--bg);
}

@media (max-width: 820px) {
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 60px 0 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand .brand-line {
  font-family: var(--font-display);
  font-size: 1.15rem;
  display: block;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--ink-faint);
  max-width: 24em;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav a {
  font-size: 0.92rem;
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-nav a:hover { color: var(--blue); }

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--ink-faint);
  align-items: flex-start;
}

.footer-legal a { color: var(--ink-faint); text-decoration: none; }
.footer-legal a:hover { color: var(--blue); }

@media (max-width: 820px) {
  .footer-inner { flex-direction: column; gap: 32px; }
}

/* --------------------------------------------------------------------------
   Page hero (interior pages)
   -------------------------------------------------------------------------- */

.page-hero { padding: clamp(64px, 9vw, 110px) 0 clamp(48px, 6vw, 72px); }

.page-hero .lead { margin-top: 6px; }

/* --------------------------------------------------------------------------
   Prose (legal pages)
   -------------------------------------------------------------------------- */

.prose { max-width: 720px; }

.prose h2 { font-size: 1.5rem; margin-top: 2em; }

.prose p, .prose li { color: var(--ink-soft); font-size: 0.98rem; }

.prose .updated { font-size: 0.85rem; color: var(--ink-faint); }

/* --------------------------------------------------------------------------
   Calendly / booking
   -------------------------------------------------------------------------- */

.booking-embed {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  min-height: 700px;
  overflow: hidden;
}

.booking-fallback {
  margin-top: 28px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */

.divider-mark {
  display: flex;
  justify-content: center;
  padding: 8px 0;
}

.divider-mark line {
  stroke: var(--sage);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--blue);
  color: var(--bg);
  padding: 12px 20px;
  border-radius: 0 0 var(--radius) 0;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.skip-link:focus-visible {
  left: 0;
  color: var(--bg);
}

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