/* =========================
   HERO – FULLSCREEN
========================= */

.hero{
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 0;

  background:
    linear-gradient(90deg,
      rgba(15,23,42,.9) 0%,
      rgba(15,23,42,.7) 55%,
      rgba(15,23,42,.3) 100%
    ),
    url("../img/hero-construction.jpg") center/cover no-repeat;

  color: #fff;
}

@media (max-width: 768px){

  .hero{
    min-height: 90vh;
    background:
      linear-gradient(180deg,
        rgba(15,23,42,.85) 0%,
        rgba(15,23,42,.6) 60%,
        rgba(15,23,42,.4) 100%
      ),
      url("../img/hero-construction.jpg") center/cover no-repeat;
  }

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

  .hero-title{
    font-size: 34px;
  }

  .hero-text{
    font-size: 16px;
  }
}

.hero-content{
  width: 100%;
}

/* =========================
   HERO – LOGIC
========================= */

.hero{
  position: relative;
  height: 100vh;
  width: 100%;
  background:
    url("../img/hero-construction.jpg") center/cover no-repeat;
  overflow: hidden;
  background-attachment: fixed;
}

/* tumendus */
.hero-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(15,23,42,.9) 0%,
    rgba(15,23,42,.65) 55%,
    rgba(15,23,42,.3) 100%
  );
  z-index: 1;
}

/* sisu */
.hero-content{
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0;
}

.hero-eyebrow{
  display: block;
  margin-bottom: 16px;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-accent);
}

.hero-title{
  font-size: clamp(36px, 5vw, 56px);
  color: #fff;
  margin-bottom: 24px;
}

.hero-text{
  max-width: 520px;
  font-size: 18px;
  color: #e5e7eb;
  margin-bottom: 32px;
}

/* =========================
   SERVICES OVER HERO (RENOVEX)
========================= */

.services-overlap{
  margin-top: -180px;
  position: relative;
  z-index: 5;
}

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

.service-card{
  background:#fff;
  border-radius:16px;
  overflow:hidden;

  box-shadow:
    0 30px 80px rgba(15,23,42,.15);

  transition:
    transform .35s ease,
    box-shadow .35s ease;
}

.service-card:hover{
  transform: translateY(-6px);
  box-shadow:
    0 40px 100px rgba(15,23,42,.18);
}

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

.service-card h3{
  font-size:20px;
  margin:20px 20px 8px;
}

.service-card p{
  margin:0 20px 24px;
  color:#475569;
}

.service-image{
  overflow:hidden;
}

.service-image img{
  width:100%;
  height:220px;
  object-fit:cover;
  transition: transform .6s ease;
}

/* HOVERIL PILT ELAB */
.service-card:hover .service-image img{
  transform: scale(1.06) translateY(-2px);
}

.service-card{
  display:block;
  text-decoration:none;
  color:inherit;

  background:#fff;
  border-radius:16px;
  overflow:hidden;

  box-shadow:0 30px 80px rgba(15,23,42,.15);
  transition:
    transform .35s ease,
    box-shadow .35s ease;

  cursor:pointer; /* 👈 OLULINE */
}

.service-link{
  display:inline-block;
  margin-top:12px;

  font-weight:600;
  color:#0f172a;
  transition: transform .3s ease;
}

.service-card:hover .service-link{
  transform: translateX(4px);
}

/* =========================
   SERVICE IMAGE OVERLAY
========================= */

.service-image{
  position: relative;
}

.service-overlay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;

  background:rgba(15,23,42,.0);
  opacity:0;

  transition:
    background .35s ease,
    opacity .35s ease;
  transition-delay: .05s;
}

.service-card:hover .service-overlay{
  background:rgba(15,23,42,.45);
  opacity:1;
}

/* Loe lähemalt nupp pildi peal */
.service-overlay .service-link{
  color:#fff;
  font-size:16px;
  font-weight:600;

  padding:12px 20px;
  border-radius:999px;
  background:rgba(255,255,255,.15);
  backdrop-filter: blur(6px);

  transform: translateY(10px);
  transition: transform .35s ease;
}

.service-card:hover .service-overlay .service-link{
  transform: translateY(0);
}

/* pilt veidi tumedamaks */
.service-card:hover .service-image img{
  transform: scale(1.06);
  filter: brightness(.75);
}

/* =========================
   SERVICES – MOBILE
========================= */

@media (max-width: 900px){
  .services-grid{
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .services-overlap{
    margin-top: -80px; /* vähem agressiivne mobiilis */
  }
}

/* =========================
   WHY STATS – STYLE
========================= */

.why-stats{
  background:#f8fafc;
  padding:120px 0;
}

.why-stats-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:32px;
}

.why-stat-card{
  background:#fff;
  border-radius:18px;
  padding:40px 32px;

  box-shadow:0 20px 60px rgba(15,23,42,.08);

  transition:
    transform .35s ease,
    box-shadow .35s ease;
}

