/* ---------- Base ---------- */


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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", sans-serif;
  color: #27221f;
  background: white;
  line-height: 1.5;
}

img {
  max-width: 100%;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #F33A6A;
  outline-offset: 2px;
}

/* Buttonsas  */
.button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  background: #3e151f;
  color: white;
  font: inherit;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease;
}

.button:hover {
  background: #5c2230;
}

.sectionTitle {
  font-size: clamp(26px, 3vw, 36px);
  color: #3e151f;
  margin-bottom: 32px;
}

/* Sectionsai turi tapati width, ir paddinga */
.hero,
.proof,
.stats,
.cta {
  padding: 40px;
}

/* Proof ir stats užima visą plotį kaip hero ir cta, todėl linija ir carousel siekia kraštą */
.proof,
.stats {
  width: 100%;
}

/* Tarpas, į kurį carousel išsikiša, kad šešėliai nebūtų nukirpti */
.proof {
  --gutter: 40px;
}

/* ---------- NavTabas ---------- */
.navTab {
  display: flex;
  width: 100%;
  height: 60px;
  background: black;
  color: white;
}

.brandLink {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.headerContainer {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 20%;
  height: 60px;
  flex-shrink: 0;
  padding: 5px 12px;
  border-right: 1px solid #555;
}

.headerContainer img {
  height: 48px;
  width: 48px;
  object-fit: cover;
  flex-shrink: 0;
  opacity: 0.5;
  border-radius: 100px;
}

.logoName {
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

.navTab nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
  height: 60px;
  padding: 0 16px;
}

.navLinks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex: 1;
}

.navLinks a,
.quoteNumber {
  color: white;
  text-decoration: none;
  white-space: nowrap;
}

/* Šviesesnė hover spalva, nes #9A0930 ant juodo fono sunkiai matoma */
.quoteNumber:hover {
  color: #F33A6A;
}

.navLinks a:hover {
  color: #F33A6A;
}

.navActions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

#quoteButton {
  height: 40px;
}

/* ---------- Hero Sectionsas ---------- */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  min-height: 600px;
}

.heroText {
  flex: 1 1 55%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.heroText h1 {
  color: #3e151f;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.15;
}

.heroText h2 {
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 500;
  max-width: 60ch;
  margin-bottom: 8px;
}

.heroPhoto {
  flex: 0 1 40%;
  max-width: 480px;
  min-width: 0;
  border-radius: 60px;
  background: #ebeae8;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.ownerTitle {
  text-align: center;
}

.heroPhoto img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

/* ---------- Proofas ir testimonials WIP ---------- */
/* Slenkamas atsiliepimų ruožas (carousel) */
.proofTrack {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  /* ruožas išsikiša iki pat puslapio krašto; kortelės pradeda nuo sekcijos tarpo */
  margin-inline: calc(var(--gutter) * -1);
  padding: 24px var(--gutter) 48px;
  scrollbar-width: none;
}

.proofTrack::-webkit-scrollbar {
  display: none;
}

/* aspect-ratio pašalintas: kvadratas perpildydavo kortelę, kai citata ilga */
.quote {
  flex: 0 0 min(420px, 85%);
  scroll-snap-align: start;
  padding: 20px 20px 20px 24px;
  border-left: 3px solid #3e151f;
  border-radius: 0 12px 12px 0;
  background: #fff;
  box-shadow: 0 4px 10px rgba(62, 21, 31, 0.12),
              0 10px 22px rgba(62, 21, 31, 0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.quote:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(62, 21, 31, 0.16),
              0 14px 28px rgba(62, 21, 31, 0.12);
}

.quote blockquote {
  font-size: 18px;
  margin-bottom: 12px;
}

.quote figcaption {
  font-size: 14px;
  color: #666;
}

.clientPhoto {
  border: 1px solid black;
  border-radius: 200px;
  display: block;
  margin-bottom: 12px;
  height: 180px;
  width: 140px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* Žvaigždutės */
.stars {
  margin-bottom: 8px;
  color: #D4A017;
  font-size: 22px;
  letter-spacing: 2px;
  line-height: 1;
}

/* Antraštė su rodyklėmis */
.proofHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.proofHeader .sectionTitle {
  margin-bottom: 0;
}

.carouselControls {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.carouselBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #3e151f;
  border-radius: 50%;
  background: #fff;
  color: #3e151f;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.carouselBtn svg {
  width: 20px;
  height: 20px;
}

.carouselBtn:hover:not(:disabled) {
  background: #3e151f;
  color: #fff;
}

.carouselBtn:disabled {
  opacity: 0.35;
  cursor: default;
}

/* ---------- Statsai WIP ---------- */
.stats {
  border-top: 1px solid #C2B280;
}

.statsGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.stat {
  display: flex;
  flex-direction: column-reverse; 
}

.stat dd {
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  color: #3e151f;
}

.stat dt {
  font-size: 16px;
}

/* ---------- Kvotas ---------- */
.cta {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 64px;
  background: #3e151f;
  color: white;
}

.ctaText {
  flex: 1 1 40%;
  max-width: 440px;
}

.ctaText h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.15;
  margin-bottom: 16px;
}

.quoteForm {
  flex: 1 1 50%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 32px;
  border-radius: 12px;
  background: #FFFDD0;
  color: #27221f;
}

.quoteForm label {
  font-size: 14px;
  font-weight: 500;
  margin-top: 10px;
}

.quoteForm input[type="text"],
.quoteForm input[type="email"],
.quoteForm input[type="tel"],
.quoteForm select,
.quoteForm textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #bbb;
  border-radius: 6px;
  background: white;
  font: inherit;
}

.quoteForm .checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  font-weight: 400;
}

