/* Tapetar Milan Rijeka — glavni stylesheet */

:root {
  --color-bg: #faf6f1;
  --color-surface: #ffffff;
  --color-text: #2b2420;
  --color-muted: #6b5f55;
  --color-primary: #b5602e;
  --color-primary-dark: #8f4a22;
  --color-accent: #3c5a4a;
  --color-border: #e6dccf;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(43, 36, 32, 0.08);
  --max-width: 1140px;
  --font-heading: Georgia, "Times New Roman", serif;
  --font-body: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

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

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

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-text);
  line-height: 1.25;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--color-primary-dark);
  letter-spacing: 0.5px;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 8px 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  margin: 4px 0;
}

.main-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.95rem;
}

.main-nav a.active {
  color: var(--color-primary);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-phone {
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary:hover {
  background: var(--color-primary-dark);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(43,36,32,0.82) 0%, rgba(43,36,32,0.55) 55%, rgba(43,36,32,0.35) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 110px 0 100px;
  max-width: 640px;
}

.hero .eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #f1d9c5;
  margin-bottom: 14px;
}

.hero h1 {
  color: #fff;
  font-size: 2.6rem;
  margin-bottom: 18px;
}

.hero p.lead {
  font-size: 1.1rem;
  color: #f2ece4;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.page-banner {
  position: relative;
  color: #fff;
  min-height: 280px;
  display: flex;
  align-items: center;
}

.page-banner .hero-image {
  z-index: 0;
}

.page-banner .hero-overlay {
  background: rgba(43,36,32,0.68);
}

.page-banner .hero-content {
  padding: 60px 0;
  max-width: 760px;
}

.page-banner h1 {
  color: #fff;
  margin-bottom: 10px;
}

.breadcrumb {
  font-size: 0.9rem;
  color: #e9ddd0;
}

.breadcrumb a {
  color: #fff;
  font-weight: 600;
}

/* ---------- Sections ---------- */

section {
  padding: 72px 0;
}

.section-alt {
  background: var(--color-surface);
}

.section-header {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-header .eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: 2rem;
}

.section-header p {
  color: var(--color-muted);
}

/* ---------- Grids / Cards ---------- */

.grid {
  display: grid;
  gap: 28px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 1.2rem;
}

.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f3e3d4;
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
  font-weight: 700;
}

.service-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}

.service-card {
  padding: 0;
  overflow: hidden;
}

.service-card .card-body {
  padding: 24px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--color-muted);
}

.feature-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-weight: 700;
}

/* ---------- Gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}

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

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

/* ---------- About / split sections ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.stat-label {
  color: var(--color-muted);
  font-size: 0.9rem;
}

/* ---------- Pricing table ---------- */

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.price-table th,
.price-table td {
  padding: 16px 22px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.price-table th {
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: normal;
}

.price-table tr:last-child td {
  border-bottom: none;
}

.price-table td.price {
  font-weight: 700;
  color: var(--color-primary-dark);
  white-space: nowrap;
}

.price-note {
  margin-top: 18px;
  color: var(--color-muted);
  font-size: 0.9rem;
}

/* ---------- Testimonials ---------- */

.testimonial {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.testimonial p {
  font-style: italic;
  color: var(--color-muted);
}

.testimonial .author {
  font-weight: 700;
  font-style: normal;
  color: var(--color-text);
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--color-accent);
  color: #fff;
  text-align: center;
  padding: 60px 0;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  color: #d9e6df;
  max-width: 600px;
  margin: 0 auto 28px;
}

/* ---------- Forms ---------- */

.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--color-bg);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

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

.form-consent a {
  font-weight: 600;
}

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

.alert {
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-weight: 600;
}

.alert-success {
  background: #e4f1e8;
  color: #28693f;
  border: 1px solid #b9ddc5;
}

.alert-error {
  background: #fbe8e4;
  color: #a3341d;
  border: 1px solid #f1c3b7;
}

/* ---------- Contact info blocks ---------- */

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

.contact-info .item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info .icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f3e3d4;
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.contact-info h4 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.contact-info p {
  margin: 0;
  color: var(--color-muted);
}

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  height: 320px;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  background: #2b2420;
  color: #d9cfc4;
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 32px;
  margin-bottom: 36px;
}

.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
}

.site-footer .logo {
  color: #fff;
}

.site-footer .logo span {
  color: #e2a877;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer ul li {
  margin-bottom: 10px;
}

.site-footer a {
  color: #d9cfc4;
}

.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: #a79b8d;
}

.footer-bottom a {
  color: #a79b8d;
}

/* ---------- Utilities ---------- */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 2.1rem; }
}

@media (max-width: 680px) {
  .main-nav { position: fixed; top: 76px; left: 0; right: 0; background: var(--color-surface); border-bottom: 1px solid var(--color-border); max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
  .main-nav.open { max-height: 420px; }
  .main-nav ul { flex-direction: column; padding: 20px 24px; gap: 18px; }
  .nav-toggle { display: inline-block; }
  .header-phone { display: none; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .hero-content { padding: 70px 0 60px; }
  .hero h1 { font-size: 1.8rem; }
  section { padding: 52px 0; }
}