.why-stat-card:hover{
  transform: translateY(-6px);
  box-shadow:0 30px 80px rgba(15,23,42,.12);
}

.why-stat-number{
  display:block;
  font-size:32px;
  font-weight:700;
  margin-bottom:12px;
  color:var(--color-accent);
}

.why-stat-card h3{
  font-size:18px;
  margin-bottom:8px;
  color:#0f172a;
}

.why-stat-card p{
  font-size:15px;
  color:#475569;
  line-height:1.6;
}

/* RESPONSIVE */
@media (max-width: 1100px){
  .why-stats-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media (max-width: 640px){
  .why-stats-grid{
    grid-template-columns:1fr;
  }
}

/* =========================
   SECTION HEADER
========================= */

.section-header{
  max-width:720px;
  margin-bottom:64px;
}

.section-header-center{
  text-align:center;
  margin-left:auto;
  margin-right:auto;
}

.section-eyebrow{
  display:block;
  font-size:13px;
  letter-spacing:2px;
  text-transform:uppercase;
  color:var(--color-accent);
  margin-bottom:12px;
}

.section-header h2{
  font-size:clamp(28px,4vw,40px);
  margin-bottom:16px;
  color:#0f172a;
}

.section-header p{
  font-size:17px;
  color:#475569;
  line-height:1.6;
}

/* =========================
   PROCESS – STICKY WOW
========================= */

.process{
  position: relative;
  padding: 160px 0;
  color: #fff;
  overflow: hidden;
}

/* background */
.process-bg{
  position:absolute;
  inset:0;

  background:
    linear-gradient(90deg,
      rgba(2,6,23,.92) 0%,
      rgba(2,6,23,.8) 50%,
      rgba(2,6,23,.6) 100%
    ),
    url("../img/process-bg.jpg") center/cover no-repeat;

  filter: brightness(.65) contrast(1.05);

  z-index:0;

}

/* layout */
.process-layout{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns: 1fr 1.2fr;
  gap:80px;
}

/* left sticky */
.process-intro{
  position: sticky;
  top:120px;
  align-self:start;
}

.process-intro h2{
  font-size: clamp(36px, 4vw, 52px);
  margin-bottom: 20px;
}

.process-intro p{
  max-width: 420px;
  font-size:18px;
  color:#cbd5f5;
}

/* steps */
.process-steps{
  display:flex;
  flex-direction:column;
  gap:56px;
}

.process-step{
  display:flex;
  gap:24px;
  align-items:flex-start;
  opacity:.9;
  transition: transform .4s ease, opacity .4s ease;
}

.process-step:hover{
  transform: translateX(8px);
  opacity:1;
}

/* number */
.step-num{
  font-size:64px;
  font-weight:700;
  line-height:1;
  color:transparent;
  -webkit-text-stroke:1px rgba(255,255,255,.35);
  flex-shrink:0;
}

.process-step h3{
  font-size:22px;
  margin-bottom:8px;
}

.process-step p{
  color:#cbd5f5;
  max-width:420px;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 900px){
  .process-layout{
    grid-template-columns:1fr;
    gap:48px;
  }

  .process-intro{
    position:relative;
    top:auto;
  }

  .step-num{
    font-size:48px;
  }
}

/* =========================
   PROJECTS – WOW SECTION
========================= */

.projects{
  background:#f8fafc;
}

.section-header-center{
  text-align:center;
  max-width:680px;
  margin:0 auto 64px;
}

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

/* CARD */
.project-card{
  display: flex;
  flex-direction: column;
  height: 100%; 
  background:#fff;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 30px 80px rgba(15,23,42,.12);
  transition: transform .35s ease, box-shadow .35s ease;
}

.project-card:hover{
  transform: translateY(-6px);
  box-shadow:0 40px 100px rgba(15,23,42,.18);
}

/* TEXT */
.project-content{
  padding:28px 28px 20px;
  min-height: 140px;   /* 👈 RESERV RUUM 2-REALISE PEALKIRJA JA TEKSTI JAOKS */
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
}

.project-content h3{
  font-size:20px;
  line-height:1.25;
  margin:0 0 10px;

  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.project-content p{
  color:#475569;
  font-size:15px;
}

/* IMAGE */
.project-image{
  margin-top: 0;
  line-height: 0;            /* eemaldab inline-image "gap" */
  overflow: hidden;
}

.project-image img{
  display: block;            /* kõige olulisem */
  width: 100%;
  height: 260px;
  object-fit: cover;
  vertical-align: middle;    /* igaks juhuks */
}

.project-image img{ height: 320px; }


/* HOVER IMAGE EFFECT */
.project-card:hover .project-image img{
  transform: scale(1.08);
  filter: brightness(.85);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1024px){
  .projects-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px){
  .projects-grid{
    grid-template-columns: 1fr;
  }

  .project-image img{
    height:220px;
  }
}

/* =========================
   GLOBAL SECTION SPACING
========================= */

.section{
  padding: 120px 0;
}

@media (max-width: 1024px){
  .section{
    padding: 96px 0;
  }
}

@media (max-width: 640px){
  .section{
    padding: 72px 0;
  }
}

/* =========================
   CTA – BACKGROUND ONLY
========================= */

.cta{
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

.cta::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;

  background:
    radial-gradient(
      1000px 420px at 20% 15%,
      rgba(255,255,255,.06),
      transparent 45%
    ),
    radial-gradient(
      700px 320px at 80% 65%,
      rgba(255,255,255,.04),
      transparent 55%
    );

  mix-blend-mode: screen;
  z-index:1;
}

.cta::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-1px;
  height:140px;

  background:
    linear-gradient(
      180deg,
      rgba(3,6,12,0) 0%,
      rgba(3,6,12,.65) 55%,
      rgba(3,6,12,1) 100%
    );

  z-index:2;
  pointer-events:none;
}

.cta-bg{
  position:absolute;
  inset:0;
  background:
    linear-gradient(
      180deg,
      rgba(6,10,20,.45) 0%,
      rgba(4,8,16,.70) 55%,
      rgba(3,6,12,.85) 100%
    ),
    url("../img/cta-bg.jpg") center/cover no-repeat;

  z-index:0;
}

.cta-inner{
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
}

.cta-inner h2{
  font-size: clamp(36px, 4vw, 56px);
  margin-bottom: 18px;
}

.cta-inner p{
  font-size: 18px;
  color: #d1d5db;
  margin-bottom: 40px;
}


/* =========================
   FOOTER – PRO (TEXTURED)
========================= */

.footer-pro{
  position: relative;
  color: #cbd5e1;

  background:
    linear-gradient(
      180deg,
      rgba(6,10,20,.65) 0%,
      rgba(4,8,16,.88) 55%,
      rgba(3,6,12,.96) 100%
    ),
    url("../img/footer-texture.jpg") center/cover no-repeat;

  overflow: hidden;
}

/* SISU */
.footer-inner{
  position: relative;
  z-index:2;
  display:grid;
  grid-template-columns:2.2fr 1.2fr 1fr 1fr;
  gap:64px;
  padding:120px 30px 90px;
}

/* BRAND */
.footer-brand h3{
  font-size:28px;
  font-weight:800;
  color:#fff;
  margin-bottom:18px;
}

.footer-brand p{
  max-width:360px;
  line-height:1.7;
  color:#9aa4b2;
}

/* PEALKIRJAD */
.footer-col h4{
  font-size:15px;
  letter-spacing:.5px;
  text-transform:uppercase;
  color:#fff;
  margin-bottom:22px;
}

/* LINGID */
.footer-col a,
.footer-col p{
  display:block;
  margin-bottom:12px;
  color:#9aa4b2;
  text-decoration:none;
  font-size:15px;
}

.footer-col a:hover{
  color:#fff;
}

/* SOTSIAAL – PUHTAD, MITTE KASTID */
.footer-socials{
  display:flex;
  gap:22px;
  margin-top:28px;
}

.footer-socials a{
  position:relative;
  font-size:14px;
  color:#cbd5e1;
  text-decoration:none;
}

.footer-socials a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-4px;
  width:0;
  height:1px;
  background:#facc15;
  transition: width .3s ease;
}

