/*
Theme Name: AP Building
Theme URI: https://apbuilding.veebihai.com
Author: AP Building OÜ
Description: Custom theme for AP Building — Estonian-Swedish custom furniture, interior design & kitchen appliances.
Version: 1.10.1
Text Domain: apbuilding
*/

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

body {
  font-family: 'Montserrat', sans-serif;
  background: #f5f2f0;
  min-height: 100vh;
}

/* ---- Navbar ---- */
.navbar {
  display: flex;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.navbar.hidden {
  transform: translateY(-100%);
}

.navbar-content {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 60px;
  background: rgba(245, 245, 245, 0.5);
  position: relative;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.nav-links a:hover { color: #ED7B33; }

/* Language switcher — flag icons */
.lang-switch {
  position: absolute;
  right: 60px;
  display: flex;
  gap: 6px;
  align-items: center;
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 18px;
  border-radius: 2px;
  overflow: hidden;
  opacity: 0.55;
  transition: opacity 0.2s ease;
  line-height: 0;
}

.lang-switch a:hover,
.lang-switch a.active {
  opacity: 1;
}

.lang-switch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  display: flex;
  width: 100%;
  height: 100vh;
  padding: 0;
}

.hero-left {
  position: relative;
  width: 50%;
  height: 100%;
  flex-shrink: 0;
}

.hero-right {
  width: 50%;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 40px 60px 40px 60px;
  margin-left: 0;
  padding-top: calc(35vh - 55px);
}

.hero-heading {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 2.4vw;
  line-height: 1.2;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

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

.hero-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.hero-before {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Hero after image layer — hidden, static only */
.hero-after {
  display: none;
}

.hero-word-spacer,
.hero-word-after {
  display: none;
}

.hero-logo {
  width: 210px;
  height: auto;
  margin-bottom: 16px;
}

.hero-tagline {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 4px;
}

.hero-right-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  width: 100%;
}

.hero-cta {
  display: inline-block;
  padding: 10px 24px;
  background: transparent;
  color: #666;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid #ccc;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.hero-cta:hover {
  border-color: #ED7B33;
  color: #ff7112;
}

/* ---- Mirrored Hero ---- */
.hero.mirrored {
  flex-direction: row-reverse;
}

.hero.mirrored .hero-before {
  object-position: center center;
}

.hero.mirrored .hero-after {
  background-position: center center;
}

.hero.mirrored .hero-right {
  margin-left: 0;
  padding: 40px 60px 40px 60px;
  padding-top: calc(35vh - 55px);
}

.hero.mirrored .hero-right-content {
  align-items: flex-start;
  text-align: left;
}

.hero-description {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  max-width: 480px;
}

/* ---- Services Section ---- */
.services {
  padding: 100px 120px;
  background: #f5f2f0;
  position: relative;
  overflow: hidden;
}

.services-header {
  max-width: 780px;
  margin: 0 auto 80px;
  text-align: center;
  position: relative;
}

.services-title-wrap {
  position: relative;
  display: inline-block;
}

.services-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 24px;
  color: #333;
  text-align: center;
  margin-bottom: 16px;
}

.services-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.8;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.services-title-after {
  display: none;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4/3;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover img {
  transform: scale(1.08);
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
  transition: background 0.4s ease;
  pointer-events: none;
}

.service-card:hover::after {
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0.3) 100%);
}

.service-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.service-img-label {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.3s ease;
}

.service-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
  margin-top: 10px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.4s ease, margin 0.4s ease;
}

.service-card:hover .service-text {
  max-height: 200px;
  opacity: 1;
  margin-top: 10px;
}

.service-card:hover .service-img-label {
  transform: translateY(-4px);
}

.service-link {
  display: inline-block;
  margin-top: 12px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: #ff7112;
  text-decoration: none;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.4s ease;
}

.service-card:hover .service-link {
  max-height: 40px;
  opacity: 1;
}

/* ---- Testimonials ---- */
.testimonials {
  position: relative;
  background: #111;
  padding: 120px 60px;
  overflow: hidden;
}

