/* Reset */
/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:wght@300;400;700&display=swap');
@import url('https://fonts.cdnfonts.com/css/satoshi');

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

body {
  font-family: 'Satoshi', sans-serif;
  color: #111;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Source Serif 4', serif;
  font-weight: 400;
}

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

ul {
  list-style: none;
}

/* ----------------------------- */
/* Content animation inside .kontener */
/* ----------------------------- */
.kontener .site-header,
.kontener .hero-top h1,
.kontener .hero-intro,
.kontener .hero-bottom {
  opacity: 0;
  transform: translateY(20px);
}

.kontener.loaded .site-header {
  animation: fadeInUp 0.4s ease forwards;
  animation-delay: 0.2s;
}

.kontener.loaded .hero-top h1 {
  animation: fadeInUp 0.4s ease forwards;
  animation-delay: 0.4s;
}

.kontener.loaded .hero-intro {
  animation: fadeInUp 0.4s ease forwards;
  animation-delay: 0.6s;
}

.kontener.loaded .hero-bottom {
  animation: fadeInUp 0.4s ease forwards;
  animation-delay: 0.8s;
}

/* Container */
.kontener {
  display: flex;
  flex-direction: column;
}

.container {
  width: 95vw;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.8);
  flex-shrink: 0;
  position: sticky;
  top: 10px;
  z-index: 9999;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  height: 60px;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  border-radius: 25px;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 100%;
  width: 100%;
}

.logo {
  width: 150px;
  height: auto;
  display: block;
}

.site-header .container>a:first-child {
  display: flex;
  align-items: center;
  height: 100%;
}

.site-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2rem;
}

.site-nav a {
  font-weight: 500;
  font-size: 0.8rem;
  color: #6b7280;
}

.site-nav a:hover {
  color: #111;
}

.contact-link {
  font-weight: 500;
  font-size: 0.8rem;
  color: #111;
}

.mobile-menu {
  display: none;
}

.burger {
  display: none;
}

.site-nav a.is-active,
.contact-link.is-active {
  font-weight: 700;
  color: #000;
}


/* About */
span {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: #6b7280;
}

/* Sticky container styles removed */
.sticky-container {
  display: none;
}

.about {
  position: relative;
  z-index: 10;
  flex: 1;
  background-color: #fff;
  display: grid;
  /* Matching case-studies layout */
  grid-template-columns: 1fr 1.6fr;
  align-items: center;
  align-content: center;
  justify-content: center;
  gap: 2rem;
  padding: 8rem 1.5rem;
  margin: 0 auto !important;
  max-width: 1300px !important;
  width: 95vw !important;
  overflow: visible;
  min-height: 700px;
}

.about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background-image: linear-gradient(to right, #eef0f3 1px, transparent 1px);
  background-size: calc(100%/6) 100%;
  z-index: 0;
}

.about>* {
  position: relative;
  z-index: 1;
}

.about h2 .Who {
  display: block;
  margin-bottom: -0.8rem;
}

.about h2 {
  font-size: 2.5rem;
  font-weight: 400;
  color: #111;
  margin-top: 0;
  margin-bottom: 1rem;
}

.about p {
  color: #374151;
  max-width: 100%;
  margin-top: -1.5rem;
}

/* Footer */
/* Footer styles removed to inherit from style.css */
/* Override sticky positioning for this page */
.site-footer {
  position: relative !important;
  top: auto !important;
}

/* Services */
.services {
  padding: 4rem 0;
  margin-bottom: 4rem;
  height: 100vh;
  align-content: center;
}

.services-list li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.75rem 0;
  font-weight: 500;
  color: #111;
}

.services-list li:last-child {
  border-bottom: none;
}

.services-intro {
  color: #9CA3AF;
  max-width: 600px;
  margin: 0 auto 5rem;
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.3;
  transition: color 0.6s ease-out;
}

.services-intro--sub {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9em;
  color: inherit;
}

.services-intro.visible {
  color: #111;
}

.services {
  padding: 2rem 0;
  background: #fff;
}

.services-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 500px;
  width: 100%;
}

.service-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
  padding: 1.5rem 0;
  perspective: 800px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

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

.service-left {
  font-size: 0.9rem;
  font-weight: 500;
  color: #111;
  width: 50%;
}