.footer-socials a:hover{
  color:#fff;
}

.footer-socials a:hover::after{
  width:100%;
}

/* BOTTOM */
.footer-bottom{
  position: relative;
  z-index:2;
  border-top:1px solid rgba(255,255,255,.06);
  padding:28px 0;
  text-align:center;
  font-size:14px;
  color:#6b7280;
}

/* RESPONSIVE */
@media(max-width:1100px){
  .footer-inner{
    grid-template-columns:1fr 1fr;
    gap:48px;
  }
}

@media(max-width:640px){
  .footer-inner{
    grid-template-columns:1fr;
    padding:90px 0 70px;
    text-align:center;
  }

  .footer-socials{
    justify-content:center;
  }
}

@media (max-width: 1024px){
  .hero{
    background-attachment: scroll;
  }
}

/* SERVICES HERO – COMPACT */
.hero-services{
  height: 70vh;
  min-height: 420px;
}

@media (max-width: 768px){
  .hero-services{
    height: auto;
    padding: 120px 0 100px;
  }
}

/* SERVICES GRID – 8 */
.services-grid-8{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:32px;
}

@media (max-width:1100px){
  .services-grid-8{
    grid-template-columns:repeat(2,1fr);
  }
}

@media (max-width:640px){
  .services-grid-8{
    grid-template-columns:1fr;
  }
}

/* =========================
   WHY STATS – PRO VERSION
========================= */

