/* ---------- Fonts ---------- */

@font-face {
  font-family: "Mesagni Display";
  src: url("../Fonts/Mesagni-DisplayBoldItalic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Mesagni Display";
  src: url("../Fonts/Mesagni-DisplaySemiboldItalic.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../Fonts/Montserrat-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../Fonts/Montserrat-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../Fonts/Montserrat-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Variables ---------- */

:root {
  --color-navy: #0e3047;
  --color-teal: #3c6e71;
  --color-lilac: #c4a4c9;
  --color-grey: #d9d9d9;
  --color-off-white: #f2f0ef;
}

/* ---------- Reset ---------- */

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

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: "Montserrat", sans-serif;
  color: var(--color-off-white);
  background: var(--color-off-white);
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
}

/* ---------- Partner Bar ---------- */

.partner-bar {
  background: var(--color-off-white);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.partner-bar__text {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-navy);
}

.partner-bar__logo {
  width: 40px;
}

/* ---------- Hero ---------- */

.hero {
  background-color: var(--color-navy);
  background-image: url("../Photos%20&%20Graphics/Blue%20Pattern%202.webp");
  background-repeat: repeat;
  background-size: 1500px auto;
  background-position: center;
  padding: 48px 24px 96px;
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.hero__logo-wrap {
  width: 100%;
  text-align: center;
  padding: 0 0 100px;
}

.hero__logo {
  width: 440px;
  margin: 0 auto;
}

.hero__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.hero__content {
  flex: 1 1 480px;
  max-width: 600px;
}

.hero__headline {
  font-family: "Mesagni Display", serif;
  font-weight: 600;
  font-style: italic;
  font-synthesis: none;
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1.15;
  color: var(--color-off-white);
}

.hero__headline-accent {
  color: var(--color-lilac);
}

.hero__caption {
  margin-top: 28px;
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-off-white);
  max-width: 460px;
}

.hero__actions {
  margin-top: 36px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

@media (max-height: 860px) and (min-width: 901px) {
  .hero {
    padding-top: 24px;
    padding-bottom: 48px;
  }

  .hero__logo-wrap {
    padding-bottom: 56px;
  }

  .hero__logo {
    width: 300px;
  }

  .hero__caption {
    margin-top: 18px;
  }

  .hero__actions {
    margin-top: 24px;
  }

  .hero__image img {
    height: 380px;
  }
}

@media (max-height: 700px) and (min-width: 901px) {
  .hero {
    padding-top: 16px;
    padding-bottom: 32px;
  }

  .hero__logo-wrap {
    padding-bottom: 32px;
  }

  .hero__logo {
    width: 220px;
  }

  .hero__headline {
    font-size: clamp(32px, 4vw, 44px);
  }

  .hero__caption {
    margin-top: 12px;
  }

  .hero__actions {
    margin-top: 16px;
  }

  .hero__image img {
    height: 300px;
  }
}

.btn {
  display: inline-block;
  padding: 18px 32px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-navy);
}

@media (hover: hover) and (pointer: fine) {
  .btn {
    transition: transform 0.2s ease;
  }

  .btn:hover {
    transform: scale(1.06);
  }
}

.btn--teal {
  background: var(--color-teal);
  color: var(--color-off-white);
}

.btn--lilac {
  background: var(--color-lilac);
  color: var(--color-navy);
}

.hero__image {
  flex: 0 0 auto;
  width: 420px;
  max-width: 100%;
}

.hero__image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: 50% 15%;
  border: 2px solid var(--color-off-white);
}

/* ---------- Why a Personal Estate Agent ---------- */

.why {
  background: var(--color-off-white);
  padding: 96px 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.why__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
}

.why__image {
  flex: 0 0 auto;
  width: 420px;
  max-width: 100%;
}

.why__image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border: 2px solid var(--color-navy);
}

.why__content {
  flex: 1 1 480px;
  max-width: 560px;
}

.why__heading {
  font-family: "Mesagni Display", serif;
  font-weight: 700;
  font-style: italic;
  font-synthesis: none;
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1.15;
  color: var(--color-navy);
}

.why__heading-accent {
  color: var(--color-teal);
}

.why__text {
  margin-top: 28px;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-navy);
}

/* ---------- How it Works ---------- */

.process {
  background-color: var(--color-teal);
  background-image: url("../Photos%20&%20Graphics/Pattern%20Teal.webp");
  background-repeat: repeat;
  background-size: 1500px auto;
  background-position: center;
  padding: 96px 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.process__heading {
  width: 100%;
  font-family: "Mesagni Display", serif;
  font-weight: 600;
  font-style: italic;
  font-synthesis: none;
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1.15;
  color: var(--color-off-white);
  text-align: center;
  margin-bottom: 80px;
}

.process__grid {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 112px;
}

.process__step {
  text-align: center;
}

.process__icon {
  height: 110px;
  width: auto;
  margin: 0 auto 48px;
}

.process__step-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-off-white);
  margin-bottom: 16px;
}

.process__divider {
  display: block;
  width: 64px;
  height: 2px;
  background: var(--color-lilac);
  margin: 0 auto 28px;
}

.process__step-text {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-off-white);
  text-align: justify;
}

/* ---------- Who Should You Choose Me ---------- */

.who {
  background: var(--color-off-white);
  padding: 96px 24px 72px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-sizing: border-box;
}