.testimonials-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.testimonial-row {
  display: flex;
  align-items: center;
  gap: 40px;
}

.testimonial-slides-wrap {
  position: relative;
  min-height: 260px;
  flex: 1;
}

.testimonial-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.testimonial-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.testimonials-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 24px;
  color: #fff;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 60px;
}

.testimonial-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
  font-style: italic;
  max-width: 720px;
  margin-bottom: 40px;
}

.testimonial-author {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.15);
}

.testimonial-author-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.testimonial-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.testimonial-role {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.testimonial-arrow {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.2);
  background: transparent;
  color: rgba(255,255,255,0.5);
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-arrow:hover {
  border-color: #ED7B33;
  color: #ff7112;
  background: rgba(222, 129, 69, 0.08);
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.3);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.testimonial-dot.active {
  background: #ED7B33;
  border-color: #ED7B33;
  transform: scale(1.3);
}

.testimonial-progress {
  width: 120px;
  height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 1px;
  overflow: hidden;
  margin: 20px auto 0;
}

.testimonial-progress-bar {
  height: 100%;
  width: 0%;
  background: #ED7B33;
  border-radius: 1px;
}

/* ---- Footer ---- */
.footer {
  background: #111;
  color: #fff;
  padding: 80px 120px 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {
  max-width: 320px;
}

.footer-brand img {
  width: 200px;
  height: auto;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.7;
  color: #fff;
}

.footer-offices {
  display: flex;
  gap: 50px;
}

.footer-office h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ff7112;
  margin-bottom: 20px;
}

.footer-office p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 2;
  color: #fff;
}

.footer-office a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-office a:hover {
  color: #ff7112;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ff7112;
  margin-bottom: 6px;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav li {
  list-style: none;
}

.footer-nav a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 14px;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: #ff7112;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
}

.footer-bottom p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

.footer-reg {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  display: flex;
  gap: 24px;
}

/* ---- Page Hero (shared across inner pages, cream theme) ---- */
.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  background: #f5f2f0;
  padding: 168px 60px 60px; /* 68px navbar + 100px breathing room */
  text-align: center;
}

.page-hero__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 42px;
  line-height: 1.23;
  color: #2e2d2d;
  text-transform: none;
  letter-spacing: normal;
  margin-bottom: 10px;
}

.page-hero__subtitle {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 17px;
  letter-spacing: normal;
  color: #777;
  text-transform: none;
}

/* ---- About / Meist ---- */
.about-intro {
  padding: 100px 120px;
  background: #f5f2f0;
}

.about-intro__inner {
  display: flex;
  align-items: center;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.about-intro__text {
  flex: 1;
}

.about-intro__text h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 24px;
  color: #333;
  margin-bottom: 24px;
}

.about-intro__text p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.8;
  color: #444;
}

.about-intro__image {
  flex-shrink: 0;
  width: 280px;
}

.about-intro__image img {
  width: 100%;
  height: auto;
}

.about-vision {
  padding: 80px 120px;
  background: #f5f2f0;
  text-align: center;
}

.about-vision__inner {
  max-width: 800px;
  margin: 0 auto;
}

.about-vision__inner h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 24px;
  color: #333;
  margin-bottom: 24px;
}

.about-vision__inner p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.8;
  color: #444;
}

.about-usps {
  padding: 100px 120px;
  background: #f5f2f0;
}

.about-usps__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.about-usps__inner h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 24px;
  color: #333;
  text-align: center;
  margin-bottom: 60px;
}

.usps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.usp-card {
  padding: 40px;
  background: #f5f2f0;
  border-radius: 8px;
  border-left: 4px solid #ED7B33;
}

.usp-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #333;
  margin-bottom: 12px;
}

.usp-card p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  color: #555;
}

/* ---- Teenused Page ---- */
.services-page {
  padding: 100px 120px;
  background: #f5f2f0;
}

.services-page__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.services-page__intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 80px;
}

.services-page__intro p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.8;
  color: #444;
}

.service-detail {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 60px 0;
  border-bottom: 1px solid #eee;
}

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

