@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@600;700;800&display=swap");

:root {
  --cobalt: #0047ab;
  --cobalt-900: #07327a;
  --rose: #b76e79;
  --ink: #1c1c1e;
  --muted: #475569;
  --glass: rgba(255, 255, 255, 0.6);
  --line: rgba(200, 200, 200, 0.7);
  --page: #f5f5f7;
  --radius: 14px;
  --home-card-max: 960px;
  --shadow-light: 0 2px 6px rgba(0, 0, 0, 0.08);
  --shadow-deep: 0 8px 20px rgba(0, 0, 0, 0.1);
  --shadow-sm: 0 6px 14px rgba(7, 50, 122, 0.1), 0 2px 6px rgba(7, 50, 122, 0.06);
}

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

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h2 {
  margin: 0 0 8px;
}

p,
label,
button {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
}

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

/* Public header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #fff;
  background: linear-gradient(180deg, var(--cobalt) 0%, var(--cobalt-900) 100%);
  box-shadow: var(--shadow-sm);
}

.site-header .nav-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1180px;
  min-height: 54px;
  padding: 9px 18%;
  margin: 0 auto;
}

.site-header .nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
}

.site-header .nav a {
  color: #fff;
  font-family: Poppins, sans-serif;
  font-weight: 700;
  text-decoration: none;
}

.site-header .nav a:hover,
.site-header .nav a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.logo-overhang {
  position: absolute;
  bottom: -172px;
  left: 50%;
  z-index: 99;
  transform: translateX(-50%);
}

.logo-overhang img {
  display: block;
  width: auto;
  max-width: none;
  height: 257px;
  filter: drop-shadow(0 24px 36px rgba(0, 0, 0, 0.25));
}

@media (min-width: 1024px) {
  .site-header .nav-wrap {
    padding-right: 230px;
    padding-left: 230px;
  }
}

@media (max-width: 900px) {
  .site-header .nav-wrap {
    min-height: auto;
    padding: 16px 24px;
  }

  .logo-overhang {
    bottom: -160px;
  }

  .logo-overhang img {
    height: 320px;
  }
}

@media (max-width: 640px) {
  .logo-overhang img {
    height: 240px;
  }
}

/* Shared cards and buttons */
.card {
  width: 100%;
  max-width: var(--home-card-max);
  padding: 28px;
  margin: 30px auto;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-deep);
  transform: translateY(-2px);
}

.btn {
  display: inline-block;
  padding: 12px 18px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.2px;
  text-align: center;
  background: linear-gradient(180deg, #fafafa 0%, #e6e6e8 100%);
  border: 1px solid #d1d1d6;
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 2px 5px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  background: linear-gradient(180deg, #fff 0%, #e9e9eb 100%);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.btn:active {
  background: #d9d9db;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
  transform: translateY(0);
}

/* Hero */
.hero {
  width: 100%;
  max-width: var(--home-card-max);
  padding: 110px 24px 50px;
  margin: 30px auto;
  overflow: visible;
  color: var(--ink);
  text-align: center;
  background:
    radial-gradient(700px 280px at 50% 0%, rgba(0, 71, 171, 0.1), transparent 70%),
    linear-gradient(180deg, #f6f9ff 0%, #fff 70%);
  border: 1px solid var(--line);
  border-bottom-color: #eef2ff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-headline-graphic {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto 26px;
}

.hero-headline-graphic picture,
.hero-headline-graphic img {
  display: block;
  width: 100%;
  height: auto;
}

.hero > p {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.hero-image-marquee {
  position: relative;
  display: block;
  width: 100%;
  min-height: 180px;
  margin: 0.75rem auto 0.5rem;
  overflow: hidden;
  visibility: visible;
  opacity: 1;
}

.hero-image-marquee::before,
.hero-image-marquee::after {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 72px;
  pointer-events: none;
  content: "";
}

.hero-image-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--page) 0%, rgba(245, 245, 247, 0) 100%);
}

.hero-image-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--page) 0%, rgba(245, 245, 247, 0) 100%);
}

