:root {
  color-scheme: light;
  --emerald: #1f3d35;
  --red: #b5273c;
  --gold: #d9a441;
  --cream: #fbf0e6;
  --linen: #fffaf3;
  --ink: #17221e;
  --muted: #66736e;
  --line: rgba(31, 61, 53, 0.16);
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(31, 61, 53, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(181, 39, 60, 0.12), transparent 24rem),
    linear-gradient(180deg, var(--linen) 0, var(--white) 44rem);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header,
main,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 76px;
  padding: 12px 0;
  background: rgba(255, 250, 243, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.hero-actions,
.footer-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  color: var(--emerald);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--emerald));
}

.site-nav {
  gap: 22px;
  color: var(--emerald);
  font-size: 0.92rem;
  font-weight: 760;
}

.site-nav a,
.footer-links a,
.footer-brand {
  text-decoration: none;
}

.site-nav a:hover,
.footer-links a:hover,
.footer-brand:hover {
  color: var(--red);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 10px;
  font-weight: 850;
  text-decoration: none;
}

.nav-cta {
  padding: 10px 18px;
  color: var(--white);
  background: var(--emerald);
}

.button {
  padding: 13px 22px;
}

.button.primary {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 14px 28px rgba(181, 39, 60, 0.22);
}

.button.secondary {
  color: var(--emerald);
  background: var(--white);
  border: 1px solid var(--line);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(390px, 1fr);
  gap: 54px;
  align-items: center;
  min-height: 690px;
  padding: 76px 0 64px;
}

.hero-copy {
  max-width: 770px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--emerald);
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.75rem, 5.8vw, 5.8rem);
}

h2 {
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.5vw, 3.4rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.hero-text {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.17rem;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-art {
  position: relative;
}

.hero-art::before {
  position: absolute;
  inset: 9% -4% -6% 8%;
  z-index: -1;
  border-radius: 42% 58% 46% 54%;
  background: rgba(181, 39, 60, 0.1);
  content: "";
}

.hero-art img {
  display: block;
  width: 100%;
  min-height: 430px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--cream);
  box-shadow: var(--shadow);
}

.offer-panel,
.proof-section,
.service-area,
.final-cta {
  border: 1px solid var(--line);
  border-radius: 24px;
}

.offer-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.58fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 38px;
  color: var(--white);
  background: var(--emerald);
}

.offer-panel h2,
.offer-panel p {
  color: var(--white);
}

.offer-panel .eyebrow {
  color: #f0bdc6;
}

.section {
  padding: 82px 0;
}

.section-heading {
  max-width: 830px;
  margin-bottom: 32px;
}

.client-grid,
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.client-grid article,
.process-grid article,
.package-card,
.proof-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(31, 61, 53, 0.08);
}

.client-grid article,
.process-grid article {
  min-height: 240px;
  padding: 24px;
}

.client-grid span,
.process-grid span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 12px;
  color: var(--white);
  background: var(--emerald);
  font-weight: 900;
}

.client-grid p,
.process-grid p,
.package-card li,
.proof-section p,
.service-area p,
.final-cta p,
.site-footer p,
.proof-panel span {
  color: var(--muted);
}

.package-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding-right: max(16px, calc((100vw - 1180px) / 2));
  padding-left: max(16px, calc((100vw - 1180px) / 2));
  background: var(--cream);
}

.package-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.78fr);
  gap: 24px;
}

.package-card {
  padding: 30px;
}

.package-card.caution {
  background: #fff7f8;
  border-color: rgba(181, 39, 60, 0.22);
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 26px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 0.1em;
  color: var(--gold);
  content: "+";
  font-weight: 900;
}

.package-card.caution .check-list li::before {
  color: var(--red);
  content: "-";
}

.check-list li + li {
  margin-top: 12px;
}

.proof-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.62fr);
  gap: 30px;
  align-items: start;
  padding: 38px;
  background: #fff;
}

.proof-panel {
  padding: 26px;
  color: var(--white);
  background: var(--emerald);
}

.proof-panel div + div {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.proof-panel strong,
.proof-panel span {
  display: block;
}

.proof-panel span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.76);
}

.service-area {
  display: grid;
  grid-template-columns: minmax(280px, 0.6fr) minmax(0, 1fr);
  gap: 28px;
  margin-top: 12px;
  padding: 38px;
  background: #fffaf3;
}

.final-cta {
  margin: 70px 0 84px;
  padding: 56px 28px;
  text-align: center;
  background:
    radial-gradient(circle at 78% 24%, rgba(181, 39, 60, 0.18), transparent 18rem),
    var(--emerald);
}

.final-cta h2,
.final-cta p {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  color: var(--white);
}

.final-cta .eyebrow {
  color: #f0bdc6;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0 46px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--emerald);
  font-size: 1.18rem;
  font-weight: 900;
}

.site-footer p {
  max-width: 560px;
  margin-bottom: 0;
}

