/* SterlingOak – raspored: zaglavlje, izbornik, sekcije i podnožje */

/* ---------- zaglavlje ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--color-line);
  background: rgba(249, 249, 249, 0.94);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  text-decoration: none;
}

.brand__mark {
  width: auto;
  height: 2.6rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav ul {
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav ul a {
  padding-block: 0.4rem;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  color: var(--color-text);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-size 0.25s ease, color 0.25s ease;
}

.site-nav ul a:hover,
.site-nav ul a[aria-current="true"] {
  background-size: 100% 1px;
  color: var(--color-oak);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-s);
  background: transparent;
  color: var(--color-text);
  font: 500 0.9375rem var(--font-sans);
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.nav-toggle__bars {
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    padding: 0.5rem var(--gutter) 1.5rem;
    border-bottom: 1px solid var(--color-line);
    background: var(--color-bg);
    box-shadow: 0 18px 30px -24px rgba(44, 29, 17, 0.45);
  }

  .site-nav[data-open] {
    display: flex;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav ul a {
    display: block;
    padding-block: 0.9rem;
    border-bottom: 1px solid var(--color-line);
    background: none;
    font-size: var(--text-base);
  }
}

@media (max-width: 420px) {
  :root {
    --header-h: 4.25rem;
  }

  .brand__mark {
    height: 2.1rem;
  }

  .nav-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}

/* ---------- uvod (hero) ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-height: clamp(36rem, calc(100svh - var(--header-h)), 54rem);
  overflow: hidden;
}

/* položaj scene je u scene.css */

/* svijetli prijelaz s lijeve strane da tekst ostane čitljiv i na pravoj fotografiji */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 48% 50% at 21% 44%, rgba(249, 249, 249, 0.88) 0%, rgba(249, 249, 249, 0.62) 50%, rgba(249, 249, 249, 0) 100%);
}

.hero__content {
  padding-block: 3rem 9rem;
}

.hero__lead {
  max-width: 27ch;
  text-wrap: balance;
  margin-top: 1.5rem;
  font-size: clamp(1.2rem, 1rem + 0.6vw, 1.45rem);
  line-height: 1.45;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

@media (max-width: 760px) {
  .hero {
    align-items: start;
    min-height: 44rem;
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(249, 249, 249, 0.92) 0%, rgba(249, 249, 249, 0.7) 42%, rgba(249, 249, 249, 0) 66%);
  }

  .hero__content {
    padding-block: 2.5rem 14rem;
  }
}

/* ---------- o nama ---------- */

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}

.about__intro p {
  max-width: 34em;
}

.about__mark {
  width: 8.5rem;
  margin-top: 2.75rem;
}

@media (max-width: 860px) {
  .about__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about__mark {
    display: none;
  }
}

/* ---------- pasmine ---------- */

/* jazavčar je nizak i dug, seter visok: kartice "stoje" na istom tlu,
   a naslov sjeda u prostor iznad niže kartice */
.breeds__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-areas:
    "head setter"
    "dachshund setter";
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: end;
}

.breeds__head {
  grid-area: head;
  align-self: start;
  margin-bottom: 0;
}

.breed--dachshund { grid-area: dachshund; }
.breed--setter { grid-area: setter; }

@media (max-width: 860px) {
  .breeds__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head" "dachshund" "setter";
  }

  .breeds__head {
    margin-bottom: 1rem;
  }
}

/* ---------- galerija ---------- */

.section-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 3rem;
  max-width: none;
}

.section-head--split .section-title {
  margin-bottom: 0;
}

.section-head--split p {
  max-width: 28rem;
  color: var(--color-text-muted);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(10rem, 17vw, 14.5rem);
  gap: clamp(0.5rem, 1.2vw, 1rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery__item--feature {
  grid-row: span 2;
  grid-column: span 2;
}

.gallery__item--wide {
  grid-column: span 2;
}

@media (max-width: 860px) {
  .gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: clamp(9rem, 30vw, 13rem);
  }

  .gallery__item--wide {
    grid-column: auto;
  }

  .gallery__item:last-child {
    grid-column: span 2;
  }
}

/* ---------- kontakt ---------- */

.contact {
  background: var(--color-oak-deep);
  color: #EDE7E1;
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}

@media (max-width: 860px) {
  .contact__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- podnožje ---------- */

.site-footer {
  padding-block: 2.25rem;
  border-top: 1px solid var(--color-line);
  color: var(--color-text-muted);
  font-size: var(--text-small);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}

.site-footer__inner p + p {
  margin-top: 0;
}

/* ---------- stranica 404 ---------- */

.not-found {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
}

.not-found .brand {
  margin-bottom: 3rem;
}

.not-found .lead {
  max-width: 30em;
  margin-bottom: 2rem;
}
