@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,500;1,500&display=swap");

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f0eee8;
  color: #111;
  font-family: "DM Sans", sans-serif;
}

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


/* =========================================
   HEADER
========================================= */

.areas-header {
  height: 90px;
  padding: 0 4vw;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;

  background: #111;
  color: white;
}

.areas-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.areas-brand .brokerage-name {
  display: block;

  color: #fff;

  font-size: 9px;
  font-weight: 600;
  line-height: 1.3;

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

.areas-brand .agent-name {
  display: block;

  margin-top: 4px;

  color: rgba(255, 255, 255, 0.82);

  font-size: 7px;
  font-weight: 500;
  line-height: 1.3;

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

.areas-header nav {
  display: flex;
  gap: 30px;
}

.areas-header nav a,
.account-link {
  font-size: 9px;
  letter-spacing: 0.13em;
  opacity: 0.65;
}

.areas-header nav a:hover,
.areas-header nav a.active,
.account-link:hover {
  opacity: 1;
}

.account-link {
  justify-self: end;
}


/* =========================================
   STELLAR BROKERAGE DISCLOSURE
========================================= */

.stellar-brokerage-disclosure {
  position: relative;
  z-index: 95;

  width: 100%;

  display: grid;

  grid-template-columns:
    auto
    minmax(0, 1fr)
    auto;

  align-items: center;

  gap: 24px;

  padding:
    15px
    4vw;

  border-bottom:
    1px solid
    rgba(
      17,
      17,
      17,
      0.14
    );

  background: #fff;

  color: #111;
}

.stellar-brokerage-logo {
  display: block;

  width: 145px;

  max-width: 100%;

  height: auto;
}

.stellar-brokerage-identity {
  display: flex;

  flex-direction: column;

  gap: 3px;

  min-width: 0;
}

.stellar-brokerage-identity strong {
  font-size: 12px;

  font-weight: 600;

  line-height: 1.35;
}

.stellar-brokerage-identity span {
  color:
    rgba(
      17,
      17,
      17,
      0.68
    );

  font-size: 9px;

  line-height: 1.45;
}

.stellar-brokerage-contact {
  display: flex;

  flex-direction: column;

  align-items: flex-end;

  gap: 3px;

  text-align: right;
}

.stellar-brokerage-contact a,
.stellar-brokerage-contact span {
  color: #111;

  font-size: 9px;

  line-height: 1.45;
}

.stellar-brokerage-contact a {
  text-decoration: underline;

  text-underline-offset: 2px;
}


/* =========================================
   HERO
========================================= */

.areas-hero {
  min-height: 72vh;

  padding:
    10vh
    7vw;

  display: flex;

  align-items: flex-end;

  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.8),
      rgba(0, 0, 0, 0.15)
    ),
    url("/tampa-bay-hero.png")
    center / cover;

  color: white;
}

.areas-hero > div {
  max-width: 1100px;
}

.areas-hero > div > span,
.areas-intro > span,
.section-heading > span,
.directory-heading > span,
.area-search-cta > div > span,
.areas-homeowner > div > span {
  font-size: 8px;

  letter-spacing: 0.18em;
}

.areas-hero h1 {
  margin:
    20px
    0
    25px;

  font-size:
    clamp(
      80px,
      12vw,
      185px
    );

  font-weight: 300;

  line-height: 0.75;

  letter-spacing: -0.06em;
}

.areas-hero h1 em {
  display: block;

  font-family:
    "Playfair Display",
    serif;

  font-weight: 500;
}

.areas-hero p {
  max-width: 660px;

  margin: 0;

  font-family:
    "Playfair Display",
    serif;

  font-size: 19px;

  line-height: 1.6;
}


/* =========================================
   INTRO
========================================= */

.areas-intro {
  padding:
    120px
    7vw;
}

.areas-intro > div {
  margin-top: 25px;

  display: grid;

  grid-template-columns:
    1fr
    0.65fr;

  gap: 8vw;

  align-items: end;
}

.areas-intro h2,
.section-heading h2,
.directory-heading h2,
.area-search-cta h2,
.areas-homeowner h2 {
  margin: 0;

  font-size:
    clamp(
      55px,
      7vw,
      105px
    );

  font-weight: 300;

  line-height: 0.87;

  letter-spacing: -0.055em;
}

