/*
 * Refinements layered over the original theme styles (reset, all, media,
 * correctors). Loaded last so these take priority.
 */

/* ---------- Headings: casing comes from the copy, not CSS ---------- */
.front-title,
.big-title,
.title,
.f-title,
.btn {
  text-transform: none;
}

/* ---------- Readable line lengths ---------- */
.text-front .text,
.projects-block p,
.perf .text {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.privacy-text {
  max-width: 800px;
  margin: 0 auto;
}

/* ---------- Text contrast ---------- */
.f-excerpt {
  color: #6b6b6b;
}
.testimonials-content {
  opacity: 0.75;
}
.testimonials-person {
  font-family: "Quiche Display", serif;
}

/* ---------- Featured projects: size to content instead of fixed height ---------- */
.swiper--featured {
  height: auto;
  padding-bottom: 70px;
}
.swiper--featured .f-excerpt p {
  margin-bottom: 0;
}
.swiper--featured .f-title,
.swiper--featured .f-excerpt {
  padding-right: 24px;
}

/* ---------- Project details ---------- */
.pr-info-descr p {
  margin-bottom: 0;
}
.pr-info-details > div {
  display: grid;
  grid-template-columns: 135px 1fr;
  column-gap: 12px;
}

/* ---------- Legal pages ---------- */
.privacy-text h2 {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 2.2em 0 0.7em;
}
.privacy-text h2:first-child {
  margin-top: 0;
}
.privacy-text p,
.privacy-text li {
  font-size: 1.21rem;
  line-height: 1.76;
}
.privacy-text p {
  margin-bottom: 1.2em;
}
.privacy-text ul {
  margin: 0 0 1.2em;
  padding-left: 1.4em;
}
.privacy-text a {
  color: #a48659;
  font-weight: 500;
  line-height: inherit;
  text-decoration: underline;
}
.privacy-updated {
  color: #6b6b6b;
  margin-bottom: 3em;
}

/* ---------- Contact form ---------- */
.field-wrap input,
.field-wrap textarea {
  border-color: #a48659;
  transition: border-color 0.2s ease;
}
.field-wrap input:focus,
.field-wrap textarea:focus {
  border-color: #1e1e1e;
}
.form-status {
  border-left: 3px solid #a48659;
  padding: 12px 20px;
  margin-bottom: 28px;
  background: #ffffff;
}

/* ---------- Closing call to action ---------- */
.cta {
  padding: 110px 0;
}
.cta .text p:last-child {
  margin-bottom: 0;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 45px;
}
.cta .btn:hover {
  border-color: #ffffff;
  background-color: #ffffff;
  color: #a48659;
}

/* ---------- Footer ---------- */
.f-copy {
  color: rgba(255, 255, 255, 0.7);
}
.f-copy span {
  display: inline-block;
}

/* ---------- Visible keyboard focus ---------- */
a:focus-visible,
button:focus-visible,
input[type="submit"]:focus-visible,
.swiper-button-prev:focus-visible,
.swiper-button-next:focus-visible {
  outline: 2px solid #a48659;
  outline-offset: 4px;
}
.text-side a:focus-visible,
.perf a:focus-visible,
.front-video a:focus-visible,
footer a:focus-visible {
  outline-color: #ffffff;
}
.reg__form-checkbox:focus-visible + label::before {
  outline: 2px solid #a48659;
  outline-offset: 2px;
}

/* ---------- Phones ---------- */
@media (max-width: 768px) {
  p,
  .text p,
  .privacy-text p,
  .privacy-text li {
    font-size: 1.33rem;
  }
  .privacy-text h2 {
    font-size: 1.75rem;
  }
  .cta {
    padding: 60px 0;
  }
  .cta-actions {
    margin-top: 30px;
  }
  .swiper--featured {
    padding-bottom: 50px;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .moving-button {
    animation: none;
  }
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
