/* =========================================================
   KAN Zavarivanje – styles.css
   Zadržan je vaš originalni dizajn (tamna #222 + narandžasta #f39c12),
   prilagođen novom HTML-u.
   ========================================================= */

:root {
  --dark: #222;
  --darker: #111;
  --accent: #f39c12;
  --accent-hover: #d35400;
  --text: #333;
  --muted: #666;
  --bg: #f9f9f9;
  --white: #fff;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ---------------- Header ---------------- */
.header {
  background: var(--dark);
  color: var(--white);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

.logo {
  font-weight: bold;
  font-size: 1.5em;
  color: var(--white);
  text-decoration: none;
}

.logo span {
  color: var(--accent);
}

.main-nav ul {
  display: flex;
  gap: 20px;
}

.main-nav a {
  color: var(--white);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.header-phone {
  display: inline-block;
  background: var(--accent);
  color: var(--darker);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s, color 0.3s;
}

.header-phone:hover {
  background: var(--accent-hover);
  color: var(--white);
}

/* Hamburger (skriven na desktopu) */
.menu-toggle {
  display: none;
  font-size: 2em;
  line-height: 1;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
}

/* ---------------- Dugmad ---------------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  border: 2px solid var(--accent);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.btn-primary {
  background: var(--accent);
  color: var(--darker);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--accent);
  color: var(--darker);
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  /* Stavite sliku u folder images/ (preporuka: WebP, ispod 200 KB) */
  background: var(--darker) url('images/hero-racunar.webp') center/cover no-repeat;
  color: var(--white);
  padding: 120px 0;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-subtitle {
  color: var(--accent);
  font-weight: bold;
  letter-spacing: 0.15em;
  margin-bottom: 10px;
}

.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 16px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.hero-locations {
  margin-bottom: 28px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #ffd27a;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

/* ---------------- Sekcije (opšte) ---------------- */
.section {
  padding: 70px 0;
}

.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
}

.section-subtitle {
  color: var(--accent-hover);
  font-weight: bold;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.section-heading h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.25;
  margin-bottom: 12px;
  color: var(--darker);
}

.section-heading p:last-child {
  color: var(--muted);
}

.section-action {
  text-align: center;
  margin-top: 40px;
}

.text-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent-hover);
  font-weight: bold;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

/* ---------------- Zašto mi ---------------- */
.why-us {
  background: var(--white);
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.why-card {
  background: var(--bg);
  padding: 25px 20px;
  border-radius: 10px;
  border-top: 4px solid var(--accent);
  box-shadow: var(--shadow);
}

.why-card h3 {
  margin-bottom: 8px;
  color: var(--darker);
}

/* ---------------- O nama ---------------- */
.about-content {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
}

.about-text p {
  margin-bottom: 15px;
}

.about-features {
  display: grid;
  gap: 15px;
}

.feature {
  background: var(--dark);
  color: var(--white);
  padding: 20px;
  border-radius: 10px;
  border-left: 5px solid var(--accent);
}

.feature h3 {
  color: var(--accent);
  margin-bottom: 4px;
}

/* ---------------- Usluge ---------------- */
.services {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--bg);
  padding: 25px 20px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.service-card h3 {
  margin-bottom: 8px;
  color: var(--darker);
}

/* ---------------- SEO tekst ---------------- */
.seo-text {
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.8;
}

.seo-text p {
  margin-bottom: 18px;
}

.seo-text a {
  color: var(--accent-hover);
  font-weight: bold;
}

/* ---------------- Lokacije ---------------- */
.locations {
  background: var(--dark);
  color: var(--white);
  text-align: center;
}

.locations .section-heading h2 {
  color: var(--white);
}

.locations .section-heading p:last-child {
  color: #ccc;
}

.locations .section-subtitle {
  color: var(--accent);
}

.locations-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.locations-list span,
.locations-list a {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--accent);
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: bold;
}

.locations-list a {
  color: var(--white);
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.locations-list a:hover {
  background: var(--accent);
  color: var(--darker);
}

.locations-note {
  color: #ccc;
  margin-bottom: 10px;
}

.locations .text-link {
  color: var(--accent);
}

/* ---------------- Poziv na akciju ---------------- */
.cta {
  background: var(--accent);
  color: var(--darker);
  text-align: center;
}

.cta h2 {
  margin-bottom: 10px;
}

.cta p {
  margin-bottom: 20px;
}

.cta .btn-primary {
  background: var(--darker);
  border-color: var(--darker);
  color: var(--white);
}

.cta .btn-primary:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--darker);
}

/* ---------------- Footer ---------------- */
.footer {
  background: var(--dark);
  color: var(--white);
  padding-top: 50px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  padding-bottom: 30px;
}

.footer h3 {
  color: var(--accent);
  margin-bottom: 12px;
}

.footer p,
.footer li {
  margin-bottom: 6px;
  color: #ddd;
}

.footer a {
  color: var(--white);
  text-decoration: none;
}

.footer a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  padding: 18px 0;
  font-size: 0.9rem;
}

