/* ==========================================================================
   Elektronis - stilovi sajta
   ========================================================================== */

:root {
  /* Boje */
  --color-bg-dark: #07111F;
  --color-surface-dark: #0E1B2B;
  --color-accent: #F9C22E;
  --color-bg-light: #F4F7FA;
  --color-text-white: #FFFFFF;
  --color-text-dark: #172033;
  --color-text-secondary: #667085;
  --color-border-light: #E2E8F0;
  --color-accent-text: #92660B;

  /* Tipografija */
  --font-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Razmaci */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 96px;

  /* Izgled */
  --max-width: 1200px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(7, 17, 31, 0.08);
  --shadow-md: 0 12px 32px rgba(7, 17, 31, 0.16);
}

/* ==========================================================================
   Reset i osnovni stilovi
   ========================================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text-dark);
  background-color: var(--color-bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  line-height: 1.25;
  margin: 0 0 var(--space-sm);
}

p {
  margin: 0 0 var(--space-sm);
  color: var(--color-text-secondary);
  text-wrap: pretty;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

a:hover {
  text-decoration: underline;
}

button {
  font-family: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-accent);
  color: var(--color-text-dark);
  padding: var(--space-xs) var(--space-sm);
  z-index: 1000;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: var(--space-sm);
  top: var(--space-sm);
}

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

/* ==========================================================================
   Dugmad
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  min-height: 48px;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-text-dark);
}

.btn--primary:hover {
  background-color: #e0ac1f;
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-text-white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--secondary:hover {
  border-color: var(--color-text-white);
}

/* ==========================================================================
   Header
   ========================================================================== */

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

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

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-text-white);
}

.logo:hover {
  text-decoration: none;
}

.logo__text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-white);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: none;
}

.menu-toggle__bar {
  width: 24px;
  height: 2px;
  background-color: var(--color-text-white);
  margin-inline: auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.primary-nav {
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-bg-dark);
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
}

.primary-nav.is-open {
  transform: translateX(0);
}

.primary-nav__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.primary-nav__list a {
  display: inline-block;
  color: var(--color-text-white);
  font-size: 1.15rem;
  font-weight: 500;
  white-space: nowrap;
  padding-block: var(--space-xs);
}

.primary-nav__cta {
  width: 100%;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  background-color: var(--color-bg-dark);
  padding-block: var(--space-2xl) var(--space-xl);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

@media (max-width: 599px) {
  .hero__inner {
    gap: 36px;
  }
}

.eyebrow {
  color: var(--color-accent);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.875rem;
  margin-bottom: var(--space-sm);
}

.hero__title {
  color: var(--color-text-white);
  font-size: clamp(2rem, 5vw, 3rem);
}

.hero__text {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
  max-width: 44ch;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-block: var(--space-md) var(--space-sm);
}

.hero__actions .btn {
  width: 100%;
  min-height: 54px;
  text-align: center;
}

.hero__highlights {
  display: none;
}

.hero__highlights li {
  color: var(--color-text-white);
  font-weight: 600;
  font-size: 0.95rem;
  padding-left: var(--space-sm);
  border-left: none;
  position: relative;
}

.hero__highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-accent);
}

.hero__media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Naslovi sekcija
   ========================================================================== */

.section-heading {
  max-width: 640px;
  margin-bottom: var(--space-xl);
}

.section-heading h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  color: var(--color-text-dark);
}

/* ==========================================================================
   Usluge
   ========================================================================== */

.services {
  padding-block: var(--space-2xl);
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.service-card {
  background-color: var(--color-text-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.service-card__number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent-text);
  margin-bottom: var(--space-sm);
}

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

.text-link {
  display: inline-block;
  margin-top: var(--space-xs);
  font-weight: 600;
  color: var(--color-text-dark);
  border-bottom: 2px solid var(--color-accent-text);
}

/* ==========================================================================
   O nama
   ========================================================================== */

.about {
  background-color: var(--color-surface-dark);
  padding-block: var(--space-2xl);
}

.about__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.about__media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.about__content h2 {
  color: var(--color-text-white);
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
}

.about__content p {
  color: rgba(255, 255, 255, 0.7);
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.checklist li {
  color: var(--color-text-white);
  padding-left: var(--space-md);
  position: relative;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background-color: var(--color-accent);
  border-radius: 50%;
}

/* ==========================================================================
   Proces rada
   ========================================================================== */

.process {
  padding-block: var(--space-2xl);
}

.process__steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  counter-reset: none;
}

.process-step {
  border-top: 3px solid var(--color-accent);
  padding-top: var(--space-md);
}

.process-step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-bg-dark);
  color: var(--color-text-white);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.process-step h3 {
  font-size: 1.1rem;
}

/* ==========================================================================
   Galerija
   ========================================================================== */

.gallery {
  background-color: var(--color-surface-dark);
  padding-block: var(--space-2xl);
}

.gallery .section-heading h2,
.gallery .section-heading p {
  color: var(--color-text-white);
}

.gallery .section-heading p {
  color: rgba(255, 255, 255, 0.65);
}

.gallery__disclaimer {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.gallery__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.gallery__item {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background-color: var(--color-bg-dark);
  aspect-ratio: 4 / 3;
}

.gallery__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  color: var(--color-text-white);
  font-weight: 600;
  font-size: 0.95rem;
  padding: var(--space-sm);
  background: linear-gradient(to top, rgba(7, 17, 31, 0.85), transparent);
}

