:root {
  color-scheme: light;
  --black: #000000;
  --ink: #141414;
  --muted: #5e626b;
  --gold: #c49a4b;
  --soft: #f4f2f1;
  --section: #eceae9;
  --paper: #ffffff;
  --line: #e4e0dd;
  --footer-line: #171717;
  --error: #9f1f17;
  --success: #315c50;
  --header-height: 86px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--soft);
  color: var(--ink);
  font-family: "Hanken Grotesk", Arial, sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

.site-header {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.brand-link,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-link img {
  width: 58px;
  height: auto;
}

.brand-link span,
.footer-logo span {
  color: var(--black);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-width: 0;
}

.primary-nav a {
  position: relative;
  color: #3a3a3a;
  font-size: 0.93rem;
  font-weight: 800;
}

.primary-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 2px;
  background: var(--black);
  content: "";
  opacity: 0;
  transform: scaleX(0.7);
  transition: opacity 180ms ease, transform 180ms ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after,
.primary-nav .is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-cta,
.submit-button {
  min-height: 50px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--black);
  background: var(--black);
  color: #fff;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-align: center;
  text-transform: uppercase;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.header-cta {
  min-width: 184px;
  padding: 0 24px;
}

.header-cta:hover,
.header-cta:focus-visible,
.submit-button:hover,
.submit-button:focus-visible {
  border-color: var(--gold);
  background: var(--gold);
  color: #fff;
}

.hero-section {
  position: relative;
  min-height: 640px;
  display: grid;
  place-items: center;
  padding: 90px 24px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.28)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.08)),
    url("assets/oaklyn-waterfront-tower.png") center / cover no-repeat;
}

.hero-content {
  width: 100%;
  max-width: 780px;
  color: #fff;
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: var(--black);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  line-height: 1.08;
}

h1 {
  color: #fff;
  font-size: 4.1rem;
}

.hero-content p:last-child {
  max-width: 760px;
  margin: 26px auto 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.16rem;
  font-weight: 600;
}

.recognition-section,
.form-section {
  padding: 92px 24px;
}

.recognition-section {
  background: var(--section);
}

.section-heading {
  margin: 0 auto 54px;
  text-align: center;
}

.section-heading h2,
.form-heading h2 {
  font-size: 2.05rem;
}

