/* ==========================================================================
   Geodetski biro Beta — glavni stylesheet
   ========================================================================== */

:root {
  --navy-950: #1c1815;
  --navy-900: #26211d;
  --navy-800: #332b25;
  --navy-700: #453a32;
  --navy-600: #5c4d42;
  --gold-500: #d81f1f;
  --gold-400: #ef4136;
  --gold-100: #fbe2df;
  --gray-900: #1c2530;
  --gray-700: #4a5568;
  --gray-500: #718096;
  --gray-300: #cbd5e0;
  --gray-200: #e2e8f0;
  --gray-100: #f4f6f8;
  --white: #ffffff;
  --radius: 6px;
  --shadow-sm: 0 1px 3px rgba(15, 41, 66, 0.08), 0 1px 2px rgba(15, 41, 66, 0.06);
  --shadow-md: 0 4px 14px rgba(15, 41, 66, 0.12);
  --shadow-lg: 0 12px 32px rgba(15, 41, 66, 0.16);
  --max-width: 1160px;
  --font-heading: Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.25;
  margin: 0 0 16px;
}

h2.section-title {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  text-align: center;
  margin-bottom: 8px;
}

p.section-subtitle {
  text-align: center;
  color: var(--gray-500);
  max-width: 620px;
  margin: 0 auto 48px;
  font-size: 1.02rem;
}

p {
  margin: 0 0 16px;
  color: var(--gray-700);
}

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

section {
  padding: 76px 0;
}

section.alt {
  background: var(--gray-100);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--gold-500);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--gold-400);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn-dark-outline {
  border-color: var(--navy-700);
  color: var(--navy-900);
}

.btn-dark-outline:hover {
  background: var(--navy-900);
  color: var(--white);
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.85rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-950);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.brand-text span {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-400);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.94rem;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: var(--radius);
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.nav-links a.active {
  color: var(--gold-400);
}

.nav-links .btn {
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
  color: var(--white);
  overflow: hidden;
  padding: 100px 0 110px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, black 40%, transparent 85%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 4vw, 3rem);
  margin-bottom: 20px;
}

.hero p.lead {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
  max-width: 520px;
  margin-bottom: 32px;
}

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

.hero-figure {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compass {
  width: min(340px, 100%);
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.35));
}

.hero-stats {
  position: relative;
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 32px;
}

.hero-stats .stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--gold-400);
}

.hero-stats .stat span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- Service cards ---------- */

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

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.service-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--gold-400);
}

.service-card h3 {
  font-size: 1.12rem;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.94rem;
  flex-grow: 1;
}

.service-link {
  margin-top: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy-700);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-link:hover {
  color: var(--gold-500);
}

/* ---------- Detailed service blocks (usluge.html) ---------- */

.service-detail {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  padding: 40px 0;
  border-bottom: 1px solid var(--gray-200);
  scroll-margin-top: 96px;
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail .num {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--gold-500);
  font-weight: 700;
}

.service-detail h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.service-detail ul {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--gray-700);
}

.service-detail li {
  margin-bottom: 6px;
}

/* ---------- About / process ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.about-visual {
  background: var(--navy-950);
  border-radius: var(--radius);
  padding: 40px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.about-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}

.about-visual blockquote {
  position: relative;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  line-height: 1.5;
  margin: 0;
}

.about-visual cite {
  position: relative;
  display: block;
  margin-top: 20px;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--gold-400);
}

.value-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 16px;
}

.value-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.value-list .dot {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold-100);
  color: var(--gold-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 2px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 20px;
}

.timeline .step {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px 20px;
}

.timeline .step .step-num {
  color: var(--gold-500);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.timeline .step h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.timeline .step p {
  font-size: 0.88rem;
  margin: 0;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info-card {
  background: var(--navy-950);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px;
}

.contact-info-card h3 {
  color: var(--white);
  font-size: 1.2rem;
}

.contact-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.contact-row .icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-row .icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--gold-400);
}

.contact-row strong {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-400);
  margin-bottom: 4px;
}

.contact-row span, .contact-row a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.96rem;
}

.map-placeholder {
  margin-top: 24px;
  border-radius: var(--radius);
  border: 1px dashed rgba(255, 255, 255, 0.3);
  padding: 28px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.map-embed {
  margin-top: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 220px;
  border: 0;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 6px;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy-600);
  box-shadow: 0 0 0 3px rgba(44, 96, 136, 0.15);
}

.form-note {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 4px;
}

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

.cta-band {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  text-align: center;
  padding: 64px 0;
}

.cta-band h2 {
  color: var(--white);
}

.cta-band p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 520px;
  margin: 0 auto 28px;
}

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

.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.7);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer-grid p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
  color: var(--gold-400);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  background: linear-gradient(160deg, var(--navy-950), var(--navy-800));
  color: var(--white);
  padding: 70px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
}

.page-hero h1 {
  position: relative;
  color: var(--white);
  margin-bottom: 10px;
}

.page-hero p {
  position: relative;
  color: rgba(255, 255, 255, 0.78);
  max-width: 520px;
  margin: 0 auto;
}

.breadcrumb {
  position: relative;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 14px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- Photos (hero / usluge / galerije) ---------- */

.hero-emblem-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(360px, 80%);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

.hero-emblem-wrap::before {
  content: "";
  position: absolute;
  inset: -18%;
  background: radial-gradient(circle, rgba(216, 31, 31, 0.5) 0%, rgba(216, 31, 31, 0.16) 45%, transparent 72%);
  filter: blur(4px);
  z-index: 0;
}

.hero-emblem {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 32px rgba(0, 0, 0, 0.5));
}

.service-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  margin-top: 20px;
  box-shadow: var(--shadow-sm);
}

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

.gallery-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.pending-note {
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--gray-500);
  font-style: italic;
}

/* ---------- Utility ---------- */

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

.mt-lg {
  margin-top: 48px;
}

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

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

  .hero-figure {
    order: -1;
  }

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

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

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

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

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 680px) {
  section {
    padding: 56px 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--navy-950);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 24px;
    display: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 8px;
  }

  .nav-links .btn {
    margin: 8px 0 0;
    justify-content: center;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .service-detail {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .gallery-strip {
    grid-template-columns: 1fr;
  }
}
