:root {
  --black: #111111;
  --white: #ffffff;
  --gold: #beaf87;

  --cream: #f3f1ec;
  --light: #f7f7f7;

  --text: #202020;
  --muted: #666666;

  --border: #d9d9d9;

  --max-width: 1180px;
}


/* -------------------------
   BASE
-------------------------- */

* {
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
}


body {
  margin: 0;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  color: var(--text);

  background: var(--white);

  line-height: 1.6;
}


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


a {
  color: inherit;
}


.container {
  width:
    min(
      var(--max-width),
      calc(100% - 48px)
    );

  margin: 0 auto;
}



/* -------------------------
   HEADER
-------------------------- */

.site-header {
  background: rgba(255, 255, 255, 0.96);

  border-bottom:
    1px solid #e6e6e6;

  position: sticky; 

  top: 0;

  z-index: 100;

  backdrop-filter: blur(12px);
}


.header-inner {
  min-height: 80px;

  padding: 14px 0;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 30px;
}


.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}


.header-c21-logo {
  width: 210px;
  height: auto;
  object-fit: contain;
}



nav {
  display: flex;

  align-items: center;

  gap: 30px;
}


nav a {
  text-decoration: none;

  font-weight: 600;
}


nav a:hover {
  opacity: 0.6;
}



/* -------------------------
   HERO
-------------------------- */

.hero {
  background: var(--cream);

  padding: 100px 0;
}


.hero-grid {
  display: grid;

  grid-template-columns:
    1.2fr
    0.8fr;

  gap: 80px;

  align-items: center;
}


.eyebrow,
.section-label {
  margin: 0 0 14px;

  color: var(--black);

  font-size: 0.77rem;

  font-weight: 800;

  letter-spacing: 0.15em;

  text-transform: uppercase;
}


.hero h1 {
  max-width: 720px;

  margin:
    0
    0
    24px;

  font-size:
    clamp(
      3rem,
      6vw,
      5.6rem
    );

  line-height: 1;

  letter-spacing: -0.04em;
}


.hero-copy {
  max-width: 650px;

  margin: 0;

  font-size: 1.2rem;

  color: #444444;
}


.hero-buttons {
  margin-top: 34px;

  display: flex;

  flex-wrap: wrap;

  gap: 14px;
}


.hero-photo-wrapper {
  max-width: 430px;

  justify-self: center;

  position: relative;
}


.hero-photo-wrapper::before {
  content: "";

  position: absolute;

  top: 22px;

  left: 22px;

  width: 100%;

  height: 100%;

  background: var(--gold);
}


.hero-photo {
  width: 100%;

  position: relative;

  z-index: 2;

  aspect-ratio: 4 / 5;

  object-fit: cover;
}

.hero-agent-visual {
  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 45px;
}


.ihe-logo-wrapper {
  width: 100%;

  display: flex;

  justify-content: center;

  padding-top: 10px;
}


.ihe-logo {
  width: min(280px, 80%);

  height: auto;

  object-fit: contain;
}



/* -------------------------
   BUTTONS
-------------------------- */

.button {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  min-height: 52px;

  padding: 12px 25px;

  border-radius: 3px;

  border: 1px solid transparent;

  font: inherit;

  font-weight: 800;

  text-decoration: none;

  cursor: pointer;

  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}


.button:hover {
  transform: translateY(-1px);

  opacity: 0.88;
}


.button-primary {
  background: var(--black);

  color: var(--white);
}


.button-secondary {
  background: transparent;

  color: var(--black);

  border-color: var(--black);
}


.button-gold {
  background: var(--gold);

  color: var(--black);

  white-space: nowrap;
}



/* -------------------------
   SECTIONS
-------------------------- */

.section {
  padding: 110px 0;
}


.section h2,
.search-section h2 {
  margin:
    0
    0
    24px;

  font-size:
    clamp(
      2.4rem,
      5vw,
      4rem
    );

  line-height: 1.05;

  letter-spacing: -0.035em;
}