.footer-links {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  color: var(--emerald);
  font-weight: 760;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .offer-panel,
  .package-layout,
  .proof-section,
  .service-area {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
  }

  .client-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  .nav-cta,
  .hero-actions .button {
    width: 100%;
  }

  .hero {
    gap: 34px;
    padding-bottom: 42px;
  }

  .hero-art img {
    min-height: 300px;
    border-radius: 20px;
  }

  .client-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 60px 0;
  }

  .offer-panel,
  .proof-section,
  .service-area,
  .final-cta,
  .package-card {
    padding: 24px;
  }

  .client-grid article,
  .process-grid article {
    min-height: auto;
  }

  .site-footer {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

.skip-link {
  position: fixed;
  left: 18px;
  top: 14px;
  z-index: 1000;
  transform: translateY(-140%);
  padding: 10px 14px;
  color: #ffffff;
  background: #111827;
  border-radius: 10px;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
.page-hero { max-width: 940px; padding: 88px 0 52px; }
.page-hero > p:not(.eyebrow) { max-width: 760px; color: var(--muted, #667085); font-size: 1.14rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.resource-section { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 28px 0 78px; }
.resource-card { padding: 30px; background: var(--panel, #ffffff); border: 1px solid var(--line, rgba(17, 24, 39, 0.14)); border-radius: 20px; box-shadow: 0 18px 44px rgba(17, 24, 39, 0.08); }
.resource-card p { color: var(--muted, #667085); }
.resource-band { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; margin: 0 0 84px; padding: 34px; background: var(--paper, #f6f1e9); border: 1px solid var(--line, rgba(17, 24, 39, 0.14)); border-radius: 22px; }
.resource-band p { color: var(--muted, #667085); }
@media (max-width: 900px) { .resource-section, .resource-band { grid-template-columns: 1fr; } .resource-card, .resource-band { padding: 24px; } }

.resource-section-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.resource-card ul { display: grid; gap: 10px; margin: 16px 0 0; padding-left: 20px; color: var(--muted, #667085); }
.resource-card li { line-height: 1.55; }
.resource-card h2 { margin-bottom: 8px; }
@media (max-width: 900px) { .resource-section-wide { grid-template-columns: 1fr; } }

/* Header/footer resilience pass: keeps navigation readable across generated resource pages. */
.site-header {
  isolation: isolate;
}

.brand {
  flex: 0 0 auto;
  min-width: 0;
}

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: wrap;
  row-gap: 8px;
}

.site-nav a {
  white-space: nowrap;
}

.nav-cta {
  flex: 0 0 auto;
  max-width: 100%;
  white-space: nowrap;
}

.site-footer {
  align-items: flex-start;
  gap: 24px;
}

.site-footer > div:first-child {
  min-width: 0;
  max-width: 620px;
}

.footer-links {
  row-gap: 10px;
  text-align: right;
}

.footer-brand {
  display: inline-flex;
  margin-bottom: 6px;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px 18px;
    padding-bottom: 14px;
  }

  .brand {
    order: 1;
  }

  .nav-cta {
    order: 2;
    margin-left: auto;
  }

  .site-nav {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 2px 0 6px;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: 12px;
  }

  .brand,
  .nav-cta {
    width: 100%;
  }

  .nav-cta {
    margin-left: 0;
  }

  .site-nav {
    gap: 10px 14px;
  }

  .site-footer {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
    text-align: left;
    width: 100%;
  }
}

/* Desktop header and hero correction pass. */
.site-header {
  isolation: isolate;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  background: inherit;
  border-bottom: 1px solid var(--line, rgba(17, 24, 39, 0.12));
  pointer-events: none;
}

@media (min-width: 981px) {
  .site-header {
    min-height: 72px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .hero {
    grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.84fr) !important;
    gap: clamp(34px, 4vw, 58px) !important;
    align-items: center !important;
    min-height: clamp(540px, calc(100vh - 92px), 660px) !important;
    padding-top: clamp(42px, 5vw, 68px) !important;
    padding-bottom: clamp(44px, 5vw, 72px) !important;
    overflow: visible !important;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero h1 {
    max-width: 760px;
    font-size: clamp(3rem, 4.45vw, 5.25rem) !important;
    line-height: 0.98;
  }

  .hero-text {
    max-width: 620px;
  }

  .hero-art,
  .hero-visual {
    align-self: center;
    max-height: min(58vh, 520px);
  }

  .hero-art img,
  .hero-visual img {
    width: 100%;
    height: auto;
    min-height: 0 !important;
    max-height: min(58vh, 520px) !important;
    object-fit: contain;
  }
}

@media (min-width: 981px) and (max-height: 780px) {
  .hero {
    min-height: auto !important;
    padding-top: 38px !important;
    padding-bottom: 46px !important;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 4vw, 4.75rem) !important;
  }

  .hero-art,
  .hero-visual,
  .hero-art img,
  .hero-visual img {
    max-height: 440px !important;
  }
}

@media (max-width: 980px) {
  .site-header::before {
    inset: 0 calc(50% - 50vw);
  }
}
