:root {
  --teal: #89aeb2;
  --ink: #4a4a4a;
  --body: #7a7a7a;
  --line: #dddddd;
  --white: #ffffff;
  --max: 1080px;
  --form: 440px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Roboto, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.8;
}

main {
  flex: 1;
}

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

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

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--teal);
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-align: center;
}

h1,
.about h2,
#kontakt > .wrap > h2,
.page-main h1 {
  font-size: 38px;
}

h2 {
  font-size: 35px;
}

h3 {
  margin-top: 0.35rem;
  font-size: 35px;
}

p {
  margin: 0 0 1rem;
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-120%);
  background: var(--white);
  color: var(--ink);
  padding: 0.5rem 0.75rem;
  z-index: 5;
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.wrap.narrow {
  width: min(920px, calc(100% - 2.5rem));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--white);
  border-bottom: 1px solid #ececec;
}

.bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 1.5rem;
  min-height: 76px;
}

.brand img {
  display: block;
  width: 158px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.4rem;
}

.nav a {
  color: var(--ink);
  font-family: Roboto, sans-serif;
  font-weight: 300;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.nav a:hover {
  color: var(--teal);
  text-decoration: none;
}

.call {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.05rem;
  border-radius: 999px;
  background: var(--teal);
  color: var(--white);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}

.call:hover {
  background: #75999d;
  color: var(--white);
  text-decoration: none;
}

.call .icon {
  width: 16px;
  height: 16px;
}

.with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

#storitve,
#kontakt,
#onas-naslov {
  scroll-margin-top: 92px;
}

.hero {
  display: grid;
  place-items: center;
  min-height: 460px;
  padding: 4.5rem 1.5rem;
  background: url("../assets/hero.jpg") top center / cover no-repeat fixed;
}

.hero-logo {
  width: min(500px, 78vw);
}

.band {
  padding: 2.75rem 0 3.25rem;
}

.band h1,
#kontakt > .wrap > h2 {
  margin-bottom: 1.75rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3.5rem;
}

.service,
.contact {
  text-align: center;
}

.service img,
.contact img {
  display: inline-block;
  transition: transform 160ms var(--ease-out);
}

.service img {
  width: 168px;
  height: auto;
}

.contact img {
  width: 96px;
  height: auto;
}

.service h2 {
  margin: 0.85rem 0 1rem;
}

.service p,
.about p,
.page-main p,
.page-main li {
  color: var(--body);
  text-align: justify;
}

.service strong {
  color: var(--ink);
}

.about {
  position: relative;
  padding: 3.25rem 0 3.5rem;
  color: var(--white);
  background: url("../assets/hero.jpg") top center / cover no-repeat fixed;
}

.about::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(55, 90, 94, 0.38);
}

.about .wrap {
  position: relative;
}

.about h2,
.about p {
  color: var(--white);
}

.about h2 {
  margin-bottom: 0.85rem;
}

.contacts {
  margin-bottom: 1.15rem;
}

.contact a {
  font-size: 22px;
  line-height: 1.3;
}

.form {
  width: min(var(--form), 100%);
  margin: 1.75rem auto 0;
}

.form-title {
  margin-bottom: 0.75rem;
  font-size: 28px;
}

.field {
  margin-bottom: 0.55rem;
}

.field label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 14px;
}

.field label span {
  color: #c0392b;
}

input,
textarea {
  width: 100%;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  font: inherit;
  background: var(--white);
}

textarea {
  resize: vertical;
  min-height: 96px;
}

input:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

