
/* ================================
   GLOBAL SETTINGS
================================ */

:root {
  --background: #f9f8f5;
  --ink: #20221b;
  --olive: #303523;
  --muted: #55564f;
  --red: #ee293a;
  --rule: #d6d5cf;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--background);
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}


/* ================================
   MAIN PAGE CONTAINER
================================ */

.page-shell {
  max-width: 1600px;
  min-height: 100vh;
  min-height: 100svh;

  margin: 0 auto;

  padding: clamp(30px, 5vh, 62px)
           clamp(24px, 7.5vw, 140px)
           22px;

  display: flex;
  flex-direction: column;
  justify-content: center;
}


/* ================================
   TWO-COLUMN LAYOUT
================================ */



.profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: center;
  gap: 40px;
  width: 100%;
  max-width: 1100px;
  margin: auto;
}



.profile-info {
  min-width: 0;
}


/* ================================
   TOP BROKERAGE TEXT
================================ */

.eyebrow {
  margin: 0 0 17px;

  font-size: clamp(12px, 1.25vw, 16px);
  font-weight: 500;

  text-transform: uppercase;
  letter-spacing: 0.28em;
}

.accent-line {
  display: block;

  width: 62px;
  height: 2px;

  background: var(--red);
}


/* ================================
   REALTOR NAME
================================ */

h1,
h2 {
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
}

h1 {
  margin: 12px 0 0;

  font-size: clamp(50px, 5.5vw, 75px);
  line-height: 1.09;

  letter-spacing: -0.035em;
  white-space: nowrap;
}


/* ================================
   REALTOR / VETERAN
================================ */

.credentials {
  margin: 3px 0 0;

  font-size: clamp(15px, 1.6vw, 22px);
  font-weight: 400;

  text-transform: uppercase;
  letter-spacing: 0.17em;
}

.credentials sup {
  font-size: 100 em;
  vertical-align: super;
}

.credentials span {
  padding: 0 0.34em;
}


/* ================================
   LOCATION SECTION
================================ */

.service-area {
  margin-top: clamp(22px, 3.4vh, 42px);
}

.service-area h2 {
  margin: 16px 0 0;

  font-size: clamp(28px, 2.65vw, 39px);
  line-height: 1.15;
}

.service-area p {
  margin: 5px 0 0;

  color: var(--muted);

  font-size: clamp(12px, 1.25vw, 17px);
  font-weight: 500;

  letter-spacing: 0.31em;
  text-transform: uppercase;
}


/* ================================
   CONTACT INFORMATION
================================ */