.testimonial-slider {
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.testimonial-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.testimonial-viewport::-webkit-scrollbar {
  display: none;
}

.testimonial-viewport:focus-visible {
  outline: 3px solid rgba(196, 154, 75, 0.38);
  outline-offset: 8px;
}

.testimonial-slider:not(.has-overflow) .slider-button,
.testimonial-slider:not(.has-overflow) .slider-dots {
  display: none;
}

.testimonial-grid {
  width: 100%;
  display: flex;
  gap: 34px;
}

.testimonial-card {
  min-height: 310px;
  display: grid;
  flex: 0 0 calc((100% - 68px) / 3);
  align-content: start;
  gap: 22px;
  padding: 34px 32px 30px;
  border: 1px solid #ece8e4;
  background: var(--paper);
  scroll-snap-align: start;
}

.stars {
  margin: 0;
  color: var(--gold);
  font-size: 1.15rem;
  letter-spacing: 0.13em;
}

.testimonial-card blockquote {
  margin: 0;
  color: var(--black);
  font-size: 1rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1.8;
}

.testimonial-person {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.testimonial-person span {
  width: 46px;
  height: 46px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #e7e6e4;
  color: var(--black);
  font-size: 0.78rem;
  font-weight: 800;
}

.testimonial-person p {
  margin: 0;
  line-height: 1.25;
}

.testimonial-person strong,
.testimonial-person small {
  display: block;
}

.testimonial-person strong {
  color: var(--black);
  font-size: 0.9rem;
}

.testimonial-person small {
  color: #4f535a;
  font-size: 0.74rem;
}

.slider-button {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #d7d0ca;
  background: rgba(255, 255, 255, 0.92);
  color: var(--black);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, opacity 160ms ease;
}

.slider-button:hover,
.slider-button:focus-visible {
  border-color: var(--gold);
  background: var(--black);
  color: #fff;
}

.slider-button:disabled {
  cursor: default;
  opacity: 0.35;
}

.slider-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.slider-button-prev {
  left: -22px;
}

.slider-button-next {
  right: -22px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.slider-dots button {
  width: 34px;
  height: 4px;
  padding: 0;
  border: 0;
  background: #cfc9c4;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.slider-dots button.is-active,
.slider-dots button:hover,
.slider-dots button:focus-visible {
  background: var(--gold);
}

.slider-dots button.is-active {
  transform: scaleX(1.14);
}

.form-section {
  background: #f8f7f6;
}

.review-form {
  width: 100%;
  max-width: 1030px;
  display: grid;
  gap: 34px;
  margin: 0 auto;
  padding: 60px 58px 54px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.form-heading {
  padding-bottom: 38px;
  border-bottom: 1px solid var(--line);
}

.form-heading p {
  max-width: 680px;
  margin: 12px 0 0;
  color: #3e424a;
  font-size: 1.05rem;
}

.form-heading h2 {
  font-size: 2.7rem;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

label,
legend {
  color: var(--black);
  font-size: 0.82rem;
  font-weight: 800;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 40px;
}

.field {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.field-consultant {
  grid-column: 2;
}

.field-message {
  gap: 12px;
}

.rating-control {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
}

.rating-control label {
  cursor: pointer;
}

.rating-control span {
  display: block;
  color: #dedbd8;
  font-size: 2rem;
  line-height: 1;
  transition: color 160ms ease, transform 160ms ease;
}

.rating-control label:hover span,
.rating-control label:focus-within span,
.rating-control label.is-active span {
  color: var(--gold);
}

.rating-control label:hover span,
.rating-control label:focus-within span {
  transform: translateY(-1px);
}

.engagement-field {
  display: grid;
  gap: 16px;
}

.engagement-options {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.engagement-options label {
  cursor: pointer;
}

.engagement-options span {
  min-height: 52px;
  display: grid;
  place-items: center;
  padding: 0 30px;
  border: 1px solid #dfdcda;
  background: #fff;
  color: var(--black);
  font-size: 0.98rem;
  font-weight: 700;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.engagement-options input:checked + span,
.engagement-options label:hover span,
.engagement-options label:focus-within span {
  border-color: var(--black);
  background: var(--black);
  color: #fff;
}

input,
textarea {
  min-width: 0;
  width: 100%;
  min-height: 54px;
  border: 0;
  border-bottom: 1px solid #cfcac6;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  outline: none;
  padding: 13px 14px 13px 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input {
  padding-right: 0;
  padding-left: 14px;
}

textarea {
  min-height: 184px;
  resize: vertical;
  border: 1px solid #e2dfdc;
  background: #f4f3f2;
  padding: 22px;
}

input::placeholder,
textarea::placeholder {
  color: #747a84;
}

input:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 2px 0 rgba(196, 154, 75, 0.26);
}

textarea:focus {
  box-shadow: 0 0 0 3px rgba(196, 154, 75, 0.16);
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--error);
}

.form-disclaimer {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.submit-button {
  justify-self: end;
  min-width: 290px;
  min-height: 64px;
  padding: 0 34px;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-status {
  padding: 14px 16px;
  border: 1px solid rgba(49, 92, 80, 0.22);
  background: rgba(49, 92, 80, 0.08);
  color: var(--success);
  font-weight: 800;
}

.form-status.is-error {
  border-color: rgba(159, 31, 23, 0.24);
  background: rgba(159, 31, 23, 0.08);
  color: var(--error);
}

.site-footer {
  background: #000;
  color: #f5f2ed;
}

.footer-grid {
  width: calc(100% - 48px);
  max-width: 1180px;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1fr;
  gap: 70px;
  margin: 0 auto;
  padding: 64px 0 58px;
}

.footer-logo img {
  width: 52px;
  height: auto;
}

.footer-logo span {
  color: #fff;
  font-size: 1.9rem;
}

.footer-brand p,
.site-footer p {
  margin: 18px 0 0;
  color: #ddd8d1;
  font-size: 0.96rem;
}

.site-footer h2 {
  margin: 0 0 24px;
  color: var(--gold);
  font-family: "Hanken Grotesk", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-footer a:not(.footer-logo) {
  display: block;
  width: fit-content;
  margin-top: 14px;
  color: #f5f2ed;
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 160ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--gold);
}

.footer-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.site-footer .footer-actions a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin: 0;
  border: 1px solid #2b2b2b;
}

.footer-actions svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.footer-bottom {
  margin: 0;
  padding: 28px 24px;
  border-top: 1px solid var(--footer-line);
  text-align: center;
  font-size: 0.78rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding: 0 28px;
  }

  .primary-nav {
    display: none;
  }

  .hero-section {
    min-height: 580px;
  }

  h1 {
    font-size: 3.35rem;
  }

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

@media (max-width: 760px) {
  :root {
    --header-height: 74px;
  }

  .site-header {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 0 18px;
  }

  .brand-link img {
    width: 44px;
  }

  .brand-link span {
    font-size: 1.18rem;
  }

  .header-cta {
    display: none;
  }

  .hero-section {
    min-height: 520px;
    padding: 74px 18px;
    background-position: center;
  }

  h1 {
    max-width: 11ch;
    margin: 0 auto;
    font-size: 2.35rem;
  }

  .hero-content p:last-child {
    max-width: 30ch;
    margin-top: 20px;
    font-size: 1rem;
  }

  .recognition-section,
  .form-section {
    padding: 64px 18px;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .section-heading h2,
  .form-heading h2 {
    max-width: 12ch;
    margin-right: auto;
    margin-left: auto;
    font-size: 1.75rem;
  }

  .form-heading h2 {
    max-width: none;
    margin-left: 0;
  }

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

  .field-consultant {
    grid-column: auto;
  }

  .engagement-options {
    display: grid;
    grid-template-columns: 1fr;
  }

  .engagement-options span {
    width: 100%;
  }

  .testimonial-grid {
    gap: 18px;
  }

  .testimonial-card {
    flex-basis: 100%;
    min-height: 0;
    padding: 28px 24px;
  }

  .slider-button {
    top: auto;
    bottom: -58px;
    transform: none;
  }

  .slider-button-prev {
    left: calc(50% - 68px);
  }

  .slider-button-next {
    right: calc(50% - 68px);
  }

  .slider-dots {
    margin-top: 78px;
  }

  .review-form {
    padding: 34px 22px;
  }

  .submit-button {
    width: 100%;
    justify-self: stretch;
  }

  .footer-grid {
    width: calc(100% - 36px);
    gap: 34px;
    padding: 50px 0 44px;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 2.08rem;
  }

  .hero-section {
    min-height: 500px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
