/* =============================================
   Navbar je u base.css pod @media (hover: none) and (pointer: coarse).
============================================= */

/* ─── Varijable ─────────────────────────────── */

:root {
  --grid-calc:   100%;
  --grid-calc-p: 100%;
}

/* =============================================
   FOOTER
============================================= */

.footer_wrapper {
  flex-direction: column;
  text-align: center;
  align-items: center;
  padding: 1.25rem 1rem;
  gap: 1rem;
}

.footer-right .social svg {
  width: 2.25rem;
  height: 2.25rem;
}

/* =============================================
   GALERIJA
============================================= */

.main-gallery {
  max-width: var(--max-w);
  margin: 1rem auto;
  padding: var(--pad);
}

.grid { position: relative; }

.gallery-grid {
  display: flex;
  flex-direction: column;
  gap: var(--gallery-gap);
  min-height: 220svh;
}

.gallery-grid.ready { min-height: auto; }

.grid-item {
  width: 100% !important;
  position: static !important;
  aspect-ratio: var(--w) / var(--h);
  background: var(--bg-card);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-m);
  opacity: 1;
  content-visibility: auto;
}

.grid-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-m);
  cursor: pointer;
  opacity: 1;
}



/* =============================================
   GUMBI — mobile pojačanje
============================================= */

.button,
.contact-button,
.back-to-main {
  box-shadow: 0 4px 14px rgba(184, 92, 42, 0.22);
}

#back-to-top {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 10;
  font-size: var(--font-size-s);
  opacity: 0;
  pointer-events: none;
}

#back-to-top.visible  { opacity: 1; pointer-events: auto; }
#back-to-top.lifted   { bottom: 12.5rem; }

/* =============================================
   ABOUT STRANICA
============================================= */

.about-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 2rem auto;
  max-width: var(--content-w);
  padding: var(--pad);
}

.about-hero {
  position: relative;
  width: clamp(9rem, 38vw, 13rem);
  margin: 0 auto 1.5rem;
  flex-shrink: 0;
  aspect-ratio: 11 / 15;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-l);
}

.about-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

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

.about-title h1 {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--txt-main);
  margin-bottom: 0.5rem;
}

.about-title h2 {
  font-family: var(--font-body);
  font-size: var(--font-size-s);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--txt-2);
  margin-bottom: 1.5rem;
}

/* Tekst */
.about-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.about-text p { color: var(--txt-main); text-align: justify; }

.about-text > p:first-of-type {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--font-size-l);
  color: var(--txt-accent);
  font-weight: 400;
  text-align: center;
}

.about-text h2 {
  position: relative;
  display: inline-block; /* ključ! */
  text-align: center;
}

.about-text h2::before {
  content: '';
  position: absolute;
  left: -1.5ch; /* 2 znaka lijevo od početka teksta */
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 80%;
  background: var(--txt-accent);
  border-radius: 2px;
}

.about-text strong { font-weight: 700; color: var(--txt-accent); }
.about-text em     { font-style: italic; color: var(--txt-2); }

/* ─── Životinje ──────────────────────────────── */

.animals-container {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: clamp(1rem, 3vw, 1.5rem);
  margin: 2rem auto;
  padding: 1.5rem 1rem 2rem;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-s);
  overflow: hidden;
}

.animals-container .animal {
  flex: 0 1 45%;
  max-width: 45%;
  text-align: center;
  background: var(--bg-main);
  border-radius: 4px;
  padding: 0.25rem 0.25rem 0.7rem;
  box-shadow: var(--shadow-m);
}

.animals-container .animal img { width: 100%; height: auto; display: block; }

.animals-container figcaption {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--font-size-s);
  font-weight: 400;
  padding: 10px 0 0;
}

.animals-text {
  flex-basis: 100%;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--font-size-base);
  font-weight: 400;
  line-height: var(--lh-base);
  color: var(--txt-2);
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.contact-link {
  text-align: center;
  padding: 2rem 1.5rem;
  margin: 2rem 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-s);
  position: relative;
  overflow: hidden;
}