.large-copy {
  font-size: 1.25rem;

  font-weight: 600;
}



/* -------------------------
   ABOUT
-------------------------- */

.about-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1.4fr)
    minmax(280px, 0.6fr);

  gap: 90px;

  align-items: start;
}


.agent-card {
  padding: 36px;

  background: var(--black);

  color: var(--white);
}


.agent-card a {
  color: var(--white);
}


.agent-card p {
  margin:
    0
    0
    18px;
}


.agent-card-label {
  font-size: 1.6rem;

  font-weight: 800;
}


.agent-card-divider {
  height: 1px;

  margin:
    28px
    0;

  background:
    rgba(
      255,
      255,
      255,
      0.25
    );
}


.contact-label {
  margin-bottom: 3px !important;

  color: var(--gold);

  font-size: 0.68rem;

  font-weight: 800;

  letter-spacing: 0.12em;

  text-transform: uppercase;
}



/* -------------------------
   PROPERTY SEARCH
-------------------------- */

.search-section {
  padding: 75px 0;

  background: var(--black);

  color: var(--white);
}


.search-section .section-label {
  color: var(--gold);
}


.search-box {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 60px;
}


.search-section h2 {
  margin-bottom: 12px;
}


.search-section p {
  margin-bottom: 0;

  color: #dedede;
}



/* -------------------------
   CONTACT
-------------------------- */

.contact-section {
  background: var(--light);
}


.contact-grid {
  display: grid;

  grid-template-columns:
    0.75fr
    1.25fr;

  gap: 90px;

  align-items: start;
}


.contact-intro {
  position: sticky;

  top: 130px;
}


.direct-contact {
  margin-top: 35px;

  display: flex;

  flex-direction: column;

  gap: 8px;
}


.direct-contact a {
  color: var(--black);

  font-weight: 700;
}


.form-card {
  padding: 44px;

  background: var(--white);

  border:
    1px solid
    #e2e2e2;
}



/* -------------------------
   FORM
-------------------------- */

.form-row {
  display: grid;

  grid-template-columns:
    1fr
    1fr;

  gap: 20px;
}


.form-field {
  margin-bottom: 22px;
}


label {
  display: block;

  margin-bottom: 7px;

  font-size: 0.9rem;

  font-weight: 800;
}


.optional {
  margin-left: 5px;

  color: var(--muted);

  font-size: 0.72rem;

  font-weight: normal;
}


input,
textarea {
  width: 100%;

  padding: 14px 15px;

  border:
    1px solid
    #bfbfbf;

  border-radius: 2px;

  background: var(--white);

  color: var(--text);

  font: inherit;
}


textarea {
  resize: vertical;
}


input:focus,
textarea:focus {
  outline:
    2px solid
    var(--gold);

  outline-offset: 1px;

  border-color: var(--black);
}


.consent {
  margin:
    3px
    0
    25px;

  padding:
    16px
    18px;

  background: #f5f3ed;

  color: #555555;

  font-size: 0.78rem;

  line-height: 1.55;
}


.consent p {
  margin:
    0
    0
    7px;
}


.consent p:last-child {
  margin-bottom: 0;
}


.form-button {
  width: 100%;
}


#form-status {
  margin:
    18px
    0
    0;

  font-size: 0.9rem;

  font-weight: 700;
}



/* -------------------------
   FOOTER
-------------------------- */

footer {
  padding:
    60px
    0
    28px;

  background: var(--black);

  color: var(--white);
}


.footer-grid {
  display: flex;

  justify-content: space-between;

  gap: 50px;
}


.footer-name {
  margin-top: 0;

  font-size: 1.35rem;

  font-weight: 800;
}

.footer-brand {
  max-width: 360px;
}


.footer-c21-logo {
  width: 190px;

  height: auto;

  margin-bottom: 28px;

  object-fit: contain;
}


.footer-links {
  display: flex;

  flex-direction: column;

  gap: 10px;

  text-align: right;
}


