:root {
  --purple-main: #4354a1;
  --purple-dark: #363f7e;
  --lavender: #d9dcf0;
  --text-light: #f4f4ff;
  --text-dark: #3f4a8f;
  --white: #f7f7fb;
  --green-check: #67c54c;
  --nav-break: 700px;
  --hero-break: 620px;
  --content-max: 1043px;
  /* horizontal inset for section text, grows with viewport */
  --pad-x: clamp(1.8rem, 5vw, 4rem);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Montserrat", "Segoe UI", sans-serif;
  background: #d8d8de url("Uzorak.svg") repeat;
  background-size: 480px auto;
  color: var(--text-dark);
  line-height: 1.3;
}

.site-shell {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  background: #f4f4fa;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--purple-dark);
  color: var(--white);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4rem;
  padding: 0 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--white);
  /* stretch so the graphic can span the full bar height */
  align-self: stretch;
}

.brand-main {
  font-size: clamp(1.3rem, 2.8vw, 1.8rem);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: block;
  height: 100%;
  width: auto;
  max-width: 60vw;
  min-width: 0;
  object-fit: contain;
  object-position: left center;
}

.topbar-nav {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: nowrap;
}

.desktop-nav a,
.mobile-nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  text-decoration: underline;
}

.nav-caret {
  font-size: 0.65em;
  margin-left: 0.15em;
}

.menu-toggle {
  display: none;
  border: 0;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #6969bf;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: #fff;
}

.mobile-nav {
  display: none;
  background: #5f5fb4;
  padding: 0.75rem 1.2rem 1rem;
  flex-direction: column;
  gap: 0.75rem;
}

@media (max-width: 700px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }
}

.hero-wrap {
  position: relative;
  color: var(--text-light);
}

.hero {
  background-color: rgba(0, 0, 0, 0);
  z-index: 10;
  position: relative;
  display: grid;
  grid-template-columns: 40% 60%;
  align-items: center;
  aspect-ratio: 1920.78 / 948.64;
  overflow: hidden;
  padding: 2rem 1.6rem min(9vw, 94px);
  background: url("Hero_section.svg") center top / 100% 100% no-repeat;
}

.hero-content {
  grid-column: 2;
  justify-self: center;
  width: 100%;
  max-width: 30rem;
  padding: 1.2rem 1rem 1.8rem;
  position: relative;
  z-index: 2;
}

@media (min-width: 621px) {
  .hero-content {
    align-self: start;
    justify-self: end;
    text-align: right;
    max-width: 39rem;
    margin-top: 3rem;
  }

  .hero-content h1 {
    font-size: clamp(1.2rem, 3vw, 2.35rem);
  }

  .hero-content p {
    margin-left: auto;
  }
}

@media (max-width: 620px) {
  .hero {
    grid-template-columns: 1fr;
    aspect-ratio: 7 / 6;
    min-height: 20rem;
    padding: 7.8vw 6.2vw;
    background: url("Hero_section.svg") center top / 100% 100% no-repeat;
  }

  .hero-content {
    grid-column: 1;
    justify-self: end;
    width: fit-content;
    max-width: 60vw;
    align-self: start;
    text-align: right;
  }

}

.hero-content h1 {
  font-size: clamp(1.7rem, 4.4vw, 2.5rem);
  line-height: 1.08;
  font-weight: 900;
  margin-bottom: 0.75rem;
}

.hero-content p {
  font-size: clamp(0.98rem, 1.9vw, 1.15rem);
  line-height: 1.35;
  max-width: 32rem;
}

.hero-cta {
  display: inline-block;
  margin-top: 1.1rem;
  background: none;
  border: 2px solid #fff;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 0.65rem 1.3rem;
  font-size: 0.95rem;
  border-radius: 2px;
}

.cloud-top,
.cloud-bottom {
  position: relative;
  background-color: var(--lavender);
}

.cloud-top::before,
.cloud-bottom::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 30px;
  background-size: 58px 30px;
  background-repeat: repeat-x;
  z-index: 4;
}

.hero-wrap.cloud-bottom::after {
  content: none;
}

.service-item.dark.cloud-bottom::after {
  content: none;
}

.service-item.dark.cloud-bottom {
  clip-path: polygon(0 1.3rem, 100% 0, 100% 100%, 0 100%);
}

.why-us.cloud-top.cloud-bottom::before {
  content: none;
}