.why-stats-pro{
  background:
    radial-gradient(800px 400px at 20% 10%, rgba(59,130,246,.06), transparent 60%),
    #f8fafc;
}

.why-stats-pro .why-stat-card{
  position: relative;
  padding: 56px 36px 44px;
  text-align: center;
  border-radius: 22px;
  background: #fff;

  box-shadow:
    0 30px 80px rgba(15,23,42,.10);

  transition:
    transform .35s ease,
    box-shadow .35s ease;
}

.why-stats-pro .why-stat-card:hover{
  transform: translateY(-8px);
  box-shadow:
    0 40px 120px rgba(15,23,42,.18);
}

/* ICON */
.why-icon{
  width: 88px;
  height: 88px;
  margin: 0 auto 26px;
  border-radius: 20px;

  display:flex;
  align-items:center;
  justify-content:center;

  color: var(--color-accent);

  background:
    radial-gradient(
      60% 60% at 50% 30%,
      rgba(59,130,246,.35),
      rgba(59,130,246,.15),
      transparent 70%
    );

  box-shadow:
    0 20px 40px rgba(59,130,246,.25);
}

.why-icon svg{
  width: 42px;
  height: 42px;
}

/* TEXT */
.why-stats-pro h3{
  font-size: 20px;
  margin-bottom: 12px;
  color: #0f172a;
}

.why-stats-pro p{
  font-size: 16px;
  line-height: 1.6;
  color: #475569;
}

/* subtle glow on hover */
.why-stats-pro .why-stat-card:hover .why-icon{
  box-shadow:
    0 25px 60px rgba(59,130,246,.45);
}

/* =========================
   PROCESS – MODERN
========================= */

.process-modern{
  background:
    linear-gradient(
      180deg,
      #f8fafc 0%,
      #ffffff 100%
    );
}

/* FLOW */
.process-flow{
  max-width: 1100px;
  margin: 80px auto 0;

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

@media (max-width: 768px){
  .process-flow{
    grid-template-columns: 1fr;
  }
}

/* CARD */
.process-card{
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  align-items: flex-start;

  padding: 36px 40px;
  background: #fff;
  border-radius: 20px;

  box-shadow:
    0 20px 60px rgba(15,23,42,.08);

  transition:
    transform .35s ease,
    box-shadow .35s ease;
}

.process-card:hover{
  transform: translateY(-6px);
  box-shadow:
    0 30px 90px rgba(15,23,42,.14);
}

/* NUMBER / ICON */
.process-icon{
  width: 64px;
  height: 64px;
  border-radius: 16px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 20px;
  font-weight: 700;
  color: #fff;

  background:
    linear-gradient(
      135deg,
      var(--color-accent),
      #60a5fa
    );

  box-shadow:
    0 12px 30px rgba(59,130,246,.35);
}

/* TEXT */
.process-content h3{
  font-size: 20px;
  margin-bottom: 10px;
  color: #0f172a;
}

.process-content p{
  font-size: 16px;
  line-height: 1.6;
  color: #475569;
}

/* RESPONSIVE */
@media (max-width: 640px){
  .process-card{
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px;
  }

  .process-icon{
    width: 56px;
    height: 56px;
  }
}

/* ============================================================
   CONTACT HERO – PRO (ONLY CONTACT PAGE)
============================================================ */

.hero.contact-hero{
  height: auto !important;
  min-height: calc(100vh - 88px);
  padding: 0 !important;
  display: block !important;
  overflow: hidden;
}

@media (max-width: 1024px){
  .hero.contact-hero{ background-attachment: scroll !important; }
}

.hero.contact-hero .hero-overlay{
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* offset headerist – AINULT kontaktis */
.hero.contact-hero .hero-content{
  position: relative;
  z-index: 2;
  padding-top: calc(88px + 64px);
  padding-bottom: 120px;
  display: block !important;
}

body.admin-bar .hero.contact-hero .hero-content{
  padding-top: calc(88px + 64px + 32px);
}

/* layout: INFO vasak, FORM parem */
.hero.contact-hero .contact-hero-layout{
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 72px;
  align-items: start;
}

.hero.contact-hero,
.hero.contact-hero *{ box-sizing: border-box; }

/* ============================================================
   LEFT – INFO PANEL (PRO)
============================================================ */

.hero.contact-hero .contact-hero-info{
  padding-right: 18px;
}

.contact-info-head{
  margin-bottom: 26px;
  max-width: 520px;
}

.contact-kicker{
  display: inline-block;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  opacity: .85;
}

.contact-info-title{
  margin: 10px 0 10px;
  font-size: 22px;
  color: #fff;
}

.contact-info-text{
  margin: 0;
  color: rgba(229,231,235,.9);
  line-height: 1.7;
}

.contact-info-cards{
  display: grid;
  gap: 14px;
}

.contact-info-card{
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: center;

  padding: 16px 18px;
  border-radius: 16px;

  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px);

  box-shadow: 0 18px 55px rgba(0,0,0,.18);

  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}

.contact-info-card:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.20);
}

