/* ============================================
   Upstart Connectors — Main Stylesheet
   Brand: Lato font, Cool Blue #0082BA,
   Yellow #FFCD00, Green #008755, Gray #63666A
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: #0082BA;
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #2C5697;
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: #000;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

.lead {
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.8;
}

.section-title {
  margin-bottom: 1rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #FFCD00;
  margin-top: 0.75rem;
}

.section-title--center {
  text-align: center;
}

.section-title--center::after {
  margin-left: auto;
  margin-right: auto;
}

.section-title--light {
  color: #fff;
}

.section-title--light::after {
  background: #FFCD00;
}

.section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  color: #63666A;
  font-size: 1.1rem;
  font-weight: 300;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 4px;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.btn-primary {
  background: #FFCD00;
  color: #000;
}

.btn-primary:hover {
  background: #e6b800;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.anim-fade-up,
.anim-fade-left,
.anim-fade-right {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}

.anim-fade-up {
  transform: translateY(40px);
}

.anim-fade-left {
  transform: translateX(40px);
}

.anim-fade-right {
  transform: translateX(-40px);
}

.anim-fade-up.is-visible,
.anim-fade-left.is-visible,
.anim-fade-right.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Animation delays */
.anim-delay-1 { transition-delay: 0.15s; }
.anim-delay-2 { transition-delay: 0.3s; }
.anim-delay-3 { transition-delay: 0.45s; }

/* Hero animations play on load, not scroll */
.hero .anim-fade-up {
  opacity: 0;
  animation: heroFadeUp 0.9s ease forwards;
}

.hero .anim-delay-1 { animation-delay: 0.25s; }
.hero .anim-delay-2 { animation-delay: 0.5s; }

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

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: background 0.3s;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nav-logo img {
  height: 44px;
  width: auto;
}

.nav-list {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: #333;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #0082BA;
  transition: width 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: #0082BA;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger {
  display: block;
  width: 26px;
  height: 2px;
  background: #333;
  position: relative;
  transition: background 0.3s;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 26px;
  height: 2px;
  background: #333;
  transition: transform 0.3s;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.nav-toggle.active .hamburger {
  background: transparent;
}

.nav-toggle.active .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.nav-toggle.active .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 76px;
}

.hero-bg {
  position: absolute;
  inset: -20% 0;
  background: url('../images/hero-bg.jpg') center center / cover no-repeat;
  z-index: 0;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 130, 186, 0.88) 0%, rgba(44, 86, 151, 0.92) 100%);
  z-index: 1;
}

/* Geometric accents */
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 55%;
  height: 130%;
  background: rgba(255, 255, 255, 0.06);
  transform: skewX(-12deg);
  z-index: 2;
}

.hero::after {
  content: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 700px;
  padding: 4rem 0;
}