.quoteForm .checkbox input {
  margin-top: 4px;
}

.quoteForm .checkbox a {
  color: #3e151f;
  text-decoration: underline;
}

.quoteForm .button {
  margin-top: 20px;
}

.formStatus {
  min-height: 1.5em;
  margin-top: 8px;
  color: #3e151f;
  font-weight: 500;
}

/* Klaidų pranešimai (Formspree) */
.fieldError,
.formError {
  color: #b00020;
  font-size: 14px;
}

.quoteForm [data-fs-field][aria-invalid="true"] {
  border-color: #b00020;
}

/* Spamo spąstai: žmonės jo nemato */
.honeypot {
  display: none;
}

/* ---------- Footeris ---------- */
.footer {
  padding: 48px 40px 24px;
  background: black;
  color: #ccc;
}

.footerGrid {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto 32px;
}

/* Vertikalios linijos tarp stulpelių */
.footerGrid > div + div {
  border-left: 1px solid #333;
  padding-left: 32px;
}

.footerBrand {
  color: white;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

/* Linija po kiekviena antraštė */
.footerHeading {
  color: white;
  font-weight: 500;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #333;
}

/* Plokščias, platus žemėlapis */
.footerMap {
  display: block;
  width: 100%;
  height: 140px;
  margin-top: 12px;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  filter: grayscale(0.4) contrast(1.05);
  transition: filter 0.3s ease;
}

.footerMap:hover {
  filter: none;
}

.footer a {
  display: block;
  color: #ccc;
  text-decoration: none;
  margin-bottom: 4px;
}

.footer a:hover {
  color: #F33A6A;
}

.copyright {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 16px;
  border-top: 1px solid #333;
  font-size: 14px;
}

/* ---------- Responsyvios detail ---------- */
@media (max-width: 900px) {
  .headerContainer {
    width: auto;
    flex: 0 0 auto;
  }

  .navTab nav {
    gap: 8px;
    padding: 5px;
  }

  .navLinks {
    gap: 12px;
  }

  .navLinks a {
    font-size: 12px;
  }

  #quoteButton {
    padding: 0 10px;
  }

  .hero,
  .proof,
  .stats,
  .cta {
    padding: 40px 24px;
  }

  .hero,
  .cta {
    gap: 24px;
  }

  .proofTrack,
  .statsGrid {
    gap: 20px;
  }

  .proof {
    --gutter: 24px;
  }

  .footerGrid > div + div {
    padding-left: 20px;
  }
}

@media (max-width: 600px) {
  .navTab {
    height: auto;
    flex-wrap: wrap;
  }

  .headerContainer {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #555;
  }

  .navTab nav {
    width: 100%;
    height: auto;
    min-height: 60px;
    flex-wrap: wrap;
    padding: 10px;
  }

  .navLinks,
  .navActions {
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero,
  .cta {
    flex-direction: column;
    align-items: stretch;
    padding: 32px 16px;
  }

  .proof,
  .stats {
    padding: 32px 16px;
  }

  .proof {
    --gutter: 16px;
  }

  .heroText,
  .heroPhoto,
  .ctaText,
  .quoteForm {
    flex: none;
    width: 100%;
    max-width: none;
  }

  .quoteForm {
    padding: 20px;
  }

  .statsGrid,
  .footerGrid {
    grid-template-columns: 1fr;
  }

  /* Telefone linijos tampa horizontalios */
  .footerGrid > div + div {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid #333;
    padding-top: 24px;
  }

  .footer {
    padding: 32px 16px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .quote,
  .button,
  .carouselBtn {
    transition: none;
  }
}

/* ---------- Teisiniai puslapiai (privatumo politika) ---------- */
.legal {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.legal h1 {
  color: #3e151f;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.15;
  margin-bottom: 8px;
}

.legal h2 {
  color: #3e151f;
  font-size: 22px;
  margin: 36px 0 12px;
}

.legal p,
.legal ul {
  margin-bottom: 14px;
}

.legal ul {
  padding-left: 22px;
}

.legal li {
  margin-bottom: 8px;
}

.legal a {
  color: #3e151f;
  text-decoration: underline;
}

.legalUpdated {
  color: #666;
  font-size: 14px;
  margin-bottom: 24px;
}

.legalBack {
  display: inline-block;
  margin-top: 24px;
  font-weight: 500;
}

/* Vietos, kurias reikia užpildyti – ryškiai pažymėtos */
.todo {
  background: #fff3a3;
  padding: 0 4px;
  border-radius: 3px;
}