.hero-image-track {
  display: flex;
  align-items: center;
  width: max-content;
  min-height: 180px;
  gap: 16px;
  visibility: visible;
  opacity: 1;
  isolation: isolate;
  animation: hero-marquee 70s linear infinite;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.hero-scroll-img {
  display: block;
  flex: 0 0 auto;
  width: auto;
  min-width: 120px;
  height: 180px;
  object-fit: cover;
  overflow: clip;
  visibility: visible;
  opacity: 1;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

@keyframes hero-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 900px) {
  .hero-headline-graphic {
    max-width: 100%;
    padding: 0 6px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 110px 18px 56px;
  }

  .hero-image-marquee {
    min-height: 150px;
    margin: 0.65rem auto 0.45rem;
  }

  .hero-image-track {
    min-height: 150px;
    animation-duration: 55s;
  }

  .hero-scroll-img {
    height: 150px;
    border-radius: 10px;
  }
}

@media (max-width: 600px) {
  .hero-headline-graphic {
    padding: 0 10px;
    margin-bottom: 22px;
  }
}

/* How it works */
.how-it-works {
  width: 100%;
  max-width: 1180px;
  padding: 0 24px;
  margin: 26px auto 0;
}

.how-card,
.trust-card,
.proof-card {
  width: 100%;
  max-width: var(--home-card-max);
  margin-right: auto;
  margin-left: auto;
}

.how-card {
  padding: 22px;
  background: linear-gradient(180deg, #fff 0%, #f7faff 100%);
  border: 1px solid #eaf0ff;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.how-card h2,
.how-sub {
  text-align: center;
}

.how-sub {
  margin: 0 0 18px;
  color: var(--muted);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.how-step {
  padding: 16px;
  background: rgba(238, 243, 255, 0.4);
  border: 1px solid rgba(0, 71, 171, 0.12);
  border-radius: 18px;
}

.how-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(180deg, var(--cobalt) 0%, #0a4fc7 100%);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.how-title {
  margin: 0 0 6px;
  color: #0f172a;
  font-weight: 900;
}

.how-body {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

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

/* Standard office checklist */
.standard-office-card {
  color: #036;
  font-family: Poppins, sans-serif;
  font-weight: 700;
  letter-spacing: 0.6px;
}

.standard-office-title {
  margin: 0 0 8px;
  color: #0056b3;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.standard-office-intro {
  max-width: 820px;
  margin: 10px auto 0;
  color: #333;
}

.scrolling-list-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 900px;
  height: 360px;
  margin: 0 auto;
  overflow: hidden;
}

.scrolling-list {
  display: flex;
  flex-direction: column;
  text-align: center;
  animation: checklist-scroll 12s linear infinite;
}

.scrolling-list ul {
  padding: 0;
  margin: 0 auto;
  list-style: none;
}

.scrolling-list li {
  padding: 8px 0;
  color: #333;
  font-size: 18px;
  line-height: 1.5;
  text-align: center;
}

@keyframes checklist-scroll {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

/* Builder services */
.builder-teaser-section {
  width: 100%;
  max-width: 1180px;
  padding: 0 16px 8px;
  margin: 14px auto 0;
}

.builder-teaser {
  width: 100%;
}

.builder-services-card {
  overflow: hidden;
}

.builder-services-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.builder-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #007aff;
  background: linear-gradient(180deg, rgba(0, 122, 255, 0.12), rgba(0, 122, 255, 0.03));
  border-radius: 18px;
}

.builder-icon svg {
  width: 26px;
  height: 26px;
}

.builder-services-title {
  margin: 0 0 8px;
}

.builder-services-copy {
  max-width: 820px;
  margin: 0;
}

.builder-services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.builder-pill {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
}

.builder-pill strong,
.builder-pill span {
  display: block;
  font-size: 14.5px;
}

.builder-pill strong {
  margin-bottom: 4px;
}

.builder-pill span {
  color: #6e6e73;
}

.builder-services-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

/* Trust highlights */
.trust-strip {
  position: relative;
  width: 100%;
  max-width: 1180px;
  padding: 0 16px 24px;
  margin: 22px auto 0;
}

.trust-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
  border: 1px solid #eaf0ff;
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.trust-item {
  position: relative;
  min-height: 88px;
  padding: 14px;
  overflow: hidden;
  text-align: left;
  background: linear-gradient(180deg, rgba(238, 243, 255, 0.62), rgba(255, 255, 255, 0.7));
  border: 1px solid rgba(0, 71, 171, 0.12);
  border-radius: 14px;
  box-shadow: 0 8px 14px rgba(7, 50, 122, 0.06);
}

.trust-item::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--rose), var(--cobalt));
  content: "";
}

.trust-kicker {
  margin-bottom: 2px;
  color: var(--cobalt);
  font-size: 0.92rem;
  font-weight: 900;
}

.trust-sub {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .trust-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

/* Client proof */
.proof-section {
  width: 100%;
  max-width: 1180px;
  padding: 0 24px 20px;
  margin: 28px auto 0;
}

.proof-card {
  padding: 22px;
  background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
  border: 1px solid #eaf0ff;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.proof-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.proof-head h2 {
  width: 100%;
  margin: 0;
  text-align: center;
}

.trustedby-testimonial {
  max-width: 760px;
  margin: 18px auto 28px;
  text-align: center;
}

.trustedby-quote {
  margin: 1em 0;
  color: #1f2937;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.55;
}

.trustedby-author {
  margin: 8px 0 1em;
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 700;
}

.proof-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  gap: 22px;
  visibility: visible;
  opacity: 1;
}

.proof-logo {
  display: block;
  flex: 0 1 auto;
  width: auto;
  height: auto;
  max-width: min(220px, 42vw);
  max-height: 72px;
  object-fit: contain;
  visibility: visible;
  opacity: 1;
}

.proof-logo--jm-martin {
  max-width: min(260px, 48vw);
  max-height: 80px;
}

.proof-logo--wise-cardinal {
  max-width: min(250px, 46vw);
  max-height: 78px;
}

@media (min-width: 981px) {
  .proof-grid {
    gap: 26px;
  }

  .proof-logo {
    max-width: 240px;
    max-height: 84px;
  }

  .proof-logo--jm-martin {
    max-width: 280px;
    max-height: 92px;
  }

  .proof-logo--wise-cardinal {
    max-width: 270px;
    max-height: 88px;
  }
}

@media (max-width: 620px) {
  .proof-grid {
    gap: 18px;
  }

  .proof-logo {
    max-width: 78vw;
    max-height: 76px;
  }

  .proof-logo--jm-martin,
  .proof-logo--wise-cardinal {
    max-width: 84vw;
  }
}

/* Footer */
.footer {
  min-height: 245px;
  padding: 34px 24px;
  color: var(--muted);
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, #f9fbff 100%);
  border-top: 1px solid #eef2ff;
}

.footer-phone,
.footer-internal-link {
  display: block;
  color: #004aad;
  font-family: Poppins, sans-serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.8px;
  text-align: center;
  text-decoration: none;
}

.footer-fb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.footer-facebook {
  display: inline-flex;
  align-items: center;
}

.fb-badge {
  display: block;
  width: 36px;
  height: 36px;
}

.footer-copy {
  margin-top: 4px;
  font-size: 0.85rem;
}

@media (min-width: 1024px) {
  .fb-badge {
    width: 40px;
    height: 40px;
  }
}

/* Thank-you page */
.thank-you-main {
  width: calc(100% - 32px);
  max-width: var(--home-card-max);
  min-height: 50vh;
  padding: 60px 20px;
  margin: 30px auto;
  text-align: center;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.thank-you-logo {
  width: 160px;
  height: auto;
  margin-bottom: 20px;
}

.thank-you-main p {
  font-size: 1rem;
}

.thank-you-main .btn {
  margin-top: 16px;
}

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

  .hero-image-track,
  .scrolling-list {
    animation: none !important;
    transform: none !important;
  }

  .hero-image-marquee {
    overflow-x: auto;
  }

  .scrolling-list ul[aria-hidden="true"] {
    display: none;
  }
}