.hero-headline {
  color: #fff;
  font-size: 3rem;
  font-weight: 900;
  font-style: italic;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-subheadline {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.hero-pillars {
  display: flex;
  gap: 2.5rem;
  margin-top: 1rem;
}

.hero-pillar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-pillar svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

/* ============================================
   PARALLAX DIVIDERS
   ============================================ */
.parallax-divider {
  position: relative;
  height: 350px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.parallax-divider--tall {
  height: 400px;
}

.parallax-divider-bg {
  position: absolute;
  inset: -30% 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
  z-index: 0;
}

.parallax-divider-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.parallax-divider-overlay--light {
  background: rgba(0, 50, 100, 0.4);
}

.parallax-divider-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.parallax-quote {
  color: #fff;
  font-size: 1.75rem;
  font-style: italic;
  font-weight: 300;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.5;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

/* Divider Stats */
.divider-stat-row {
  display: flex;
  gap: 4rem;
  justify-content: center;
  flex-wrap: wrap;
}

.divider-stat {
  text-align: center;
  color: #fff;
}

.divider-stat-number {
  display: inline;
  font-size: 3.5rem;
  font-weight: 900;
  color: #FFCD00;
  line-height: 1;
}

.divider-stat-suffix {
  font-size: 3.5rem;
  font-weight: 900;
  color: #FFCD00;
}

.divider-stat-label {
  display: block;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.5rem;
  opacity: 0.9;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  padding: 6rem 0;
  background: #fff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: center;
}

.about-image img {
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.about-text .section-title {
  color: #0082BA;
}

.about-text p {
  margin-bottom: 1.25rem;
  color: #444;
}

.about-text .lead {
  color: #333;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  padding: 6rem 0;
  background: #f7f7f5;
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.service-card {
  background: #fff;
  border-radius: 8px;
  padding: 2.5rem 1.75rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.service-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  color: #0082BA;
  margin-bottom: 1rem;
}

.service-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.7;
}

/* ============================================
   WHY UPSTART
   ============================================ */
.why-upstart {
  position: relative;
  padding: 6rem 0;
  background: #0082BA;
  color: #fff;
  overflow: hidden;
}

.why-upstart-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #0082BA 0%, #2C5697 70%, #1a3f6f 100%);
  opacity: 0.92;
}

.why-upstart-content {
  position: relative;
  z-index: 2;
}

.why-upstart-text {
  max-width: 800px;
  margin-bottom: 3rem;
}

.why-upstart-text p {
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
}

.why-upstart-text .lead {
  font-size: 1.35rem;
  color: #fff;
}

.why-upstart-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 2rem;
}

.value-item {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  border-top: 4px solid #FFCD00;
  text-align: center;
}

.value-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.value-icon svg {
  width: 44px;
  height: 44px;
}

.value-item h4 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.value-item p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================
   CONSCIOUS CAPITALISM
   ============================================ */
.conscious-cap {
  padding: 6rem 0;
  background: #fff;
}

.conscious-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: center;
}

.conscious-image img {
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.conscious-text .section-title {
  color: #0082BA;
}

.conscious-text .section-title::after {
  background: #0082BA;
}

.conscious-text p {
  margin-bottom: 1.25rem;
  color: #444;
}

.conscious-text .lead {
  color: #333;
}

.conscious-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.conscious-pillar-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #e6f2f8;
  border-radius: 6px;
  border-left: 3px solid #0082BA;
  font-size: 0.9rem;
  font-weight: 700;
  color: #333;
}

.conscious-pillar-icon svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  padding: 6rem 0;
  background: #fff;
}

.contact-content {
  text-align: center;
}

/* Contact Form */
.contact-form-wrapper {
  max-width: 650px;
  margin: 0 auto 2.5rem;
}

.contact-form {
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #63666A;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  color: #333;
  background: #fafafa;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0082BA;
  box-shadow: 0 0 0 3px rgba(0, 130, 186, 0.12);
  background: #fff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaa;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
}

/* Success state */
.form-success {
  text-align: center;
  padding: 3rem 1rem;
}

.form-success h3 {
  color: #008755;
  margin: 1rem 0 0.5rem;
}

.form-success p {
  color: #63666A;
  font-size: 1.05rem;
}

.contact-social {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f0f0f0;
  color: #63666A;
  transition: all 0.3s;
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.social-link:hover {
  background: #0082BA;
  color: #fff;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #1a1a2e;
  color: rgba(255, 255, 255, 0.7);
  padding-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-tagline {
  font-size: 0.9rem;
  font-style: italic;
  font-weight: 300;
  max-width: 300px;
  line-height: 1.6;
}

.footer h4 {
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
}

.footer-links ul li {
  margin-bottom: 0.6rem;
}

.footer-links a,
.footer-contact a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #FFCD00;
}

.footer-contact p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.85rem;
}

/* ============================================
   RESPONSIVE — Tablet
   ============================================ */
@media (max-width: 1024px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.85rem; }

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

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-upstart-values {
    grid-template-columns: repeat(2, 1fr);
  }

  .conscious-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .conscious-image img {
    height: 350px;
  }
}

/* ============================================
   RESPONSIVE — Mobile
   ============================================ */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 70px;
  }

  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.6rem; }

  .hero {
    min-height: 80vh;
  }

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

  .hero-subheadline {
    font-size: 1.05rem;
  }

  .hero-pillars {
    flex-wrap: wrap;
    gap: 1.25rem;
  }

  .hero-pillar {
    font-size: 0.8rem;
  }

  /* Parallax dividers */
  .parallax-divider {
    height: 280px;
  }

  .parallax-divider--tall {
    height: 320px;
  }

  .parallax-quote {
    font-size: 1.3rem;
    padding: 0 1rem;
  }

  .divider-stat-row {
    gap: 2rem;
  }

  .divider-stat-number {
    font-size: 2.5rem;
  }

  /* Mobile Nav */
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 1.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    z-index: 999;
  }

  .nav-menu.open {
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }

  .nav-link {
    font-size: 1rem;
  }

  /* About */
  .about {
    padding: 4rem 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image img {
    height: 350px;
  }

  /* Services */
  .services {
    padding: 4rem 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Why Upstart */
  .why-upstart {
    padding: 4rem 0;
  }

  .why-upstart-values {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .why-upstart-text .lead {
    font-size: 1.15rem;
  }

  /* Conscious Capitalism */
  .conscious-cap {
    padding: 4rem 0;
  }

  .conscious-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .conscious-image img {
    height: 280px;
  }

  .conscious-pillars {
    grid-template-columns: 1fr;
  }

  /* Contact */
  .contact {
    padding: 4rem 0;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-tagline {
    margin: 0 auto;
  }
}

/* ============================================
   RESPONSIVE — Small Mobile
   ============================================ */
@media (max-width: 480px) {
  .hero-headline {
    font-size: 1.65rem;
  }

  .btn {
    padding: 12px 28px;
    font-size: 0.9rem;
  }

  .service-card {
    padding: 2rem 1.25rem;
  }

  .value-item {
    padding: 1.5rem;
  }

  .divider-stat-row {
    gap: 1.5rem;
  }

  .divider-stat-number {
    font-size: 2rem;
  }
}
