/* ============================================================
   Velocity Multifamily — clean rebuild
   Breakpoints (cascading, desktop-first):
     base            >= 1200px
     <= 1199px       tablet
     <=  809px       phone
     <=  359px       small phone
   ============================================================ */

/* ---- Fonts (self-hosted Inter, latin subset) ---- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/inter-700.woff2") format("woff2");
}

/* ---- Design tokens ---- */
:root {
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --cream: #fbfff5;          /* subhead text, testimonial card */
  --lime-pale: #f0facc;      /* CTA button background */
  --mint: #acfff0;           /* feature 1 */
  --green-soft: #c9ffce;     /* feature 2 */
  --yellow-pale: #edffb8;    /* feature 3 + headline gradient start */
  --peach: #ffad8a;          /* link hover */
  --olive-deep: #436204;     /* testimonial quote */
  --gray-attr: #666;         /* testimonial attribution */
  --gray-footer: #999;       /* footer text */
  --link-mint: #baeee8;      /* footer email link */
  --btn-text: #3a5700;       /* CTA button label */
  --btn-text-hover: #0a6f64; /* CTA button label on hover (teal) */

  --page-bg: #2e2e2e;
  --overlay: rgba(0, 0, 0, 0.55);

  --feature-shadow: 1px 1px 0 rgb(0, 0, 0), 0 0 16px rgba(0, 0, 0, 0.8);

  --maxw-wide: 1600px;       /* hero + showcase */
  --maxw-narrow: 1200px;     /* testimonial */
}

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

html, body { margin: 0; padding: 0; }

body {
  background: var(--page-bg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a { color: inherit; }

/* ---- Fixed background photo + overlay ---- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
}
.backdrop__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.045);   /* subtle overscan, matches original */
}
.backdrop__overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
}

/* ---- Page column (sits above the backdrop) ---- */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  width: 100%;
  max-width: var(--maxw-wide);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 40px;
  text-align: center;
}

.hero__logo { flex: none; }
.hero__logo img { width: 154px; height: auto; }

.hero__title {
  margin: 0;
  width: 90%;
  font-size: 50px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.2;
  text-wrap: balance;
  color: #d3ffd1; /* fallback if gradient clip unsupported */
}
.hero__title-text,
.ad-loop__title-text {
  background-image: linear-gradient(340deg, var(--yellow-pale) 0%, var(--mint) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  margin: 0;
  width: 90%;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
  color: var(--cream);
}

/* ============================================================
   SHOWCASE (video + feature columns)
   ============================================================ */
.showcase {
  width: 100%;
  max-width: var(--maxw-wide);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 8px 16px 16px;
}

.showcase__video-wrap { width: 80%; }
.showcase__video {
  width: 100%;
  height: auto;
  aspect-ratio: 1600 / 1488;   /* reserve the video's space up front; no reflow on load */
  object-fit: cover;
  border-radius: 8px;
  background-color: rgba(13, 13, 13, 0.7);
}

.features {
  width: 80%;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 40px;
  padding: 48px 0 12px;
}

.feature {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}
.feature__title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  text-wrap: pretty;
  text-shadow: var(--feature-shadow);
}
.feature__body {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  text-wrap: pretty;
  text-shadow: var(--feature-shadow);
}
.feature--mint   .feature__title,
.feature--mint   .feature__body   { color: var(--mint); }
.feature--green  .feature__title,
.feature--green  .feature__body   { color: var(--green-soft); }
.feature--yellow .feature__title,
.feature--yellow .feature__body   { color: var(--yellow-pale); }

.feature__divider {
  align-self: stretch;
  flex: none;
  width: 1px;
  margin: 0;
  border: 0;
  background: rgb(115, 115, 115);
}

/* ============================================================
   AD LOOP  (centered "here's the engine" statement)
   ============================================================ */
.ad-loop {
  width: 100%;
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding: 48px 16px;
  display: flex;
  justify-content: center;
}
.ad-loop__inner {
  max-width: 720px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ad-loop__title {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
  text-wrap: balance;
  color: #d3ffd1; /* fallback if gradient clip unsupported */
}
.ad-loop__body {
  margin: 0;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.4;
  text-wrap: pretty;
  color: var(--cream);
  text-shadow: var(--feature-shadow);
}

/* ============================================================
   TESTIMONIAL
   ============================================================ */
.testimonial {
  width: 100%;
  max-width: var(--maxw-narrow);
  display: flex;
  justify-content: center;
  padding: 36px 16px 56px;
}
.testimonial__card {
  width: 74%;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  background-color: rgba(251, 255, 245, 0.95);
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.1);
}
.testimonial__quote {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.4px;
  line-height: 1.4;
  color: var(--olive-deep);
  text-shadow: 1px 1px 0 #fff;
}
.testimonial__person {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}
.testimonial__avatar {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  object-fit: cover;
}
.testimonial__attribution {
  display: flex;
  flex-direction: column;
}
.testimonial__name,
.testimonial__org {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.2px;
  line-height: 1.4;
  color: var(--gray-attr);
}

