/* =====================
   Servis Klima Beograd — kompletan stil (v3)
   Fokus: čitljivost, responsive, mobile fix za price-head,
   jača vizuelna razlika naslov/cena
   ===================== */

/* Reset & base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #17202A;                /* tamno-siva za tekst */
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #e63946; text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
.container { width: min(1100px, 92%); margin: 0 auto; }
:focus-visible { outline: 3px solid #e63946; outline-offset: 2px; }

/* Utilities */
.hidden { display: none !important; }
.accent { color: #e63946; }

/* Buttons */
.btn { display: inline-block; padding: 12px 18px; border-radius: 12px; font-weight: 700; border: 2px solid transparent; line-height: 1; cursor: pointer; }
.btn-primary { background: #e63946; color: #fff; }
.btn-primary:hover { background: #ce2d3a; }
.btn-secondary { background: #fff; border-color: #e63946; color: #e63946; }
.btn-secondary:hover { background: #ffecee; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #ffffffcc; backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid #eee; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; gap: 16px; }
.logo img { display: block; }
.nav-toggle { display: none; }
.nav-menu { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; align-items: center; }
.nav-menu a { font-weight: 600; }
.cta-phone { font-weight: 800; white-space: nowrap; }

/* Hero */
.hero { background: linear-gradient(180deg, #fff 0%, #f8fafc 100%); }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 28px; padding: 40px 0 24px; }
.hero h1 { font-size: clamp(28px, 4vw, 46px); line-height: 1.1; margin: 0 0 12px; color: #0D1B2A; } /* tamno-plavi naslov */
.hero p { font-size: 18px; color: #334155; margin: 0 0 10px; }
.hero-actions { display: flex; gap: 12px; margin: 18px 0; flex-wrap: wrap; }
.hero-bullets { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; list-style: none; padding: 0; margin: 12px 0 0; }
.hero-bullets li { background: #fff; border: 1px solid #eee; padding: 12px 14px; border-radius: 12px; text-align: center; font-weight: 600; }
.hero-art { justify-self: end; }

/* Sections */
.section { padding: 60px 0; }
.section.alt { background: #f8fafc; }
.section h2 { font-size: clamp(22px, 3vw, 34px); margin: 0 0 20px; color: #0D1B2A; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card, .benefit { border: 1px solid #eee; border-radius: 14px; padding: 18px; background: #fff; }
.card h3, .benefit h3 { margin-top: 0; color: #0D1B2A; }

/* Prices */
.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.price-item { border: 1px solid #eee; border-radius: 14px; background: #fff; overflow: hidden; }

.price-head {
  display: flex;
  align-items: baseline;         /* lepo poravnanje na većim ekranima */
  justify-content: space-between;
  gap: 8px;
  padding: 16px 18px;
  border-bottom: 1px solid #eee;
  flex-wrap: wrap;               /* sprečava lepljenje teksta */
}
.price-item h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  color: #0D1B2A;                /* tamno-plavi naslov */
}

/* Kontrastna značka cene */
.price-badge {
  font-size: 16px;
  font-weight: 800;
  background: #e63946;           /* crvena značka */
  color: #fff;
  padding: 6px 10px;
  border-radius: 10px;
  line-height: 1;
  white-space: nowrap;           /* ne lomi cifre */
}

/* Lista stavki u ceni */
.price-item ul { 
  margin: 0; 
  padding: 14px 24px 20px 36px;
  color: #334155;
}
.price-item ul li { margin-bottom: 8px; }
.price-item ul li:last-child { margin-bottom: 0; }

.note { color: #555; font-size: 14px; margin-top: 12px; }

/* FAQ */
.faq { border: 1px solid #eee; border-radius: 12px; padding: 12px 16px; background: #fff; margin-bottom: 10px; }
.faq > summary { font-weight: 700; cursor: pointer; list-style: none; color: #0D1B2A; }
.faq[open] { border-color: #e63946; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 22px; }
.contact-form { display: grid; gap: 12px; border: 1px solid #eee; padding: 16px; border-radius: 14px; background: #fff; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; color: #0D1B2A; }
.contact-form input, .contact-form textarea { padding: 12px; border-radius: 10px; border: 1px solid #cfcfd2; font: inherit; background: #fff; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid #e63946; border-color: #e63946; }
.consent { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.form-status { margin: 0; font-size: 14px; min-height: 1.2em; }
.contact-aside { display: grid; gap: 12px; }
.contact-card { border: 1px solid #eee; padding: 14px; border-radius: 12px; background: #fff; }

/* Footer */
.site-footer { border-top: 1px solid #eee; background: #fff; }
.footer-inner { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 18px 0; }
.footer-nav { list-style: none; display: flex; gap: 14px; margin: 0; padding: 0; }
.footer-legal a { color: #555; }

/* Dialog */
dialog { border: none; padding: 0; border-radius: 12px; max-width: 680px; width: 92%; }
dialog::backdrop { background: #0006; }
dialog > article { padding: 16px; }
dialog header { display: flex; align-items: center; justify-content: space-between; }
#pp-close { border: none; background: #0000; font-size: 24px; cursor: pointer; }

/* Responsive */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { justify-self: start; }
}
@media (max-width: 900px) {
  .grid-3, .prices { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-bullets { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav-toggle { display: inline-flex; padding: 8px 12px; border-radius: 8px; border: 1px solid #ddd; background: #fff; }
  .nav-menu { display: none; position: absolute; right: 4%; top: 60px; background: #fff; border: 1px solid #eee; border-radius: 10px; padding: 10px; flex-direction: column; gap: 10px; }
  .nav-menu.open { display: flex; }
  .header-inner { align-items: center; }
  .cta-phone { display: none; }

  .grid-3, .prices { grid-template-columns: 1fr; }

  /* MOBILNI FIX: naslov gore, cena ispod kao značka */
  .price-head { 
    flex-direction: column;      /* uvek u dva reda na uskom ekranu */
    align-items: flex-start;
    gap: 8px;
  }

  .price-item ul { padding: 14px 20px 20px 30px; }
}


.mobile-contact-bar {
    display: none;
}

@media (max-width: 768px) {

    .mobile-contact-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 99999;
    }

    .mobile-contact-bar a {
        flex: 1;
        text-align: center;
        padding: 16px 0;
        color: #fff;
        font-size: 18px;
        font-weight: 700;
        text-decoration: none;
    }

    .call-btn {
        background: #28a745;
    }

    .wa-btn {
        background: #007bff;
    }

    body {
        padding-bottom: 65px;
    }
}

