/* ===================================================
   FOOVE — Landing Page Styles
   Adapted from Alture Webflow Template
   =================================================== */

/* ----- CSS Custom Properties ----- */
:root {
  /* Colors */
  --primary-accent: #E63462;
  --primary-paper: #f8f7f3;
  --primary-white: #ffffff;
  --primary-dark: #1a1a2e;
  --grey-50: #f1efed;
  --grey-100: #ddd;
  --grey-200: #b6b6b6;
  --grey-300: #707070;
  --grey-400: #474747;
  --grey-500: #6b6b6b;
  --white-50: #ffffff80;
  --white-70: #ffffffb3;
  --white-15: #ffffff26;

  /* Spacing — fluid, no breakpoint overrides needed */
  --section-small: clamp(4rem, 8vw, 6rem);
  --section-medium: clamp(5rem, 9vw, 8rem);
  --spacer-small: 1rem;
  --spacer-xlarge: clamp(2.5rem, 4.5vw, 4rem);
  --padding-global: clamp(1.25rem, 3vw, 3rem);

  /* Typography */
  --font-primary: 'Inter', Arial, sans-serif;
  --font-secondary: 'Space Grotesk', Arial, sans-serif;
  --font-mono: 'Roboto Mono', monospace;
}

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

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

body {
  font-family: var(--font-primary);
  background-color: var(--primary-paper);
  color: var(--primary-dark);
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

/* ----- Utility Classes ----- */
.padding-global {
  padding-left: var(--padding-global);
  padding-right: var(--padding-global);
}

.padding-global.is-tiny {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.padding-section-small {
  padding-top: var(--section-small);
}

.padding-section-medium {
  padding-top: var(--section-medium);
}

.padding-section-large {
  padding-top: clamp(7rem, 10vw, 11rem);
}

.spacer-small {
  height: var(--spacer-small);
}

.spacer-xlarge {
  height: var(--spacer-xlarge);
}

.container-medium {
  max-width: 90rem;
  margin-left: auto;
  margin-right: auto;
}

.label {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white-70);
}

/* ===================================================
   NAVBAR
   =================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0.75rem;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.625rem 1rem 0.625rem 1.25rem;
  background: rgba(248, 247, 243, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 4rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.navbar-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.navbar-logo {
  height: 1.5rem;
  width: auto;
  max-width: none;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 2.5rem);
  margin-left: auto;
}

.navbar-link {
  font-family: var(--font-primary);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-dark);
  padding: 0.625rem 0.5rem;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.navbar-link:hover {
  opacity: 0.6;
}

.navbar-cta {
  font-family: var(--font-primary);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-dark);
  padding: 0.5rem 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 4rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.navbar-cta:hover {
  background: var(--primary-dark);
  color: var(--primary-white);
}

/* ===================================================
   HERO SECTION
   =================================================== */
.hero {
  display: flex;
  flex-direction: column;
  overflow: clip;
  padding-top: clamp(4.5rem, 7vw, 6rem);
}

.hero-component {
  display: flex;
  padding: 0 0.75rem 0.75rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  border-radius: 2rem;
  position: relative;
  overflow: clip;
  padding: 1.125rem 2rem 2rem;
  height: 65vh;
  min-height: 22rem;
  max-height: 36rem;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Services grid */
.hero-services {
  display: flex;
  position: relative;
  z-index: 2;
  border-bottom: 1px dotted var(--white-50);
}

.hero-service-item {
  flex: 1;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--grey-100);
  text-align: center;
  border-right: 1px solid var(--white-15);
}

.hero-service-item:last-child {
  border-right: none;
}

/* Hero bottom area */
.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.hero-subheading {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 40rem;
}

.hero-headline {
  font-family: var(--font-secondary);
  font-size: clamp(1.5rem, 3.5vw, 2.75rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--primary-white);
}

/* Rotating words */
.words-wrap {
  display: inline-block;
  height: 1.15em;
  overflow: clip;
  vertical-align: bottom;
  position: relative;
}

.words-inner {
  display: flex;
  flex-direction: column;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.word {
  height: calc(clamp(1.5rem, 3.5vw, 2.75rem) * 1.15);
  display: flex;
  align-items: flex-start;
  color: var(--primary-accent);
  font-style: italic;
}

/* Hero contact card */
.hero-contact {
  flex-shrink: 0;
}

.hero-contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 2rem;
  background: var(--white-15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 4rem;
  color: var(--primary-white);
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.hero-contact-link:hover {
  background: #ffffff33;
}

.hero-contact-arrow {
  font-size: 1.25rem;
}

/* ===================================================
   PARTNERS SECTION
   =================================================== */
.partners {
  background-color: var(--primary-paper);
}

.head-grid {
  display: grid;
  grid-template-columns: 0.4fr 1fr;
  gap: 1rem;
  align-items: start;
}

.label-wrap {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.label-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary-accent);
  flex-shrink: 0;
}

.text-style-label {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.heading-style-h4 {
  font-family: var(--font-primary);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 50.625rem;
}

/* Partner marquee */
.partners-marquee-wrapper {
  display: flex;
  overflow: hidden;
  mask: linear-gradient(270deg, transparent, black 15%, black 85%, transparent);
  -webkit-mask: linear-gradient(270deg, transparent, black 15%, black 85%, transparent);
}

.partners-marquee {
  display: flex;
  align-items: center;
  animation: marquee 35s linear infinite;
  flex-shrink: 0;
}

.partners-marquee-wrapper:hover .partners-marquee {
  animation-play-state: paused;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-right: 1.125rem;
  flex-shrink: 0;
}

.partner-logo-wrap {
  width: clamp(10rem, 18vw, 16rem);
  aspect-ratio: 1;
  border-radius: 1.5rem;
  background-color: var(--primary-white);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.partner-logo-img {
  max-width: 55%;
  max-height: 55%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ===================================================
   WORK SECTION
   =================================================== */
.work {
  background-color: var(--primary-paper);
}

.padding-global.is-small {
  padding-left: 2rem;
  padding-right: 2rem;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}

.work-card:hover {
  transform: translateY(-4px);
}

.work-image-wrap {
  aspect-ratio: 1;
  border-radius: 1.25rem;
  overflow: clip;
}

.work-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.work-image-text {
  font-family: var(--font-primary);
  font-size: 2rem;
  font-weight: 600;
  color: var(--white-50);
  letter-spacing: -0.02em;
  text-align: center;
  padding: 2rem;
}

.work-card-logo {
  max-width: 55%;
  max-height: 40%;
  object-fit: contain;
}

.work-card-logo--dokzo {
  max-width: 45%;
}

.work-card-logo--dbh {
  max-width: 50%;
  border-radius: 0.75rem;
}

.work-card-logo--sd {
  max-width: 45%;
  filter: brightness(0) invert(1);
}

.work-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-radius: 1.25rem;
  gap: 2rem;
}

.work-texts {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.work-title {
  font-family: var(--font-primary);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary-white);
}

.work-about {
  font-size: 0.875rem;
  color: var(--white-50);
  line-height: 1.4;
}

/* ===================================================
   FOOTER
   =================================================== */
.footer {
  padding-bottom: 0.75rem;
}

.footer-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 2.5rem 2rem;
  background-color: var(--primary-white);
  border-radius: 2rem;
  overflow: clip;
}

.footer-component {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 3rem;
}

.footer-logo {
  height: 2.5rem;
  width: auto;
  align-self: flex-start;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}

/* CTA block */
.footer-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

.footer-heading {
  font-family: var(--font-primary);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
}

.footer-text {
  font-size: 1rem;
  color: var(--grey-400);
  line-height: 1.6;
}

.footer-email {
  font-family: var(--font-secondary);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary-accent);
  transition: opacity 0.2s ease;
}

.footer-email:hover {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 4px;
}

.footer-address {
  margin-top: 0.5rem;
}

.footer-address-text {
  font-size: 0.875rem;
  color: var(--grey-300);
  line-height: 1.6;
}

/* Map — styled to match site aesthetic */
.footer-map {
  aspect-ratio: 16 / 10;
  border-radius: 1.25rem;
  overflow: hidden;
  position: relative;
}

.footer-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: saturate(0.3) contrast(1.1) brightness(1.05);
}

.footer-map::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(248, 247, 243, 0.08);
  pointer-events: none;
  border-radius: 1.25rem;
}

