/* STANOS — Upravljanje zgradama */

@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500;600;700&display=swap");

:root {
  color-scheme: light;
  --navy: #0f2347;
  --navy-dark: #0a1a35;
  --navy-mid: #1a3560;
  --gold: #c9a24d;
  --gold-dark: #b08d3a;
  --white: #ffffff;
  --gray-50: #f7f8fa;
  --gray-200: #e2e6ec;
  --bg: #ffffff;
  --bg-muted: #f7f8fa;
  --bg-card: #ffffff;
  --border: #e2e6ec;
  --text: #1a3560;
  --text-muted: #4a5f7a;
  --heading: #0f2347;
  --nav-link: #0f2347;
  --header-bg: #ffffff;
  --input-bg: #f7f8fa;
  --shadow: 0 4px 24px rgba(15, 35, 71, 0.12);
  --hero-overlay: linear-gradient(
    105deg,
    rgba(10, 26, 53, 0.9) 0%,
    rgba(10, 26, 53, 0.72) 40%,
    rgba(10, 26, 53, 0.2) 100%
  );
  --cta-overlay: rgba(10, 26, 53, 0.88);
  --max-width: 1200px;
  --header-height: 88px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --gold: #d4ad5a;
  --gold-dark: #c19a45;
  --gray-50: #111c2e;
  --gray-200: #2a3d5c;
  --bg: #0b1220;
  --bg-muted: #0f1a2e;
  --bg-card: #162236;
  --border: #2a3d5c;
  --text: #dce4f0;
  --text-muted: #94a3b8;
  --heading: #f0f4fa;
  --nav-link: #dce4f0;
  --header-bg: #0f1a2e;
  --input-bg: #111c2e;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --hero-overlay: linear-gradient(
    105deg,
    rgba(6, 13, 24, 0.94) 0%,
    rgba(6, 13, 24, 0.82) 45%,
    rgba(6, 13, 24, 0.45) 100%
  );
  --cta-overlay: rgba(6, 13, 24, 0.9);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Source Sans 3", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  transition: background-color 0.25s ease, color 0.25s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

/* —— Header —— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(15, 35, 71, 0.04);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

[data-theme="dark"] .site-header {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-height);
  padding-block: 0.75rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.logo-img {
  height: 64px;
  width: auto;
}

.nav-toggle {
  display: none;
}

.nav-toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle-btn span {
  display: block;
  height: 2px;
  background: var(--heading);
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}

/* —— Theme toggle —— */

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: var(--bg-muted);
  color: var(--gold);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.theme-toggle:hover {
  border-color: var(--gold);
  background: var(--bg-card);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.theme-icon {
  width: 22px;
  height: 22px;
}

.theme-icon-sun {
  display: none;
}

.theme-icon-moon {
  display: block;
}

[data-theme="dark"] .theme-icon-sun {
  display: block;
}

[data-theme="dark"] .theme-icon-moon {
  display: none;
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 1.75rem;
}

.nav-list a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nav-link);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.header-contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
}

.header-contact-icon svg {
  width: 20px;
  height: 20px;
}

.header-phone {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--heading);
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--gold);
}

.header-hours {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* —— Buttons —— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.85rem 1.75rem;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
}

.btn-outline-gold {
  background: transparent;
  color: var(--white);
  border-color: var(--gold);
}

.btn-outline-gold:hover {
  background: rgba(201, 162, 77, 0.15);
}

.btn-navy {
  background: var(--heading);
  color: var(--white);
  border-color: var(--heading);
}

.btn-navy:hover {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
}

[data-theme="dark"] .btn-navy {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-dark);
}

[data-theme="dark"] .btn-navy:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--navy-dark);
}

/* —— Hero —— */

.hero {
  position: relative;
  min-height: clamp(420px, 58vh, 560px);
  display: flex;
  align-items: center;
  background: var(--navy-dark) url("../assets/images/hero-building.jpg") 72% center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 4rem;
  max-width: 640px;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero h1 .accent {
  color: var(--gold);
}

.hero-lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* —— Features bar —— */

.features-bar {
  background: var(--navy);
  padding-block: 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem 1rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.feature-icon {
  color: var(--gold);
  width: 48px;
  height: 48px;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-item p {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--white);
}

/* —— Main content —— */

.main-content {
  padding-block: 4rem 5rem;
  background: var(--bg);
  transition: background-color 0.25s ease;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 4rem;
  align-items: start;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--heading);
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--gold);
  display: inline-block;
}

