/* =====================================================
   HARO Inštalacije - Static CSS
   Edit colors in :root variables to rebrand
   ===================================================== */

:root {
  --primary: #1369c4;
  --primary-dark: #0e539e;
  --primary-fg: #ffffff;
  --foreground: #1f2937;
  --muted-fg: #6b7280;
  --background: #f7f9fc;
  --card: #ffffff;
  --section-alt: #eef2f7;
  --border: #e1e7ee;
  --hero-overlay: rgba(7, 51, 102, 0.85);
  --success: #16a34a;
  --warning: #f59e0b;
  --radius: 12px;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --shadow-sm: 0 2px 6px rgba(0,0,0,.06);
  --shadow-md: 0 8px 20px rgba(0,0,0,.08);
  --shadow-lg: 0 20px 40px rgba(0,0,0,.15);
}

/* ====== Reset / Base ====== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--foreground);
  background: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); font-weight: 800; line-height: 1.2; color: var(--foreground); }

/* ====== Layout helpers ====== */
.container { max-width: 1152px; margin: 0 auto; padding: 0 1rem; }
@media (min-width:768px) { .container { padding: 0 2rem; } }
.container-narrow { max-width: 768px; }
.section-padding { padding: 4rem 1rem; }
@media (min-width:768px) { .section-padding { padding: 6rem 2rem; } }

.bg-card { background: var(--card); }
.bg-section-alt { background: var(--section-alt); }

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 { font-size: 1.875rem; margin-top: .5rem; }
@media (min-width:768px) { .section-header h2 { font-size: 2.25rem; } }
.section-header p { color: var(--muted-fg); margin-top: 1rem; max-width: 36rem; margin-left: auto; margin-right: auto; }
.kicker { color: var(--primary); font-weight: 600; font-size: .875rem; text-transform: uppercase; letter-spacing: .1em; }

.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width:640px) { .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (min-width:768px) { .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (min-width:1024px) { .grid-3 { grid-template-columns: repeat(3,1fr); } .grid-4 { grid-template-columns: repeat(4,1fr); } }

.icon { width: 1rem; height: 1rem; }

/* ====== Buttons ====== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .625rem 1.25rem; border-radius: var(--radius); font-weight: 600;
  font-size: .875rem; transition: all .2s; white-space: nowrap;
}
.btn svg { width: 1rem; height: 1rem; }
.btn-sm { padding: .5rem 1rem; font-size: .875rem; }
.btn-lg { padding: .875rem 2rem; font-size: 1rem; }
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-white { background: #fff; color: var(--primary); border: 1px solid rgba(255,255,255,.3); }
.btn-white:hover { background: rgba(255,255,255,.9); }

/* ====== Navbar ====== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s, box-shadow .3s;
  background: transparent;
}
.navbar.scrolled { background: var(--primary); box-shadow: var(--shadow-md); }
.nav-container {
  max-width: 1152px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 5rem; padding: 0 1rem;
}
@media (min-width:768px) { .nav-container { height: 6rem; padding: 0 2rem; } }
.nav-logo img { height: 5rem; width: auto; transition: all .3s; }
@media (min-width:768px) { .nav-logo img { height: 5rem; } }
@media (min-width:1024px) { .nav-logo img { height: 6rem; } }

.nav-links { display: none; align-items: center; gap: 2rem; }
@media (min-width:1024px) { .nav-links { display: flex; } }
.nav-links a { font-size: .875rem; font-weight: 500; color: rgba(255,255,255,.9); transition: color .2s; }
.nav-links a:hover { color: #fff; }

.nav-actions { display: flex; align-items: center; gap: .75rem; }
.desktop-only { display: none; }
@media (min-width:1024px) { .desktop-only { display: inline-flex; } }

/* Language switcher */
.lang-switch { display: flex; align-items: center; gap: .5rem; }
.flag { width: 1.5rem; height: 1rem; border-radius: 2px; border: 1px solid rgba(0,0,0,.1); display: block; }
.lang-btn { padding: 2px; border-radius: 4px; opacity: .6; transition: all .2s; }
.lang-btn:hover { opacity: 1; }
.lang-btn.active { opacity: 1; box-shadow: 0 0 0 2px #fff; }

/* Mobile menu */
.menu-toggle { display: flex; padding: .5rem; color: #fff; }
.menu-toggle svg { width: 1.5rem; height: 1.5rem; }
@media (min-width:1024px) { .menu-toggle { display: none; } }
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--card); border-top: 1px solid var(--border);
  box-shadow: var(--shadow-md); padding: 1rem; gap: .25rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: .75rem 1rem; color: var(--foreground); font-weight: 500; border-radius: 8px; }
.mobile-menu a:hover { background: var(--section-alt); }
.mobile-menu .btn { margin-top: .5rem; }

/* ====== Hero ====== */
.hero {
  position: relative; min-height: 90vh;
  display: flex; align-items: center; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(7,51,102,.92), rgba(7,51,102,.75) 60%, rgba(7,51,102,.4));
}
.hero-content { position: relative; padding: 8rem 1rem 6rem; max-width: 1152px; }
@media (min-width:768px) { .hero-content { padding: 8rem 2rem; } }
.hero-content > * { max-width: 36rem; }
.badge {
  display: inline-block; padding: .375rem 1rem; border-radius: 9999px;
  background: rgba(19,105,196,.2); color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  font-weight: 500; margin-bottom: 1.5rem; font-size: 1rem;
}
.hero h1 {
  font-size: 2.25rem; color: #fff; margin-bottom: 1.5rem; font-weight: 800;
}
@media (min-width:1024px) { .hero h1 { font-size: 3.75rem; } }
.hero p { font-size: 1.125rem; color: rgba(255,255,255,.85); margin-bottom: 2rem; }
@media (min-width:768px) { .hero p { font-size: 1.25rem; } }
.hero-buttons { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width:640px) { .hero-buttons { flex-direction: row; } }

/* ====== Cards (advantages/services/testimonials) ====== */
.advantage-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 1.5rem; border-radius: var(--radius); background: rgba(238,242,247,.5);
  border: 1px solid var(--border);
}
.advantage-card h3 { font-size: 1.125rem; margin-bottom: .5rem; }
.advantage-card p { color: var(--muted-fg); font-size: .875rem; }