/* Legal */
.footer-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--grey-50);
}

.footer-legal-text {
  font-size: 0.75rem;
  color: var(--grey-500);
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-link:hover {
  color: var(--primary-dark);
}

/* ===================================================
   REDUCED MOTION
   =================================================== */
@media (prefers-reduced-motion: reduce) {
  .partners-marquee {
    animation: none;
  }

  .words-inner {
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ===================================================
   RESPONSIVE — TABLET (max 991px)
   =================================================== */
@media (max-width: 991px) {
  .hero-services {
    display: none;
  }

  .head-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .work-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-map {
    aspect-ratio: 16 / 9;
  }
}

/* ===================================================
   RESPONSIVE — MOBILE (max 767px)
   =================================================== */
@media (max-width: 767px) {
  .navbar {
    padding: 0.75rem 1.25rem;
  }

  .navbar-links {
    display: none;
  }

  .hero-content {
    height: auto;
    min-height: unset;
    max-height: unset;
    padding: 1.25rem 1.5rem 1.75rem;
    border-radius: 1rem;
  }

  .hero-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-contact {
    width: 100%;
  }

  .hero-contact-link {
    justify-content: center;
    width: 100%;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-info {
    padding: 1.25rem 1.5rem;
    border-radius: 0.875rem;
  }

  .work-image-wrap {
    border-radius: 0.875rem;
  }

  .text-style-label {
    font-size: 0.75rem;
  }

  .footer-wrap {
    padding: 2rem 1.5rem 1.5rem;
    border-radius: 1.5rem;
  }

  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .footer .padding-section-small {
    padding-top: 6rem;
  }
}

/* ===================================================
   RESPONSIVE — SMALL MOBILE (max 479px)
   =================================================== */