.intro {
  position: relative;
  margin-top: -9rem;
  padding: 12rem var(--pad-x) min(36vw, 376px);
  background:
    url("Background_1_web_top.svg") top center / 100% auto no-repeat,
    url("Background_1_web_bottom.svg") bottom center / 100% auto no-repeat,
    url("Background_1_web_mid.svg") 0 min(18vw, 190px) / 100% max(0px, calc(100% - min(18vw, 190px) - min(33vw, 345px))) no-repeat;
}

.intro h2 {
  margin-bottom: 1rem;
}

.intro p {
  margin-top: 0.9rem;
  font-size: clamp(0.98rem, 1.7vw, 1.12rem);
  line-height: 1.4;
  max-width: 46rem;
}

.intro h2,
.services-head h2,
.why-us h2,
.booking h2,
.contact h2,
.testimonials h2,
.faq h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.35rem);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.services-head {
  padding: 1.8rem var(--pad-x) 1.6rem;
  position: relative;
  overflow: hidden;
  margin-top: -1px;
}

.services-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("Background_2.svg") top right / 55% auto no-repeat;
  opacity: 0.6;
  pointer-events: none;
}

.services-head h2 {
  color: var(--text-dark);
  margin-bottom: 0.7rem;
  position: relative;
}

.services-head p {
  font-size: clamp(0.98rem, 1.7vw, 1.12rem);
  line-height: 1.35;
  max-width: 42rem;
  position: relative;
}

.services-list {
  position: relative;
}

.service-item {
  position: relative;
  padding: 2.2rem var(--pad-x) 2.6rem;
  margin-top: -1.3rem;
  text-align: left;
  clip-path: polygon(0 0, 100% 1.3rem, 100% 100%, 0 calc(100% - 1.3rem));
}

.service-item:first-child {
  margin-top: 0;
}

.service-item:nth-child(even) {
  text-align: right;
  clip-path: polygon(0 1.3rem, 100% 0, 100% calc(100% - 1.3rem), 0 100%);
}

.service-item:nth-child(1) {
  z-index: 1;
}

.service-item:nth-child(2) {
  z-index: 2;
}

.service-item:nth-child(3) {
  z-index: 3;
}

.service-item:nth-child(4) {
  z-index: 4;
}

.service-item:nth-child(5) {
  z-index: 5;
}

.service-item:nth-child(6) {
  z-index: 6;
}

.service-item.light {
  background: #f7f7fb;
}

.service-item.dark {
  background: var(--lavender);
}

.service-item h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.service-item p {
  font-size: clamp(0.94rem, 1.7vw, 1.05rem);
  line-height: 1.35;
  color: var(--text-dark);
  max-width: 38rem;
}

.service-item:nth-child(even) p {
  margin-left: auto;
}

.why-us {
  background-image:
    url('Background_3_web_top.svg'),
    url('Background_3_web_bottom.svg'),
    url('Background_3_web_mid.svg'),
    /* lavender above the clouds, booking-white below; the hard stop hides behind the solid mid band */
    linear-gradient(to bottom, var(--lavender) min(32vw, 330px), #f6f6f8 min(32vw, 330px));
  background-repeat: no-repeat;
  background-position: top center, bottom center, 0 min(30vw, 313px), 0 0;
  background-size: 100% auto, 100% auto, 100% max(0px, calc(100% - min(30vw, 313px) - min(16vw, 167px))), 100% 100%;
  color: #fff;
  padding: min(7vw, 73px) var(--pad-x) min(15vw, 156px);
  position: relative;
  margin-top: -1px;
}

.why-us h2 {
  margin-bottom: 1.1rem;
}

.why-us ul {
  list-style: none;
  display: grid;
  gap: 0.65rem;
  width: fit-content;
  margin-inline: auto;
}

.why-us li {
  font-size: clamp(1.08rem, 2.2vw, 1.35rem);
  line-height: 1.35;
  font-weight: 600;
  display: flex;
  gap: 0.62rem;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
}

.why-us li::before {
  content: "☑";
  color: var(--green-check);
  font-size: 1em;
  line-height: 1;
  margin-top: 0.1em;
}

.booking {
  background: #f6f6f8;
  padding: 2rem var(--pad-x) 2.1rem;
}

.booking h2 {
  color: var(--text-dark);
  margin-bottom: 1.1rem;
}

.booking-box {
  background: var(--purple-main);
  padding: 1.35rem 1.25rem 1.2rem;
}

#bookingForm {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.74rem 1rem;
}

.field {
  display: flex;
  flex-direction: column;
}