.contact-details {
  margin-top: clamp(23px, 3.1vh, 34px);

  display: grid;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;

  gap: 17px;

  width: max-content;
  max-width: 100%;

  font-size: clamp(15px, 1.65vw, 23px);
  font-weight: 500;

  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-item:hover {
  color: var(--red);
}


/* CONTACT ICON CIRCLES */

.contact-icon {
  display: grid;
  place-items: center;

  width: 43px;
  height: 43px;

  flex: none;

  border-radius: 50%;

  background: var(--olive);
  color: white;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
}


/* ================================
   CONTACT BUTTONS
================================ */

.contact-actions {
  display: flex;

  gap: 14px;

  margin-top: clamp(23px, 3.2vh, 36px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 15px;

  min-height: 57px;

  padding: 12px 24px;

  border: 1px solid var(--olive);
  border-radius: 3px;

  text-align: center;
  text-transform: uppercase;

  letter-spacing: 0.16em;

  font-size: 13px;
  font-weight: 700;

  white-space: nowrap;
  text-decoration: none;

  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

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

.button svg {
  width: 21px;
  height: 21px;
  flex: none;
}


/* CALL BUTTON */

.button-primary {
  background: var(--olive);
  color: white;
}

.button-primary:hover {
  background: #47503a;
}


/* EMAIL BUTTON */

.button-outline {
  background: transparent;
  color: var(--ink);
}

.button-outline:hover {
  background: #efeee9;
}


/* ================================
   TEAM FREEDOM LOGO
================================ */

.brokerage-logo {
  display: block;

  width: clamp(200px, 20vw, 265px);
  height: auto;

  margin-top: clamp(22px, 3.4vh, 40px);
}


/* ================================
   RIGHT SIDE HEADSHOT
================================ */



.profile-photo {
  justify-self: start;

  width: 100%;
  max-width: 420px;
  aspect-ratio: 3 / 4;

  box-shadow:
    0 8px 26px rgba(29, 30, 22, 0.085);

  overflow: hidden;
}



.profile-photo img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center 25%;
}


/* ================================
   FOOTER
================================ */

.page-footer {
  border-top: 1px solid var(--rule);

  padding-top: 15px;
  margin-top: 28px;

  color: #666760;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;

  column-gap: 20px;
  row-gap: 5px;

  font-size: 12px;
}

.required-notices {
  display: flex;
  flex-wrap: wrap;

  gap: 7px 24px;

  margin-top: 8px;
}

.required-notices a {
  font-size: 14px;
  line-height: 1.4;

  text-decoration: underline;
  text-underline-offset: 2px;
}

.required-notices a:hover {
  color: var(--red);
}


/* ================================
   SHORTER DESKTOP SCREENS
================================ */

@media (min-width: 901px) and (max-height: 820px) {

  .page-shell {
    padding-top: 18px;
    padding-bottom: 15px;
  }

  .profile-photo {
    width: min(100%, 420px);
  }

  h1 {
    font-size: clamp(60px, 5.8vw, 88px);
  }

  .service-area {
    margin-top: 21px;
  }

  .contact-details {
    margin-top: 21px;
    gap: 9px;
  }

  .contact-actions {
    margin-top: 21px;
  }

  .brokerage-logo {
    width: 205px;
    margin-top: 22px;
  }

  .page-footer {
    margin-top: 14px;
  }
}


/* ================================
   TABLETS AND MOBILE
================================ */

@media (max-width: 900px) {

  .page-shell {
    padding: 32px clamp(22px, 5vw, 50px) 24px;
  }

  .profile {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .profile-info {
    text-align: left;
  }

  h1 {
    font-size: clamp(56px, 9.5vw, 84px);
    white-space: normal;
  }

  .credentials {
    font-size: clamp(14px, 2.7vw, 19px);
  }

  .profile-photo {
    justify-self: center;
    width: min(100%, 300px);
  }

  .brokerage-logo {
    margin-top: 28px;
  }

  .page-footer {
    margin-top: 36px;
  }

}


/* ================================
   SMALL PHONES
================================ */

@media (max-width: 520px) {

  .profile-photo {
    width: min(72vw, 260px);
  }

  .eyebrow {
    font-size: 11px;
    letter-spacing: 0.18em;
  }

  h1 {
    font-size: clamp(46px, 12.5vw, 67px);
  }

  .credentials {
    font-size: 13px;
    letter-spacing: 0.14em;
  }

  .service-area p {
    letter-spacing: 0.21em;
  }

  .contact-item {
    gap: 12px;
    font-size: 15px;
  }

  .contact-icon {
    width: 36px;
    height: 36px;
  }

  .contact-icon svg {
    width: 18px;
    height: 18px;
  }

  .contact-actions {
    gap: 10px;
  }

  .button {
    flex: 1;

    min-height: 50px;
    padding: 10px 13px;

    font-size: 11px;
    gap: 8px;
    letter-spacing: 0.08em;
  }

  .button svg {
    width: 17px;
    height: 17px;
  }

  .brokerage-logo {
    width: 205px;
  }

}


/* ACCESSIBILITY */

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


/* ================================
   CUSTOM FONT SIZE ADJUSTMENTS
================================ */

/* Matt Pearson */
h1 {
  font-size: 55px;
}

/* Team Freedom Real Estate - Top Text */
.eyebrow {
  font-size: 13px;
}

/* REALTOR | VETERAN */
.credentials {
  font-size: 16px;
}

/* Rhome, Texas */
.service-area h2 {
  font-size: 30px;
}

/* Serving North Texas */
.service-area p {
  font-size: 13px;
}

/* Phone Number and Email */
.contact-item {
  font-size: 16px;
}

/* Contact Buttons */
.button {
  font-size: 12px;
}



/* ================================
   WEBSITE CONTACT LINK
================================ */

.website-link {
  text-decoration: none;
  transition: color 0.2s ease;
}

.website-link:hover {
  color: var(--red);
}

.website-link:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 5px;
}


/* ================================
   REALTOR TAGLINE
================================ */

.realtor-tagline {
  margin-top: 18px;
  margin-bottom: 8px;
}

.realtor-tagline p {
  margin: 0;

  font-family: "DM Sans", sans-serif;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.45;

  letter-spacing: 0.01em;
  color: #303523;
}

.realtor-tagline .tagline-emphasis {
  font-weight: 700;
}

/* TIGHTER VERTICAL SPACING */

.service-area {
  margin-top: 12px;
}

.service-area h2 {
  margin-top: 12px;
}

.contact-details {
  margin-top: 18px;
  gap: 10px;
}

.contact-actions {
  margin-top: 18px;
}

.brokerage-logo {
  margin-top: 20px;
}

/* MOBILE */

@media (max-width: 520px) {
  .realtor-tagline p {
    font-size: 16px;
  }
}


/* REALTOR REGISTERED SYMBOL */

.credentials sup {
  display: inline-block;
  font-size: 0.52em;
  vertical-align: super;
  line-height: 0;

  transform: scale(1.6);
  transform-origin: center;
}


/* ================================
   PARTIAL CORNER FRAME
================================ */

.profile-photo {
  position: relative;
  overflow: visible;
  isolation: isolate;
}

/* Keep photo in front of decorative lines */

.profile-photo img {
  position: relative;
  z-index: 1;
}

/* TOP LEFT CORNER */

.profile-photo::before {
  content: "";
  position: absolute;

  top: -20px;
  left: -20px;

  width: 90px;
  height: 90px;

  border-top: 2px solid #dc263a;
  border-left: 2px solid #dc263a;

  z-index: 0;
  pointer-events: none;
}

/* BOTTOM RIGHT CORNER */

.profile-photo::after {
  content: "";
  position: absolute;

  bottom: -20px;
  right: -20px;

  width: 90px;
  height: 90px;

  border-bottom: 2px solid #dc263a;
  border-right: 2px solid #dc263a;

  z-index: 0;
  pointer-events: none;
}

/* MOBILE ADJUSTMENTS */

@media (max-width: 520px) {
  .profile-photo::before {
    top: -12px;
    left: -12px;
    width: 65px;
    height: 65px;
  }

  .profile-photo::after {
    bottom: -12px;
    right: -12px;
    width: 65px;
    height: 65px;
  }
}


/* ================================
   CENTER LOGO ON MOBILE
================================ */

@media (max-width: 900px) {

  .brokerage-logo {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

}

/* ================================
   LOGO AT TOP
================================ */

.brokerage-logo {
  display: block;
  width: 170px;
  height: auto;
  margin: 0 0 16px;
}

@media (max-width: 520px) {
  .brokerage-logo {
    width: 140px;
  }
}

/* ================================
   NEW FONT PAIRING
================================ */

body,
.realtor-tagline p {
  font-family: "Public Sans", Arial, sans-serif;
}

h1,
h2 {
  font-family: "Libre Caslon Display", Georgia, serif;
  font-weight: 400;
}

h1 {
  letter-spacing: -0.01em;
}

/* Caslon balance tweaks */

h1 {
  font-size: 62px;
}

.service-area h2 {
  font-size: 34px;
}

.realtor-tagline .tagline-emphasis {
  font-weight: 600;
}

@media (max-width: 520px) {
  h1 {
    font-size: 48px;
  }
}