/* Lupei Senior Source — static rebuild of the Framer site.
   Breakpoints match the original: desktop >= 1200, tablet 810–1199, phone < 810. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Joan";
  src: url("/assets/fonts/joan-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --green-900: rgb(5, 16, 14);
  --green-800: rgb(10, 33, 29);
  --green-700: rgb(23, 57, 52);
  --green-600: rgb(29, 73, 66);
  --green-200: rgb(135, 171, 166);
  --ink: rgb(23, 23, 23);
  --ink-soft: rgb(66, 66, 66);
  --sans: "Inter", "Inter Placeholder", sans-serif;
  --serif: "Joan", "Joan Placeholder", serif;
  --ease: cubic-bezier(0.44, 0, 0.56, 1);
}

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

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

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, p, ul { margin: 0; padding: 0; }
/* Framer renders text with preserved spaces; keep that so line breaks match. */
h1, h2, h3, p, .feature span { white-space: pre-wrap; overflow-wrap: break-word; }
ul { list-style: none; }
img { display: block; }
a { color: inherit; text-decoration: none; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Type ---------- */
.h1 { font-size: 36px; line-height: 42px; font-weight: 700; color: var(--ink); }
.h3 { font-size: 20px; line-height: 26px; font-weight: 500; color: var(--ink); width: 100%; }
.body { font-size: 16px; line-height: 24px; font-weight: 400; color: var(--ink-soft); }
.lead { font-size: 18px; line-height: 24px; font-weight: 400; color: var(--ink-soft); }
.eyebrow { font-size: 20px; line-height: 26px; font-weight: 500; color: rgba(255, 255, 255, 0.7); }
.eyebrow-dark { font-size: 20px; line-height: 26px; font-weight: 600; color: var(--ink-soft); }
.display { font-family: var(--serif); font-size: 46px; line-height: 42px; font-weight: 400; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 24px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary {
  background: var(--green-700);
  color: #fff;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0), 0 1px 2px 0 rgba(0, 0, 0, 0);
}
.btn-primary:hover {
  background: var(--green-800);
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.12), 0 1px 2px 0 rgba(0, 0, 0, 0.08);
}
.btn-secondary { color: var(--green-900); }
.btn-secondary::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgba(22, 56, 51, 0.16);
  pointer-events: none;
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 10;
  background: #fff;
  animation: fade-in 0.3s var(--ease) both;
}
.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  pointer-events: none;
}
.header-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.logo {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.2;
  color: var(--green-900);
  white-space: nowrap;
  padding-top: 0;
}
.nav { display: flex; align-items: center; gap: 16px; flex: 1 0 0; }
.nav-link {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: rgba(17, 17, 17, 0.6);
  transition: color 0.2s ease;
}
.nav-link:hover { color: #000; }
.menu-toggle {
  display: none;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  color: #000;
  cursor: pointer;
}
.menu-toggle svg { display: block; }
.menu-toggle .icon-close { display: none; }
.mobile-menu { display: none; }

/* ---------- Hero ---------- */
.hero { background: #fff; overflow: hidden; animation: fade-in 0.6s var(--ease) both; }
.hero-container {
  display: flex;
  align-items: stretch;
  gap: 10px;
  max-width: 1200px;
  height: 708px;
  margin: 0 auto;
  padding-left: 64px;
}
.hero-lockup {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 32px;
  flex: 1 0 0;
  min-width: 0;
  padding: 64px 0;
}
.hero-header { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.hero-copy { width: 392px; max-width: 100%; }
.button-group { display: flex; gap: 8px; }
.features { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.feature {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
  color: var(--ink);
}
.check { flex: none; width: 24px; height: 24px; }
.hero-image { flex: none; width: 630px; background: rgb(20, 22, 30); overflow: hidden; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* ---------- Services ---------- */
.services {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 84px 64px;
  background: rgba(29, 73, 66, 0.05);
  overflow: hidden;
}
.services-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  width: 100%;
  max-width: 1200px;
}
.section-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 50%;
  text-align: center;
}
.service-list { display: flex; flex-direction: column; gap: 40px; width: 100%; }
.service-row { display: flex; align-items: flex-start; gap: 40px; width: 100%; }
.service-row.is-row-2 { gap: 41px; }
.service { display: flex; align-items: flex-start; gap: 16px; flex: 1 0 0; min-width: 0; }
.service-icon { flex: none; width: 48px; height: 48px; }
.service-icon.is-wide { width: 49px; }
.service-content { display: flex; flex-direction: column; gap: 8px; flex: 1 0 0; min-width: 0; }

/* ---------- About ---------- */
.about { background: var(--green-800); overflow: hidden; }
.about-container {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  max-width: 1200px;
  height: 640px;
  margin: 0 auto;
  padding-left: 64px;
}
.about-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  flex: 1 0 0;
  min-width: 0;
  height: 100%;
  overflow: hidden;
}
.about-heading { display: flex; flex-direction: column; gap: 8px; }
.about-copy { color: rgba(255, 255, 255, 0.7); }
.about-media { position: relative; flex: 1 0 0; min-width: 0; height: 100%; }
.about-photo { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.toast {
  position: absolute;
  left: 49%;
  bottom: 30px;
  width: 404px;
  height: 56px;
  transform: translateX(-50%);
  border-radius: 24px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.12), 0 2px 2px 0 rgba(0, 0, 0, 0.08), 0 0 8px 0 rgba(0, 0, 0, 0.04);
}
.toast-pill {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  border-radius: 24px;
  overflow: hidden;
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}
.toast-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.toast-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-family: var(--serif);
  color: #fff;
  white-space: nowrap;
}
.toast-name { font-size: 20px; line-height: 24px; }
.toast-role { font-size: 18px; line-height: 24px; opacity: 0.5; }

/* ---------- Contact ---------- */
.contact { background: rgb(244, 244, 245); overflow: hidden; }
.contact-image { height: 640px; }
.contact-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.contact-container { display: flex; flex-direction: column; align-items: center; padding: 84px 48px; }
.contact-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 604px;
  max-width: 100%;
}
.contact-header { display: flex; flex-direction: column; gap: 16px; width: 100%; text-align: center; }
.contact-features { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; flex: none; width: 370px; }
.contact-features .feature, .contact-features .feature span { white-space: nowrap; }
.contact-icon { position: relative; flex: none; width: 24px; height: 24px; }
.contact-icon svg { position: absolute; display: block; }
.ci-phone { left: 2px; top: 2px; width: 18px; height: 17px; }
.ci-envelope { left: 2px; top: 4px; width: 17px; height: 13px; }
.ci-flap { left: 2px; top: 4px; width: 17px; height: 8px; }
.contact-actions { display: flex; }

