/* ===== GEVITY — Design System v3 — Light Theme ===== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@200;300;400;500;600&family=Inter:wght@300;400;500;600&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&display=swap');

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

:root {
  --black: #111111;
  --dark: #222222;
  --gold: #b89a3e;
  --gold-light: #c9ab50;
  --gold-dim: rgba(184, 154, 62, 0.12);
  --cream: #faf8f4;
  --cream-dark: #f0ebe2;
  --white: #ffffff;
  --bg: #f7f5f0;
  --bg-alt: #edeae3;
  --text-dark: #1a1a1a;
  --text-body: #444444;
  --text-muted: #888888;

  --heading: 'Helvetica Now Display', 'HelveticaNowDisplay', 'Outfit', 'Helvetica Neue', Helvetica, sans-serif;
  --sans: 'Inter', -apple-system, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(0, 0, 0, 0.15) 0%,
      rgba(0, 0, 0, 0.05) 50%,
      rgba(0, 0, 0, 0.45) 100%);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(calc(-50% + 50px), calc(-50% - 100px));
  z-index: 2;
  text-align: left;
}

.hero-logo-img {
  height: 110px;
  width: auto;
  margin: 0;
  opacity: 0;
  transform: translateY(25px);
  animation: fadeUp 1.2s var(--ease) 0.3s forwards;
  filter: brightness(1.15);
}

.hero-sub {
  font-family: var(--heading);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 300;
  color: var(--black);
  letter-spacing: 0.05em;
  margin-top: -5px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 1.2s var(--ease) 0.7s forwards;
}

.scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 1.5s forwards;
}

.scroll-cue .line {
  width: 1px;
  height: 48px;
  margin: 0 auto;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.5);
  }

  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* ---------- STATEMENT ---------- */
.statement {
  padding: clamp(6rem, 14vw, 11rem) 0;
  text-align: center;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.statement::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--gold-dim) 0%, transparent 70%);
  pointer-events: none;
}

.wrap {
  width: min(88%, 780px);
  margin: 0 auto;
}

.statement .kicker {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
}

.statement h2 {
  font-family: var(--heading);
  font-size: clamp(1.3rem, 3vw, 2rem);
  /* Smaller size for the rest of the text */
  font-weight: 300;
  line-height: 1.35;
  color: var(--text-dark);
  margin-bottom: 2rem;
}

/* Removed generic .title-original class as we apply specific styles to spans and ems */

.statement h2 em {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  /* Larger size for Longevity */
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
  display: block;
  margin-bottom: 0.5rem;
}

.statement .body-text {
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--text-body);
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- SPLIT (MOSAIC) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 45vh;
  max-height: 550px;
}

.split-img {
  position: relative;
  overflow: hidden;
}

.split-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s var(--ease);
}

.split-img:hover img {
  transform: scale(1.03);
}

.split-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 7vw, 6rem);
  background: var(--cream);
}

.split-text h2 {
  font-family: var(--heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  line-height: 1.4;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.split-text p {
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-body);
}

/* ---------- LEGACY ---------- */
.legacy {
  padding: clamp(7rem, 14vw, 12rem) 0;
  text-align: center;
  background: #39433d;
  position: relative;
  overflow: hidden;
}

.legacy::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(184, 154, 62, 0.08) 0%, transparent 65%);
  pointer-events: none;
}

.legacy-content {
  width: min(88%, 720px);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.legacy h2 {
  font-family: var(--heading);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.25;
  color: var(--white);
}

.legacy h2 em {
  font-style: italic;
  color: var(--gold-light);
}

.gold-line {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 2rem auto;
  transition: width 1.2s var(--ease);
}

.gold-line.visible {
  width: 80px;
}

.legacy p {
  font-size: clamp(0.92rem, 1.3vw, 1.05rem);
  font-weight: 300;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.5);
  max-width: 540px;
  margin: 0 auto;
}

/* ---------- FORM ---------- */
.form-section {
  padding: clamp(6rem, 14vw, 10rem) 0;
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}

.form-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

.form-wrap {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  padding: 0 1.5rem;
}

.form-wrap .kicker {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.form-wrap h2 {
  font-family: var(--heading);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 300;
  color: var(--text-dark);
  margin-bottom: 0.8rem;
}

.form-wrap h2 em {
  font-style: italic;
  color: var(--gold);
}

.form-wrap .sub {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hs-container {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 2.5rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.hs-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, var(--gold-dim) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.hs-container:hover::before {
  opacity: 1;
}

/* HubSpot overrides */
.hs-container .hs-form-field {
  margin-bottom: 1.3rem;
}

.hs-container label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
  text-align: left;
}

.hs-container input[type="text"],
.hs-container input[type="email"],
.hs-container input[type="tel"],
.hs-container input[type="number"],
.hs-container textarea,
.hs-container select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--text-dark);
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
}

.hs-container input:focus,
.hs-container textarea:focus,
.hs-container select:focus {
  border-color: var(--gold);
  background: var(--white);
}

.hs-container input::placeholder,
.hs-container textarea::placeholder {
  color: var(--text-muted);
}

.hs-container input[type="submit"],
.hs-container .hs-button {
  width: 100%;
  padding: 0.95rem;
  margin-top: 0.5rem;
  background: var(--gold);
  border: none;
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.hs-container input[type="submit"]:hover,
.hs-container .hs-button:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  padding: 3rem 0;
  text-align: center;
  background: var(--bg);
}

.footer p {
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.footer p+p {
  margin-top: 0.4rem;
}

.footer .logo {
  margin-bottom: 1rem;
  display: inline-flex;
  justify-content: center;
}

.footer .logo-img,
.logo-img {
  height: 22px;
  width: auto;
  display: block;
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-35px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(35px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .hero-content {
    transform: translate(calc(-50% + 15px), -50%);
  }

  .hero-logo-img {
    height: 65px;
  }

  .hero-sub {
    font-size: 1.1rem;
    margin-top: -3px;
  }

  .split {
    grid-template-columns: 1fr;
    max-height: none;
  }

  .split-img {
    min-height: 50vh;
  }

  .hs-container {
    padding: 1.5rem;
  }
}