/* ========================================
   SOLVEO — Landing Page
   ======================================== */

/* --- RESET & BASE --- */

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

:root {
  --teal: #4DBAA7;
  --teal-dark: #3a9e8e;
  --teal-light: #E8F5F1;
  --amber: #FFC977;
  --black: #1A1A1A;
  --gray-dark: #4a4a4a;
  --gray-mid: #9B9B9B;
  --gray-light: #e8e8e8;
  --warm-bg: #FAFAF8;
  --white: #FFFFFF;

  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'DM Serif Display', Georgia, serif;

  --max-width: 860px;
  --section-spacing: 120px;
  --side-padding: 24px;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--warm-bg);
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

em {
  font-style: italic;
}


/* --- ANIMATIONS --- */

[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* --- NAV --- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 var(--side-padding);
  transition: background 0.3s, box-shadow 0.3s;
}

.nav.is-scrolled {
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--gray-light);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  transition: height 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav.is-scrolled .nav-inner {
  height: 56px;
}

.nav-logo-img {
  height: 64px;
  width: auto;
  border-radius: 8px;
  transition: height 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-radius 0.3s;
}

.nav.is-scrolled .nav-logo-img {
  height: 42px;
  border-radius: 5px;
}

.nav-cta {
  font-size: 0.833rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--black);
  transition: color 0.3s;
}

.nav-cta:hover {
  color: var(--teal-dark);
}

.nav.is-scrolled .nav-cta {
  color: var(--teal-dark);
}

.nav.is-scrolled .nav-cta:hover {
  color: var(--black);
}


/* --- HERO --- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(250, 250, 248, 0) 0%,
    rgba(250, 250, 248, 0) 20%,
    rgba(250, 250, 248, 0.3) 35%,
    rgba(250, 250, 248, 0.6) 48%,
    rgba(250, 250, 248, 0.85) 58%,
    rgba(250, 250, 248, 0.95) 68%,
    rgba(250, 250, 248, 1) 78%,
    rgba(250, 250, 248, 1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  width: 100%;
  padding: 0 var(--side-padding);
  padding-bottom: 80px;
  text-align: left;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--black);
  margin-bottom: 24px;
}

.hero-headline-em {
  color: var(--teal-dark);
}

.hero-sub {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--gray-dark);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-cta {
  font-size: 1rem;
  font-weight: 500;
  color: var(--teal-dark);
  border-bottom: 1.5px solid var(--teal);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}

.hero-cta:hover {
  color: var(--black);
  border-color: var(--black);
}


/* --- DIVIDER --- */

.divider {
  text-align: center;
  padding: 60px var(--side-padding);
  font-size: 1rem;
  color: var(--gray-mid);
  letter-spacing: 0.3em;
  user-select: none;
}


/* --- SECTIONS (shared) --- */

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--side-padding);
}

.section-label {
  display: inline-block;
  font-size: 0.722rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray-mid);
  margin-bottom: 48px;
}

.section-headline {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.section-body {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--gray-dark);
  max-width: 600px;
}


/* --- PULL QUOTE (honest bit) --- */

.section-quote {
  text-align: center;
  max-width: 740px;
}

.pull-quote {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--gray-dark);
  font-style: italic;
  position: relative;
}

.pull-quote::before {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--teal);
  margin: 0 auto 32px;
}


/* --- SERVICES --- */

.section-services {
  padding-bottom: 20px;
}

.service-card {
  display: flex;
  gap: 32px;
  padding: 48px 0;
  border-bottom: 1px solid var(--gray-light);
}

.service-card:last-child {
  border-bottom: none;
}

.service-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--teal);
  line-height: 1;
  flex-shrink: 0;
  width: 56px;
  padding-top: 4px;
}

.service-body {
  flex: 1;
}

.service-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 16px;
}

.service-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-dark);
  margin-bottom: 16px;
}

.service-aside {
  font-size: 0.833rem;
  color: var(--gray-mid);
  font-style: italic;
  position: relative;
  padding-left: 16px;
}

.service-aside::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--teal);
  border-radius: 1px;
}


/* --- DIFFERENT --- */

.section-different {
  text-align: center;
  max-width: 680px;
}

.section-different .section-headline {
  font-size: 2rem;
}

.section-different .section-body {
  margin: 0 auto;
  text-align: center;
}


/* --- ABOUT --- */

.section-about {
  max-width: 680px;
}

.about-layout {
  display: flex;
  gap: 40px;
  align-items: center;
}

.about-portrait {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--gray-light);
}

.about-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.about-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--gray-dark);
  margin-bottom: 20px;
}

.about-content p:last-child {
  margin-bottom: 0;
}


/* --- FOOTER --- */

.footer {
  position: relative;
  margin-top: var(--section-spacing);
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.footer-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.footer-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.footer-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(250, 250, 248, 1) 0%,
      rgba(250, 250, 248, 0.97) 8%,
      rgba(250, 250, 248, 0.85) 18%,
      rgba(250, 250, 248, 0.55) 30%,
      rgba(250, 250, 248, 0.1) 45%,
      transparent 55%,
      transparent 100%
    ),
    rgba(20, 30, 28, 0.55);
}

.footer-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 160px var(--side-padding) 80px;
  width: 100%;
  max-width: var(--max-width);
}

.footer-headline {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 16px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4), 0 1px 4px rgba(0, 0, 0, 0.2);
}

.footer-sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 32px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.2);
}

.footer-cta {
  display: inline-block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  border-bottom: 2px solid var(--amber);
  padding-bottom: 3px;
  transition: border-color 0.2s;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.2);
}

.footer-cta:hover {
  border-color: var(--white);
}

.footer-bottom {
  margin-top: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.footer-logo {
  height: 24px;
  width: auto;
  border-radius: 3px;
  opacity: 0.8;
}

.footer-copy {
  font-size: 0.722rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.03em;
}


/* --- RESPONSIVE --- */

@media (max-width: 768px) {
  :root {
    --section-spacing: 80px;
    --side-padding: 20px;
  }

  html {
    font-size: 16px;
  }

  .hero {
    min-height: 85vh;
  }

  .hero-headline {
    font-size: 2.2rem;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .divider {
    padding: 40px var(--side-padding);
  }

  .pull-quote {
    font-size: 1.1rem;
  }

  .service-card {
    flex-direction: column;
    gap: 12px;
    padding: 36px 0;
  }

  .service-number {
    font-size: 1.8rem;
  }

  .service-title {
    font-size: 1.3rem;
  }

  .section-headline {
    font-size: 1.7rem;
  }

  .about-layout {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .about-portrait {
    width: 130px;
    height: 130px;
  }

  .about-content p {
    text-align: center;
  }

  .section-different .section-headline {
    font-size: 1.6rem;
  }

  .footer {
    min-height: 420px;
  }

  .footer-headline {
    font-size: 2.2rem;
  }

  .footer-content {
    padding: 60px var(--side-padding);
  }

  .footer-bottom {
    margin-top: 48px;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 1.8rem;
  }

  .hero-content {
    padding-bottom: 48px;
  }

  .nav-inner {
    height: 56px;
  }

  .nav-logo-img {
    height: 40px;
  }

  .nav.is-scrolled .nav-logo-img {
    height: 32px;
  }
}