/* Services */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 2rem;
}

.service-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.service-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  color: var(--heading);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--heading);
}

/* About */

.about-block {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-text {
  color: var(--text-muted);
  font-size: 0.98rem;
  text-align: justify;
}

.about-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

.about-image-wrap {
  border-radius: 2px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-image-wrap img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.about-logo-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 2px;
  min-height: 220px;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

[data-theme="dark"] .about-logo-panel {
  background: var(--bg-card);
}

.about-logo-panel img {
  max-height: 140px;
  width: auto;
  margin-inline: auto;
}

/* —— CTA band —— */

.cta-band {
  position: relative;
  padding-block: 3.5rem;
  background: var(--navy-dark) url("../assets/images/hero-building.jpg") 72% center / cover fixed;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cta-overlay);
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  gap: 2rem;
  align-items: center;
}

.cta-headline {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

.cta-headline .accent {
  color: var(--gold);
}

.cta-text {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
}

/* —— Contact —— */

.contact-section {
  padding-block: 4rem;
  background: var(--bg-muted);
  transition: background-color 0.25s ease;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-info > p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-details .label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  min-width: 5rem;
}

.contact-details a {
  font-weight: 600;
  color: var(--heading);
}

.contact-details a:hover {
  color: var(--gold);
}

.emergency-note {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border-left: 4px solid var(--gold);
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: background-color 0.25s ease;
}

.emergency-note strong {
  color: var(--heading);
}

.contact-form {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 2px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.contact-form h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-row {
  margin-bottom: 1.25rem;
}

.form-row label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 0.35rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--input-bg);
  transition: border-color 0.2s, background-color 0.2s;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--bg);
}

.form-row textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form .btn {
  width: 100%;
  margin-top: 0.5rem;
}

/* —— Page sections (inner anchors) —— */

.page-section {
  padding-block: 4rem;
}

.page-section:nth-child(even) {
  background: var(--bg-muted);
}

.page-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.page-section p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  max-width: 72ch;
}

.page-section p:last-child {
  margin-bottom: 0;
}

.references-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.reference-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.reference-card h3 {
  font-size: 1rem;
  color: var(--heading);
  margin-bottom: 0.5rem;
}

.reference-card p {
  font-size: 0.9rem;
  margin: 0;
}

.residents-box {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border-left: 4px solid var(--gold);
  max-width: 72ch;
  transition: background-color 0.25s ease;
}

.residents-box h3 {
  font-size: 1rem;
  color: var(--heading);
  margin-bottom: 0.75rem;
}

/* —— Footer —— */

.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.75);
  padding-block: 2.5rem;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-brand img {
  height: 40px;
  filter: brightness(1.1);
}

.footer-brand span {
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--white);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer-nav a {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-nav a:hover {
  color: var(--gold);
}

.footer-copy {
  width: 100%;
  text-align: center;
  padding-top: 1.5rem;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
}

/* —— Responsive —— */

@media (max-width: 1100px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cta-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-inner .btn {
    justify-self: center;
  }
}

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .nav-toggle-btn {
    display: flex;
    order: 2;
  }

  .logo-link {
    order: 1;
  }

  .main-nav {
    order: 4;
    flex-basis: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    border-top: 1px solid transparent;
  }

  .nav-toggle:checked ~ .header-inner .main-nav {
    max-height: 420px;
    padding-top: 0.5rem;
    border-top-color: var(--border);
  }

  .nav-toggle:checked ~ .header-inner .nav-toggle-btn span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle:checked ~ .header-inner .nav-toggle-btn span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked ~ .header-inner .nav-toggle-btn span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
  }

  .header-contact {
    display: none;
  }

  .header-actions {
    order: 3;
    margin-left: auto;
    margin-right: 0.5rem;
  }

  .nav-toggle-btn {
    order: 2;
    margin-left: 0;
  }

  .content-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-visual {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .logo-img {
    height: 52px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}