/* ============================================================
   CTA
   ============================================================ */
.cta {
  width: 93%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 8px 0;
  text-align: center;
}
.cta__heading {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-wrap: balance;
  text-transform: uppercase;
  color: #ccc;
}
.cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 8px;
  background-color: var(--lime-pale);
  box-shadow: 0 0.482901px 1.25554px -1.875px rgba(0, 0, 0, 0.69),
              0 4px 10.4px -3.75px rgba(0, 0, 0, 0.25);
  font-size: 16px;
  font-weight: 700;
  color: var(--btn-text);
  text-decoration: none;
  text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.75);
  /* Resting state owns the mouse-off transition: slower ease back down. */
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
}
.cta__button:hover {
  /* Hover owns the mouse-on transition: quick, snappy grow. */
  transform: scale(1.05);
  background-color: #fff;
  color: var(--btn-text-hover);
  text-shadow: none;
  transition: transform 0.12s ease-out, background-color 0.12s ease-out, color 0.12s ease-out, text-shadow 0.12s ease-out;
}
.cta__button:active { transform: scale(1.02); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  width: 100%;
  max-width: var(--maxw-wide);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 40px 30px 60px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.site-footer__inner {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.site-footer__copy,
.site-footer__email {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--gray-footer);
}
.site-footer__email a {
  color: var(--link-mint);
  /* Underline always present but transparent so it can fade with the colour. */
  text-decoration: underline;
  text-decoration-color: transparent;
  /* Resting state owns the mouse-off transition: slower ease back. */
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
}
.site-footer__email a:hover {
  color: var(--peach);
  text-decoration-color: var(--peach);
  /* Hover owns the mouse-on transition: quick fade in. */
  transition: color 0.12s ease-out, text-decoration-color 0.12s ease-out;
}

/* ============================================================
   TABLET  <= 1199px
   ============================================================ */
@media (max-width: 1199px) {
  .hero { gap: 16px; padding: 36px; }
  .hero__title { width: 95%; font-size: 35px; }
  .hero__subtitle { width: 95%; font-size: 16px; }

  .showcase { padding: 0 16px; }
  .features { width: 96%; gap: 32px; padding: 24px 8px 8px; }
  .feature__title { font-size: 18px; }
  .feature__body { font-size: 13px; }

  .ad-loop__title { font-size: 22px; }
  .ad-loop__body { font-size: 15px; }

  .testimonial { padding: 32px 16px 56px; }
  .testimonial__card { width: 80%; }

  .cta__heading { font-size: 14px; }
}

/* ============================================================
   PHONE  <= 809px
   ============================================================ */
@media (max-width: 809px) {
  .hero { gap: 24px; padding: 20px 16px 24px; }
  .hero__title { width: 95%; font-size: 23px; }
  .hero__subtitle { width: 100%; font-size: 14px; }

  .showcase { gap: 0; padding: 0 8px; }
  .showcase__video-wrap { width: 100%; }

  .features {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    padding: 24px 16px;
  }
  .feature { text-align: left; }
  .feature__title { font-size: 21px; }
  .feature__body { font-size: 15px; }
  .feature__divider {
    align-self: stretch;
    width: 100%;
    height: 1px;
    opacity: 0.75;
  }

  .ad-loop { padding: 32px 16px; }
  .ad-loop__title { font-size: 20px; }
  .ad-loop__body { font-size: 15px; }

  .testimonial { padding: 0 0 32px; }
  .testimonial__card { width: 100%; border-radius: 0; }

  .cta { gap: 24px; padding: 0; }
  .cta__heading { width: 89%; font-size: 13px; }

  .site-footer { padding: 40px 16px 24px; }
  .site-footer__inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}

/* ============================================================
   SMALL PHONE  <= 359px
   ============================================================ */
@media (max-width: 359px) {
  .hero__title { font-size: 20px; }
  .hero__subtitle { font-size: 12px; }

  .features { padding: 24px 12px; }
  .feature__title { font-size: 18px; }
  .feature__body { font-size: 13px; }

  .ad-loop__title { font-size: 18px; }
  .ad-loop__body { font-size: 14px; }

  .testimonial { flex-direction: column; }

  .cta { width: 100%; }
  .cta__heading { width: 86%; font-size: 12px; }
}