.contact-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(184, 92, 42, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.contact-link h2 {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.contact-link p {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--lh-base);
  font-weight: 400;
  color: var(--txt-2);
  margin-bottom: 1.5rem;
}

/* =============================================
   CONTACT STRANICA
============================================= */

.contact {
  margin: 2rem auto;
  padding: var(--pad);
  max-width: var(--content-w);
}

.contact-header {
  text-align: center;
  margin: 0 auto 2rem;
}

.contact-header h1 {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--txt-main);
}

.contact-header h2 {
  font-family: var(--font-body);
  font-size: var(--font-size-s);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: var(--txt-2);
}

.contact-header p {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--lh-base);
  color: var(--txt-2);
  font-weight: 400;
}

.contact-main {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-s);
  margin-bottom: 1.5rem;
}

.contact-right {
  padding: 1.25rem 1rem;
}

.contact-right h2 {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  font-weight: 600;
  text-align: center;
  color: var(--txt-main);
  margin-bottom: 1rem;
}

.services-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.services-list li {
  font-family: var(--font-body);
  color: var(--txt-2);
  text-align: left;
  padding-left: 1.25rem;
  position: relative;
}

.services-list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  top: 0.4em;
  color: var(--txt-accent);
  font-size: 0.5em;
}

.services-list li strong { font-weight: 700; color: var(--txt-hf); }

.contact-left {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
}

.contact-cards { display: flex; flex-direction: column; gap: 0.75rem; }

.card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 0.9rem 1.1rem;
  background: var(--bg-main);
  border-radius: var(--r-l);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-s);
  text-decoration: none;
  color: var(--txt-hf);
}

.card .top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  width: 7.5rem;
}

.card .icon { width: 2rem; height: 2rem; flex-shrink: 0; color: var(--txt-2); }
.card div   { flex: 1; min-width: 0; }

.card h3 {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: 700;
  white-space: nowrap;
  color: var(--txt-2);
  margin: 0;
}

.card p {
  font-family: var(--font-body);
  font-size: var(--font-size-s);
  font-weight: 400;
  margin: 0;
  color: var(--txt-2);
  word-break: break-word;
}

.contact-footer {
  text-align: center;
  margin: 0 auto;
  padding: 1rem;
}

.contact-footer h2 {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--txt-accent);
}

.contact-footer p {
  font-family: var(--font-body);
  color: var(--txt-2);
  font-size: var(--font-size-base);
  font-weight: 400;
}

/* =============================================
   COOKIE BANNER
============================================= */

.cookie-banner-wrapper {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  transform: translate(0, 20px);
  opacity: 0;
  transition:
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.35s ease-out;
  padding: 0 5px;
  z-index: 100;
  width: 100%;
  display: block;
}

.cookie-banner-wrapper.visible { transform: translate(0, 0); opacity: 1; }

.cookie-banner {
  width: 100%;
  margin: 0;
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-top-left-radius: var(--r-m);
  border-top-right-radius: var(--r-m);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.cookie-banner p {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--lh-tight);
  margin: 0;
  color: var(--txt-2);
}

.cookie-banner p a {
  color: var(--txt-accent);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-buttons {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
}

.cookie-banner button {
  width: 100%;
  padding: 0.5rem 2rem;
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  border-radius: var(--r-l);
  cursor: pointer;
  border: 1px solid transparent;
}

#rejectAll,
#essentialOnly { background: var(--bg-hf); color: var(--txt-main); border-color: var(--border); }
#acceptAll     { background: var(--txt-accent); color: var(--white); font-weight: 700; }

/* =============================================
   PROJECT STRANICA
============================================= */

.project-page {
  max-width: var(--project-w);
  margin: 2rem auto 1rem;
  padding: var(--pad);
}

.project-header {
  display: grid;
  grid-template-rows: auto auto;
  justify-items: center;
  row-gap: 1rem;
  text-align: center;
  margin-bottom: 2rem;
}

.project-side-image { display: none; }

.project-description h1 { font-family: var(--font-display); }

.project-description h1,
.project-description h2,
.project-description h3 { margin: 0; padding: 0; line-height: var(--lh-tight); }

.project-description h2 {
  font-family: var(--font-body);
  font-size: var(--font-size-s);
  font-weight: 400;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
  color: var(--txt-2);
}

.project-description h3,
.project-description em {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: 500;
}

.project-page .gallery-grid { min-height: 70vw; }

.bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2rem 0;
  width: 100%;
}