/* ---------- Footer ---------- */
.site-footer { height: 148px; padding: 64px; background: var(--green-900); overflow: hidden; }
.footer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-divider { display: none; }
.footer-left { display: flex; align-items: center; gap: 24px; flex: none; height: 17px; }
.footer-logo {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.2;
  color: rgb(230, 239, 238);
  white-space: nowrap;
}
.footer-link, .footer-copy { font-size: 14px; line-height: 17px; white-space: nowrap; }
.footer-link { color: var(--green-200); transition: color 0.2s ease; }
.footer-link:hover { color: #fff; }
.footer-copy { flex: none; color: rgba(229, 229, 229, 0.4); }

@keyframes fade-in { from { opacity: 0.001; } to { opacity: 1; } }

/* Scroll-in effects (enabled by script.js adding .js to <html>) */
.js .reveal { opacity: 0; transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); will-change: transform; }
.js .reveal-left { transform: translateX(-150px); }
.js .reveal-right { transform: translateX(150px); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .site-header, .hero { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============ Tablet: 810–1199 ============ */
@media (min-width: 810px) and (max-width: 1199.98px) {
  .h1 { font-size: 32px; }
  .h3 { font-size: 18px; }
  .display { font-size: 44px; }

  .header-bar { max-width: none; }

  .hero-container { max-width: none; height: auto; gap: 24px; }
  .hero-lockup { flex: none; width: 50%; gap: 24px; }
  .hero-copy { width: 100%; }
  .features { width: 100%; }
  .feature { width: 100%; }
  .hero-image { flex: 1 0 0; width: auto; position: relative; }
  .hero-image img { position: absolute; inset: 0; }

  .section-header { width: 50%; }
  .service-list { width: 80%; }
  .service-row { flex-direction: column; }
  .service { flex: none; width: 100%; }

  .about-container { max-width: none; }
  .about-text { padding: 16px 0; }

  .toast-pill {
    inset: auto;
    left: 50%;
    bottom: 0;
    width: 283px;
    height: 80px;
    transform: translateX(-50%);
    border-radius: 150px;
  }
  .toast-bg { border-radius: 150px; }
  .toast-content { flex-direction: column; justify-content: center; }
  .toast-name { font-size: 23px; }
  .toast-role { font-size: 14px; }

  .site-footer { height: auto; min-height: 148px; }
  .footer-nav { max-width: none; flex-wrap: wrap; gap: 16px 24px; }
}

/* ============ Phone: < 810 ============ */
@media (max-width: 809.98px) {
  .h1 { font-size: 28px; line-height: 38px; }
  .eyebrow, .eyebrow-dark { font-size: 16px; }
  .display { font-size: 40px; line-height: 38px; }

  /* Header becomes a fixed bar with a dropdown menu */
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    overflow: hidden;
    transition: height 0.3s var(--ease);
  }
  .site-header.is-open { height: 300px; }
  .header-bar {
    justify-content: space-between;
    max-width: none;
    padding: 4px 16px 4px 24px;
    transition: padding 0.3s var(--ease);
  }
  .site-header.is-open .header-bar { padding: 24px 24px 4px; }
  .nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .site-header.is-open .icon-menu { display: none; }
  .site-header.is-open .icon-close { display: block; }
  .mobile-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    height: 240px;
    padding: 24px;
    background: #fff;
    visibility: hidden;
  }
  .site-header.is-open .mobile-menu { visibility: visible; }
  .mobile-menu .nav-link { font-size: 18px; line-height: 20px; }
  .mobile-menu .btn { width: 100%; height: 60px; flex: none; }

  .hero-container { flex-direction: column; gap: 0; max-width: none; height: auto; padding-left: 0; }
  .hero-image { order: -1; width: 100%; height: 320px; }
  .hero-lockup { flex: none; width: 100%; padding: 32px 24px 48px; }
  .hero-copy { width: 100%; }
  .button-group { flex-direction: column; width: 100%; }
  .button-group .btn { width: 100%; height: 60px; }
  .features, .feature { width: 100%; }
  .feature span { min-width: 0; }
  /* Matches the original: only the last (longest) label wraps on phones. */
  .hero .feature:not(:last-child) span { white-space: nowrap; }

  .services { padding: 84px 24px; }
  .section-header { width: 100%; }
  .service-row { flex-direction: column; }
  .service { flex: none; flex-direction: column; width: 100%; }
  .service-content { flex: none; width: 100%; }

  .about { padding: 64px 24px; }
  .about-container { flex-direction: column; max-width: none; height: auto; padding-left: 0; }
  .about-text { flex: none; width: 100%; height: auto; }
  .about-media { flex: none; width: 100%; height: 640px; }

  .toast-pill {
    inset: auto;
    left: 50%;
    bottom: 0;
    width: 283px;
    height: 80px;
    transform: translateX(-50%);
    border-radius: 150px;
  }
  .toast-bg { border-radius: 150px; }
  .toast-content { flex-direction: column; justify-content: center; }
  .toast-name { font-size: 24px; }
  .toast-role { font-size: 14px; }

  .contact-container { padding: 84px 24px; }
  .contact-content { width: 100%; }
  .contact-features .feature { width: auto; }
  .contact-actions, .contact-actions .btn { width: 100%; }
  .contact-actions .btn { height: 60px; }

  .site-footer { height: auto; }
  .footer-nav { flex-direction: column; gap: 24px; max-width: none; }
  .footer-divider { display: block; width: 50px; height: 1px; background: var(--green-800); }
  .footer-left { flex-direction: column; height: auto; }
}
