/* styles.css */
/* Font: Calibri ; fallbacks provided */
:root{
  --accent-green: #26b24b;
  --accent-blue: #2f8ef6;
  --popup-bg: #ffffff;
  --popup-shadow: 0 6px 18px rgba(0,0,0,.35);
}

/* reset-ish */
* { box-sizing: border-box; margin: 0; padding: 0; }
html,body { height: 100%; }
body{
  font-family: "Calibri", "Segoe UI", Roboto, Arial, sans-serif;
  background: #111;
  color: #fff;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Hero / background */
.hero{
  position: relative;
  min-height: 100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  padding: 2rem;
  background-image:url(pozadina.jpg); /* spremi sliku u isti folder */
  background-size: cover;
  background-position: center center;
}

/* dark overlay to increase contrast */
.hero .overlay{
  position:absolute; inset:0;
  background-color: rgba(0,0,0,0.55);
  pointer-events:none;
}

/* content centered */
.content{
  position: relative;
  z-index: 2;
  max-width: 1100px;
  text-align: center;
}

/* Sizes mapping:
   size-3 = najveće (headline)
   size-2 = quote
   size-1 = list items
*/
.size-3 { font-size: 56px; line-height:1.05; font-weight: 600; margin-bottom: 18px; }
.size-2 { font-size: 28px; font-style: italic; opacity: .95; margin-bottom: 26px; }
.size-2_1 { font-size: 28px; opacity: .95; margin-bottom: 26px;}
.size-1 { font-size: 22px; text-align: left; margin: 10px 0; display: list-item; list-style: none; }
.p {margin-bottom: 26px;}
/* features list - visually left-aligned but centered block */
.features {
  margin: 0 auto;
  display: inline-block;
  text-align: left;
  padding-left: 0;
}

/* checkmark using emoji as provided in content; can add spacing */
.features li::marker { content: ""; }
.features li { padding-left: 10px; }

/* Top-right flags */
.topbar {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
}
.flags { display:flex; gap:8px; }
.flag-btn{
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
  width:36px;
  height:24px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:4px;
}
.flag-btn img { width:100%; height:100%; object-fit:cover; border-radius:3px; }

/* Floating contact icons on right */
.contact-widgets{
  position: fixed;
  right: 18px;
  bottom: 40px;
  display:flex;
  flex-direction: column;
  gap: 14px;
  z-index: 40;
}

/* widget wrapper */
.widget{ position: relative; }

/* circular buttons */
.widget-btn{
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display:flex;
  align-items:center;
  justify-content:center;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.phone-widget .widget-btn{ background: var(--accent-green); }
.email-widget .widget-btn{ background: var(--accent-blue); }

/* popup that appears near the button */
.widget-popup{
  position: absolute;
  right: 78px; /* pop left from the circle */
  top: 50%;
  transform: translateY(-50%) scale(.98);
  background: var(--popup-bg);
  color: #222;
  padding: 10px 14px;
  border-radius: 8px;
  min-width: 220px;
  box-shadow: var(--popup-shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  border: 1px solid rgba(0,0,0,.06);
}

/* little arrow */
.widget-popup::after{
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: transparent transparent transparent var(--popup-bg);
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.06));
}

/* visible state */
.widget-popup.show{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}

/* text inside popup */
.popup-text{
  font-size: 16px;
  line-height: 1.25;
  font-weight: 600;
}
.footer {
  background: #000;
  padding: 20px;
  text-align: center;
  font-family: Calibri, sans-serif;
  font-size: 14px;
  color: #fff;
}

.footer-content {
  margin: 10px 0;
}

.footer h4 {
  margin-bottom: 5px;
  font-size: 16px;
  font-weight: bold;
}

/* Responsive tweaks */
@media (max-width: 800px){
  .size-3 { font-size: 34px; }
  .size-2 { font-size: 20px; }
  .size-2_1 { font-size: 20px; }
  .size-1 { font-size: 18px; }
  .widget-popup { min-width: 180px; right: 72px; }
}