.project-middle-image {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 2rem 0;
  filter: drop-shadow(var(--shadow-s));
  position: relative;
}

.project-middle-image img { max-height: 7rem; width: auto; object-fit: contain; }

.back-link {
  display: block;
  margin: 0 0 1rem auto;
  text-align: right;
  color: var(--txt-accent);
  font-weight: 700;
  text-decoration: none;
}

/* ─── Projects lista ─────────────────────────── */

.projects-lists{  
  min-height: 220vh;
  min-height: 220svh;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  width: 100%;
  min-height: 50rem;
  margin: 1rem auto;
  padding: 0 0.75rem;
}

.project-card {
  display: flex;
  flex-direction: row;
  background: var(--bg-card);
  border-radius: var(--r-m);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-s);
  overflow: hidden;
  text-decoration: none;
  color: var(--txt-main);
  cursor: pointer;
}

.project-card-img {
  width: 40%;
  flex-shrink: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--r-m) 0 0 var(--r-m);
  border-right: 1px solid var(--border);
}

.project-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.project-card-info {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.4rem;
  text-align: center;
}

.project-card-type {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--txt-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: color-mix(in srgb, var(--txt-accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--txt-accent) 25%, transparent);
  border-radius: var(--r-full);
  padding: 0.15em 0.6em;
  align-self: center;
}

.project-card-title {
  font-family: var(--font-display);
  font-size: var(--font-size-base);
  font-weight: 400;
  color: var(--txt-main);
  line-height: var(--lh-tight);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  align-content: center;
}

.project-card-meta {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--txt-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.4rem;
  border-top: 1px solid var(--border);
  opacity: 0.85;
  margin-top: auto;
}

.projects-pagination {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin: 1.25rem 0;
}

.projects-pagination button {
  padding: 0.5rem 0.75rem;
  font-family: var(--font-body);
  font-size: var(--font-size-s);
  border-radius: var(--r-m);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--txt-main);
  cursor: pointer;
}

.projects-pagination button.active { background: var(--txt-accent); color: var(--white); border-color: var(--txt-accent); }
.projects-pagination button:disabled { opacity: 0.4; }

/* ─── Touch — tap highlight ──────────────────── */

@media (hover: none) and (pointer: coarse) {
  * { -webkit-tap-highlight-color: transparent; }
}

/* ─── SEO text — izoliran od layout shiftova galerije ── */
.seo-text {
  contain: layout;
}

/* =============================================
   PRIVACY STRANICA
============================================= */

.privacy {
  max-width: var(--content-w);
  margin: 1rem auto;
  padding: var(--pad);
  line-height: var(--lh-base);
}

.privacy h1 {
  font-family: var(--font-display);
  text-align: center;
}

.privacy p {
  font-family: var(--font-body);
  font-weight: 400;
  margin: 0.5rem 0 0.2rem;
  color: var(--txt-2);
}

.privacy h2 {
  font-family: var(--font-display);
  margin-top: 1.5rem;
  margin-bottom: 0.3rem;
  font-size: var(--font-size-l);
  font-weight: 600;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--border);
}

.privacy a       { color: var(--txt-accent); text-decoration: none; }
.privacy a:active { text-decoration: underline; }
.privacy strong  { font-weight: 700; color: var(--txt-main); }