/* ==========================================================================
   WPP Onefluence — styles.css
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. Custom Properties
   -------------------------------------------------------------------------- */

:root {
  --navy:        #1c1c4e;
  --navy-hover:  #2d2d72;
  --white:       #ffffff;
  --off-white:   #f7f7f5;
  --border:      #e3e3e3;
  --muted:       #666666;
  --font:        'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}


/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--white);
  color: var(--navy);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}


/* --------------------------------------------------------------------------
   3. Navigation
   -------------------------------------------------------------------------- */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-logo {
  height: 26px;
  display: block;
}

.nav-separator {
  width: 1px;
  height: 22px;
  background: var(--border);
}

.nav-brand {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--navy);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--navy);
}

.nav-cta {
  font-size: 12px;
  font-weight: 500;
  color: var(--white);
  background: var(--navy);
  padding: 9px 20px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--navy-hover);
}


/* --------------------------------------------------------------------------
   4. Hero
   -------------------------------------------------------------------------- */

.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 64px;
  overflow: hidden;
}

/* Full-bleed background image — fully opaque */
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('hero-bg.png');
  background-size: cover;
  background-position: center right;
  z-index: 0;
}

/* Left-to-right white fade: solid white behind text, transparent on right */
.hero__bg-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 1)   0%,
    rgba(255, 255, 255, 1)   38%,
    rgba(255, 255, 255, 0.7) 52%,
    rgba(255, 255, 255, 0)   70%
  );
  z-index: 1;
}

/* Subtle top/bottom vignette to blend into page flow */
.hero__bg-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.5)  0%,
    transparent               12%,
    transparent               85%,
    rgba(255, 255, 255, 0.7) 100%
  );
  z-index: 2;
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 48px;
  width: 100%;
}

.hero__eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
  animation: fadeUp 0.8s ease 0.1s both;
}

.hero__headline {
  font-size: clamp(52px, 7vw, 100px);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--navy);
  max-width: 680px;
  margin-bottom: 32px;
  animation: fadeUp 0.8s ease 0.2s both;
}

.hero__body {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--muted);
  max-width: 500px;
  margin-bottom: 48px;
  animation: fadeUp 0.8s ease 0.3s both;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  animation: fadeUp 0.8s ease 0.4s both;
}

/* Buttons */
.btn--primary {
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  background: var(--navy);
  padding: 13px 26px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s;
}

.btn--primary:hover {
  background: var(--navy-hover);
}

.btn--ghost {
  font-size: 13px;
  font-weight: 400;
  color: var(--navy);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn--ghost .arrow {
  transition: transform 0.2s;
}

.btn--ghost:hover .arrow {
  transform: translateX(4px);
}


/* --------------------------------------------------------------------------
   5. Marquee
   -------------------------------------------------------------------------- */

.marquee-wrap {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 13px 0;
}

.marquee-track {
  display: flex;
  animation: marquee 22s linear infinite;
  white-space: nowrap;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 26px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
}

.marquee-item__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--navy);
  opacity: 0.3;
  flex-shrink: 0;
}


/* --------------------------------------------------------------------------
   6. Shared Section Utilities
   -------------------------------------------------------------------------- */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 56px;
}

.section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: 0.4;
}

.section-counter {
  font-size: 11px;
  color: #cccccc;
}


/* --------------------------------------------------------------------------
   7. About Section
   -------------------------------------------------------------------------- */

.section-about {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.about-grid h2 {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--navy);
}

.about-grid p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 14px;
}

.about-grid a {
  color: var(--navy);
  font-weight: 500;
  text-underline-offset: 3px;
}


/* --------------------------------------------------------------------------
   8. Cards Section
   -------------------------------------------------------------------------- */

.section-cards {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.card {
  padding: 48px 34px;
  background: var(--off-white);
  transition: background 0.25s;
}

.card:hover {
  background: #eeeeed;
}

.card__number {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #bbbbbb;
  margin-bottom: 32px;
}

.card__dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--navy);
  margin-bottom: 26px;
}

.card h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 12px;
}

.card p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--muted);
}


/* --------------------------------------------------------------------------
   9. Contact Section
   -------------------------------------------------------------------------- */

.section-contact {
  padding: 96px 0 120px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.contact-grid h2 {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--navy);
  margin-bottom: 16px;
}

.contact-intro {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--muted);
  max-width: 340px;
}

.contact-table {
  display: flex;
  flex-direction: column;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.contact-row:first-child {
  border-top: 1px solid var(--border);
}

.contact-row__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #bbbbbb;
}

.contact-row__value {
  font-size: 14px;
  font-weight: 400;
  color: var(--navy);
}

.contact-row__value a {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--navy);
  padding-bottom: 1px;
  transition: opacity 0.2s;
}

.contact-row__value a:hover {
  opacity: 0.4;
}


/* --------------------------------------------------------------------------
   10. Footer
   -------------------------------------------------------------------------- */

footer {
  border-top: 1px solid var(--border);
  padding: 24px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-separator {
  width: 1px;
  height: 13px;
  background: var(--border);
}

.footer-text {
  font-size: 11px;
  color: #bbbbbb;
}

.footer-link {
  font-size: 11px;
  color: #bbbbbb;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--navy);
}


/* --------------------------------------------------------------------------
   11. Scroll Reveal
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}


/* --------------------------------------------------------------------------
   12. Animations
   -------------------------------------------------------------------------- */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* --------------------------------------------------------------------------
   13. Responsive — Mobile (max 880px)
   -------------------------------------------------------------------------- */

@media (max-width: 880px) {

  nav {
    padding: 0 20px;
  }

  .nav-right .nav-link {
    display: none;
  }

  .hero__content {
    padding: 60px 20px;
  }

  .hero__bg {
    background-position: center center;
  }

  /* Switch gradient to top-to-bottom for portrait viewports */
  .hero__bg-fade {
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 1)   0%,
      rgba(255, 255, 255, 1)   40%,
      rgba(255, 255, 255, 0.6) 60%,
      rgba(255, 255, 255, 0)   80%
    );
  }

  .container {
    padding: 0 20px;
  }

  .about-grid,
  .cards-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  footer {
    padding: 20px;
    flex-direction: column;
    gap: 10px;
  }

}