/* --- IMPROVED FLIP --- */
.service-right {
  transform-style: preserve-3d;
  transform-origin: center center;
  transition: transform 0.3s ease;
  font-weight: 500;
  width: 50%;
  position: relative;
  height: 1.5rem;
  text-align: right;
  z-index: 1;
  will-change: transform;
}

.service-right .front,
.service-right .back {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  white-space: nowrap;
  font-size: 0.9rem;
  text-align: right;
}

.service-right .front {
  color: #6b7280;
  transform: rotateX(0deg) translateZ(1px);
}

.service-right .back {
  color: #111;
  font-weight: 400;
  letter-spacing: 0.05em;
  transform: rotateX(180deg);
}

.service-item:hover .service-right {
  transform: rotateX(180deg);
}

.service-item:hover {
  background-color: rgba(0, 0, 0, 0.01);
}

/* Media Queries */
@media (min-width: 1600px) {
  .about {
    padding: 12rem 1.5rem;
    min-height: 900px;
  }
}

@media (max-width: 900px) {
  .container {
    max-width: 100%;
    padding: 0 1rem;
  }

  a {
    text-decoration: none;
    color: #000;
  }

  .site-nav,
  .contact-link {
    display: none;
  }

  .kontener {
    height: auto;
    /* Changed from 105vh */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }

  body.menu-open,
  body.no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }

  /* Mobile Menu Styles are inherited, BUT key z-indices must be overridden */
  .burger {
    display: block;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10001 !important;
    position: fixed !important;
    top: 1.5rem;
    right: 5vw;
    color: #000;
  }

  .mobile-menu {
    z-index: 20005 !important;
    display: block;
    /* Override onas.css global display: none */
  }

  /* Ensure text colors in menu are visible */
  .mobile-menu {
    color: #fff;
  }

  .hero {
    display: flex;
    position: relative;
  }

  .hero-top {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    min-width: 100%;
  }

  .hero-top h1 {
    display: block;
    font-size: 2.1rem;
    width: 170px;
    position: absolute;
    top: 17vh;
    right: 5vw;
    text-align: left;
  }

  .hero-intro {
    position: absolute;
    top: 30vh;
    left: 5vw;
    max-width: 100%;
  }

  .hero-bottom {
    position: absolute;
    min-height: 35vh;
    bottom: 0;
    width: 90vw;
    left: 5vw;
  }

  .hero-bottom .container {
    justify-content: center;
    padding: 2rem 0;
  }

  .cta-button {
    bottom: auto;
    position: absolute;
    right: 5vw;
    color: #000;
    border: none;
  }

  .scroll-down {
    bottom: 1rem;
    left: 5vw;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 3rem 1.5rem;
    height: auto;
  }

  .about h2 .Who {
    margin-bottom: 0.5rem;
  }

  .about h2 {
    font-size: 2rem;
    margin-top: 0;
  }

  .about-content {
    margin-top: 0;
  }

  .sticky-container {
    display: none;
  }

  .services {
    max-width: 90vw;
    overflow: hidden;
    height: auto;
    padding: 2rem 0;
    margin: 0 auto;
    margin-top: 7vh;
  }

  .services-intro {
    font-size: 1.8rem;
    margin-bottom: 8rem;
    font-weight: 500;
  }

  .service-left {
    font-size: 0.7rem;
  }

  .service-right .front,
  .service-right .back {
    font-size: 0.7rem;
  }

  .footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
  }

  .site-footer {
    height: auto;
    min-height: auto;
    max-height: none;
    padding: 4rem 0 2rem;
  }

  .footer-cta .email-link {
    font-size: 1.5rem !important;
    color: #fff !important;
  }

  .footer-bottom {
    width: 100%;
    font-size: 0.75rem;
    opacity: 0.6;
    position: relative;
    bottom: auto;
    text-align: center;
    margin-top: 2rem;
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.onas-cta {
  padding: 4rem 0 5rem;
}

.onas-cta-inner {
  background: #f9fafb;
  border-radius: 12px;
  padding: 3rem 3.5rem;
  max-width: 700px;
}

.onas-cta-inner h2 {
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.onas-cta-inner p {
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.65;
}

@media (max-width: 600px) {
  .onas-cta-inner {
    padding: 2rem 1.5rem;
  }
}