.field label,
.booking-options {
  color: #fff;
  font-weight: 500;
  font-size: clamp(0.85rem, 1.6vw, 0.95rem);
  margin-bottom: 0.2rem;
}

.field input,
.field select,
.field textarea {
  border: 0;
  border-radius: 0;
  background: #f2f2f6;
  color: var(--text-dark);
  font-family: inherit;
  font-size: clamp(0.92rem, 1.6vw, 1rem);
  padding: 0.48rem 0.72rem;
}

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

.full {
  grid-column: 1 / -1;
}

.booking-options {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.booking-options label,
.consent-row label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: clamp(0.82rem, 1.5vw, 0.92rem);
}

.booking-options input,
.consent-row input {
  accent-color: #fff;
  width: 16px;
  height: 16px;
}

.send-btn {
  border: 0;
  background: #f2f2f6;
  color: var(--text-dark);
  font-family: inherit;
  font-size: clamp(0.92rem, 1.6vw, 1.02rem);
  font-weight: 700;
  padding: 0.55rem 1.1rem;
  cursor: pointer;
}

.send-btn:hover {
  background: #fff;
}

.booking-status {
  min-height: 1.1rem;
  margin-top: 0.45rem;
  color: #fff;
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
}

.contact {
  background: #f5f5f8;
  padding: 1.8rem var(--pad-x) 2.3rem;
}

.contact h2 {
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.contact-grid {
  display: grid;
  gap: 1rem;
}

.contact-info {
  display: grid;
  gap: 0.75rem;
  color: var(--text-dark);
}

.contact-info p {
  font-size: clamp(0.98rem, 1.7vw, 1.1rem);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.contact-info a {
  color: inherit;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.icon {
  width: 32px;
  display: inline-block;
  text-align: center;
}

.map-box {
  margin-top: 0.8rem;
  display: block;
  width: 100%;
  aspect-ratio: 1388 / 700;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 0.125rem solid rgba(67, 84, 161, 0.22);
}

.map-box img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-box:hover img {
  transform: scale(1.02);
  transition: transform 0.2s ease;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  margin-top: 1.6rem;
}

.socials a {
  width: 48px;
  height: 48px;
  display: block;
}

.socials a img {
  width: 100%;
  height: 100%;
  display: block;
}

.testimonials {
  background: var(--purple-main);
  color: #fff;
  padding: 3rem 1.25rem 3.4rem;
  text-align: center;
}

.testimonials h2 {
  margin-bottom: 1.35rem;
}

.testimonial-frame {
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
  gap: 0.6rem;
}

.review {
  max-width: 32rem;
  margin-inline: auto;
  min-height: 6.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.arrow {
  border: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.27);
  color: #f6f7ff;
  font-size: 1.8rem;
  cursor: pointer;
}

.review h3 {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 800;
}

.review p {
  margin-top: 0.45rem;
  font-size: clamp(1rem, 1.9vw, 1.15rem);
  font-style: italic;
  line-height: 1.3;
}

.faq {
  background: #f8f8fa;
  color: var(--text-dark);
}

.faq-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.9rem;
  padding: 1.6rem var(--pad-x) 1rem;
}

.faq-head .faq-hint {
  font-weight: 600;
}

.faq details {
  border: 0;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 800;
  padding: 1rem var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "▾";
  flex-shrink: 0;
  display: inline-block;
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(180deg);
}

.faq details:nth-of-type(odd) summary,
.faq details:nth-of-type(odd) p {
  background: var(--lavender);
  color: var(--text-dark);
}

.faq details:nth-of-type(even) summary,
.faq details:nth-of-type(even) p {
  background: var(--purple-main);
  color: #fff;
}

.faq details p {
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  line-height: 1.3;
  padding: 0.55rem var(--pad-x) 1.35rem;
}

.privacy-footer {
  background: var(--purple-main);
  color: #dce0ff;
  padding: 1rem var(--pad-x) 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.45);
}

.privacy-footer h3 {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.privacy-footer p {
  font-size: clamp(0.95rem, 1.7vw, 1.12rem);
  line-height: 1.2;
}

@media (max-width: 640px) {
  #bookingForm {
    grid-template-columns: 1fr;
  }

  .half,
  .full {
    grid-column: auto;
  }

  .booking-options {
    flex-direction: column;
    gap: 0.45rem;
  }
}

@media (max-width: 560px) {
  .testimonial-frame {
    grid-template-columns: 1fr 1fr;
  }

  .review {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .arrow {
    grid-row: 2;
  }

  #prevReview {
    justify-self: end;
  }

  #nextReview {
    justify-self: start;
  }
}

