/* =========================
   Akenhaus – styles.css (puhas / parandatud)
   - Sümmeetriline paigutus (ühtne container + padding)
   - Ühtlane fondiskaala (desktop + mobile)
   - Kõik section'id (v.a. .hero ja .contact) = linear-gradient(#fff -> #f9fafb)
   ========================= */
html, body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

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

/* ===== GLOBAL SCALE ===== */
:root{
  /* Sticky header offset (muuda vajadusel) */
  --header-h: 90px;

  /* container + horizontal padding */
  --container: 1100px;
  --pad-x: clamp(20px, 5vw, 10%);

  /* typography */
  --fs-body: 16px;
  --lh-body: 1.65;

  --fs-h1: clamp(32px, 4.5vw, 48px);
  --fs-h2: clamp(24px, 3vw, 32px);
  --fs-h3: clamp(18px, 2vw, 22px);

  /* spacing */
  --sec-y: clamp(60px, 8vw, 110px);

  --gap-1: 12px;
  --gap-2: 20px;
  --gap-3: 30px;
}

body {
  font-family:'Inter', sans-serif;
  color:#1F2937;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

/* Sticky header offset ankrutele */
section[id], [id] { scroll-margin-top: var(--header-h); }

/* ===== SECTIONS: Ühtne padding ===== */
section { padding: var(--sec-y) var(--pad-x); }

/* ===== ÜHTLANE TAUST KÕIGILE SECTION'ITELE (v.a hero + contact) ===== */
section:not(.hero):not(.contact):not(.subpage_hero){
  background: linear-gradient(to bottom, #ffffff, #f9fafb);
  position: relative;
  overflow: hidden;
}

/* “Premium edge fade” (ainult non-hero/contact sektsioonidel) */
section:not(.hero):not(.contact):not(.subpage_hero)::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.55),
    rgba(255,255,255,0) 20%,
    rgba(255,255,255,0) 80%,
    rgba(0,0,0,0.02)
  );
}

/* Sisu overlay-st ettepoole */
section:not(.hero):not(.contact):not(.subpage_hero) > *{
  position: relative;
  z-index: 1;
}

/* Kõigi suurte plokkide ühtne sisu-laius (symmetry) */
section > :is(
  h2,
  .service-area,
  .services,
  .gallery-grid,
  .gallery,            /* <-- LISATUD */
  .contact-layout,
  .reviews,
  .sub_section,
  .sub_container,
  .map-wrapper
){
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

h2 {
  text-align:center;
  font-size: var(--fs-h2);
  margin-bottom: clamp(28px, 4vw, 50px);
  color:#0E3A8A;
}

h3{
  font-size: var(--fs-h3);
  line-height: 1.35;
}

/* ===== REVIEWS / SERVICES ===== */
.reviews {
  text-align: center;
}

/* Ühtne services grid */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-3);
  align-items: stretch;
}

/* Service card */
.service-card {
  background: white;
  padding: 30px;
  border-radius: 18px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  transition: 0.3s;
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.05);
  backdrop-filter: blur(10px);
  display:flex;
  flex-direction: column;
}

.service-card:hover {
  box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

.service-header {
  justify-content: space-between;
  text-align: center;
  align-items: center;
  cursor: pointer;
}

.arrow {
  font-size: 22px;
  transition: 0.3s;
  color: #2563EB;
}

.service-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  margin-top: var(--gap-1);
}

.service-card.active .service-content {
  max-height: 200px;
}

.service-card.active .arrow {
  transform: rotate(45deg);
}

.service-card h3 a {
  text-decoration: none;
  color: #1F2937;
  font-weight: 600;
  transition: 0.3s;
}

.service-card h3 a:hover {
  color: #2563EB;
}

