/*
Theme Name: Heilares
Theme URI: https://heilares.ee
Author: Heilares OÜ
Author URI: https://heilares.ee
Description: Heilares OÜ ametlik WordPress teema – ehitussektori tööjõulahendused üle Euroopa.
Version: 1.5.0
License: GNU General Public License v2 or later
Text Domain: heilares
Tags: construction, recruitment, bilingual, landing-page
*/

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Fraunces:wght@600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: #f2ede6;
  color: #1c2b26;
  line-height: 1.7;
  font-size: 16px;
}

/* ===== TOP NAVBAR ===== */
.h-topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #1a2f2a;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.h-topnav-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.h-topnav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.2px;
  flex-shrink: 0;
}
.h-topnav-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
}
.h-topnav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

/* WP nav menu inside topnav */
.h-nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
}
.h-nav-menu li a {
  display: block;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: 7px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.h-nav-menu li a:hover,
.h-nav-menu li.current-menu-item a,
.h-nav-menu li.current_page_item a {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.h-nav-menu li.current-menu-item a,
.h-nav-menu li.current_page_item a {
  background: #1D9E75;
  color: #fff;
}

/* Lang toggle */
.h-lang-toggle {
  display: flex;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.18);
  overflow: hidden;
  margin-left: 0.75rem;
  flex-shrink: 0;
}
.h-lang-btn {
  background: transparent;
  color: rgba(255,255,255,0.55);
  border: none;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: background 0.15s, color 0.15s;
}
.h-lang-btn.active { background: rgba(255,255,255,0.15); color: #fff; }

/* Hamburger */
.h-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.h-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ===== HERO ===== */
.h-hero {
  background: #1a2f2a;
  color: #f2ede6;
  padding: 2.5rem 2rem 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.h-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 0%, rgba(29,158,117,0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(29,158,117,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.h-logo-wrap {
  position: relative;
  z-index: 1;
  margin-bottom: 1.25rem;
  animation: hFadeUp 0.7s ease both;
}
.h-logo-wrap img { width: 120px; height: 120px; object-fit: contain; }
.h-hero h1, .h-site-title {
  font-family: 'Fraunces', serif;
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
  animation: hFadeUp 0.7s 0.1s ease both;
}
.h-tagline {
  font-size: 1rem;
  color: #5DCAA5;
  position: relative;
  z-index: 1;
  animation: hFadeUp 0.7s 0.2s ease both;
}

/* ===== SECTIONS ===== */
.h-section {
  max-width: 860px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}
.h-sec-title {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #1a2f2a;
  margin-bottom: 1.25rem;
}

/* ===== INTRO ===== */
.h-intro {
  background: #fff;
  border-radius: 16px;
  border: 0.5px solid rgba(0,0,0,0.1);
  padding: 2rem 1.75rem;
  margin-bottom: 1.5rem;
}
.h-intro p { font-size: 0.95rem; color: #3a3a38; line-height: 1.8; }
.h-tagline-accent {
  display: inline-block;
  font-style: italic;
  color: #0F6E56;
  font-size: 1.05rem;
  margin-top: 0.75rem;
  font-family: 'Fraunces', serif;
}

/* ===== SERVICES GRID ===== */
.h-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem;
  margin-bottom: 2rem;
}
.h-service-item {
  background: #fff;
  border-radius: 14px;
  border: 0.5px solid rgba(0,0,0,0.1);
  padding: 1.5rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.h-service-item:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
.h-service-emoji { font-size: 1.6rem; flex-shrink: 0; margin-top: 2px; }
.h-service-item h3 { font-size: 0.95rem; font-weight: 600; color: #1a2f2a; margin-bottom: 3px; }
.h-service-item p { font-size: 0.82rem; color: #5F5E5A; line-height: 1.55; }

/* ===== GALLERY ===== */
.h-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.h-gallery-item {
  aspect-ratio: 4/3;
  background: #d4cfc8;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.h-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h-gallery-placeholder { font-size: 0.75rem; color: #888780; text-align: center; padding: 1rem; }

/* ===== REGIONS ===== */
.h-regions-wrap {
  background: #1a2f2a;
  border-radius: 16px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  color: #f2ede6;
}
.h-regions-wrap h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  color: #5DCAA5;
  margin-bottom: 1rem;
}
.h-regions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.h-region-tag {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(93,202,165,0.35);
  color: #9FE1CB;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 16px;
  border-radius: 20px;
  letter-spacing: 0.03em;
}

/* ===== CTA ===== */
.h-cta {
  background: #1D9E75;
  border-radius: 16px;
  padding: 2rem 1.75rem;
  text-align: center;
  color: #fff;
  margin-bottom: 1.5rem;
}
.h-cta h2 { font-family: 'Fraunces', serif; font-size: 1.3rem; margin-bottom: 0.5rem; }
.h-cta p { font-size: 0.9rem; opacity: 0.85; margin-bottom: 1.25rem; }
.h-cta a {
  display: inline-block;
  background: #fff;
  color: #1a2f2a;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.65rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.h-cta a:hover { opacity: 0.88; }

/* ===== CONTACT ===== */
.h-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.h-contact-card {
  background: #fff;
  border-radius: 12px;
  border: 0.5px solid rgba(0,0,0,0.1);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 12px;
}
.h-c-icon { font-size: 1.3rem; flex-shrink: 0; }
.h-c-label { font-size: 0.72rem; color: #888780; margin-bottom: 1px; }
.h-c-val { font-size: 0.9rem; font-weight: 500; color: #1a2f2a; }
.h-c-val a { color: #1a2f2a; text-decoration: none; }
.h-c-val a:hover { color: #0F6E56; }

/* ===== FOOTER ===== */
.h-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.78rem;
  color: #888780;
  border-top: 0.5px solid rgba(0,0,0,0.08);
  margin-top: 1rem;
}

/* ===== ANIMATIONS ===== */
@keyframes hFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 680px) {
  .h-burger { display: flex; }
  .h-topnav-brand span { display: none; }
  .h-topnav-links {
    display: none;
    position: absolute;
    top: 62px;
    left: 0; right: 0;
    background: #1a2f2a;
    border-top: 1px solid rgba(255,255,255,0.08);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.25rem;
  }
  .h-topnav-links.open { display: flex; }
  .h-nav-menu { flex-direction: column; align-items: flex-start; width: 100%; }
  .h-nav-menu li { width: 100%; }
  .h-nav-menu li a { padding: 0.6rem 0.5rem; font-size: 1rem; }
  .h-lang-toggle { margin-left: 0; margin-top: 0.75rem; }
  .h-hero h1, .h-site-title { font-size: 1.8rem; }
  .h-gallery { grid-template-columns: 1fr 1fr; }
  .h-contact-grid { grid-template-columns: 1fr; }
  .h-topnav { position: relative; }
}
@media (max-width: 400px) {
  .h-gallery { grid-template-columns: 1fr; }
}

/* ===== ELEMENTOR FULL WIDTH FIX ===== */
.elementor-page .h-hero,
.elementor-page .h-topnav {
  width: 100%;
}

/* Eemalda kõik laiuse piirangud Elementori lehtedel */
.elementor-page #page,
.elementor-page #content,
.elementor-page #primary,
.elementor-page .site-content,
.elementor-page main,
.elementor-page .h-section {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Elementori sektsioonid servast serva */
.elementor-section.elementor-section-stretched {
  left: 0 !important;
  width: 100% !important;
}

/* ===== TRANSLATEPRESS LANGUAGE SWITCHER ===== */
/* Peidame vana lang toggle kui TranslatePress on aktiivne */
.trp-language-switcher ~ .h-lang-toggle,
body.trp-active .h-lang-toggle {
  display: none;
}

/* Stiilime TranslatePress nupu sama moodi */
.trp-language-switcher,
.trp-language-switcher-shortcode {
  margin-left: 0.75rem;
}
.trp-language-switcher a,
.trp-language-switcher-shortcode a,
.trp-language-switcher select,
.trp-ls-shortcode-current-language {
  background: transparent !important;
  color: rgba(255,255,255,0.55) !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  border-radius: 7px !important;
  padding: 5px 12px !important;
  font-size: 0.78rem !important;
  font-family: 'DM Sans', sans-serif !important;
  text-decoration: none !important;
  cursor: pointer !important;
  letter-spacing: 0.05em !important;
  transition: background 0.15s, color 0.15s !important;
}
.trp-language-switcher a:hover,
.trp-language-switcher-shortcode a:hover {
  background: rgba(255,255,255,0.15) !important;
  color: #fff !important;
}
.trp-language-switcher .trp-ls-shortcode-current-language {
  background: rgba(255,255,255,0.15) !important;
  color: #fff !important;
}
/* Dropdown menüü */
.trp-language-switcher .trp-ls-shortcode-language-list,
.trp-language-switcher-shortcode .trp-ls-shortcode-language-list {
  background: #1a2f2a !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  margin-top: 4px !important;
}
.trp-language-switcher .trp-ls-shortcode-language-list a {
  border: none !important;
  border-radius: 0 !important;
  display: block !important;
}
.trp-language-switcher .trp-ls-shortcode-language-list a:hover {
  background: rgba(255,255,255,0.1) !important;
}
