@import url("https://fonts.googleapis.com/css2?family=Parkinsans:wght@300..800&display=swap");

:root {
  /* Brand Palette */
  --color-navy: #002147;
  --color-lime: #8dc63f;
  --color-lime-dark: #76a835;

  /* Neutrals */
  --color-white: #ffffff;
  --color-off-white: #f8f9fa;
  --color-light-gray: #e9ecef;
  --color-slate: #4a5568;
  --color-text: #2d3748;

  /* UI Specific */
  --header-bg: var(--color-white);
  --header-height: clamp(80px, 10vh, 100px);
  --radius-md: 12px;
  --radius-lg: 24px;
  --glass-bg: rgba(255, 255, 255, 0.95);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-standard: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base & Typography --- */

/* Base Accessibility Reset */
:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--color-lime);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Parkinsans", sans-serif;
  color: var(--color-text);
  line-height: 1.6;
  background: var(--color-white);
  overflow-x: hidden;
  padding-top: var(--header-height);
}

h1,
h2,
h3,
h4 {
  font-family: "Parkinsans", sans-serif;
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

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

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

/* --- Header & Navigation (Premium Mobile First) --- */
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--header-bg);
  z-index: 2000;
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--color-light-gray);
  transition: var(--transition-standard);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: clamp(50px, 7vh, 70px);
  width: auto;
  object-fit: contain;
}

/* Hamburger Menu Toggle (Refined) */
.menu-toggle {
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2001;
  padding: 10px;
  visibility: visible !important;
}

.hamburger {
  width: 30px;
  height: 3px;
  background: var(--color-navy);
  position: relative;
  transition: var(--transition-fast);
  border-radius: 3px;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: inherit;
  transition: var(--transition-fast);
  border-radius: 3px;
}

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

/* Menu Toggle Animation */
body.menu-open .hamburger {
  background: transparent;
}
body.menu-open .hamburger::before {
  transform: rotate(45deg);
  top: 0;
  background: var(--color-navy);
}
body.menu-open .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
  background: var(--color-navy);
}

/* Navigation Drawer (Premium Overlay) */
nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10%;
  transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.menu-open nav {
  transform: translateX(-100%);
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

nav ul {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

nav li {
  display: list-item;
}

nav a {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-navy);
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: -0.05em;
  position: relative;
  transition: var(--transition-fast);
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 4px;
  background: var(--color-lime);
  transition: var(--transition-standard);
  transform: translateX(-50%);
}

nav a:hover::after,
nav a.active::after {
  width: 60%;
}

nav a:hover {
  color: var(--color-lime);
  transform: scale(1.05);
}

.nav-cta {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
}

/* --- Hero Section (Refined) --- */
.hero {
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.hero-content {
  order: 2;
  text-align: center;
}
.hero-image {
  order: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 350px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero h1 {
  font-size: clamp(3rem, 12vw, 5rem);
  margin-bottom: 1.5rem;
}
.hero h1 span {
  color: var(--color-lime);
}

.cta-button {
  display: inline-block;
  padding: 1.25rem 2.5rem;
  background: var(--color-lime);
  color: var(--color-navy);
  font-weight: 800;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9375rem;
  transition: all 0.4s var(--transition-standard);
  box-shadow: 0 10px 25px rgba(141, 198, 63, 0.3);
}

.cta-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(141, 198, 63, 0.4);
  background: var(--color-navy);
  color: var(--color-white);
}

/* --- Content Sections --- */
.section {
  padding: 5rem 0;
}

.section-label {
  display: block;
  color: var(--color-lime);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 3px;
  font-size: 0.8125rem;
  margin-bottom: 0.75rem;
  text-align: inherit; /* Follow parent alignment */
}

/* Scrolly (No Bullets on Mobile) */
.scrolly-container {
  display: flex;
  flex-direction: column;
}
.scrolly-visuals {
  display: none;
}
.scrolly-steps .step {
  padding: 4rem 0;
  border-bottom: 2px solid var(--color-off-white);
}
.scrolly-steps .step:last-child {
  border-bottom: none;
}

/* Bento (Refined) */
/* --- Expertise Section (Base/Mobile Hidden) --- */
.expertise {
  display: none;
}

.bento-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.bento-card {
  background: var(--color-off-white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  border: 2px solid var(--color-light-gray);
  transition: var(--transition-standard);
}
.bento-card:hover {
  border-color: var(--color-lime);
  transform: translateY(-5px);
}

/* Footer */
footer {
  background: var(--color-navy);
  color: white;
  padding: 5rem 0 3rem;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
}
.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer-col h4 {
  color: var(--color-lime);
  margin-bottom: 2rem;
  font-size: 1.25rem;
  text-align: center;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
  text-align: center;
  margin: 0 auto;
}

.footer-col li {
  margin-bottom: 0;
  opacity: 0.8;
  font-weight: 500;
  display: flex;
  justify-content: center;
  white-space: nowrap; /* Prevent phone/email wrapping */
}

/* --- Desktop Refresh (Tablet & Up) --- */
@media (min-width: 768px) {
  .container {
    width: 85%;
  }
  .hero {
    flex-direction: row;
    align-items: center;
    padding: 8rem 0;
    text-align: left;
  }
  .hero-content {
    flex: 1.2;
    order: 1;
    text-align: left;
  }
  .hero-image {
    flex: 1;
    order: 2;
    height: 600px;
  }
  .bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none !important;
  }
  nav {
    position: static;
    width: auto;
    height: auto;
    flex-direction: row;
    background: transparent;
    padding: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: none;
    backdrop-filter: none;
  }
  nav ul {
    flex-direction: row;
    gap: 3rem;
  }
  nav a {
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    font-weight: 700;
  }
  nav a::after {
    bottom: -8px;
    left: 0;
    transform: none;
  }
  .nav-cta {
    display: none;
  }

  /* Desktop Scrolly (Side-by-side) */
  .scrolly-container {
    flex-direction: row;
    position: relative;
  }
  .scrolly-visuals {
    display: block;
    flex: 1;
    position: sticky;
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
    overflow: hidden;
  }
  .scrolly-steps {
    flex: 1;
  }
  .scrolly-steps .step {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 15%;
    border-bottom: none;
  }
  .visual-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s var(--transition-standard);
  }
  .visual-layer.active {
    opacity: 1;
  }
  .visual-layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .bento-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* --- Expertise Section (Marquee) --- */
  .expertise {
    display: block; /* Show on desktop only */
    padding: 8rem 0;
    background: var(--color-white);
    overflow: hidden;
  }

  .expertise h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .logo-marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 4rem;
    padding: 1.5rem 0; /* Add padding for scale transforms */
  }

  .logo-marquee-content {
    flex-shrink: 0;
    display: flex;
    justify-content: space-around;
    gap: 4rem;
    min-width: 100%;
    animation: scroll 40s linear infinite;
  }

  .logo-marquee-content img {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.7;
    transition: var(--transition-standard);
  }

  .logo-marquee-content img:hover,
  .logo-marquee-content img:focus {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.1);
  }

  @keyframes scroll {
    from {
      transform: translateX(0);
    }
    to {
      transform: translateX(calc(-100% - 4rem));
    }
  }

  .footer-grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .footer-col {
    align-items: flex-start;
  }

  .footer-col h4 {
    text-align: left;
  }

  .footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    text-align: left;
    align-items: flex-start;
  }

  .footer-col li {
    justify-content: flex-start;
    margin-bottom: 0.75rem;
    white-space: nowrap; /* Prevent phone/email wrapping */
  }
}
