/* Dom Servis Dalmacija — glavna stylesheet datoteka */

:root {
  --navy-900: #12294f;
  --navy-700: #1e4785;
  --navy-600: #2a5697;
  --gold-500: #c79a2b;
  --gold-300: #ddb84f;
  --gold-100: #f5e7c4;
  --text-900: #1f2430;
  --text-600: #4b5163;
  --bg-white: #ffffff;
  --bg-soft: #f6f7fb;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(18, 41, 79, 0.12);
  --max-width: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-900);
  background: var(--bg-white);
  line-height: 1.6;
}

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

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

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

h1, h2, h3 {
  line-height: 1.25;
  color: var(--navy-900);
  margin: 0 0 16px;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 16px; color: var(--text-600); }

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

/* ===== Header ===== */
.site-header {
  background: var(--navy-900);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
}

.brand img {
  height: 56px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.main-nav a {
  color: #eef1f8;
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--gold-300);
}

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

.btn-call {
  background: var(--gold-500);
  color: var(--navy-900) !important;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  white-space: nowrap;
}

.btn-call:hover {
  background: var(--gold-300);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  font-size: 1.4rem;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-900);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px 20px;
    gap: 14px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .main-nav.open { display: flex; }
  .header-inner { flex-wrap: wrap; }
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #fff;
  padding: 64px 0 72px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
}

@media (max-width: 780px) {
  .hero .container { grid-template-columns: 1fr; }
}

.hero h1 { color: #fff; }
.hero p.lead {
  color: #d9e0f0;
  font-size: 1.1rem;
  max-width: 46ch;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 28px;
}

.badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: #f2f4fa;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  transition: background 0.15s ease, border-color 0.15s ease;
}

a.badge:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.5);
}

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

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
}

.btn-primary {
  background: var(--gold-500);
  color: var(--navy-900);
}
.btn-primary:hover { background: var(--gold-300); }

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.55);
}
.btn-secondary:hover { border-color: #fff; }

.hero-panel {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 24px;
}

.hero-panel h3 { color: #fff; margin-bottom: 12px; }
.hero-panel ul { margin: 0; padding-left: 18px; color: #dfe4f2; }
.hero-panel li { margin-bottom: 8px; }

/* ===== Sections ===== */
.section {
  padding: 56px 0;
}

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

.section-navy {
  background: var(--navy-900);
  color: #fff;
}
.section-navy h2 { color: #fff; }
.section-navy p { color: #cfd6e8; }

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

.eyebrow {
  color: var(--gold-500);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  display: block;
  margin-bottom: 10px;
}

/* ===== Cards / grid ===== */
.grid {
  display: grid;
  gap: 22px;
}

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

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid #e7e9f2;
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: radial-gradient(circle at 30% 25%, var(--navy-600), var(--navy-900));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow:
    0 0 0 1px rgba(199, 154, 43, 0.4),
    0 0 16px rgba(199, 154, 43, 0.45),
    inset 0 0 10px rgba(199, 154, 43, 0.12);
}

.icon-badge svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--gold-300);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 5px rgba(221, 184, 79, 0.85));
}

.icon-inline {
  display: inline-flex;
  vertical-align: -3px;
  margin-right: 6px;
}

.icon-inline svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 { margin-bottom: 10px; }
.card p { flex-grow: 1; }

.card a.more {
  color: var(--navy-700);
  font-weight: 700;
  margin-top: 10px;
}
.card a.more::after { content: " \2192"; }

/* ===== Trust strip ===== */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 20px;
  padding: 30px 0;
  border-top: 1px solid #e7e9f2;
  border-bottom: 1px solid #e7e9f2;
}

.trust-item {
  text-align: center;
  min-width: 150px;
}

.trust-item strong {
  display: block;
  color: var(--navy-900);
  font-size: 1.05rem;
}
.trust-item span {
  color: var(--text-600);
  font-size: 0.88rem;
}

/* ===== CTA banner ===== */
.cta-banner {
  background: var(--gold-100);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cta-banner h2 { margin: 0; }

/* ===== Breadcrumb ===== */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-600);
  padding: 16px 0 0;
}
.breadcrumb a { color: var(--navy-700); }

/* ===== Page hero (subpages) ===== */
.page-hero {
  background: var(--navy-900);
  color: #fff;
  padding: 40px 0 48px;
}
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero p { color: #d9e0f0; max-width: 60ch; margin: 0; }

/* ===== Content list ===== */
.check-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}
.check-list li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 10px;
  color: var(--text-600);
}
.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold-500);
  font-weight: 700;
}

/* ===== Form ===== */
.contact-form {
  display: grid;
  gap: 14px;
}
.contact-form label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy-900);
  display: block;
  margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #dcdfeb;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--navy-600);
}

.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.contact-info-list li {
  margin-bottom: 14px;
  font-size: 1.02rem;
  color: var(--text-600);
}
.contact-info-list strong {
  display: block;
  color: var(--navy-900);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-900);
  color: #cfd6e8;
  padding: 44px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}

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

.site-footer a { color: #cfd6e8; }
.site-footer a:hover { color: var(--gold-300); }
.site-footer p { color: #b7c0d9; }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-brand img { height: 48px; }
.footer-brand span { color: #fff; font-weight: 700; }

.site-footer ul.plain li { margin-bottom: 8px; font-size: 0.92rem; }

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