.icon-circle, .icon-square {
  display: flex; align-items: center; justify-content: center;
  background: rgba(19,105,196,.1); color: var(--primary); margin-bottom: 1rem;
}
.icon-circle { width: 3.5rem; height: 3.5rem; border-radius: var(--radius); }
.icon-circle svg { width: 1.75rem; height: 1.75rem; }
.icon-square { width: 3rem; height: 3rem; border-radius: 8px; transition: all .2s; }
.icon-square svg { width: 1.5rem; height: 1.5rem; }

.service-card {
  background: var(--card); border-radius: var(--radius); padding: 2rem;
  border: 1px solid var(--border); transition: all .2s;
}
.service-card:hover { box-shadow: var(--shadow-md); border-color: rgba(19,105,196,.3); }
.service-card:hover .icon-square { background: var(--primary); color: #fff; }
.service-card h3 { font-size: 1.125rem; margin-bottom: .75rem; }
.service-card p { color: var(--muted-fg); font-size: .875rem; line-height: 1.6; }

.testimonial-card {
  background: var(--card); border-radius: var(--radius); padding: 2rem;
  border: 1px solid var(--border);
}
.stars { color: var(--warning); margin-bottom: 1rem; font-size: 1.125rem; letter-spacing: 2px; }
.testimonial-card p { color: var(--muted-fg); margin-bottom: 1.5rem; line-height: 1.6; }
.testimonial-card .author { font-family: var(--font-heading); font-weight: 700; color: var(--foreground); }

/* ====== Gallery ====== */
.gallery-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width:640px) { .gallery-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width:1024px) { .gallery-grid { grid-template-columns: repeat(3,1fr); } }
.gallery-item {
  cursor: pointer; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4/3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-item:hover img { transform: scale(1.05); }

.lightbox {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.9); align-items: center; justify-content: center; padding: 1rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 85vh; border-radius: var(--radius); object-fit: contain; }
.lightbox-close {
  position: absolute; top: 1rem; right: 1rem;
  color: #fff; font-size: 2.5rem; line-height: 1; padding: .5rem;
}