.areas-intro h2 em,
.section-heading h2 em,
.directory-heading h2 em,
.area-search-cta h2 em,
.areas-homeowner h2 em {
  display: block;

  font-family:
    "Playfair Display",
    serif;

  font-weight: 500;
}

.areas-intro p {
  margin: 0;

  font-family:
    "Playfair Display",
    serif;

  font-size: 18px;

  line-height: 1.65;
}


/* =========================================
   FEATURED AREAS
========================================= */

.featured-areas {
  padding:
    110px
    7vw;

  background: #111;

  color: white;
}

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

.section-heading h2 {
  margin-top: 18px;
}

.featured-grid {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      1fr
    );

  gap: 7px;
}

.featured-card {
  position: relative;

  min-height: 590px;

  padding: 30px;

  display: flex;

  flex-direction: column;

  overflow: hidden;

  background-size: cover;

  background-position: center;

  color: white;
}

.featured-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-tampa {
  background-image:
    url("/tampa-bay-hero.png");
}

.featured-stpete {
  background-image:
    url("/tampa-bay-hero.png");
}

.featured-westchase {
  background-image:
    url("/tampa-bay-hero.png");
}

.card-overlay {
  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.88),
      rgba(0, 0, 0, 0.05)
    );
}

.featured-number {
  position: relative;
  z-index: 1;

  font-size: 9px;

  letter-spacing: 0.15em;
}

.featured-content {
  position: relative;
  z-index: 1;
  position: relative;

  margin-top: auto;
}

.featured-content > span {
  color: #bbb;

  font-size: 8px;

  letter-spacing: 0.15em;
}

.featured-content h3 {
  margin:
    12px
    0;

  font-family:
    "Playfair Display",
    serif;

  font-size:
    clamp(
      36px,
      4vw,
      60px
    );

  font-weight: 500;

  line-height: 0.95;
}

.featured-content p {
  max-width: 330px;

  color: #ddd;

  font-size: 11px;

  line-height: 1.6;
}

.featured-content strong {
  display: inline-block;

  margin-top: 20px;

  padding-bottom: 5px;

  border-bottom:
    1px solid
    white;

  font-size: 8px;

  letter-spacing: 0.13em;
}


/* =========================================
   DIRECTORY
========================================= */

.area-directory {
  padding:
    120px
    7vw;
}

.directory-heading {
  max-width: 1050px;
}

.directory-heading h2 {
  margin-top: 20px;
}

.directory-heading p {
  max-width: 650px;

  margin-top: 30px;

  font-family:
    "Playfair Display",
    serif;

  font-size: 18px;

  line-height: 1.6;
}

.directory-groups {
  margin-top: 85px;

  display: grid;

  grid-template-columns:
    1fr
    1fr;

  border-top:
    1px solid
    #c7c3bb;
}

.directory-groups article {
  padding: 35px;

  border-right:
    1px solid
    #c7c3bb;

  border-bottom:
    1px solid
    #c7c3bb;
}

.directory-groups article:nth-child(2n) {
  border-right: 0;
}

.directory-groups article > span {
  color: #888;

  font-size: 8px;

  letter-spacing: 0.16em;
}

.directory-links {
  margin-top: 30px;
}

.directory-links a,
.directory-links > div {
  min-height: 64px;

  display: flex;

  justify-content: space-between;

  align-items: center;

  border-top:
    1px solid
    #d4d0c8;

  font-family:
    "Playfair Display",
    serif;

  font-size: 21px;
}

.directory-links small {
  font-family:
    "DM Sans",
    sans-serif;

  color: #999;

  font-size: 7px;

  letter-spacing: 0.13em;
}

.directory-links a small {
  color: #111;
}


/* =========================================
   CTA SECTIONS
========================================= */

.area-search-cta {
  padding:
    120px
    7vw;

  display: grid;

  grid-template-columns:
    1fr
    0.6fr;

  gap: 8vw;

  align-items: end;

  background: #d8d4cb;
}

.area-search-cta:nth-of-type(even) {
  background: #e3dfd7;
}

.area-search-cta p,
.homeowner-copy p {
  margin: 0;

  font-family:
    "Playfair Display",
    serif;

  font-size: 19px;

  line-height: 1.65;
}

.area-search-cta a,
.homeowner-copy a {
  display: inline-block;

  margin-top: 30px;

  padding-bottom: 5px;

  border-bottom:
    1px solid
    #111;

  font-size: 9px;

  letter-spacing: 0.13em;
}