/* Review card */
.review-card {
  background: white;
  max-width: 650px;
  margin: 30px auto;
  padding: 40px;
  border-radius: 18px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  transition: 0.3s;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.stars {
  font-size: 22px;
  color: #fbbf24;
  margin-bottom: 15px;
}

/* ===== HEADER / NAV ===== */
header {
  background:#0E3A8A;
  color:white;
  padding:15px var(--pad-x);
  display:flex;
  justify-content:space-between;
  align-items:center;

  position: sticky;
  top: 0;
  z-index: 10000;

  transition: padding 0.25s ease, box-shadow 0.25s ease;
  will-change: padding, box-shadow;
}

/* Shrink state (JS lisab .shrink) */
header.shrink {
  padding-top: 10px;
  padding-bottom: 10px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}

/* Logo 
.logo { font-size:22px; font-weight:700; }
.logo img { height: 120px; }
*/

.logo {
/*  aspect-ratio: 4 / 1; */
  width: 200px;
}



nav { display:flex; gap:25px; }
nav a {
  color:white;
  text-decoration:none;
  font-weight:600;
}

.phone {
  color: white;
  text-decoration: none;
  font-weight: 600;
  margin-left: 20px;
}

.menu-toggle {
  display:none;
  font-size:28px;
  cursor:pointer;
}

/* ===== HERO ===== */
.hero {
  background:
    url('images/hero.webp')
    center/cover no-repeat;
  height:90vh;
  display:flex;
  align-items:center;
  padding:0 var(--pad-x);
  color:white;
  position:relative;
}

.hero::before {
  content:"";
  position:absolute;
  inset:0;
  background:rgba(14,58,138,0.75);
}

.hero-content {
  position:relative;
  max-width:650px;
}

.hero h1 {
  font-size: var(--fs-h1);
  line-height: 1.08;
  margin-bottom: 18px;
}

.hero p {
  font-size: 1.0625rem; /* ~17px */
  margin-bottom: 26px;
  text-shadow: 0 5px 25px rgba(0,0,0,0.4);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-top: 25px;
  flex-wrap: wrap;
}

/* ===== SUB PAGES ===== */
.subpage_hero{
  background:#2563eb;
  color:white;
  padding:110px var(--pad-x);
  text-align:center;
}

.subpage_hero h1{
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom:10px;
}

.subpage_hero p{ opacity:0.9; }

.sub_container{
  max-width:1000px;
  margin:80px auto;
  padding:0 20px;
  display:grid;
  gap:30px;
  text-align:center;
}

.sub_card{
  background:white;
  padding:40px;
  border-radius:20px;
  box-shadow:0 20px 60px rgba(0,0,0,0.08);
  transition:0.3s;
}

.sub_card:hover{
  transform:translateY(-5px);
  box-shadow:0 25px 70px rgba(0,0,0,0.12);
}

.sub_card h3{
  margin-bottom:20px;
  color:#0E3A8A;
}

.price{ font-weight:700; font-size:18px; }

.sub_highlight{
  background:#EFF6FF;
  padding:4px 10px;
  border-radius:20px;
  font-size:14px;
  margin-left:10px;
  color:#2563EB;
}

.sub_info-box{
  background:white;
  padding:35px;
  border-radius:20px;
  box-shadow:0 20px 60px rgba(0,0,0,0.08);
  text-align:center;
}

.sub_info-box p{ margin-bottom:8px; }

.sub_cta{ text-align:center; margin:80px 0; }

.sub_btn{
  display:inline-block;
  padding:18px 40px;
  background:linear-gradient(135deg,#3B82F6,#2563EB);
  color:white;
  text-decoration:none;
  text-transform: uppercase;
  border-radius:50px;
  font-weight:600;
  transition:0.3s;
}

.sub_btn:hover{
  transform:translateY(-3px);
  box-shadow:0 15px 35px rgba(37,99,235,0.4);
}

.sub_section{
  padding: var(--sec-y) var(--pad-x);
  max-width:1100px;
  margin:auto;
  text-align:center;
}

.sub_section p{
  margin-bottom:20px;
  font-size:18px;
  line-height:1.6;
}

/* ===== BUTTONS ===== */
.btn {
  background:#3B82F6;
  color:white;
  padding:15px 30px;
  border-radius:8px;
  text-decoration:none;
  text-transform: uppercase;
  font-weight:600;
  display:inline-block;
  transition:0.3s;
}

.btn:hover { background:#2563EB; }

/* Primary */
.primary-btn { background: linear-gradient(135deg, #3B82F6, #2563EB); }

/* Secondary */
.secondary-btn {
  background: transparent;
  border: 2px solid white;
  box-shadow: none;
}

.secondary-btn:hover { background: rgba(255,255,255,0.1); }

/* form */
.form-btn {
  border: none;
  text-align: center;
  font-size: 16px;
}


/* ===== CARDS / MISC ===== */
.card {
  background: white;
  padding: 40px;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

/* ===== FAST MODERN GALLERY ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap-3);
  padding: 0;
}

/* kaart */
.gallery-item {
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
  background: #f6f6f6;
  transform: translateZ(0);
}

/* landscape default */
.gallery-item { aspect-ratio: 4 / 3; }

/* portrait pilt (pilt6) */
.gallery-item.portrait { aspect-ratio: 3 / 4; }

/* pilt */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  transition: transform .45s ease;
  will-change: transform;
}

/* hover */
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover { box-shadow: 0 18px 50px rgba(0,0,0,0.15); }

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.lightbox.is-open { display: block; }

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
}

.lightbox__panel {
  position: relative;
  max-width: min(1100px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  margin: 14px auto;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
}

.lightbox__img {
  width: 100%;
  height: auto;
  max-height: calc(100vh - 110px);
  object-fit: contain;
  border-radius: 16px;
  display: block;
  background: rgba(255,255,255,0.06);
  box-shadow: 0 25px 80px rgba(0,0,0,0.35);
}

.lightbox__caption {
  margin-top: 10px;
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
  padding: 0 48px;
}

.lightbox__btn {
  position: absolute;
  top: 12px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  background: rgba(0,0,0,0.45);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
  user-select: none;
}

.lightbox__btn:hover { background: rgba(0,0,0,0.65); }
.lightbox__close { right: 12px; }

.lightbox__prev,
.lightbox__next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 34px;
  width: 52px;
  height: 52px;
}

.lightbox__prev { left: 12px; }
.lightbox__next { right: 12px; }

@media (max-width: 600px) {
  .lightbox__prev, .lightbox__next { width: 46px; height: 46px; font-size: 30px; }
  .lightbox__caption { padding: 0 18px; }
}

/* Kui need klassid kuskil kasutusel: ära lase neil section gradienti üle kirjutada */
.why, .testimonials { background: transparent; }

/* ===== CONTACT ===== */
.contact {
  background:#0E3A8A;
  color:white;
  text-align:center;
}
.contact form { margin-top:0px; }
.contact h2 { color:#ffffff; }

.contact input, .contact textarea {
  width:100%;
  padding:14px;
  margin:10px auto;
  border-radius:8px;
  border:none;
  display:block;
}

footer { background:#111827; color:white; text-align:center; padding:20px; }

.testimonial-box {
  max-width:600px;
  margin:20px auto;
  padding:20px;
  background:white;
  border-radius:12px;
  box-shadow:0 5px 15px rgba(0,0,0,0.1);
}

/* ===== PRO FORM ===== */
.pro-form {
  max-width: 700px;
  margin: 0 auto 0 auto;
}

.form-row {
  display: flex;
  gap: 15px;
}

.pro-form input,
.pro-form textarea,
.pro-form select {
  width: 100%;
  padding: 14px;
  margin: 10px 0;
  border-radius: 8px;
  border: none;
  font-size: 16px;
}


.pro-form select { 
  cursor: pointer; }

.pro-form button {
  width: 100%;
  margin-top: 15px;
  cursor: pointer;
}

/* Peida label visuaalselt, aga jäta screen readeritele alles */
.pro-form label {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ===== CONTACT 2-COLUMN LAYOUT ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 2fr; /* 1/3 + 2/3 */
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
  max-width: 1200px;
  margin: 50px auto 0 auto;
}

.contact-info {
  text-align: left;
  background: rgba(255,255,255,0.06);
  padding: clamp(22px, 3vw, 30px);
  border-radius: 14px;
  backdrop-filter: blur(6px);
}

.contact-info h3 { margin-bottom: 20px; }

.contact-info p {
  margin-bottom: 18px;
  line-height: 1.6;
}

.contact-info a {
  color: white;
  text-decoration: none;
}
.contact-info a:hover { text-decoration: underline; }

/* ===== SERVICE AREA ===== */
.service-area {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.service-intro {
  font-size: 1rem;
  color: #444;
  margin-bottom: 22px;
}

.service-intro-last {
  font-size: 1rem;
  color: #444;
  margin-bottom: 0;
}

/* MAP */
.map-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  margin-bottom: 40px;
}

.map-wrapper iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border: 0;
}

/* COVERAGE */
.service-coverage p {
/*   max-width: 700px; */
  margin: 0 auto 30px auto;
  color: #555;
}

/* TRUST BLOCK 
.trust-block {
/* see on “sisemine kaart”, OK jätta */
/* background: #f8f9fa; */
  padding: 35px;
  border-radius: 12px;
  margin-top: 30px;
}
*/

 
.trust-block p {
/*  max-width: 700px; */
/*  margin: 0 auto 20px auto; */
}


.trust-list {
  list-style: none;
  padding: 0;
}

.trust-list li {
  margin: 8px 0;
  font-size: 16px;
}

/* COMPANY INFO */
.company-info { margin-top: 40px; }

.company-info p {
  max-width: 700px;
  margin: 0 auto;
  color: #555;
}

/* SEO LOCATIONS */
.seo-locations {
  font-size: 14px;
  color: #777;
  margin-top: 25px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-info { text-align: center; }
}

@media (max-width: 768px) {
  :root { --header-h: 85px; } /* ankrute offset mobiilis */

  header {
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 10000;
  }

.phone { font-size: 18px; font-weight: 700; }
/* .logo img { height: 50px; } */

.logo {
/*  aspect-ratio: 4 / 1; */
  width: 120px;
}


  /* Mobiili nav dropdown */
  nav {
    display: none !important;
    position: absolute;
    top: 100%;
    right: 0;
    background: #0E3A8A;
    flex-direction: column;
    width: 220px;
    padding: 20px;
    border-radius: 0 0 0 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 9999;
    animation: slideDown 0.18s ease;
  }

  nav.active { display: flex !important; }
  nav a { padding: 10px 0; }

  .menu-toggle { display: block; }

  .hero {
    height: auto;
    padding: 100px 20px 80px 20px;
    text-align: center;
    justify-content: center;
  }

  /* Sümmeetria: mobiilis ära tee H1 suuremaks kui desktop */
  .hero h1 {
    font-size: clamp(28px, 8vw, 40px);
    font-weight: 700;
    letter-spacing: -0.5px;
  }

  .hero p { font-size: 16px; }
  .hero-content { max-width: 100%; }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 320px;
  }

  /* mobiilis nupud “pill” stiilis */
  .btn {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    padding: 16px 35px;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(37,99,235,0.4);
  }

  .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(37,99,235,0.6);
  }

  section { padding: 60px 20px; }

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

  .form-row { flex-direction: column; }

  .subpage_hero h1{ font-size:30px; }
}

/* Smooth dropdown animation */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}