/* ---------- base ---------- */
:root{
  --black:#000;
  --white:#fff;
  --max-width:1200px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color:var(--black);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
}

/* ---------- container (content margins) ---------- */
.container{
  max-width:var(--max-width);
  margin:0 auto;
  padding:0 2.5rem; /* larger lateral whitespace; will keep footer full width */
}

/* ---------- header ---------- */
.site-header{
  width:100%;
  background:transparent;
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:1rem 0;
}
.logo-img{
  max-height:56px; /* navbar logo */
  display:block;
}
.main-nav .nav-list{
  display:flex;
  gap:2rem;
  list-style:none;
  margin:0;
  padding:0;
}
.main-nav a{
  text-decoration:none;
  color:var(--black);
  font-weight:600;
}
.burger{
  display:none; /* hidden on desktop */
  background:transparent;
  border:0;
  font-size:1.8rem;
  cursor:pointer;
}

/* ---------- hero ---------- */
.hero{
  width:100%;
  background:var(--white);
  padding:6.5rem 0; /* lots of vertical whitespace */
}
.hero-inner{ /* container centering */
  /* uses .container wrapper in HTML */
}
.hero-title{
  font-family:"Bodoni Moda", serif;
  font-weight:600;
  font-style:italic;
  font-size:2.1rem;
  margin:0 0 1rem 0;
  line-height:1.1;
}
.hero-sub{
  font-size:1.15rem;
  margin:0;
  max-width:72ch;
}

/* ---------- works grid ---------- */
.works{
  padding:3.5rem 0;
}
.works-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:2.2rem;
}
.work{
  text-decoration:none;
  color:var(--black);
  display:block;
}
.work img{
  width:100%;
  height:auto;
  display:block;
}
.work h3{
  margin:0.6rem 0 0 0;
  font-weight:700; /* bold project names */
  font-size:1.1rem;
}
.works-grid a {
  color: #000;
  text-decoration: none;
}
.works-grid a:hover {
  color: #333; /* malo tamnija nijansa pri hoveru, opcionalno */
}
/* remove link underline / color changes */
.work a, .work a:link, .work a:visited { text-decoration:none; color:inherit; }

/* ---------- collaborate ---------- */
.collaborate{
  padding:4.5rem 0; /* more vertical space */
  text-align:center;
}
.collaborate h2{
  font-family: 'Bodoni Moda', serif;
  font-weight: 700;
  font-size:2rem;
  margin:0 0 1.25rem 0;
}
.btn{
  display:inline-block;
  padding:0.9rem 1.8rem;
  border:1px solid var(--black);
  background:var(--black);
  color:var(--white);
  text-decoration:none;
  font-weight:600;
  transition: background .18s ease, color .18s ease;
}
.contact-btn:hover, .btn:hover{
  background:var(--black);
  color:var(--white);
  filter:brightness(.85);
}

/* ---------- footer: full width, content centered ---------- */
.site-footer{
  width:100vw; /* full browser width */
  background:var(--black);
  color:var(--white);
  margin-top:2rem;
  padding: 40px 0px;
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:2.25rem 0;
}
.footer-inner img{ max-height:56px; } /* same as header logo (specified) */
.footer-links{
  display:flex;
  gap:1.25rem;
}
.footer-links a{
  color:var(--white);
  text-decoration:none;
  font-weight:600;
}

/* ---------- other pages ---------- */
.about-inner {
  display: flex;
  gap: 2rem;
  align-items: center;
  padding: 3.5rem 0;
}

/* images */
.about-img img {
  width: 100%;
  max-width: 480px;
  display: block;
  border-radius: 6px;
}

/* Sekcija 2: services - light gray bg, centered, larger text, NO leading dashes */
.services-section{
  background: #f5f5f5; /* light gray */
  padding: 4.5rem 0;   /* increased vertical whitespace */
}
.services-inner {
  text-align: center;
  padding: 0 1rem;
}
.services-title{
  font-family: "Bodoni Moda", serif;
  font-weight: 600;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}
.services-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 68ch;
  font-size: 1.15rem; /* bigger body text */
  line-height: 1.6;
}

/* Sekcija 3: reverse layout on desktop (image on right, text on left) */
.about-inner.reverse {
  flex-direction: row-reverse; /* reverses order on desktop */
}

/* ensure text block in about sections */
.about-text { flex: 1; }