/* ==========================================================================
   CTA
   ========================================================================== */

.cta {
  background-color: var(--color-accent);
  padding-block: var(--space-xl);
}

.cta__inner {
  text-align: center;
  max-width: 640px;
}

.cta h2 {
  color: var(--color-text-dark);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}

.cta p {
  color: rgba(23, 32, 51, 0.75);
}

.cta .btn--primary {
  background-color: var(--color-bg-dark);
  color: var(--color-text-white);
}

.cta .btn--primary:hover {
  background-color: #142335;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq {
  padding-block: var(--space-2xl);
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-item {
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  background-color: var(--color-text-white);
  overflow: hidden;
}

.faq-item__heading {
  margin: 0;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: var(--space-md);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.faq-question::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--color-accent-text);
  flex-shrink: 0;
}

.faq-question[aria-expanded="true"]::after {
  content: "\2212";
}

.faq-panel {
  padding: 0 var(--space-md) var(--space-md);
}

.faq-panel p {
  margin: 0;
}

/* ==========================================================================
   Kontakt
   ========================================================================== */

.contact {
  background-color: var(--color-surface-dark);
  padding-block: var(--space-2xl);
}

.contact__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.contact__info h2 {
  color: var(--color-text-white);
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
}

.contact__info > p {
  color: rgba(255, 255, 255, 0.7);
}

.contact__details {
  margin-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact__detail dt {
  color: var(--color-accent);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.contact__detail dd {
  margin: 0;
  color: var(--color-text-white);
  font-weight: 600;
}

.contact-form {
  background-color: var(--color-text-white);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text-dark);
}

.form-field input[type="text"],
.form-field select,
.form-field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  color: var(--color-text-dark);
  background-color: var(--color-bg-light);
  min-height: 48px;
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-field--hidden {
  position: absolute;
  left: -9999px;
}

.form-field--checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: var(--space-xs);
}

.form-field--checkbox input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
}

.form-field--checkbox label {
  font-weight: 400;
  font-size: 0.95rem;
}

.form-error {
  color: #C0392B;
  font-size: 0.875rem;
  min-height: 1em;
}

.form-success {
  background-color: #E7F6EC;
  color: #1D6B37;
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background-color: var(--color-bg-dark);
  padding-block: var(--space-lg) var(--space-md);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.site-footer__brand p {
  color: rgba(255, 255, 255, 0.6);
  max-width: 40ch;
  margin: var(--space-xs) 0 0;
}

@media (max-width: 1023px) {
  .site-footer__inner {
    gap: var(--space-sm);
  }
}

.site-footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-md);
}

.site-footer__nav a {
  color: rgba(255, 255, 255, 0.75);
}

.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-xs) var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__meta p {
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

/* ==========================================================================
   Animacije pojavljivanja
   ========================================================================== */

.reveal {
  opacity: 0;
  transition: opacity 0.18s ease;
}

.reveal.is-visible {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transition: none;
  }
}

/* ==========================================================================
   Responzivnost - tablet (600px+)
   ========================================================================== */

@media (min-width: 600px) {
  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-block: var(--space-md);
  }

  .hero__actions .btn {
    width: auto;
    min-height: 48px;
  }

  .hero__highlights {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-top: var(--space-md);
  }

  .hero__highlights li {
    padding-left: var(--space-sm);
  }

  .hero__highlights li::before {
    top: 10px;
  }

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

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

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

/* ==========================================================================
   Responzivnost - laptop (900px+)
   ========================================================================== */

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }

  .primary-nav {
    position: static;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-lg);
    padding: 0;
    background: none;
    transform: none;
    transition: none;
    overflow: visible;
  }

  .primary-nav__list {
    flex-direction: row;
    gap: var(--space-lg);
  }

  .primary-nav__list a {
    font-size: 0.95rem;
  }

  .primary-nav__cta {
    width: auto;
  }

  .hero__inner {
    flex-direction: row;
    align-items: center;
  }

  .hero__content {
    flex: 1;
    order: 1;
  }

  .hero__media {
    flex: 1;
    order: 2;
  }

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

  .about__inner {
    flex-direction: row;
    align-items: center;
  }

  .about__media,
  .about__content {
    flex: 1;
  }

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

  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 220px);
  }

  .gallery__item {
    aspect-ratio: auto;
  }

  .gallery__item:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
  }

  .gallery__item:nth-child(2) {
    grid-column: 3;
    grid-row: 1;
  }

  .gallery__item:nth-child(3) {
    grid-column: 3;
    grid-row: 2;
  }

  .gallery__item:nth-child(4) {
    grid-column: 1;
    grid-row: 3;
  }

  .gallery__item:nth-child(5) {
    grid-column: 2 / 4;
    grid-row: 3 / 5;
  }

  .gallery__item:nth-child(6) {
    grid-column: 1;
    grid-row: 4;
  }

  .contact__inner {
    flex-direction: row;
    align-items: flex-start;
  }

  .contact__info,
  .contact-form {
    flex: 1;
  }

  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .site-footer__nav ul {
    display: flex;
    flex-wrap: wrap;
  }

  .site-footer__meta {
    flex-direction: column;
    justify-content: flex-start;
    border-top: none;
    padding-top: 0;
  }
}

/* ==========================================================================
   Responzivnost - veliki desktop (1200px+)
   ========================================================================== */

@media (min-width: 1280px) {
  .hero__title {
    font-size: 3.25rem;
  }
}
