/* radimplocice.com - Profesionalno postavljanje pločica */
/* Minimalni, brzi, SEO-optimizirani CSS */

:root {
  --primary: #2c5f8d;
  --primary-dark: #1a3f63;
  --secondary: #e67e22;
  --text: #333;
  --text-light: #666;
  --bg: #fff;
  --bg-light: #f8f9fa;
  --border: #e0e0e0;
  --shadow: rgba(0,0,0,0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

/* Typography */
h1, h2, h3, h4 {
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--secondary);
}

/* Header */
header {
  background: var(--primary);
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px var(--shadow);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
}

.logo:hover {
  color: var(--secondary);
}

/* Navigation */
nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

nav a {
  color: white;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background 0.3s;
}

nav a:hover {
  background: var(--primary-dark);
  color: white;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 4rem 1rem;
  text-align: center;
}

.hero h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

/* Grid Layouts */
.services-grid,
.cities-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

/* Cards */
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow);
}

.card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.card p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--secondary);
  color: white;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  transition: background 0.3s, transform 0.2s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: #d35400;
  color: white;
  transform: scale(1.05);
}

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

.btn-primary:hover {
  background: var(--primary-dark);
}

/* Contact Section */
.contact-section {
  background: var(--bg-light);
  padding: 3rem 1rem;
  text-align: center;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.contact-item {
  text-align: center;
}

.contact-item svg,
.contact-item img {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: var(--primary);
}

.contact-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.contact-item a {
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 600;
}

/* Pricing Table */
.pricing-table {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  margin: 2rem 0;
  box-shadow: 0 4px 20px var(--shadow);
}

.pricing-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  border-bottom: 1px solid var(--border);
  padding: 1.5rem;
  transition: background 0.3s;
}

.pricing-row:hover {
  background: var(--bg-light);
}

.pricing-row:first-child {
  background: var(--primary);
  color: white;
  font-weight: 700;
}

.pricing-row span:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--secondary);
}

/* Gallery */
.gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4/3;
  background: var(--bg-light);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Features List */
.features {
  list-style: none;
  margin: 2rem 0;
}

.features li {
  padding: 1rem;
  margin-bottom: 1rem;
  background: var(--bg-light);
  border-left: 4px solid var(--primary);
  border-radius: 4px;
}

.features li:before {
  content: "✓ ";
  color: var(--secondary);
  font-weight: 700;
  margin-right: 0.5rem;
}

/* Cities Section */
.cities-grid .card {
  text-align: center;
}

/* Calculator */
.calculator {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px var(--shadow);
  max-width: 600px;
  margin: 2rem auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 1rem;
}

.result {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 8px;
  margin-top: 2rem;
  text-align: center;
}

.result h3 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  background: var(--primary-dark);
  color: white;
  padding: 3rem 1rem 1rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: white;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255,255,255,0.8);
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }

  nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .header-container {
    flex-direction: column;
    text-align: center;
  }

  .pricing-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .pricing-row span:last-child {
    text-align: left;
  }

  .contact-info {
    flex-direction: column;
    gap: 2rem;
  }
}

/* Performance & SEO */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Accessibility */
:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  header, footer, nav, .btn { display: none; }
  body { color: black; }
  a { text-decoration: underline; }
}