/* =========================================
   HOMEOWNER SECTION
========================================= */

.areas-homeowner {
  padding:
    120px
    7vw;

  display: grid;

  grid-template-columns:
    1fr
    0.6fr;

  gap: 8vw;

  align-items: end;

  background: #111;

  color: white;
}

.areas-homeowner .homeowner-copy a {
  border-color: white;
}


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

.areas-footer {
  padding:
    50px
    7vw;

  display: grid;

  grid-template-columns:
    1fr
    auto
    1fr;

  gap: 50px;

  align-items: start;

  background: #080808;

  color: #777;

  font-size: 8px;
}

.areas-footer > div {
  display: flex;

  flex-direction: column;

  gap: 7px;
}

.areas-footer > div:first-child strong {
  color: white;

  font-size: 15px;

  letter-spacing: 0.12em;
}

.areas-footer > div:first-child span {
  color: #777;

  font-size: 8px;

  letter-spacing: 0.12em;
}

.areas-footer > div:nth-child(2) {
  min-width: 120px;
}

.areas-footer > div:nth-child(2) a {
  color: #aaa;

  font-size: 9px;

  line-height: 1.45;
}

.areas-footer > div:nth-child(2) a:hover {
  color: white;
}

.areas-footer-brokerage {
  justify-self: end;

  align-items: flex-end;

  text-align: right;
}

.areas-footer-brokerage strong {
  color: white;

  font-size: 11px;

  font-weight: 600;

  letter-spacing: 0.04em;
}

.areas-footer-brokerage span,
.areas-footer-brokerage a {
  color: #777;

  font-size: 8px;

  line-height: 1.45;
}

.areas-footer-brokerage a:hover {
  color: white;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

  .areas-header {
    grid-template-columns:
      1fr
      auto;
  }

  .areas-header nav {
    display: none;
  }

  .stellar-brokerage-disclosure {
    grid-template-columns:
      auto
      1fr;

    gap: 16px;
  }

  .stellar-brokerage-contact {
    grid-column:
      1
      /
      -1;

    flex-direction: row;

    flex-wrap: wrap;

    align-items: flex-start;

    gap:
      6px
      18px;

    text-align: left;
  }

  .areas-intro > div,
  .area-search-cta,
  .areas-homeowner {
    grid-template-columns: 1fr;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .featured-card {
    min-height: 480px;
  }

  .directory-groups {
    grid-template-columns: 1fr;
  }

  .directory-groups article {
    border-right: 0;
  }

  .areas-footer {
    grid-template-columns:
      1fr
      1fr;

    gap: 30px;
  }

  .areas-footer-brokerage {
    grid-column:
      1
      /
      -1;

    justify-self: start;

    align-items: flex-start;

    text-align: left;
  }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

  .areas-header {
    height: 75px;

    padding:
      0
      22px;
  }

  .areas-brand .brokerage-name {
    font-size: 7px;

    letter-spacing: 0.055em;
  }

  .areas-brand .agent-name {
    font-size: 6px;

    letter-spacing: 0.045em;
  }

  .account-link {
    font-size: 8px;
  }


  .stellar-brokerage-disclosure {
    grid-template-columns: 1fr;

    gap: 10px;

    padding:
      14px
      22px;
  }

  .stellar-brokerage-logo {
    width: 125px;
  }

  .stellar-brokerage-contact {
    grid-column: auto;

    flex-direction: column;

    align-items: flex-start;

    gap: 3px;

    text-align: left;
  }

  .stellar-brokerage-identity strong {
    font-size: 11px;
  }

  .stellar-brokerage-identity span,
  .stellar-brokerage-contact a,
  .stellar-brokerage-contact span {
    font-size: 8px;
  }


  .areas-hero {
    min-height: 650px;

    padding-left: 24px;

    padding-right: 24px;
  }

  .areas-intro,
  .featured-areas,
  .area-directory,
  .area-search-cta,
  .areas-homeowner {
    padding-left: 24px;

    padding-right: 24px;
  }

  .directory-groups article {
    padding-left: 0;

    padding-right: 0;
  }

  .areas-footer {
    grid-template-columns: 1fr;

    padding:
      40px
      24px;

    gap: 28px;
  }

  .areas-footer-brokerage {
    grid-column: auto;

    justify-self: start;

    align-items: flex-start;

    text-align: left;
  }

}