.service-detail.reversed {
  flex-direction: row-reverse;
}

.service-detail__image {
  flex-shrink: 0;
  width: 45%;
  border-radius: 8px;
  overflow: hidden;
}

.service-detail__image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.service-detail__content {
  flex: 1;
}

.service-detail__content h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 20px;
  color: #333;
  margin-bottom: 16px;
}

.service-detail__content p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: #444;
}

/* ---- Projektid Archive ---- */
.projects-archive {
  padding: 100px 120px;
  background: #f5f2f0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 16/10;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover img {
  transform: scale(1.06);
}

.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
  pointer-events: none;
}

.project-card__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 30px;
}

.project-card__info h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  margin-bottom: 8px;
}

.project-card__info p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

/* ---- Single Project ---- */
.single-project {
  padding: 100px 120px;
  background: #f5f2f0;
}

.single-project__inner {
  max-width: 900px;
  margin: 0 auto;
}

.single-project__content {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 40px;
}

.single-project__meta {
  display: flex;
  gap: 40px;
  padding: 30px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  margin-bottom: 40px;
}

.single-project__meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.single-project__meta-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ff7112;
}

.single-project__meta-value {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: #333;
}

.single-project__gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.single-project__gallery img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 4px;
}

.single-project__back {
  display: inline-block;
  margin-top: 40px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #ff7112;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.single-project__back:hover {
  color: #333;
}

/* ---- Kontakt Page ---- */
.contact-section {
  padding: 100px 120px;
  background: #f5f2f0;
}

.contact-section__inner {
  display: flex;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info {
  flex: 1;
}

.contact-info h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 22px;
  color: #333;
  margin-bottom: 40px;
}

.contact-office {
  margin-bottom: 40px;
}

.contact-office h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ff7112;
  margin-bottom: 12px;
}

.contact-office p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 2;
  color: #444;
}

.contact-office a {
  color: #444;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-office a:hover {
  color: #ff7112;
}

.contact-form {
  flex: 1;
}

.contact-form h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 22px;
  color: #333;
  margin-bottom: 40px;
}

/* ---- Blog Archive ---- */
.blog-archive {
  padding: 100px 120px;
  background: #f5f2f0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-card {
  text-decoration: none;
  color: inherit;
  display: block;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.blog-card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.blog-card__content {
  padding: 24px;
}

.blog-card__date {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 12px;
  color: #ff7112;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.blog-card__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #333;
  margin-bottom: 8px;
  line-height: 1.4;
}

.blog-card__excerpt {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}

.blog-none {
  text-align: center;
  padding: 60px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 18px;
  color: #888;
}

.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 60px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.blog-pagination a,
.blog-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.blog-pagination a {
  color: #333;
  border: 1.5px solid #ddd;
}

.blog-pagination a:hover {
  border-color: #ED7B33;
  color: #ff7112;
}

.blog-pagination .current {
  background: #ED7B33;
  color: #fff;
  border: 1.5px solid #ED7B33;
}

/* ---- Single Post ---- */
.single-post {
  padding: 100px 120px;
  background: #f5f2f0;
}

.single-post__inner {
  max-width: 800px;
  margin: 0 auto;
}

.single-post__featured {
  margin-bottom: 40px;
  border-radius: 8px;
  overflow: hidden;
}

.single-post__featured img {
  width: 100%;
  height: auto;
  display: block;
}

.single-post__content {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.8;
  color: #444;
}

.single-post__content h2,
.single-post__content h3,
.single-post__content h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #333;
  margin: 32px 0 16px;
}

.single-post__content p {
  margin-bottom: 20px;
}

.single-post__content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* =========================================================
   Classic page template — split-layout sections
   Classes prefixed with .cl- to avoid collisions
   Matches live apbuilding.ee color palette:
   - Orange accent:  #ff7112
   - Cream bg:       #f5f2f0
   - Dark footer:    #2F3640
   - Body text:      #2e2d2d
   - Muted text:     #a6a3a3
========================================================= */