/* ---------------- Brzi kontakt (plutajuće dugme) ---------------- */
.floating-contact {
  position: fixed;
  right: 15px;
  bottom: 15px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.floating-contact a {
  display: block;
  padding: 10px 16px;
  border-radius: 30px;
  color: var(--white);
  font-weight: bold;
  font-size: 0.9rem;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.floating-contact a[href*="wa.me"] { background: #1a8f4a; }
.floating-contact a[href^="viber"] { background: #7360f2; }
.floating-contact a[href^="tel"]   { background: var(--accent-hover); }

.floating-contact a:hover {
  filter: brightness(1.1);
}

/* ---------------- Stranice koje dolaze (galerija, kontakt) ---------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.gallery-grid img {
  width: 100%;
  border-radius: var(--radius);
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.contact-info {
  flex: 1 1 300px;
}

.contact-form {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font: inherit;
}

.contact-form button {
  padding: 12px;
  background: var(--accent);
  color: var(--darker);
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.contact-form button:hover {
  background: var(--accent-hover);
  color: var(--white);
}

/* ---------------- Slike ---------------- */
.about-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.photo {
  margin: 20px 0 25px;
}

.photo img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.photo-band {
  padding: 50px 0 70px;
}

.photo-band-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.photo-band-grid img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

/* ---------------- Unutrašnje stranice ---------------- */
.page-hero {
  background: var(--dark);
  color: var(--white);
  padding: 50px 0 45px;
  border-bottom: 4px solid var(--accent);
}

.page-hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 10px;
}

.page-hero p {
  color: #ddd;
  max-width: 700px;
}

.breadcrumbs {
  font-size: 0.9rem;
  margin-bottom: 15px;
  color: #bbb;
}

.breadcrumbs a {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.alt {
  background: var(--white);
}

.content {
  max-width: 860px;
}

.content h2 {
  color: var(--darker);
  margin-bottom: 15px;
}

.content h3 {
  color: var(--darker);
  margin: 20px 0 6px;
}

.content p {
  margin-bottom: 14px;
}

.content a {
  color: var(--accent-hover);
  font-weight: bold;
}

.check-list {
  margin: 10px 0 18px;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 8px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-hover);
  font-weight: bold;
}

.steps {
  margin: 10px 0 18px 22px;
}

.steps li {
  margin-bottom: 10px;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.content .link-card {
  display: block;
  background: var(--white);
  padding: 20px;
  border-radius: 10px;
  border-top: 4px solid var(--accent);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  font-weight: normal;
  transition: transform 0.3s;
}

.content .link-card:hover {
  transform: translateY(-4px);
}

.link-card h3 {
  margin: 0 0 4px;
}

.plain-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 25px;
}

.content.contact-wrap,
.contact-grid {
  align-items: flex-start;
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.gallery-grid figure {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery-grid figcaption {
  padding: 8px 12px;
  font-size: 0.9rem;
}

/* ---------------- Mobilni (do 768px) ---------------- */
@media (max-width: 768px) {

  /* Hamburger levo, logo u sredini, bez dugmeta za telefon */
  .menu-toggle {
    display: block;
    order: 1;
  }

  .logo {
    flex: 1;
    text-align: center;
    order: 2;
  }

  .header-phone {
    display: none;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: -5%;
    width: 110%;
    background: var(--dark);
    padding: 10px 5%;
    border-radius: 0 0 5px 5px;
    z-index: 1001;
  }

  .main-nav.nav-open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .hero {
    padding: 80px 0;
    background-image: url('images/hero-telefon.webp');
  }

  .hero-locations {
    font-size: 0.95rem;
    letter-spacing: 0;
  }

  .section {
    padding: 50px 0;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .photo-band {
    padding: 35px 0 50px;
  }

  .photo-band-grid {
    grid-template-columns: 1fr;
  }

  /* Brzi kontakt postaje traka na dnu ekrana */
  .floating-contact {
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: row;
    gap: 0;
  }

  .floating-contact a {
    flex: 1;
    border-radius: 0;
    padding: 14px 6px;
    box-shadow: none;
  }

  body {
    padding-bottom: 52px; /* da traka ne prekrije footer */
  }
}