.br-mobile {
  display: none;
}

/* Mobile-only scale-down: same look, smaller type and tighter spacing */
@media (max-width: 620px) {
  .br-mobile {
    display: inline;
  }

  .topbar-inner {
    height: 3.2rem;
    padding: 0 1rem;
  }

  .hero {
    padding: 1rem 1.1rem 1.5rem;
    background: url("Hero_section.svg") center / cover no-repeat;
  }

  .hero-content {
    padding: 1.9vw 3.1vw 5.5vw;
  }

  .hero-content h1 {
    font-size: 5.6vw;
    margin-bottom: 1.9vw;
  }

  .hero-content p {
    font-size: 3.3vw;
    max-width: 56vw;
    margin-left: auto;
  }

  .hero-cta {
    margin-top: 3.4vw;
    padding: 1.9vw 4vw;
    font-size: 3.3vw;
  }

  .intro h2,
  .services-head h2,
  .why-us h2,
  .booking h2,
  .contact h2,
  .testimonials h2,
  .faq h2 {
    font-size: 1.35rem;
  }

  .intro {
    position: relative;
    margin-top: -5rem;
    padding: max(4.5rem, 14vw) 1.1rem max(9rem, 36vw);
    aspect-ratio: auto;
    background:
      url("Background_1_top.svg") top center / 100% auto no-repeat,
      url("Background_1_bottom.svg") bottom center / 100% auto no-repeat,
      url("Background_1_mid.svg") 0 30vw / 100% max(0px, calc(100% - 70vw)) no-repeat;
  }

  .intro p,
  .services-head p {
    font-size: 0.9rem;
  }

  .services-head {
    padding: 1.4rem 1.1rem 1.3rem;
  }

  .service-item {
    padding: 1.8rem 1.1rem 2.1rem;
  }

  .service-item h3 {
    font-size: 1.05rem;
  }

  .service-item p {
    font-size: 0.86rem;
  }

  .why-us {
    padding: max(1.9rem, 10.5vw) 1.1rem max(2.1rem, 11.5vw);
    background-image:
      url('Background_3_top.svg'),
      url('Background_3_bottom.svg'),
      url('Background_3_mid.svg'),
      linear-gradient(to bottom, var(--lavender) 32vw, #f6f6f8 32vw);
    background-repeat: no-repeat;
    background-position: top center, bottom center, 0 28vw, 0 0;
    background-size: 100% auto, 100% auto, 100% max(0px, calc(100% - 46vw)), 100% 100%;
  }

  .why-us li {
    font-size: 0.95rem;
  }

  .booking {
    padding: 1.6rem 1.1rem 1.7rem;
  }

  .booking-box {
    padding: 1.1rem 0.95rem 1rem;
  }

  .field label,
  .booking-options {
    font-size: 0.78rem;
  }

  .field input,
  .field select,
  .field textarea {
    font-size: 0.88rem;
    padding: 0.42rem 0.65rem;
  }

  .field textarea {
    min-height: 60px;
  }

  .booking-options label,
  .consent-row label {
    font-size: 0.78rem;
  }

  .send-btn {
    font-size: 0.88rem;
    padding: 0.5rem 1rem;
  }

  .booking-status {
    font-size: 0.8rem;
  }

  .contact {
    padding: 1.5rem 1.1rem 1.9rem;
  }

  .contact-info p {
    font-size: 0.9rem;
  }

  .socials {
    gap: 1.1rem;
    margin-top: 1.3rem;
  }

  .socials a {
    width: 44px;
    height: 44px;
  }

  .testimonials {
    padding: 1.8rem 1rem 2.1rem;
  }

  .arrow {
    width: 44px;
    height: 44px;
    font-size: 1.45rem;
  }

  .review h3 {
    font-size: 1rem;
  }

  .review p {
    font-size: 0.92rem;
  }

  .faq-head {
    padding: 1.3rem 1.1rem 0.8rem;
  }

  .faq summary {
    font-size: 0.95rem;
    padding: 0.85rem 1.1rem;
  }

  .faq details p {
    font-size: 0.88rem;
    padding: 0.5rem 1.1rem 1.1rem;
  }

  .privacy-footer {
    padding: 0.9rem 1.1rem 1.2rem;
  }

  .privacy-footer h3 {
    font-size: 0.95rem;
  }

  .privacy-footer p {
    font-size: 0.82rem;
  }
}