/* Hide the theme's default footer on this page (own contact section) */
.klassikaline-body .footer { display: none; }

/* Custom navbar */
.cl-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: #f5f2f0;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.cl-navbar__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cl-nav-links {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 36px;
}

.cl-nav-links li { list-style: none; }

.cl-nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: #231f20;
  transition: color 0.2s ease;
}

.cl-nav-links a:hover { color: #757172; }

.cl-lang-switch {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 4px;
  align-items: center;
}

.cl-lang-switch a {
  display: inline-flex;
  width: 18px;
  height: 12px;
  border-radius: 2px;
  overflow: hidden;
  opacity: 0.65;
  transition: opacity 0.2s ease;
  line-height: 0;
}

.cl-lang-switch a:hover,
.cl-lang-switch a.active { opacity: 1; }

.cl-lang-switch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hero split = full viewport height, navbar floats over the top */
.cl-hero-split {
  min-height: 100vh !important;
  height: 100vh;
  box-sizing: border-box;
}

.cl-hero-split .cl-split__media,
.cl-hero-split .cl-split__content {
  height: 100vh;
  min-height: 100vh;
}

.cl-hero-split .cl-split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cl-hero-split .cl-split__content {
  align-items: stretch;
  padding: 108px 60px 60px; /* top = 68 navbar + 40 breathing room */
}

.cl-hero-split .cl-split__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* ---- Split section (image + content side by side) ---- */
.cl-split {
  display: flex;
  width: 100%;
  min-height: 600px;
}

.cl-split--mirror {
  flex-direction: row;
}

.cl-split__media {
  flex: 1 1 50%;
  min-width: 0;
  overflow: hidden;
}

.cl-split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cl-split__content {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  padding: 60px 80px;
}


.cl-split__content--cream {
  background: #f5f2f0;
}

.cl-split__inner {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.cl-split__inner--center {
  text-align: center;
}

/* ---- Brand block in hero right ---- */
.cl-brand-logo {
  width: 380px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 0;
}

.cl-brand-tagline {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 19px;
  line-height: 1.55;
  letter-spacing: normal;
  text-align: center;
  text-transform: uppercase;
  color: #d67a03;
  margin: 14px 0 0 0;
}

.cl-hero-split .cl-brand-heading {
  margin-top: auto;
  margin-bottom: auto;
}

.cl-brand-heading {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 50px;
  line-height: 1.75;
  color: #2e2d2d;
  text-transform: uppercase;
  letter-spacing: normal;
  margin: 0;
  text-align: left;
}

/* Stairstep: each line progressively indented to the right */
.cl-brand-heading__static {
  display: block;
  text-align: left;
}

.cl-brand-heading__typed {
  display: block;
  text-align: left;
  min-height: 1.2em;
  line-height: 1;
  padding-left: 120px;
}

.cl-brand-heading > .cl-brand-heading__static:last-child {
  padding-left: 240px;
}

.cl-brand-heading__word {
  color: #2e2d2d;
  font-weight: 300;
  white-space: nowrap;
}

.cl-brand-heading__cursor {
  display: inline-block;
  width: 2px;
  height: 0.75em;
  background: #1a1a1a;
  margin-left: 4px;
  vertical-align: baseline;
  animation: clBlink 1s steps(2, start) infinite;
}

@keyframes clBlink {
  50% { opacity: 0; }
}

/* ---- Welcome section ---- */
.cl-welcome-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 45px;
  line-height: 1.23;
  color: #000;
  margin: 0 0 14px;
  display: inline-block;
  position: relative;
}

.cl-welcome-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 2px;
  background: #ff7112;
  margin-top: 12px;
}

.cl-welcome-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: #000;
  margin: 28px 0 40px;
}

.cl-welcome-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 250px;
  height: 55px;
  padding: 0;
  background: transparent;
  color: #ff7112;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
  border: 2px solid #ff7112;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.cl-welcome-btn:hover {
  background: #ff7112;
  color: #fff;
}

/* ---- Services grid ---- */
.cl-services {
  padding: 135px 60px 165px;
  background: #f5f2f0;
}