/* Mobile responsiveness: stack image above text for both Sekcija1 and Sekcija3 */
@media (max-width: 768px) {
  .about-section,
  .services-section,
  .marta-section {
    padding-bottom: 40px; }/* povećaj broj po želji (60px, 100px...) */
  .about-designer {
    margin-top: 40px; /* dodatni whitespace iznad sekcije "o meni" */
  }
  .container { padding: 0 1.1rem; } /* ensure hero and about have lateral padding */

  .about-inner, .about-inner.reverse {
    flex-direction: column;
    text-align: center;  }

  .about-img img { max-width: 100%; margin: 0 auto; }

  /* Services keep center and increase vertical spacing on mobile too */
  .services-section {
    padding: 3.5rem 0;
  }
  .services-list { font-size: 1.08rem; }
}
/* === Mobile: smanji razmak IZMEĐU slike i teksta unutar sekcija, ali zadrži veći razmak ISPOD svake sekcije === */
@media (max-width: 768px) {
  /* smanji gap unutar about-sekcija (slika + tekst bliže jedna drugoj) */
  .about-inner,
  .about-inner.reverse {
    flex-direction: column;
    gap: 0.6rem !important;   /* 0.6rem = ~9-10px; povećaj na 1rem ako želiš malo više */
    align-items: center;
  }

  /* osiguraj da slike nemaju dodatan margin koji povećava razmak */
  .about-img img,
  .marta-section .about-img img {
    margin: 0 0 0.4rem 0 !important; /* mali razmak ispod slike */
    max-width: 100%;
    height: auto;
    display: block;
  }

  /* smanji eventualni top/bottom margin paragrafa koji bi razdvajali elemente */
  .about-text, .about-text p {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  /* dodatni prostor iznad 'o meni' sekcije (ako želiš) */
  .marta-section {
    padding-top: 36px !important;
  }
}

/* Contact page */
.contact-section {
  max-width: 900px;
  margin: 100px auto;
  padding: 0 20px 80px; /* dodatni whitespace dolje */
}

.contact-section h1 {
  font-family: "Bodoni Moda", serif;
  font-weight: 700; /* bold */
  font-size: 2.4rem;
  margin-bottom: 20px;
}

.contact-section p {
  font-family: "Open Sans", sans-serif;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  font-family: "Open Sans", sans-serif;
  font-size: 1rem;
  border: 1px solid #ccc;
}

.contact-form .btn.send {
  align-self: flex-end;
  padding: 12px 24px;
  background: #000;
  color: #fff;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form .btn.send:hover {
  background: #333;
}

.direct-email {
  font-family: "Open Sans", sans-serif;
  font-size: 1.1rem;
  margin-top: 20px;
}

.direct-email a {
  color: #000;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .contact-section h1 {
    font-size: 2rem;
  }

  .contact-section p,
  .direct-email {
    font-size: 1rem;
  }

  .contact-form {
    gap: 15px;
  }

  .contact-section {
    margin: 80px auto;
    padding: 0 15px 80px; /* još više whitespacea dolje */
  }
}


/* ---------- responsiveness: mobile ---------- */
@media (max-width: 768px){
  .container{ padding:0 1.1rem; } /* ensure hero no longer edge-to-edge on mobile */
  .hero{ padding:5.5rem 0; } /* keep good vertical space but lateral padding prevents edge-to-edge */

  /* show burger */
  .burger{ display:block; }
  .main-nav{ position:absolute; top:84px; right:1.1rem; background:var(--white); border:1px solid #eee; padding:1rem; display:none; }
  .main-nav.active{ display:block; }
  .main-nav .nav-list{ flex-direction:column; gap:1rem; }

  /* works single column */
  .works-grid{ grid-template-columns:1fr; }

  /* footer: logo centered and links stacked under it */
  .footer-inner{ flex-direction:column; gap:1rem; text-align:center; padding:2.5rem 0; }
  .footer-links{ flex-direction:column; gap:0.5rem; }
  .footer-inner img{ max-height:56px; } /* same size as nav */
}

/* Project page */
.project-images img {
  width: 100%;
  max-width: 100%;
  margin: 0 auto 30px auto;
  display: block;
}
.project-hero h1 {
  font-family: 'Bodoni Moda', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 2.5rem; /* možeš prilagoditi veličinu */
  margin-bottom: 10px;
}

.project-type {
  font-family: 'Open Sans', sans-serif;
  font-style: italic;
  font-size: 1.1rem;
  margin-top: -5px; /* približi ga naslovu */
  margin-bottom: 20px; /* malo razmaka ispod */
  color: #333; /* ili crna */
}

.project-description {
  margin-bottom: 40px; /* povećaj po želji, npr. 60px */
}
.project-images img:last-child {
  margin-bottom: 100px; /* veći razmak od footera */
}

.project-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 900px; /* isto kao i ostali sadržaj */
  margin: 40px auto 80px; /* centrirano */
  padding: 0 20px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
}

.project-navigation a {
  text-decoration: none;
  color: black;
  font-weight: 600;
  transition: color 0.3s;
}

.project-navigation a:hover {
  color: gray; /* ili crna/hover efekt po želji */
}

