/* radimstolariju.com - Profesionalni stolar i izrađivač namještaja */
/* Moderan, minimalistički, SEO-optimizirani CSS */

:root {
  --primary: #2d5016;
  --primary-dark: #1a3009;
  --secondary: #c67c3a;
  --accent: #8b4513;
  --text: #2c2c2c;
  --text-light: #5a5a5a;
  --bg: #fefefe;
  --bg-light: #f5f3f0;
  --bg-wood: #e8dcc8;
  --border: #d4c4b0;
  --shadow: rgba(45, 80, 22, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

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

h1 { font-size: 2.8rem; letter-spacing: -0.5px; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.3rem; }

p { margin-bottom: 1.2rem; }

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

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

/* Header */
header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 1.2rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px var(--shadow);
}

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

.logo {
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  letter-spacing: 0.5px;
}

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

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

nav a {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  text-decoration: none;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  transform: translateY(-1px);
}

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

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
}

.hero h1 {
  color: white;
  font-size: 3.2rem;
  margin-bottom: 1.2rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.35rem;
  margin-bottom: 2.5rem;
  opacity: 0.97;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Container */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

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

/* Cards */
.card {
  background: white;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
  transition: all 0.4s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px var(--shadow);
  border-color: var(--secondary);
}

.card h3 {
  color: var(--primary);
  margin-bottom: 1.2rem;
  font-size: 1.5rem;
}

.card h3 a {
  color: var(--primary);
  text-decoration: none;
}

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

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  background: var(--secondary);
  color: white;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
  margin: 0.5rem;
}

.btn:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(198, 124, 58, 0.4);
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(45, 80, 22, 0.4);
}

/* Contact Section */
.contact-section {
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-wood) 100%);
  padding: 4rem 1.5rem;
  text-align: center;
  border-top: 3px solid var(--border);
}

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

.contact-item {
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  min-width: 200px;
}

.contact-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
  color: var(--primary);
}

.contact-item a {
  color: var(--secondary);
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
}

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

.contact-item p {
  color: var(--text-light);
  margin: 0;
}

/* Pricing Table */
.pricing-table {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  margin: 2.5rem 0;
  box-shadow: 0 6px 25px var(--shadow);
  border: 2px solid var(--border);
}

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

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

.pricing-row:first-child {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-weight: 700;
}

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

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

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 4/3;
  background: var(--bg-light);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

.gallery-item:hover img {
  transform: scale(1.15) rotate(1deg);
}

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

.features li {
  padding: 1.3rem 1.5rem;
  margin-bottom: 1.2rem;
  background: var(--bg-light);
  border-left: 5px solid var(--primary);
  border-radius: 6px;
  transition: all 0.3s;
}

.features li:hover {
  background: var(--bg-wood);
  border-left-color: var(--secondary);
  transform: translateX(5px);
}

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

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

/* Calculator */
.calculator {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 30px var(--shadow);
  max-width: 650px;
  margin: 2.5rem auto;
  border: 2px solid var(--border);
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.9rem;
  border: 2px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  outline: none;
}

.result {
  background: linear-gradient(135deg, var(--bg-light), var(--bg-wood));
  padding: 2.5rem;
  border-radius: 12px;
  margin-top: 2.5rem;
  text-align: center;
  border: 2px solid var(--secondary);
}

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

/* Footer */
footer {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #0d1a04 100%);
  color: white;
  padding: 4rem 1.5rem 1.5rem;
  margin-top: 5rem;
}

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

.footer-section h4 {
  color: white;
  margin-bottom: 1.2rem;
  font-size: 1.2rem;
  border-bottom: 2px solid var(--secondary);
  padding-bottom: 0.5rem;
}

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

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

.footer-section a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: all 0.3s;
}

.footer-section a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
}

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

  nav ul {
    flex-direction: column;
    gap: 0.3rem;
    width: 100%;
  }

  nav a {
    display: block;
    text-align: center;
  }

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

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

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

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

  .services-grid,
  .cities-grid {
    grid-template-columns: 1fr;
  }
}

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

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

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