.cl-services__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.cl-services__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 42px;
  line-height: 1.23;
  color: #000;
  text-align: center;
  margin-bottom: 80px;
  text-transform: none;
  letter-spacing: normal;
}

.cl-services__grid {
  display: grid;
  grid-template-columns: repeat(3, 360px);
  justify-content: center;
  gap: 80px 40px;
}

.cl-service {
  display: flex;
  flex-direction: column;
  width: 360px;
  text-decoration: none;
  color: inherit;
}

.cl-service:hover .cl-service__imgwrap img {
  transform: scale(1.04);
}

.cl-service__imgwrap {
  position: relative;
  width: 360px;
  height: 300px;
  overflow: hidden;
  background: #f5f2f0;
}

.cl-service__imgwrap img {
  transition: transform 0.4s ease;
}

.cl-service__imgwrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cl-service__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 20px;
  background: rgba(61, 61, 61, 0.90);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: normal;
  text-transform: none;
}

.cl-service__body {
  padding: 35px 0 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cl-service__body p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  color: #000;
  margin: 0;
}

.cl-service__link {
  display: inline-block;
  margin-top: 18px;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #000;
  text-decoration: none;
  align-self: flex-start;
}

.cl-service__link:hover {
  color: #ff7112;
}

/* ---- Dark contact footer ---- */
.cl-contact {
  padding: 50px 60px;
  background: #2F3640;
  color: #fff;
}

.cl-contact__inner {
  max-width: 1180px;
  margin: 0 auto;
}

.cl-contact__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 30px;
  line-height: 1.3;
  color: #fff;
  margin: 0 0 4px;
  letter-spacing: normal;
}

.cl-contact__subtitle {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 28px;
}

.cl-contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 28px;
}

.cl-contact__col h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.5;
  color: #fff;
  margin: 0 0 10px;
  letter-spacing: normal;
}

.cl-contact__col p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.65;
  color: #fff;
  margin: 0;
}

.cl-contact__col a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cl-contact__col a:hover {
  color: #ff7112;
}

.cl-contact__addr {
  color: #fff !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  font-weight: 300 !important;
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .cl-services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cl-contact__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .cl-split {
    flex-direction: column;
    min-height: 0;
  }
  .cl-split--mirror {
    flex-direction: column-reverse;
  }
  .cl-split__media {
    min-height: 360px;
  }
  .cl-split__content {
    padding: 60px 32px;
  }
  .cl-brand-heading {
    font-size: 28px;
  }
  .cl-brand-tagline {
    margin-bottom: 48px;
  }
}

@media (max-width: 600px) {
  .cl-services {
    padding: 60px 24px;
  }
  .cl-services__grid {
    grid-template-columns: 1fr;
  }
  .cl-contact {
    padding: 60px 24px;
  }
  .cl-contact__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .cl-brand-logo {
    width: 180px;
  }
}

/* =========================================================
   Teenused archive + single (service pages)
========================================================= */

/* Archive grid uses the same .cl-service look as the homepage */
.services-archive {
  padding: 80px 60px 120px;
  background: #f5f2f0;
}

.services-archive__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.services-archive__grid {
  display: grid;
  grid-template-columns: repeat(3, 360px);
  justify-content: center;
  gap: 80px 40px;
}

.services-archive__grid .cl-service {
  text-decoration: none;
  color: inherit;
}

.services-archive__grid .cl-service:hover .cl-service__label {
  background: rgba(255, 113, 18, 0.92);
}

/* Single service page */
.single-teenus {
  padding: 80px 60px 120px;
  background: #f5f2f0;
}

.single-teenus__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.single-teenus__content {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: #2e2d2d;
  margin-bottom: 50px;
  max-width: 800px;
}

.single-teenus__content p {
  margin: 0 0 16px;
}

.single-teenus__meta {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 24px;
  background: #fff;
  border-left: 3px solid #ff7112;
  margin-bottom: 50px;
}

.single-teenus__meta-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff7112;
}

.single-teenus__meta-value {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #2e2d2d;
}