/* ====== About ====== */
.about-grid { display: grid; gap: 3rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width:1024px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-img { position: relative; }
.about-img img { border-radius: 1rem; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.about-badge {
  position: absolute; bottom: -1.5rem; right: -1.5rem;
  background: var(--primary); color: #fff; padding: 1.5rem; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); display: none;
}
@media (min-width:768px) { .about-badge { display: block; } }
.about-badge .years { font-family: var(--font-heading); font-size: 1.875rem; font-weight: 800; }
.about-badge p:last-child { font-size: .875rem; font-weight: 500; }
.about-grid h2 { font-size: 1.875rem; margin-top: .5rem; margin-bottom: 1.5rem; }
@media (min-width:768px) { .about-grid h2 { font-size: 2.25rem; } }
.about-desc { color: var(--muted-fg); margin-bottom: 1.5rem; }
.check-list li { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: .75rem; font-size: .875rem; }
.check-list .check { color: var(--success); font-weight: bold; flex-shrink: 0; }

/* ====== FAQ Accordion ====== */
.faq-list { display: flex; flex-direction: column; gap: .75rem; }
.faq-item {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 0 1.5rem;
}
.faq-q {
  width: 100%; padding: 1.25rem 0; display: flex;
  justify-content: space-between; align-items: center; gap: 1rem;
  font-family: var(--font-heading); font-weight: 600; color: var(--foreground);
  text-align: left; font-size: 1rem;
}
.faq-arrow { transition: transform .2s; flex-shrink: 0; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
  color: var(--muted-fg);
}
.faq-item.open .faq-a { max-height: 500px; }
.faq-a p { padding: 0 0 1.25rem; line-height: 1.6; }

/* ====== Contact ====== */
.contact-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width:1024px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width:640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-group { display: flex; flex-direction: column; }
.form-group label { font-size: .875rem; font-weight: 500; margin-bottom: .375rem; }
.form-group input, .form-group textarea {
  padding: .625rem .875rem; border: 1px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: .875rem; background: var(--card); color: var(--foreground);
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(19,105,196,.15);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-msg { font-size: .875rem; min-height: 1.25rem; }
.form-msg.success { color: var(--success); }
.form-msg.error { color: #dc2626; }

.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.info-row { display: flex; gap: 1rem; align-items: flex-start; }
.info-icon {
  width: 2.75rem; height: 2.75rem; border-radius: 8px;
  background: rgba(19,105,196,.1); color: var(--primary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.info-icon svg { width: 1.25rem; height: 1.25rem; }
.info-label { font-size: .875rem; color: var(--muted-fg); }
.info-row a, .info-row p:not(.info-label) { font-weight: 500; color: var(--foreground); }
.info-row a:hover { color: var(--primary); }
.map-wrap {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  height: 250px;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ====== Partners ====== */
.partners-section {
  background: rgba(238,242,247,.5); padding: 2.5rem 0; overflow: hidden;
}
.partners-track {
  display: flex; gap: 4rem; width: max-content;
  animation: scroll-left 30s linear infinite;
}
.partners-track span {
  font-size: 1.25rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--foreground); opacity: .4; white-space: nowrap;
}
@media (min-width:768px) { .partners-track span { font-size: 1.5rem; } }
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-33.333%); }
}

/* ====== Footer ====== */
.footer { background: #1f2937; color: rgba(255,255,255,.7); padding: 3rem 1rem; }
@media (min-width:768px) { .footer { padding: 3rem 2rem; } }
.footer-grid {
  display: grid; gap: 2rem; margin-bottom: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width:768px) { .footer-grid { grid-template-columns: repeat(4,1fr); } }
.footer-brand {
  font-family: var(--font-heading); font-weight: 700; font-size: 1.125rem;
  color: #fff; margin-bottom: 1rem;
}
.footer h4 { color: #fff; margin-bottom: 1rem; font-size: 1rem; }
.footer ul li { font-size: .875rem; margin-bottom: .5rem; }
.footer ul a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem; text-align: center; font-size: .875rem;
}
.footer-links { display: flex; justify-content: center; gap: 1rem; margin-top: .75rem; }
.footer-links a:hover { color: #fff; }

/* ====== Floating Call ====== */
.floating-call {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 50;
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); transition: transform .2s;
}
.floating-call:hover { transform: scale(1.1); }
.floating-call svg { width: 1.5rem; height: 1.5rem; }

/* ====== Sub-pages (terms / privacy) ====== */
.subpage-header {
  background: var(--primary); color: #fff; padding: 1rem;
}
.subpage-header .container {
  display: flex; align-items: center; justify-content: space-between;
}
.subpage-header img { height: 2.5rem; width: auto; }
.subpage-header a { font-size: .875rem; }
.subpage-header a:hover { text-decoration: underline; }
.subpage-main { max-width: 1152px; margin: 0 auto; padding: 3rem 1rem; }
@media (min-width:768px) { .subpage-main { padding: 3rem 2rem; } }
.subpage-main h1 { font-size: 1.875rem; margin-bottom: 2rem; }
@media (min-width:768px) { .subpage-main h1 { font-size: 2.25rem; } }
.subpage-main h2 { font-size: 1.25rem; margin-bottom: .75rem; margin-top: 1.5rem; }
.subpage-main p { color: rgba(31,41,55,.85); margin-bottom: 1rem; line-height: 1.7; }
.subpage-main ul.disc { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.subpage-main ul.disc li { color: rgba(31,41,55,.85); margin-bottom: .25rem; }
.subpage-footer-note {
  font-size: .875rem; color: var(--muted-fg);
  border-top: 1px solid var(--border); padding-top: 1rem; margin-top: 2rem;
}
