/* ===========================================================================
   StereoTimo – stereotimo.fi
   Self-contained stylesheet. No external dependencies.
   Palette: text #0c0b41 · accent #d69f89 · separator #0c106e
   =========================================================================== */

/* ---- Self-hosted Open Sans (latin subset, variable) --------------------- */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/opensans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Open Sans";
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/opensans-latin-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Reset / base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html, body { overflow-x: hidden; }

body {
  margin: 0;
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0c0b41;
  line-height: 1.5;
}

h1, h2, h3, h4 { font-family: inherit; margin: 0; font-weight: 400; }

img { max-width: 100%; border: 0; }

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

p { font-size: 20px; text-align: center; margin: 0 0 10px; }

ul { list-style: none; margin: 0; padding: 0; }

/* ---- Layout helpers ----------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

section { padding: 60px 0 90px; }

section > .container > .sec-title,
.sec-title {
  text-align: center;
  font-size: 40px;
  font-weight: 400;
  text-transform: uppercase;
  padding: 30px 0;
  margin: 0 0 40px;
}

/* =========================================================================
   Hero / header
   ========================================================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 480px;
  overflow: hidden;
  background: #000;
}
.hero-bg {
  position: absolute;
  inset: 0;
  display: block;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-title {
  position: absolute;
  bottom: 50%;
  left: 0;
  width: 100%;
  max-width: 1170px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 15px;
  color: #fff;
  text-transform: uppercase;
  font-size: 50px;
  font-weight: 300;
  margin: 0;
}

/* ---- Navbar (sits at bottom of hero, sticks to top on scroll) ----------- */
.navbar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 30;
  padding: 10px 0;
  background: transparent;
  transition: background 0.2s ease;
}
.navbar.is-sticky {
  position: fixed;
  top: 0;
  bottom: auto;
  padding: 5px 0;
  background: #000;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand img {
  width: 200px;
  height: auto;
  display: block;
}
.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}
.nav-links a {
  color: #fff;
  font-size: 13px;
}
.nav-links a:hover { color: #d69f89; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid #888;
  border-radius: 4px;
  padding: 9px 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 4px 0;
}

/* =========================================================================
   Service section
   ========================================================================= */
.service-intro {
  text-align: center;
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 30px;
}
.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.services-grid .item {
  width: 100%;
  text-align: center;
  padding: 0 15px;
  margin-bottom: 30px;
}
.services-grid .item img { width: 200px; height: auto; }
.services-grid h3 {
  font-size: 16px;
  text-transform: uppercase;
  margin: 14px 0 0;
}
.services-grid .item p { line-height: 25px; }
.sep {
  background-color: #0c106e;
  display: inline-block;
  height: 1px;
  margin: 10px 0;
  width: 50px;
}

@media (min-width: 768px) {
  .services-grid .item { width: 25%; }
}

/* =========================================================================
   Parallax emphasize
   ========================================================================= */
.parallax {
  position: relative;
  width: 100%;
  text-align: center;
  padding: 0;
  background-position: 50% 50%;
  background-size: cover;
  background-image: url("../img/background/tablet/02_Background_image_2.jpg");
}
@media (min-width: 768px) {
  .parallax { background-attachment: fixed; }
}
.parallax .container { padding: 90px 15px; }
.parallax p {
  color: #fff;
  text-transform: uppercase;
  font-size: 50px;
  font-weight: 300;
  margin: 0;
}

/* =========================================================================
   Portfolio / gallery
   ========================================================================= */
#portfolio { padding-bottom: 45px; }
#portfolio .video-wrap { text-align: center; margin-bottom: 30px; }
#portfolio .video-wrap iframe {
  max-width: 100%;
  border: 0;
  aspect-ratio: 9 / 16;
  width: 315px;
  height: auto;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
}
.gallery li {
  position: relative;
  width: 100%;
  cursor: pointer;
  overflow: hidden;
}
.gallery li img {
  display: block;
  width: 100%;
  transition: opacity 0.3s ease;
}
.gallery .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 18px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery li:hover .overlay { opacity: 1; }
.gallery li:hover img { opacity: 0.3; }
.gallery .title {
  text-transform: uppercase;
  color: #363636;
  font-size: 16px;
  margin-bottom: 18px;
}
.gallery .excerpt {
  color: #363636;
  font-size: 13px;
  margin-bottom: 24px;
}
.gallery .zoom {
  width: 44px;
  height: 44px;
  border: 1px solid #d69f89;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.gallery .zoom svg { width: 18px; height: 18px; fill: #d69f89; }

@media (min-width: 768px) {
  .gallery li { width: 33.3333%; }
}
@media (min-width: 768px) and (max-width: 991px) {
  .gallery .excerpt { display: none; }
}

/* =========================================================================
   Testimonials
   ========================================================================= */
#testimonial { padding: 40px 0 90px; }
.slider { position: relative; max-width: 83.333%; margin: 0 auto; }
.slides { position: relative; }
.slide {
  display: none;
  text-align: center;
}
.slide.is-active { display: block; }
.slide .voice {
  font-size: 20px;
  font-weight: 300;
  margin-bottom: 35px;
}
.slide .position {
  font-size: 20px;
  font-weight: 600;
  font-style: italic;
  margin-bottom: 40px;
}
.slider-nav {
  position: absolute;
  top: 40%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.slider-nav button {
  pointer-events: auto;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: #d69f89;
  padding: 10px;
  line-height: 0;
}
.slider-nav svg { width: 28px; height: 28px; fill: currentColor; }

@media (max-width: 767px) {
  .slide .voice { font-size: 20px; }
  .slide .position { font-size: 16px; margin-bottom: 20px; }
}

/* =========================================================================
   Contact footer
   ========================================================================= */
#contact {
  padding: 70px 0 40px;
  background-image: url("../img/background/tablet/04_Background_image_4.jpg");
  background-size: cover;
  background-position: center;
}
.social {
  display: flex;
  justify-content: center;
  gap: 24px;
}
.social a {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}
.social svg { width: 34px; height: 34px; fill: #fff; }
.social a:hover svg { fill: #d69f89; }

/* =========================================================================
   Lightbox
   ========================================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  display: block;
}
.lightbox button {
  position: absolute;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  padding: 16px;
  line-height: 0;
}
.lightbox .lb-close { top: 10px; right: 14px; font-size: 34px; }
.lightbox .lb-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 6px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-prev svg, .lightbox .lb-next svg { width: 38px; height: 38px; fill: #fff; }

/* =========================================================================
   Responsive – navbar collapse
   ========================================================================= */
@media (max-width: 767px) {
  .hero-title { font-size: 30px; bottom: 35%; padding-left: 50px; }
  .sec-title { font-size: 30px; }
  .parallax p { font-size: 30px; }
  .brand img { width: 260px; }

  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    gap: 0;
    background: #000;
    padding: 8px 0;
  }
  .navbar.nav-open .nav-links { display: flex; }
  .nav-links a { display: block; padding: 10px 15px; width: 100%; }
}