.single-teenus__gallery-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 24px;
  color: #2e2d2d;
  margin: 0 0 30px;
}

.single-teenus__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.single-teenus__gallery-item {
  display: block;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 4 / 3;
  background: #ece8e3;
}

.single-teenus__gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.single-teenus__gallery-item:hover img {
  transform: scale(1.04);
}

.single-teenus__back {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ff7112;
  text-decoration: none;
}

.single-teenus__back:hover {
  color: #2e2d2d;
}

@media (max-width: 900px) {
  .services-archive__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .single-teenus__gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services-archive__grid,
  .single-teenus__gallery {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Lightbox gallery
========================================================= */
button.cl-gallery-trigger,
.cl-gallery-trigger {
  background: transparent !important;
  border: 0 !important;
  outline: 0;
  padding: 0 !important;
  margin: 18px 0 0 !important;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #2e2d2d;
  align-self: flex-start;
  text-align: left;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  box-shadow: none;
  transition: color 0.2s ease;
}

.cl-gallery-trigger:hover,
.cl-gallery-trigger:focus {
  color: #ff7112;
  outline: 0;
}

.cl-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cl-lightbox.is-open {
  display: flex;
  opacity: 1;
}

.cl-lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.92);
  cursor: pointer;
}

.cl-lightbox__stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 100px;
  box-sizing: border-box;
  z-index: 2;
}

.cl-lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 2px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cl-lightbox__loader {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #ff7112;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
  animation: cl-spin 0.9s linear infinite;
  pointer-events: none;
}

.cl-lightbox__loader.is-active {
  opacity: 1;
}

@keyframes cl-spin {
  to { transform: rotate(360deg); }
}

.cl-lightbox__close,
.cl-lightbox__nav {
  position: absolute;
  z-index: 3;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  transition: all 0.2s ease;
}

.cl-lightbox__close {
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  font-size: 26px;
  line-height: 1;
  border-radius: 50%;
}

.cl-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 22px;
}

.cl-lightbox__nav--prev { left: 30px; }
.cl-lightbox__nav--next { right: 30px; }

.cl-lightbox__close:hover,
.cl-lightbox__nav:hover {
  border-color: #ff7112;
  color: #ff7112;
  background: rgba(255, 113, 18, 0.08);
}

.cl-lightbox__caption {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 20px;
  text-align: center;
}

.cl-lightbox__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: #fff;
  letter-spacing: 0.03em;
}

.cl-lightbox__counter {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 700px) {
  .cl-lightbox__stage { padding: 60px 16px; }
  .cl-lightbox__nav { width: 44px; height: 44px; font-size: 18px; }
  .cl-lightbox__nav--prev { left: 12px; }
  .cl-lightbox__nav--next { right: 12px; }
  .cl-lightbox__close { top: 14px; right: 14px; }
}

/* =========================================================
   Klassikaline page — tablet + mobile responsive
========================================================= */

/* Hamburger button (hidden on desktop) */
.cl-hamburger {
  display: none;
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  z-index: 60;
}