.contact-info-icon{
  width: 56px;
  height: 56px;
  border-radius: 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #0f172a;
  background: radial-gradient(70% 70% at 30% 20%, rgba(255,255,255,.25), rgba(255,255,255,0)),
              linear-gradient(135deg, rgba(255,204,0,.95), rgba(255,204,0,.70));
  box-shadow: 0 16px 35px rgba(255,204,0,.18);
}

.contact-info-icon svg{
  width: 26px;
  height: 26px;
  color: #0f172a;
}

.contact-info-label{
  font-size: 12px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: rgba(203,213,245,.85);
  margin-bottom: 4px;
}

.contact-info-value{
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
}

.contact-info-value:hover{ text-decoration: underline; }

.contact-info-sub{
  margin-top: 6px;
  font-size: 13px;
  color: rgba(229,231,235,.82);
}

/* ============================================================
   RIGHT – FORM CARD (PRO)
============================================================ */

.hero.contact-hero .contact-hero-form{
  max-width: 720px;
}

.contact-form-card{
  margin-top: 28px;
  padding: 22px;
  border-radius: 22px;

  background: rgba(15,23,42,.35);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(12px);

  box-shadow: 0 30px 90px rgba(0,0,0,.28);
}

.hero.contact-hero .contact-form{
  margin-top: 0;
}

.hero.contact-hero .contact-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.hero.contact-hero .contact-form input,
.hero.contact-hero .contact-form textarea{
  min-width: 0;
  width: 100%;
  padding: 16px 18px;
  border-radius: 12px;

  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: #fff;

  font-size: 15px;
  line-height: 1.35;

  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}

.hero.contact-hero .contact-form input::placeholder,
.hero.contact-hero .contact-form textarea::placeholder{
  color: rgba(203,213,245,.78);
}

.hero.contact-hero .contact-form input:focus,
.hero.contact-hero .contact-form textarea:focus{
  outline: none;
  border-color: rgba(255,204,0,.9);
  background: rgba(255,255,255,.09);
  box-shadow: 0 0 0 3px rgba(255,204,0,.18);
}

.hero.contact-hero .contact-form textarea{
  grid-column: 1 / -1;
  margin-top: 14px;
  margin-bottom: 18px;
  min-height: 170px;
  resize: vertical;
}