.footer-links a {
  color: var(--white);
}


.footer-bottom {
  margin-top: 45px;

  padding-top: 22px;

  border-top:
    1px solid
    rgba(
      255,
      255,
      255,
      0.16
    );

  display: flex;

  justify-content: space-between;

  gap: 20px;

  color: #aaaaaa;

  font-size: 0.75rem;
}

/* -------------------------
   LEGAL PAGES
-------------------------- */

.legal-page {
  background: var(--white);
}


.legal-header {
  background: var(--white);

  border-top: 3px solid var(--black);

  border-bottom: 1px solid #e6e6e6;
}


.legal-header-inner {
  height: 100px;

  padding: 14px 0;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 30px;
}


.legal-header .legal-logo {
  display: block;

  width: 210px;

  max-width: 210px;

  height: auto;

  max-height: 72px;

  object-fit: contain;
}


.legal-header a:first-child {
  display: flex;

  align-items: center;

  width: 210px;
}


.legal-home-link {
  font-weight: 700;

  text-decoration: none;

  white-space: nowrap;
}


.legal-home-link:hover {
  text-decoration: underline;
}


.legal-content {
  padding: 90px 0 120px;
}


.legal-container {
  max-width: 820px;
}


.legal-content h1 {
  margin: 0 0 8px;

  font-size: clamp(3rem, 7vw, 5rem);

  line-height: 1;

  letter-spacing: -0.04em;
}


.legal-updated {
  margin-bottom: 70px;

  color: var(--muted);

  font-size: 0.9rem;
}


.legal-content section {
  margin-bottom: 52px;
}


.legal-content section:last-child {
  margin-bottom: 0;
}


.legal-content h2 {
  margin: 0 0 15px;

  font-size: 1.55rem;

  line-height: 1.2;
}


.legal-content p {
  margin: 0 0 16px;
}


.legal-content a {
  font-weight: 600;
}


.legal-footer {
  margin-top: 0;
}


.legal-footer a {
  color: var(--white);
}



/* -------------------------
   MOBILE
-------------------------- */

@media (max-width: 850px) {

  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }


  .hero-grid,
  .about-grid,
  .contact-grid {
    gap: 55px;
  }


  .hero-photo-wrapper {
    max-width: 360px;
  }


  .contact-intro {
    position: static;
  }


  .search-box {
    align-items: flex-start;

    flex-direction: column;

    gap: 25px;
  }

}



@media (max-width: 650px) {

  .container {
    width:
      min(
        100% - 32px,
        var(--max-width)
      );
  }


  .site-header {
    position: static;
  }


  .header-inner {
    padding:
      17px
      0;

    align-items: flex-start;

    flex-direction: column;

    gap: 18px;
  }


  nav {
    width: 100%;

    justify-content: space-between;

    gap: 10px;

    font-size: 0.88rem;
  }


  .hero {
    padding:
      70px
      0
      80px;
  }


  .hero h1 {
    font-size: 3rem;
  }


  .section {
    padding:
      80px
      0;
  }


  .form-row {
    grid-template-columns: 1fr;

    gap: 0;
  }


  .form-card {
    padding: 26px;
  }


  .footer-grid,
  .footer-bottom {
    flex-direction: column;
  }


  .footer-links {
    text-align: left;
  }

  .brand {
  width: 100%;

  gap: 12px;
}


.header-c21-logo {
  width: 175px;
}


.brand-text {
  padding-left: 12px;
}


.brand-name {
  font-size: 1.05rem;
}


.ihe-logo {
  width: min(240px, 75%);
}

.legal-header-inner {
  height: 84px;

  padding: 12px 0;
}


.legal-header .legal-logo {
  width: 170px;

  max-width: 170px;

  max-height: 58px;
}


.legal-header a:first-child {
  width: 170px;
}


.legal-content {
  padding: 65px 0 90px;
}


.legal-updated {
  margin-bottom: 50px;
}

}