/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&display=swap');

:root {
  /* Colors */
  --color-dark: #162239; /* Deep Navy */
  --color-secondary: #7ea0bc; /* Muted Blue */
  --color-accent: #f5c05c; /* Vibrant Orange/Yellow */
  --color-light: #f2f4f6; /* Off-white */
  --color-white: #ffffff;
  --color-border: rgba(22, 34, 57, 0.1);
  --color-border-light: rgba(255, 255, 255, 0.15);

  /* Glow Colors for Hero */
  --color-amber-glow: rgba(245, 192, 92, 0.4);
  --color-blue-glow: rgba(126, 160, 188, 0.3);
  --color-pink: #fad7d7;

  /* Typography */
  --font-main: 'Outfit', sans-serif;
  --font-serif: 'DM Serif Display', serif;
  
  --text-display: clamp(4rem, 11vw, 9rem);
  --text-h1: clamp(3rem, 7vw, 6rem);
  --text-h2: clamp(2.5rem, 5vw, 4.5rem);
  --text-h3: clamp(1.5rem, 3vw, 2.5rem);
  --text-body: clamp(1.125rem, 1.5vw, 1.35rem);

  /* Dimensions */
  --radius-section: 60px;
  --radius-pill: 999px;
  --spacing-container: 5vw;
  --header-height: 100px;
  --header-height-scrolled: 70px; /* Reduced height on scroll */

  /* Easing */
  --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-dark);
  color: var(--color-dark);
  line-height: 1.2;
  overflow-x: hidden;
}

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

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

/* Typography Utils */
.text-serif {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
}

.text-italic {
  font-style: italic;
}

/* === HEADER === */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem var(--spacing-container);
  z-index: 999;
  transition: all 0.4s var(--ease-out);
  color: var(--color-dark);
}

/* Default: dark text for light backgrounds */
.logo img {
  height: 120px;
  transition: all 0.4s var(--ease-out);
  filter: none; /* Show original colored logo */
}

header.header-scrolled .logo img {
  height: 50px;
}

/* Header on dark backgrounds */
header.header-on-dark {
  color: white;
}

header.header-on-dark .logo img {
  filter: brightness(0) invert(1); /* White logo */
}

header.header-on-dark .desktop-nav {
  background: rgba(255, 255, 255, 0.1);
}

header.header-on-dark .btn-dark {
  background: white;
  color: var(--color-dark);
}

/* Header on accent (amber) backgrounds */
header.header-on-accent {
  color: var(--color-dark);
}

header.header-on-accent .logo img {
  filter: brightness(0); /* Black logo to match dark text */
}

header.header-on-accent .desktop-nav {
  background: rgba(0, 0, 0, 0.1);
}

/* Header on light backgrounds (services) - explicit dark styling */
header.header-on-light {
  color: var(--color-dark);
}

header.header-on-light .logo img {
  filter: none;
}

header.header-on-light .desktop-nav {
  background: rgba(0, 0, 0, 0.05);
}

header.header-on-light .btn-dark {
  background: var(--color-dark);
  color: white;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1800px;
  margin: 0 auto;
}

/* Ensure actions are horizontal */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.desktop-nav {
  display: flex;
  gap: 3rem;
  background: rgba(0, 0, 0, 0.05);
  padding: 0.75rem 2rem;
  border-radius: var(--radius-pill);
}