/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 1024px){
  .hero.contact-hero .contact-hero-layout{
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .contact-form-card{ padding: 18px; }
}

@media (max-width: 640px){
  .hero.contact-hero .hero-content{
    padding-top: calc(88px + 44px);
    padding-bottom: 80px;
  }

  body.admin-bar .hero.contact-hero .hero-content{
    padding-top: calc(88px + 44px + 32px);
  }

  .hero.contact-hero .contact-grid{
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   GOOGLE MAP – FULL WIDTH (screen-wide)
============================================================ */

.contact-map{
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;

  padding: 0;
  background: #0b1220;
}

.contact-map iframe{
  display: block;
  width: 100%;
  height: 520px;
  border: 0;
}

@media (max-width: 640px){
  .contact-map iframe{ height: 420px; }
}

/* ============================================================
   SELECT – SAME STYLE AS INPUTS (CONTACT / HINNAPÄRING)
============================================================ */

.hero.contact-hero .contact-form select{
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  min-width: 0;
  width: 100%;
  padding: 16px 44px 16px 18px; /* ruum noole jaoks paremal */
  border-radius: 12px;

  border: 1px solid rgba(255,255,255,.18);
  background:
    rgba(255,255,255,.06)
    url("data:image/svg+xml;utf8,\
    <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'>\
    <polyline points='6 9 12 15 18 9' />\
    </svg>")
    no-repeat right 16px center;

  background-size: 18px;
  color: #fff;

  font-size: 15px;
  line-height: 1.35;
  cursor: pointer;

  transition:
    border-color .25s ease,
    background .25s ease,
    box-shadow .25s ease;
}

/* placeholder-like esimene option */
.hero.contact-hero .contact-form select option[value=""]{
  color: #94a3b8;
}

/* focus */
.hero.contact-hero .contact-form select:focus{
  outline: none;
  border-color: rgba(255,204,0,.9);
  background-color: rgba(255,255,255,.09);
  box-shadow: 0 0 0 3px rgba(255,204,0,.18);
}

/* dropdown options (browser dependent, aga aitab) */
.hero.contact-hero .contact-form select option{
  color: #0f172a;
}

/* ============================================================
   FILE UPLOAD – CUSTOM (PRO)
============================================================ */

.file-upload{
  margin: 18px 0 28px; /* ⬅️ ÕHK textarea ja nupu vahel */
}

.file-upload input[type="file"]{
  display: none;
}

.file-upload label{
  display: flex;
  align-items: center;
  gap: 14px;

  padding: 14px 18px;
  border-radius: 14px;

  background: rgba(255,255,255,.06);
  border: 1px dashed rgba(255,255,255,.28);
  color: rgba(229,231,235,.9);

  cursor: pointer;
  transition:
    background .25s ease,
    border-color .25s ease,
    transform .25s ease;
}

.file-upload label:hover{
  background: rgba(255,255,255,.09);
  border-color: rgba(255,204,0,.9);
  transform: translateY(-1px);
}

.file-upload .file-icon{
  width: 40px;
  height: 40px;
  border-radius: 12px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 18px;
  background: linear-gradient(
    135deg,
    rgba(255,204,0,.95),
    rgba(255,204,0,.75)
  );
  color: #0f172a;

  box-shadow: 0 12px 30px rgba(255,204,0,.25);
}

.file-upload .file-text{
  font-size: 15px;
  font-weight: 500;
}

/* kui fail valitud (JS-iga saab nime näidata – optional) */

/* ============================================================
   NAV – ACTIVE STATE (LOCKED EFFECT)
============================================================ */

/* aktiivse li sees olev link */
.site-nav li.current-menu-item > a,
.site-nav li.current-page-ancestor > a,
.site-nav li.current-menu-parent > a{
  color: var(--color-accent);
  transform: scale(1.04);
}

/* underline jääb peale */
.site-nav li.current-menu-item > a::after,
.site-nav li.current-page-ancestor > a::after,
.site-nav li.current-menu-parent > a::after{
  transform: scaleX(1);
}

/* HERO ALIGN FIX – OLD STYLE */

.hero,
.hero-content{
  height: 100vh;
  min-height: 100vh;
}

.hero .container{
  margin-left: 0 !important;
  margin-right: auto !important;
}

.hero-content > .container{
  padding-left: 150px;
}

.hero-content{
  align-items: flex-start;
  padding-top: 48vh;
}

/* =========================
   LIGHTBOX – SERVICES
========================= */

.vl24-lightbox{
  position:fixed;
  inset:0;
  background:rgba(10,15,25,.9);

  display:flex;
  align-items:center;
  justify-content:center;

  opacity:0;
  pointer-events:none;

  transition:.25s ease;
  z-index:9999;
}

.vl24-lightbox.active{
  opacity:1;
  pointer-events:auto;
}

.vl24-lightbox img{
  max-width:90%;
  max-height:90%;
  border-radius:12px;
  box-shadow:0 40px 120px rgba(0,0,0,.6);
}

.vl24-lightbox-close{
  position:absolute;
  top:30px;
  right:30px;

  font-size:28px;
  color:#fff;
  cursor:pointer;

  opacity:.8;
}

.vl24-lightbox-close:hover{
  opacity:1;
}

/* FORCE FULL WIDTH IMAGE IN SERVICE CARD */

.service-card{
  padding:0 !important;
}

.service-card > *{
  padding:0 !important;
}

.process-overlay{
  position:absolute;
  inset:0;

  background:
    linear-gradient(
      90deg,
      rgba(15,23,42,.92) 0%,
      rgba(15,23,42,.75) 55%,
      rgba(15,23,42,.45) 100%
    );

  z-index:1;
}

.process-bg{
  position:absolute;
  inset:-5%; /* 👈 teeb ala suuremaks */

  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;

  transform: scale(1.1); /* zoomib natuke */

  z-index:0;
}

/* =========================
   PROJECTS – GALLERY (FINAL)
========================= */

.project-image{
  position: relative;
  height: 320px;
  overflow: hidden;
  line-height: 0;
}

.project-gallery{
  display: flex;
  height: 100%;
  transition: transform .5s ease;
  will-change: transform;
}

.project-gallery img{
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: none !important;
  filter: none !important;
}

/* ära lase vanal hoveril galeriid lõhkuda */
.project-card:hover .project-gallery img{
  transform: none !important;
  filter: none !important;
}

/* Nav nupud */
.project-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  z-index: 5;

  background: rgba(15,23,42,.55);
  color: #fff;
  backdrop-filter: blur(8px);
}

.project-prev{ left: 12px; }
.project-next{ right: 12px; }

.project-nav:hover{
  background: rgba(15,23,42,.80);
}

/* Buttons overlay (nagu teenustes loogika: hoveril nähtav, mobiilis alati) */
.project-actions{
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 6;

  display: flex;
  gap: 12px;
  justify-content: center;

  opacity: 0;
  transform: translateY(10px);
  transition: .25s ease;
}

.project-card:hover .project-actions{
  opacity: 1;
  transform: none;
}

@media (max-width: 768px){
  .project-actions{
    opacity: 1;
    transform: none;
    flex-direction: column;
  }
  .project-actions .btn{
    width: 100%;
    justify-content: center;
  }
  .project-nav{
    display: none;
  }
}

/* =========================
   PROJECT ACTIONS – services style
========================= */

/* tumedam overlay pildi peal, nagu teenustes */
.project-image::after{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.0);
  opacity:0;
  transition:.25s ease;
  pointer-events:none;
}

.project-card:hover .project-image::after{
  background:rgba(15,23,42,.45);
  opacity:1;
}

/* actions */
.project-actions{
  position:absolute;
  left:16px;
  right:16px;
  bottom:16px;

  display:flex;
  gap:12px;
  justify-content:center;

  opacity:0;
  transform:translateY(10px);
  transition:.25s ease;
  z-index:6;
}

.project-card:hover .project-actions{
  opacity:1;
  transform:none;
}

/* pill button look (teenuste overlay nupp) */
.project-action{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding:12px 18px;
  border-radius:999px;

  color:#fff;
  text-decoration:none;
  font-weight:600;
  font-size:15px;

  background:rgba(255,255,255,.15);
  backdrop-filter: blur(6px);

  transition: transform .25s ease, background .25s ease;
}

.project-action:hover{
  transform: translateY(-1px);
  background:rgba(255,255,255,.22);
}

/* MOBILE: alati nähtav, stacked */
@media(max-width:768px){
  .project-actions{
    opacity:1;
    transform:none;
    flex-direction:column;
  }
  .project-action{
    width:100%;
  }
}

.projects-wrap{
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.projects-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 32px;
}

.projects-cta{
  display: flex;
  justify-content: center;
}

/* =========================
   CTA – REAL OVERLAY (HERO STYLE)
========================= */

.cta{
  position: relative;
  overflow: hidden;
}

/* pilt */
.cta-bg{
  position:absolute;
  inset:0;
  z-index:0;

  background-repeat: no-repeat;
  background-size: cover;

  background-position: 50% 5%;

  transform: scale(1.03);
}

/* TUME KIHT (PÕHIASI) */
.cta-overlay{
  position:absolute;
  inset:0;
  z-index:1;

  background: linear-gradient(
180deg,


/* ⬆️ ÜLEVAL KOHE TUME */
rgba(15,23,42,.65) 0%,


rgba(15,23,42,.70) 25%,


rgba(15,23,42,.85) 60%,


/* ⬇️ ALLA TÄIESTI MUST */
rgba(15,23,42,.97) 100%
);
}

/* sisu peale */
.cta-inner{
  position:relative;
  z-index:2;
}

/* CONTACT MAP SPLIT */

.contact-map-split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}

