/* Overrides Vaadin's default Lumo theme variables with a construction-y palette */
html {
  --lumo-primary-color: #d9822b;
  --lumo-primary-text-color: #d9822b;
  --lumo-font-family: 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Header bar (MainLayout.java) ---------- */
.header-bar {
  background-color: #1f2937;
  color: white;
  padding: 0.5em 1.5em;
}

.branding {
  gap: 0.75em;
}

.brand-title {
  font-size: 1.4em;
  margin: 0;
  color: white;
}

.language-switch-btn {
  margin-left: 0.5em;
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  border-radius: 999px;
  font-weight: 600;
}

.language-switch-btn:hover {
  background-color: rgba(217, 130, 43, 0.85);
}

.nav-links {
  gap: 1.5em;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.nav-links a:hover {
  color: #d9822b;
}

/* ---------- WelcomeView.java: hero ---------- */
.welcome-view {
  /* background-image: url("/images/PozadinaV3.png"); */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  width: 100%;
  text-align: center;
  padding: 2em;
  box-sizing: border-box;
}

.welcome-content {
  background-color: rgba(0, 0, 0, 0.55);
  color: white;
  padding: 2.5em 3em;
  border-radius: 12px;
  max-width: 600px;
  box-sizing: border-box;
}

.welcome-content h1 {
  color: white;
}

.welcome-logo {
  margin-bottom: 1em;
}

.tagline {
  max-width: 500px;
  color: #e5e7eb;
}

.hero-buttons {
  gap: 1em;
  margin-top: 1em;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-secondary-btn {
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.hero-secondary-btn:hover {
  background-color: rgba(255, 255, 255, 0.32);
}

.hero-secondary-btn:active {
  transform: scale(0.96);
}

/* ---------- WelcomeView.java: Featured Projects ---------- */
.featured-projects {
  padding: 4em 2em;
  background-color: #f9fafb;
}

.featured-projects h2,
.trusted-partners h2 {
  margin-bottom: 0.25em;
}

/* ---------- WelcomeView.java: Trusted Partners ---------- */
.trusted-partners {
  padding: 3em 2em 4em;
  background-color: white;
}

.partner-logos {
  gap: 2em;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.5em;
}

.partner-logo {
  background-color: #e5e7eb;
  color: #6b7280;
  font-weight: 600;
  padding: 1.2em 2em;
  border-radius: 8px;
  min-width: 140px;
  text-align: center;
}

/* ---------- Shared project card style (Welcome + Projects) ---------- */
.project-cards {
  flex-wrap: wrap;
  gap: 1.5em;
  justify-content: center;
  margin: 1.5em 0;
  overflow: hidden;
}
/*.project-card-image {
  width: calc(100% + 2.4em);
  height: 180px;
  object-fit: cover;
  margin: -1.2em -1.2em 0.5em;
}
  */

/* ---------- Secured project administration ---------- */
.admin-auth-view {
  min-height: 100vh;
  width: 100%;
  background-color: #f3f4f6;
  padding: 1.5em;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}


.admin-auth-card {
  width: min(100%, 460px);
  margin: auto;
  align-self: center;
  padding: 2em;
  border-radius: 10px;
  background: white;
  box-shadow: 0 8px 28px rgba(31, 41, 55, 0.14);
  box-sizing: border-box;
}

.admin-view {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(1em, 2vw, 2.5em);
  box-sizing: border-box;
  align-items: stretch;
}

.admin-view > h1,
.admin-view > p {
  width: 100%;
  text-align: center;
}

.admin-workspace {
  width: 100%;
  min-width: 0;
  gap: clamp(1em, 2vw, 2em);
  align-items: stretch;
}

.admin-project-grid {
  flex: 3 1 720px;
  min-width: 0;
  width: 100%;
  height: clamp(480px, 68vh, 800px);
  border-radius: 8px;
  overflow: hidden;
}

.admin-editor {
  flex: 1 1 380px;
  width: 100%;
  min-width: 340px;
  max-width: 520px;
  padding: 1.25em !important;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background-color: #f9fafb;
  box-sizing: border-box;
}

.admin-image-preview {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 6px;
}

.admin-logout-btn {
  color: white;
  background: rgba(255, 255, 255, 0.12);
}

.project-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.2em;
  width: 280px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ---------- ProjectsView.java ---------- */
.projects-view {
  padding: 2em;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5em;
  width: 100%;
}

.services-section {
  margin-top: 3em;
}

.service-list {
  columns: 2;
  gap: 2em;
  padding-left: 1.2em;
}

.service-list li {
  margin-bottom: 0.5em;
  break-inside: avoid;
}

/* ---------- ContactView.java ---------- */
.contact-view {
  padding: 2em;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  box-sizing: border-box;
}

.contact-header {
  justify-content: space-between;
  margin-bottom: 1.5em;
  flex-wrap: wrap;
  gap: 1em;
}

.contact-info-map {
  gap: 2em;
  flex-wrap: wrap;
  align-items: stretch;
}

.contact-info-panel {
  flex: 1 1 300px;
  background-color: #f9fafb;
  border-radius: 8px;
  padding: 1.5em;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.contact-map {
  flex: 1 1 400px;
  min-height: 340px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  box-sizing: border-box;
}

.contact-form {
  margin-top: 1em;
  width: 100%;
  max-width: 400px;
  box-sizing: border-box;
}

.contact-upload {
  width: 100%;
  margin: 0.5em 0;
}

/* ---------- MainLayout.java: footer ---------- */
.site-footer {
  background-color: #1f2937;
  color: #d1d5db;
  padding: 2em 1.5em 1.5em;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
}

.footer-column {
  min-width: 200px;
  flex: 1 1 200px;
}

.footer-column h4 {
  color: white;
  margin: 0 0 0.5em 0;
}

.footer-column p {
  margin: 0.2em 0;
  font-size: 0.9em;
}

.footer-copyright {
  margin-top: 0.5em;
  color: #9ca3af;
  font-size: 0.85em;
}

/* ---------- MainLayout.java: floating contact button ---------- */
.floating-contact-btn {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  left: auto !important;
  top: auto !important;
  z-index: 1000;
  width: fit-content;
}

.floating-contact-btn vaadin-button {
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ---------- Responsive / mobile-friendly rules ---------- */

@media (max-width: 1100px) {
  .admin-workspace {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-project-grid {
    flex: none;
    width: 100%;
    height: clamp(440px, 62vh, 650px);
  }

  .admin-editor {
    flex: none;
    width: 100%;
    min-width: 0;
    max-width: none;
  }
}

@media (max-width: 900px) {
  .welcome-content {
    max-width: 90%;
    padding: 2em;
  }

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

  .service-list {
    columns: 1;
  }

  .contact-map {
    min-height: 260px;
  }
}

@media (max-width: 600px) {
  .header-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75em 1em;
  }

  .branding {
    width: 100%;
  }

  .branding:hover {
  opacity: 0.75;
  }

  .brand-title {
    font-size: 1.1em;
  }

  .nav-links {
    width: 100%;
    gap: 0;
    justify-content: space-between;
    margin-top: 0.5em;
  }

  .welcome-view {
    background-attachment: scroll;
    padding: 1.5em 1em;
  }

  .welcome-content {
    padding: 1.5em;
    max-width: 100%;
  }

  .welcome-content h1 {
    font-size: 1.5em;
  }

  .welcome-logo {
    width: 140px !important;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .project-cards {
    flex-direction: column;
  }

  .project-card {
    width: 100%;
    box-sizing: border-box;
  }

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

  .projects-view,
  .contact-view {
    padding-left: 1em;
    padding-right: 1em;
  }

  .contact-form {
    width: 100%;
  }

  .site-footer {
    font-size: 0.85em;
    padding: 1.5em 1em 1em;
  }

  .footer-columns {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5em;
  }

  .floating-contact-btn {
    bottom: 16px !important;
    right: 16px !important;
  }
}