.desktop-nav a {
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.desktop-nav a:hover {
  opacity: 1;
}

.btn-sm {
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
}

/* Mobile menu button hidden on desktop */
.mobile-menu-btn {
  display: none;
}

/* Mobile nav hidden on desktop */
.mobile-nav {
  display: none;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 2.5rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.btn:hover {
  transform: scale(1.05);
}

.btn-dark {
  background-color: var(--color-dark);
  color: white;
}

.btn-white {
  background-color: white;
  color: var(--color-dark);
}

.btn-outline {
  border: 1px solid currentColor;
  background: transparent;
}

.btn-xl {
  padding: 1.5rem 3rem;
  font-size: 1.25rem;
}

/* === LAYOUT / STACKING CARDS === */
.section-card {
  position: sticky;
  top: 0;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 6rem 0;
}

.hero-section {
  background-color: var(--color-light);
  overflow: hidden;
  z-index: 1;
}

.dark-section {
  background-color: var(--color-dark);
  color: white;
  z-index: 2;
}

.light-section {
  background-color: white;
  z-index: 3;
}

.accent-section {
  background-color: var(--color-accent);
  color: var(--color-dark);
  z-index: 4;
}

.footer-cta {
  background-color: var(--color-dark);
  color: white;
  z-index: 5;
  min-height: 100vh;
  justify-content: space-between;
  padding-bottom: 0;
}

.container {
  width: 90vw;
  max-width: 1600px;
  margin: 0 auto;
  position: relative;
  z-index: 2; /* Content above shapes */
}

.centered {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* === HERO SECTION === */

/* Hero Background with Gradient and Grid */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  width: 150%;
  height: 150%;
  top: -25%;
  left: -25%;
  background:
    radial-gradient(ellipse 60% 50% at 70% 20%, var(--color-amber-glow) 0%, transparent 50%),
    radial-gradient(ellipse 50% 60% at 20% 80%, var(--color-blue-glow) 0%, transparent 50%),
    radial-gradient(ellipse 40% 40% at 90% 70%, var(--color-pink) 0%, transparent 40%);
  opacity: 0.8;
  animation: hero-gradient-float 20s ease-in-out infinite;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(22,34,57,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22,34,57,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

@keyframes hero-gradient-float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(20px, -20px) rotate(2deg); }
  66% { transform: translate(-15px, 15px) rotate(-1deg); }
}

/* Hero Container */
.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: end;
  gap: 6rem;
  position: relative;
  z-index: 2;
  padding-top: var(--header-height);
}

/* Hero Left - Title */
.hero-left {
  max-width: 100%;
}

/* Hero Right - Subtitle & CTAs */
.hero-right {
  padding-bottom: 1rem;
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-dark);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease-out;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

/* Hero Title */
.hero-title {
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -3px;
  margin-bottom: 1.5rem;
  color: var(--color-dark);
  animation: fadeInUp 0.8s ease-out 0.1s backwards;
}

.hero-title .line {
  display: block;
}

.hero-title .highlight {
  color: var(--color-accent);
  position: relative;
  display: inline-block;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 0.1em;
  left: 0;
  width: 100%;
  height: 0.15em;
  background: var(--color-accent);
  opacity: 0.3;
  border-radius: 4px;
}

/* Hero Subtitle */
.hero-subtitle {
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 2.5rem;
  line-height: 1.6;
  color: var(--color-dark);
  opacity: 0.7;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* Hero Actions */
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.btn-primary {
  background: var(--color-dark);
  color: white;
  border: 2px solid var(--color-dark);
}

.btn-primary:hover {
  background: transparent;
  color: var(--color-dark);
}

.btn-outline-dark {
  background: transparent;
  border: 2px solid var(--color-dark);
  color: var(--color-dark);
}

.btn-outline-dark:hover {
  background: var(--color-dark);
  color: white;
}

.btn-lg {
  padding: 1.25rem 2.5rem;
  font-size: 1.1rem;
}


/* Fade In Up Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Legacy hero-label for compatibility */
.hero-label {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 2rem;
  display: block;
  opacity: 0.6;
}

.hero-lead {
  font-size: var(--text-h3);
  font-weight: 300;
  max-width: 800px;
  margin-bottom: 3rem;
  line-height: 1.4;
  color: var(--color-secondary);
}

/* === LABELS === */
.label-pill {
  border: 1px solid currentColor;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 2rem;
  display: inline-block;
  opacity: 0.7;
}

/* === SERVICES / CARDS === */
.services-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 4rem;
}

.service-item {
  background-color: var(--color-light);
  padding: 2.5rem;
  border-radius: 30px;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid transparent;
}

.service-item:hover {
  background-color: white;
  box-shadow: 8px 8px 0 var(--color-accent); /* 80s retro hard shadow */
  border-color: var(--color-dark);
  transform: translate(-4px, -4px);
}

.service-icon {
  margin-bottom: 2rem;
  color: var(--color-accent);
}
.service-icon .lucide {
  width: 48px;
  height: 48px;
}

.service-item h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
}

.service-tag {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
  min-height: 2.4em; /* Ensure 2 lines of space for tags */
}

/* Description text */
.service-content > p:not(.service-tag) {
  min-height: 10rem; /* Increased to ensure alignment for 4-line texts */
  margin-bottom: 0;
}

.service-list {
  list-style: none;
  margin-top: auto;
  padding-top: 2rem;
}

.service-list li {
  padding: 0.5rem 0;
  border-top: 1px solid rgba(0,0,0,0.05);
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.8;
}

.service-arrow {
  position: absolute;
  top: 2rem;
  right: 2rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.service-item:hover .service-arrow {
  opacity: 1;
}

/* === METHOD SECTION === */
.grid-2-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.method-text h2 {
  font-size: var(--text-h1);
  line-height: 0.9;
  margin-bottom: 2rem;
}

.usp-row {
  display: flex;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(0,255,255,0.1); /* Tweaked for dark bg */
}

.usp-number {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-serif);
  opacity: 0.4;
  color: var(--color-accent);
}

.usp-row h4 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.usp-row p {
  opacity: 0.8;
}

/* Partner Logos */
.partners-logos img {
  height: 120px !important; /* Force bigger size */
  max-width: 250px;
  object-fit: contain;
}