.who__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
}

.who__content {
  flex: 1 1 480px;
  max-width: 560px;
}

.who__heading {
  font-family: "Mesagni Display", serif;
  font-weight: 700;
  font-style: italic;
  font-synthesis: none;
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1.15;
  color: var(--color-navy);
}

.who__heading-accent {
  color: var(--color-teal);
}

.who__text {
  margin-top: 28px;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-navy);
}

.who__image {
  flex: 0 0 auto;
  width: 420px;
  max-width: 100%;
}

.who__image img {
  width: 100%;
  height: auto;
  border: 2px solid var(--color-navy);
}

/* ---------- Contact ---------- */

.contact {
  background: var(--color-off-white);
  padding: 72px 24px 96px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
}

.contact__inner {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.contact__divider {
  display: block;
  width: 210px;
  height: 2px;
  background: var(--color-lilac);
  margin: 0 auto 32px;
}

.contact__heading {
  font-family: "Mesagni Display", serif;
  font-weight: 700;
  font-style: italic;
  font-synthesis: none;
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1.15;
  color: var(--color-navy);
}

.contact__subtext {
  margin: 36px auto 0;
  max-width: 560px;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-navy);
}

.contact__card {
  margin-top: 56px;
  background: var(--color-grey);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 40px;
  text-align: left;
}

.contact__card[hidden] {
  display: none;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 16px 18px;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--color-navy);
  background: var(--color-off-white);
  border: none;
  border-radius: 0;
  appearance: none;
}

.form-group input::placeholder {
  color: #8a8a8a;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230e3047' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
}

.form-group select:invalid {
  color: #8a8a8a;
}

.contact__submit-wrap {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.contact__submit-wrap .btn {
  border: none;
  cursor: pointer;
}

.contact__submit-wrap .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.contact__form-error {
  grid-column: 1 / -1;
  margin-top: 24px;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  color: #b3261e;
  text-align: center;
}

.contact__success {
  margin-top: 56px;
  background: var(--color-grey);
  padding: 56px 48px;
  text-align: center;
}

.contact__success-heading {
  font-family: "Mesagni Display", serif;
  font-weight: 700;
  font-style: italic;
  font-synthesis: none;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.15;
  color: var(--color-navy);
}

.contact__success-text {
  margin-top: 16px;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-navy);
}

/* ---------- Footer ---------- */

.site-footer {
  background-color: var(--color-navy);
  background-image: url("../Photos%20&%20Graphics/Blue%20Pattern%202.webp");
  background-repeat: repeat;
  background-size: 1500px auto;
  background-position: center;
  padding: 56px 24px;
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}

.site-footer__logo {
  width: 200px;
}

.site-footer__partner {
  display: flex;
  align-items: flex-end;
  gap: 24px;
}

.site-footer__partner-text {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-off-white);
}

.site-footer__partner-logo {
  width: 72px;
}

/* ---------- Back to Top ---------- */

.back-to-top {
  position: fixed;
  right: 32px;
  bottom: 32px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--color-navy);
  color: var(--color-off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, background-color 0.2s ease;
  z-index: 100;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-teal);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
}

/* ---------- Scroll Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.process__step.reveal:nth-child(2) {
  transition-delay: 0.1s;
}

.process__step.reveal:nth-child(3) {
  transition-delay: 0.2s;
}

.process__step.reveal:nth-child(4) {
  transition-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .partner-bar {
    justify-content: center;
  }

  .hero__logo-wrap {
    padding-bottom: 40px;
  }

  .hero__logo {
    width: 320px;
  }

  .hero__inner {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero__content {
    max-width: 320px;
    margin: 0 auto;
  }

  .hero__caption {
    margin-left: auto;
    margin-right: auto;
    font-size: 16px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  .hero__actions .btn {
    width: 100%;
    text-align: center;
  }

  .hero__image {
    width: 320px;
    margin: 0 auto;
  }

  .hero__image img {
    height: 320px;
    object-position: 50% 20%;
  }

  .why {
    padding: 96px 24px 48px;
  }

  .why__inner {
    flex-direction: column;
    text-align: left;
    gap: 32px;
  }

  .why__content {
    max-width: 320px;
    margin: 0 auto;
  }

  .why__text {
    font-size: 16px;
  }

  .why__image {
    width: 320px;
    margin: 0 auto;
  }

  .why__image img {
    height: 320px;
    object-position: 50% 80%;
  }

  .who {
    padding: 96px 24px 48px;
  }

  .who__inner {
    flex-direction: column-reverse;
    text-align: left;
    gap: 32px;
  }

  .who__content {
    max-width: 320px;
    margin: 0 auto;
  }

  .who__text {
    font-size: 16px;
  }

  .who__image {
    width: 320px;
    margin: 0 auto;
  }

  .process__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact__heading {
    max-width: 320px;
    margin: 0 auto;
  }

  .contact__divider {
    margin-bottom: 48px;
  }

  .contact__subtext {
    font-size: 16px;
    max-width: 320px;
  }

  .contact__card {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }

  .contact__success {
    padding: 40px 24px;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 48px;
  }

  .site-footer__partner {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .site-footer__partner-text {
    font-size: 12px;
  }

  .site-footer__partner-logo {
    width: 48px;
  }
}

@media (max-width: 560px) {
  .process__grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }

  .process__step-text {
    text-align: center;
  }
}