.cl-hamburger span {
  position: absolute;
  left: 6px;
  right: 6px;
  height: 2px;
  background: #231f20;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.cl-hamburger span:nth-child(1) { top: 12px; }
.cl-hamburger span:nth-child(2) { top: 18px; }
.cl-hamburger span:nth-child(3) { top: 24px; }

/* Mobile menu overlay (hidden by default) */
.cl-mobile-menu {
  position: fixed;
  inset: 0;
  background: #f5f2f0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  border: 8px solid #2F3640;
  box-sizing: border-box;
}

.cl-mobile-menu.is-open {
  display: flex;
}

.cl-mobile-menu__close {
  position: absolute;
  top: 26px;
  right: 26px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  font-size: 38px;
  font-weight: 300;
  line-height: 1;
  color: #231f20;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
}

.cl-mobile-menu__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.cl-mobile-menu__links li { list-style: none; }

.cl-mobile-menu__links a {
  font-family: 'Montserrat', sans-serif;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ff7112;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.cl-mobile-menu__links a:hover {
  opacity: 0.75;
}

body.cl-menu-open {
  overflow: hidden;
}

/* =========================================================
   Tablet + mobile breakpoint (< 1024px)
========================================================= */
@media (max-width: 1023px) {

  /* Navbar: show hamburger, hide inline menu, flags stay on left */
  .cl-nav-links { display: none; }
  .cl-hamburger { display: block; }
  .cl-lang-switch {
    position: static;
    transform: none;
    margin: 0;
    gap: 8px;
  }
  .cl-navbar__inner {
    justify-content: flex-start;
    padding: 14px 24px;
  }

  /* Hero stacks vertically: content first (logo + heading) then image */
  .cl-hero-split {
    flex-direction: column !important;
    height: auto !important;
    min-height: 0 !important;
  }
  .cl-hero-split .cl-split__media,
  .cl-hero-split .cl-split__content {
    width: 100%;
    flex: 1 1 auto;
    height: auto !important;
    min-height: 0 !important;
  }
  .cl-hero-split .cl-split__content {
    order: 1;
    padding: 90px 24px 30px;
  }
  .cl-hero-split .cl-split__media {
    order: 2;
    min-height: 320px;
  }
  .cl-hero-split .cl-split__media img {
    width: 100%;
    height: 360px;
    object-fit: cover;
  }
  .cl-brand-logo {
    width: 220px;
    margin: 0 auto;
  }
  .cl-brand-tagline {
    font-size: 14px;
    letter-spacing: 0.15em;
    margin-top: 10px;
  }
  .cl-brand-heading {
    font-size: 32px;
    line-height: 1.6;
    text-align: left;
    margin: 50px 0 30px;
  }
  .cl-brand-heading__static,
  .cl-brand-heading__typed {
    text-align: left;
  }
  .cl-brand-heading__typed { padding-left: 50px; }
  .cl-brand-heading > .cl-brand-heading__static:last-child { padding-left: 100px; }

  /* Welcome (split--mirror): content first, image second */
  .cl-split--mirror {
    flex-direction: column !important;
    min-height: 0;
  }
  .cl-split--mirror .cl-split__content {
    order: 1;
    padding: 50px 30px 40px;
  }
  .cl-split--mirror .cl-split__media {
    order: 2;
  }
  .cl-split--mirror .cl-split__media img {
    width: 100%;
    height: 280px;
    object-fit: cover;
  }
  .cl-welcome-title {
    font-size: 28px;
  }
  .cl-welcome-text {
    font-size: 15px;
  }
  .cl-welcome-btn {
    width: 220px;
    height: 50px;
    font-size: 15px;
  }

  /* Services title */
  .cl-services {
    padding: 70px 0 80px;
  }
  .cl-services__title {
    font-size: 28px;
    margin-bottom: 40px;
    padding: 0 20px;
  }

  /* Services grid → horizontal scroll carousel */
  .cl-services__grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 18px;
    padding: 4px 24px 24px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .cl-service {
    flex: 0 0 78%;
    max-width: 78%;
    width: auto;
    scroll-snap-align: start;
  }
  .cl-service__imgwrap {
    width: 100%;
    height: auto;
    aspect-ratio: 6 / 5;
  }

  /* Contact: 2 columns at tablet, with Eestis stacked and Rootsis stacked */
  .cl-contact {
    padding: 50px 30px;
  }
  .cl-contact__title { font-size: 28px; }
  .cl-contact__grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px 40px;
  }
  /* HTML order: 1=Eestis info, 2=Eestis address, 3=Rootsis info, 4=Rootsis address
     Display: col1=Eestis info+address stacked, col2=Rootsis info+address stacked */
  .cl-contact__col:nth-child(1) { grid-column: 1; grid-row: 1; }
  .cl-contact__col:nth-child(2) { grid-column: 1; grid-row: 2; }
  .cl-contact__col:nth-child(3) { grid-column: 2; grid-row: 1; }
  .cl-contact__col:nth-child(4) { grid-column: 2; grid-row: 2; }
}

/* =========================================================
   Mobile-only (< 600px)
========================================================= */
@media (max-width: 599px) {
  .cl-brand-logo { width: 180px; }
  .cl-brand-heading { font-size: 26px; margin: 36px 0 20px; }
  .cl-brand-heading__typed { padding-left: 32px; }
  .cl-brand-heading > .cl-brand-heading__static:last-child { padding-left: 70px; }

  .cl-welcome-title { font-size: 24px; }
  .cl-welcome-btn { width: 200px; height: 46px; font-size: 14px; }

  .cl-services__title { font-size: 24px; }
  .cl-service { flex: 0 0 84%; max-width: 84%; }

  /* Contact: single column, centered */
  .cl-contact {
    text-align: center;
    padding: 40px 24px;
  }
  .cl-contact__title { font-size: 26px; }
  .cl-contact__subtitle { margin-bottom: 26px; }
  .cl-contact__grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .cl-contact__col:nth-child(1),
  .cl-contact__col:nth-child(2),
  .cl-contact__col:nth-child(3),
  .cl-contact__col:nth-child(4) {
    grid-column: 1;
    grid-row: auto;
  }
}

/* =========================================================
   Mobile/tablet: swipe hint + center alignment refinements
========================================================= */

/* Swipe-hand hint above services carousel (hidden on desktop) */
.cl-services__swipe-hint {
  display: none;
}

@media (max-width: 1023px) {
  /* Show the animated hand */
  .cl-services__swipe-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -10px auto 18px;
    height: 56px;
    color: #c9c4be;
  }
  .cl-services__swipe-hint svg {
    width: 48px;
    height: 48px;
    animation: clSwipeHand 2s ease-in-out infinite;
  }
  .cl-services__swipe-hint.is-hidden {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
  }

  /* Cleaner carousel snap: card snaps with consistent left padding,
     no big peek of previous card */
  .cl-services__grid {
    padding-left: 24px;
    padding-right: 24px;
    scroll-padding-left: 24px;
    scroll-padding-inline-start: 24px;
  }
  .cl-service {
    flex: 0 0 calc(100% - 60px);
    max-width: calc(100% - 60px);
  }
  .cl-service:last-child {
    margin-right: 24px; /* extra space at end so last card snaps cleanly */
  }

  /* Center all text in mobile/tablet view */
  .cl-service__body {
    text-align: center;
    align-items: center;
  }
  .cl-service__body p {
    text-align: center;
  }
  .cl-service__body .cl-gallery-trigger {
    align-self: center;
    text-align: center;
  }

  /* Hero: center logo block, center heading + brand text */
  .cl-hero-split .cl-split__inner {
    text-align: center;
  }
  .cl-brand-tagline {
    text-align: center;
  }

  /* Welcome (Tere tulemast) — center text */
  .cl-split--mirror .cl-split__inner {
    text-align: center;
  }
  .cl-welcome-title {
    display: inline-block;
    text-align: center;
  }
  .cl-welcome-text {
    text-align: center;
  }
  .cl-split--mirror .cl-split__inner .cl-welcome-btn {
    display: inline-flex;
    margin: 0 auto;
  }

  /* Contact section: keep title left on tablet, center on mobile (handled by 600px block) */
}

@keyframes clSwipeHand {
  0%, 100% { transform: translateX(-14px) rotate(-8deg); opacity: 0.55; }
  50%      { transform: translateX(14px)  rotate(8deg);  opacity: 1; }
}

/* =========================================================
   Mobile carousel — robust rules (override desktop fixed widths)
========================================================= */
@media (max-width: 1023px) {
  .cl-services__grid {
    direction: ltr;
    flex-direction: row !important;
    justify-content: flex-start !important;
    /* match the negative scroll-start so first card aligns */
    scroll-padding-left: 24px;
  }
  .cl-service {
    width: auto !important;
    flex: 0 0 calc(100% - 60px) !important;
    max-width: calc(100% - 60px) !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .cl-service__imgwrap {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 6 / 5;
  }
}