/* === FOOTER === */
.footer-cta-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem 0;
}

.footer-cta h2 {
  font-size: var(--text-h1);
  margin-bottom: 2rem;
}

.footer-cta p {
  font-size: 1.5rem;
  max-width: 600px;
  margin-bottom: 3rem;
  opacity: 0.8;
}

.main-footer {
  width: 100%;
  padding: 4rem var(--spacing-container);
  border-top: 1px solid var(--color-border-light);
  background: rgba(0,0,0,0.2);
}

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

.footer-col h5 {
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0.5;
}

.footer-col a, .footer-col p {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer-col a:hover {
  opacity: 1;
}

.copyright {
  grid-column: 1 / -1;
  margin-top: 4rem;
  opacity: 0.3;
  font-size: 0.9rem;
}

/* === RESPONSIVE === */

/* Large tablets and small desktops */
@media (max-width: 1200px) {
  .hero-container {
    gap: 4rem;
  }
}

/* Tablets */
@media (max-width: 1024px) {
  .grid-2-cols {
    grid-template-columns: 1fr;
  }

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

  /* Disable sticky stacking on mobile */
  .section-card {
    position: relative;
    min-height: auto;
  }

  /* Hero responsive */
  .hero-section {
    min-height: auto;
    padding: 8rem 0 4rem;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-left {
    max-width: 100%;
  }

  .hero-right {
    padding-bottom: 0;
  }

  .hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    letter-spacing: -2px;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
    max-width: 600px;
  }

  .hero-actions {
    justify-content: center;
  }

  /* Header mobile - only show hamburger button */
  header {
    position: fixed;
    background: transparent;
    padding: 1rem;
  }

  .header-inner {
    justify-content: flex-end;
  }

  /* Hide logo and other elements in header on mobile */
  header .logo,
  header .desktop-nav,
  header .header-actions .btn,
  header .header-actions .lang-switcher {
    display: none;
  }

  /* Mobile hamburger menu - always visible */
  .mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: var(--color-dark);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding: 10px;
  }

  .mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
  }

  .mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Mobile nav overlay */
  .mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--color-dark);
    z-index: 998;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .mobile-nav.active {
    opacity: 1;
    visibility: visible;
  }

  .mobile-nav-logo {
    margin-bottom: 3rem;
  }

  .mobile-nav-logo img {
    height: 80px;
  }

  .mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .mobile-nav-links a {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
  }

  .mobile-nav-lang {
    margin-top: 3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .mobile-nav-lang .lang-text-btn {
    color: white;
    font-size: 1rem;
  }

  .mobile-nav-lang .lang-sep {
    color: white;
  }

  /* Cookie banner mobile */
  .cookie-banner {
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.5rem;
    text-align: center;
  }

  .cookie-actions {
    width: 100%;
    justify-content: center;
  }
}

/* Small tablets and large phones */
@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(2rem, 10vw, 3.5rem);
    letter-spacing: -1px;
  }

  .hero-badge {
    font-size: 0.65rem;
    padding: 0.5rem 1rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-col {
    padding: 1rem 0;
  }

  .services-track {
    grid-template-columns: 1fr;
  }

  .service-item {
    padding: 2rem;
  }

  .service-content > p:not(.service-tag) {
    min-height: auto;
  }

  .partners-logos {
    gap: 2rem !important;
  }

  .partners-logos img {
    height: 80px !important;
  }
}

/* Mobile phones */
@media (max-width: 480px) {
  .hero-section {
    padding: 6rem 0 3rem;
  }

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

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .btn-lg {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  .method-text h2,
  .footer-cta h2 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .usp-row {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .usp-number {
    margin: 0 auto;
  }
}

/* === LANGUAGE SWITCHER === */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-right: 1rem;
}

.lang-sep {
  opacity: 0.5;
  font-size: 0.9rem;
}

.lang-text-btn {
  background: transparent;
  border: none;
  color: inherit;
  padding: 0.25rem;
  font-family: var(--font-main);
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  opacity: 0.7;
}

.lang-text-btn:hover {
  opacity: 1;
}

.lang-text-btn.active {
  font-weight: 800;
  opacity: 1;
  text-decoration: underline;
}

/* === COOKIE BANNER === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: white;
  padding: 1.5rem 4rem;
  z-index: 1000;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  transition: transform 0.4s var(--ease-out);
}

.cookie-banner.hidden {
  transform: translateY(100%);
  pointer-events: none;
}

.cookie-banner p {
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--color-dark);
}

.cookie-actions {
  display: flex;
  gap: 1rem;
}

.cookie-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.cookie-links a {
  text-decoration: underline;
  opacity: 0.6;
}
.cookie-links a:hover {
  opacity: 1;
}