.contact-map-col{
  position: relative;
}

.contact-map-col iframe{
  width: 100%;
  height: 100%;
  border: 0;
}

/* mobile */
@media(max-width:900px){
  .contact-map-split{
    grid-template-columns: 1fr;
  }
}

/* HERO ALIGN FIX – SAFE (NO HEIGHT LOCK) */

.hero:not(.contact-hero),
.hero:not(.contact-hero) .hero-content{
  height: 100vh;
  min-height: 100vh;
}

/* CONTACT HERO – proper offset */

.hero.contact-hero,
.hero.contact-hero .hero-content{
  height: auto !important;
  min-height: unset !important;
  align-items: stretch !important;

  /* ⬇️ Siin juhime kõrgust */
  padding-top: calc(0px + 80px) !important;
  padding-bottom: 60px !important;
}

/* =========================
   SERVICES GRID FIX
========================= */

.services-grid{
  display: grid;
  gap: 32px;
}

/* 1 veerg */
.services-grid-1{
  grid-template-columns: 1fr !important;
}

/* 2 veergu */
.services-grid-2{
  grid-template-columns: repeat(2,1fr);
}

/* 3 veergu */
.services-grid-3{
  grid-template-columns: repeat(3,1fr);
}

/* 4 veergu */
.services-grid-4{
  grid-template-columns: repeat(4,1fr);
}

/* 6 veergu */
.services-grid-6{
  grid-template-columns: repeat(6,1fr);
}










/* =====================================================
   SERVICES – PROCESS 2026 (PREMIUM)
===================================================== */


/* Section background */
.service-block-process{
  position: relative;

  margin-top: 80px;
  padding: 64px 56px;

  border-radius: 0px;

  background:
    linear-gradient(
      180deg,
      rgba(248,250,252,.95),
      rgba(241,245,249,.95)
    );

  box-shadow:
    0 40px 120px rgba(15,23,42,.08);

  overflow: hidden;
}


/* subtle pattern */
.service-block-process::before{
  content:"";
  position:absolute;
  inset:0;

  background:
    radial-gradient(
      600px 300px at 20% 10%,
      rgba(59,130,246,.06),
      transparent 60%
    ),
    radial-gradient(
      600px 300px at 80% 90%,
      rgba(139,92,246,.05),
      transparent 60%
    );

  pointer-events:none;
}