button,
.to-top {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.form button {
  margin-top: 0.4rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: var(--teal);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.form button:hover {
  background: #75999d;
}

.form-note {
  min-height: 1.5rem;
  margin-top: 0.75rem;
  color: var(--body);
  text-align: left;
}

.site-footer {
  background: var(--teal);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  align-items: center;
  gap: 1rem 2.5rem;
  padding: 1.5rem 0;
}

.footer-logo img {
  display: block;
  width: 168px;
  height: auto;
}

.site-footer p {
  margin: 0;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.site-footer a {
  color: var(--white);
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  place-items: center;
}

.burger-box,
.burger-box::before,
.burger-box::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 1px;
  background: var(--ink);
  transition: transform 160ms var(--ease-out);
}

.burger-box {
  position: relative;
}

.burger-box::before,
.burger-box::after {
  content: "";
  position: absolute;
  left: 0;
}

.burger-box::before {
  transform: translateY(-6px);
}

.burger-box::after {
  transform: translateY(6px);
}

.burger[aria-expanded="true"] .burger-box {
  background: transparent;
}

.burger[aria-expanded="true"] .burger-box::before {
  transform: rotate(45deg);
}

.burger[aria-expanded="true"] .burger-box::after {
  transform: rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  .burger-box,
  .burger-box::before,
  .burger-box::after {
    transition: none;
  }
}

.to-top {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  width: 42px;
  height: 42px;
  border: 1px solid var(--white);
  border-radius: 3px;
  background: var(--teal);
  color: var(--white);
  font-size: 20px;
  line-height: 1;
}

.to-top[hidden] {
  display: none;
}

body:has(.consent) .to-top {
  bottom: 5.5rem;
}

.consent {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.9rem 1.25rem;
  background: var(--white);
  border-top: 1px solid #ececec;
  box-shadow: 0 -8px 24px rgba(26, 51, 52, 0.08);
}

.consent p {
  margin: 0;
  max-width: 46rem;
  color: var(--body);
  font-size: 14px;
  line-height: 1.5;
}

.consent button {
  flex: none;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  background: var(--teal);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.consent button:hover {
  background: #75999d;
}

.page-top {
  padding: 1.25rem 0;
  border-bottom: 1px solid #eee;
}

.page-top img {
  width: 180px;
}

.page-main {
  padding: 2.5rem 0 4rem;
}

.page-main h1 {
  margin-bottom: 1.25rem;
  text-align: left;
}

.page-main p,
.page-main li {
  text-align: left;
  max-width: 42rem;
}

.page-main ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  color: var(--body);
}

@media (hover: hover) and (pointer: fine) {
  .service:hover img,
  .contact:hover img {
    transform: translateY(-6px) scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .service img,
  .contact img {
    transition: none;
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: 280px;
    padding: 3rem 1rem;
    background-attachment: scroll;
  }

  .about {
    background-attachment: scroll;
    padding: 2.5rem 0;
  }

  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service + .service {
    margin-top: 1rem;
  }

  h1,
  .about h2,
  #kontakt > .wrap > h2,
  .page-main h1,
  h2,
  h3 {
    font-size: 32px;
  }

  .bar {
    grid-template-columns: 1fr auto auto;
    min-height: 0;
    padding: 0.55rem 0;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .brand img {
    width: 124px;
  }

  .call {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    padding: 0.5rem 0.75rem;
    font-size: 13px;
  }

  .burger {
    display: grid;
    grid-column: 3;
    grid-row: 1;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 31;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0.35rem 1.25rem 0.7rem;
    background: var(--white);
    border-bottom: 1px solid #ececec;
    box-shadow: 0 12px 24px rgba(26, 51, 52, 0.08);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.8rem 0;
    font-size: 15px;
    letter-spacing: 0.04em;
  }

  .footer-grid,
  .footer-contact {
    justify-items: center;
    text-align: center;
  }

  .footer-contact {
    align-items: center;
  }

  .contact a {
    font-size: 17px;
  }

  .to-top {
    display: none;
  }

  .service p,
  .about p {
    text-align: left;
  }

  .consent {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.9rem 1rem 1rem;
  }

  .consent button {
    align-self: flex-start;
  }

  body:has(.consent) .to-top {
    bottom: 9rem;
  }
}