/* Title */
.service-block-process h4{
  position: relative;
  z-index: 2;

  font-size: clamp(26px,3vw,34px);
  margin-bottom: 42px;

  padding-left: 8px;
  padding-right: 8px;

  color: #0f172a;
}


/* GRID */
.service-process-list{
  list-style: none;
  padding: 0;
  margin: 0;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 32px;

  position: relative;
  z-index: 2;
}


/* CARD */
.service-process-list li{
  position: relative;

  background:
    linear-gradient(
      180deg,
      #ffffff,
      #f8fafc
    );

  border-radius: 22px;

  padding:
    42px
    36px
    36px;

  font-size: 15.5px;
  line-height: 1.65;

  color: #475569;

  box-shadow:
    0 22px 70px rgba(15,23,42,.10);

  transition:
    transform .45s cubic-bezier(.22,1,.36,1),
    box-shadow .45s ease;
}


/* Hover */
.service-process-list li:hover{
  transform: translateY(-10px) scale(1.02);

  box-shadow:
    0 40px 120px rgba(15,23,42,.18);
}


/* BIG NUMBER BADGE */
.service-process-list li::before{
  counter-increment: step;

  content: counter(step);

  position: absolute;
  top: -22px;
  left: 28px;

  width: 56px;
  height: 56px;

  border-radius: 16px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 22px;
  font-weight: 800;

  color: #0f172a;

  background:
    linear-gradient(
      135deg,
      var(--color-accent),
      #60a5fa
    );

  box-shadow:
    0 14px 40px rgba(59,130,246,.45);

}


/* RESET COUNTER */
.service-process-list{
  counter-reset: step;
}


/* TEXT BLOCK (DESCRIPTION) */

.service-block-text{
  background:
    linear-gradient(
      180deg,
      #ffffff,
      #f8fafc
    );

  padding: 56px 60px;

  border-radius: 0px;

  box-shadow:
    0 32px 90px rgba(15,23,42,.10);

  margin-bottom: 0px;
}


.service-block-text h4{
  font-size: clamp(24px,3vw,30px);
  margin-bottom: 18px;

  padding-left: 6px;
  padding-right: 6px;

  color: #0f172a;
}


.service-block-content{
  font-size: 17px;
  line-height: 1.75;
  color: #475569;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 768px){

  .service-block-process{
    padding: 44px 28px;
  }

  .service-block-text{
    padding: 36px 28px;
  }

  .service-process-list li{
    padding: 32px 26px;
  }

  .service-process-list li::before{
    left: 20px;
  }

}

/* BIG NUMBER BADGE – FIXED POSITION */

.service-process-list li::before{
  counter-increment: step;
  content: counter(step);

  position: absolute;
  top: -26px;
  left: 32px;

  width: 60px;
  height: 60px;

  border-radius: 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 24px;
  font-weight: 800;
  font-family: var(--font-heading);

  color: #0f172a;

  background:
    linear-gradient(
      135deg,
      var(--color-accent),
      #60a5fa
    );

  box-shadow:
    0 16px 44px rgba(59,130,246,.45);

  z-index: 3;
}

/* =========================
   REMOVE GAP BETWEEN BLOCKS
========================= */

/* Text block */
.service-block-text{
  
  margin: 0 !important;
  box-shadow: none !important;
}

/* Process block */
.service-block-process{
  
  margin: 0 !important;
  box-shadow: none !important;
  background: none !important;
}

.service-link{
  text-decoration: none;
  border: 0;
  background: rgba(0,0,0,.65);
  padding: 10px 16px;
  border-radius: 8px;
  color:#fff;
  font-weight:600;
  backdrop-filter: blur(6px);
}

/* Service card title – refined gradient */
.section.services .service-card .service-title--card{
  background: linear-gradient(
    90deg,
    #1e293b 0%,     /* tume algus */
    #312e81 20%,    /* üleminek varem */
    #5b21b6 100%    /* lilla lõpp */
  );

  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}

/* Project card title – same gradient as services */
.section.projects .project-card h3{
  background: linear-gradient(
    90deg,
    #1e293b 0%,
    #312e81 20%,
    #5b21b6 100%
  );

  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}

/* WHY STATS – PREMIUM BADGE (dark text) */

.section.why-stats .why-stat-number{

  background: linear-gradient(
    135deg,
    #facc15,
    #f59e0b
  );

  /* Tume tekst (mitte päris must) */
  color: #1e293b; /* slate-800 */

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 72px;
  height: 48px;

  padding: 0 20px;

  border-radius: 12px;

  /* 🔥 Rasvasem tekst */
  font-weight: 800;

  font-size: 1.35rem;

  letter-spacing: .04em;

  box-shadow:
    0 6px 20px rgba(245,158,11,.35);

  margin-bottom: 16px;

  position: relative;
}

.hero::before{
  background-image: attr(style);
}
