/* ==========================================================================
   The Bisignano Group — custom rebuild of coastalluxuryliving.com homepage
   1:1 visual match, hand-coded. No page builder.
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/CormorantGaramond-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/CormorantGaramond-Italic.ttf') format('truetype');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../assets/fonts/lato-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/lato-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/lato-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/inter-500.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  --gruppo: 'Cormorant Garamond', serif; /* headings — was Gruppo */
  --lato: 'Lato', sans-serif;
  --dark: #002349;          /* header / dark strip — brand primary navy */
  --panel-dark: #002349;    /* newsletter panel — brand primary navy */
  --secondary: #001731;     /* darkest brand blue — all dark text, buttons, rules */
  --ink: #001731;           /* section headings   (brand blue) */
  --ink-2: #001731;         /* team names         (brand blue) */
  --ink-3: #001731;         /* sold card text     (brand blue) */
  --white: #ffffff;
  --header-h: 86px;
  --container: 1400px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Always reserve the scrollbar gutter so async content (IDX widgets, CMS
     grids) loading in never shrinks the viewport and shifts the centered
     header sideways. */
  scrollbar-gutter: stable;
}
body {
  font-family: var(--lato);
  font-size: 16px;
  line-height: 1.6;
  color: var(--secondary);
  background: #fff;
  /* the closed off-canvas panel parks off-screen to the right; clip (not
     hidden) keeps it from extending the page without creating a scroll
     container, which would break the fixed header. */
  overflow-x: clip;
}
@supports not (overflow-x: clip) {
  body { overflow-x: hidden; }
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Shared ---------- */
.section-title {
  font-family: var(--gruppo);
  font-size: 43px;
  font-weight: 400;
  color: var(--ink);
  text-align: center;
  line-height: 1.12;
}
.btn-outline-light,
.btn-outline-dark {
  display: inline-block;
  font-family: var(--lato);
  font-size: 15px;
  font-weight: 500;
  padding: 15px 35px;
  border: 2px solid;
  background: transparent;
  transition: background-color .3s, color .3s;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.btn-outline-light { color: #fff; border-color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--secondary); }
.btn-outline-dark { color: var(--secondary); border-color: var(--secondary); }
.btn-outline-dark:hover { background: var(--secondary); color: #fff; }

/* Scroll reveal (replaces Elementor entrance animations).
   Content is visible by default; it is only hidden for the animation once the
   `js` class confirms scripts are running, so a JS failure can never leave a
   section blank. */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s ease;
}
.js .reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: transparent;
  height: var(--header-h);
  transition: background-color .4s ease;
}
.site-header.scrolled { background: var(--dark); }
.header-inner {
  max-width: var(--container);
  height: 100%;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  gap: 30px;
}
/* Logo crossfade: full wordmark over the hero, icon mark once scrolled */
.logo { position: relative; display: block; width: 235px; height: 43px; }
.logo img {
  position: absolute;
  top: 0; left: 0;
  height: 43px;
  width: auto;
  transition: opacity .4s ease;
}
.logo-full { opacity: 0; }
.logo-icon { opacity: 1; }
.site-header.scrolled .logo-full { opacity: 1; }
.site-header.scrolled .logo-icon { opacity: 0; }
.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; align-items: center; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: block;
  padding: 13px;
  font-size: 13px;
  font-weight: 700;
  color: #f0f0f0;
  letter-spacing: .3px;
  transition: color .3s;
}
.main-nav > ul > li > a:hover { color: #fff; }
.caret {
  display: inline-block;
  margin-left: 6px;
  border: 4px solid transparent;
  border-top-color: currentColor;
  transform: translateY(2px);
}
.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  width: max-content;
  background: var(--dark);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s, transform .25s, visibility .25s;
}
.has-sub:hover .sub-menu,
.has-sub:focus-within .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a {
  display: block;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
  transition: background-color .2s;
}
.sub-menu a:hover { background: rgba(255,255,255,.08); }
/* nav link underline grows on hover (matches original) */
.main-nav a span { position: relative; display: inline-block; }
.main-nav a span::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  width: 0;
  background-color: #c6c6c6;
  transition: width .25s ease;
}
.main-nav a:hover span::after { width: 100%; }

/* hamburger: three lines, splits apart on hover (matches original) */
.hamburger-menu {
  background: none;
  border: 0;
  color: #fff;
  padding: 10px 6px;
  display: inline-block;
  cursor: pointer;
  position: relative;
}
.hamburger-menu span {
  position: relative;
  display: block;
  width: 26px;
  height: 2px;
  background-color: #fff;
  transition: .2s transform ease;
}
.hamburger-menu span::before,
.hamburger-menu span::after {
  content: '';
  display: block;
  width: 26px;
  height: 2px;
  background-color: currentColor;
  position: absolute;
  left: 0;
  top: 0;
  transition: .2s transform ease;
  transform: translateY(-7px);
}
.hamburger-menu span::after { transform: translateY(7px); }
.hamburger-menu:hover span::before { transform: translateY(-9px); }
.hamburger-menu:hover span::after { transform: translateY(9px); }

/* Off-canvas site menu (burger) — white panel, Gruppo links, accordion subs */
.offcanvas {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1002;
  width: min(420px, 92vw);
  background: #fff;
  padding: 90px 30px 40px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .35s ease;
  box-shadow: -6px 0 30px rgba(0,0,0,.18);
}
.offcanvas.open { transform: none; }
.oc-close {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: 0;
  font-size: 34px;
  line-height: 1;
  color: var(--secondary);
  cursor: pointer;
  transition: opacity .2s ease;
}
.oc-close:hover { opacity: .55; }
.offcanvas nav { display: block; text-align: center; }
.oc-link {
  display: block;
  width: 100%;
  padding: 12px 0;
  background: none;
  border: 0;
  font-family: var(--gruppo);
  font-size: 21px;
  color: var(--secondary);
  text-align: center;
  cursor: pointer;
  transition: opacity .2s;
}
.oc-link:hover { opacity: .6; }
.oc-toggle::after {
  content: '';
  display: inline-block;
  margin-left: 10px;
  border: 4px solid transparent;
  border-top-color: var(--secondary);
  transform: translateY(2px);
  transition: transform .2s;
}
.oc-toggle.open::after { transform: rotate(180deg) translateY(2px); }
.oc-sub {
  overflow: hidden;
  max-height: 0;
  padding: 0;
  opacity: 0;
  transition: max-height .35s ease, padding .35s ease, opacity .25s ease;
}
.oc-sub.open {
  max-height: 480px;
  padding: 4px 0 10px;
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .oc-sub { transition: none; }
}
.oc-sub a {
  display: block;
  padding: 8px 0;
  font-family: var(--gruppo);
  font-size: 17px;
  color: var(--secondary);
  text-align: center;
}
.oc-sub a:hover { opacity: .6; }

/* Contact popup — fullscreen dark overlay (original popup 262) */
.contact-popup {
  position: fixed;
  inset: 0;
  z-index: 1003;
  background:
    linear-gradient(rgba(0, 12, 26, .86), rgba(0, 12, 26, .86)),
    url('../assets/img/contact-bg.webp') center / cover no-repeat;
  display: none;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}
.contact-popup.open { display: flex; }
.cp-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
}
.cp-close:hover { opacity: .7; }
.cp-inner {
  max-width: 1160px;
  width: 100%;
  margin: auto;
  padding: 52px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.cp-title {
  font-family: var(--gruppo);
  font-size: 34px;
  font-weight: 400;
  color: #FAFAFA;
  margin-bottom: 4px;
}
.cp-brand {
  font-family: var(--gruppo);
  font-size: 24px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 22px;
}
.cp-item { margin-bottom: 16px; }
.cp-item h4 {
  font-family: var(--lato);
  font-size: 14px;
  font-weight: 700;
  color: #F0F0F0;
  margin-bottom: 4px;
  letter-spacing: .5px;
}
.cp-item a, .cp-item p {
  font-family: var(--lato);
  font-size: 14px;
  font-weight: 400;
  color: #F0F0F0;
  text-decoration: none;
  line-height: 22px;
}
.cp-item a { text-decoration: underline; }
.cp-dre { margin-top: 12px; }
.cp-socials { display: flex; gap: 10px; margin-top: 18px; }
.cp-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--secondary);
  border: 1px solid #C6C6C6;
  color: #C6C6C6;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .3s, border-color .3s;
}
.cp-socials a:hover { color: #fff; border-color: #fff; }
.cp-form label {
  display: block;
  margin-bottom: 16px;
  font-family: var(--lato);
  font-size: 14px;
  font-weight: 700;
  color: #F0F0F0;
}
.cp-form input[type="text"],
.cp-form input[type="email"],
.cp-form input[type="tel"],
.cp-form textarea {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 8px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #E9E9E9;
  border-radius: 0;
  color: #fff;
  font-family: var(--lato);
  font-size: 15px;
  outline: none;
  resize: vertical;
}
.cp-form input:focus, .cp-form textarea:focus { border-bottom-color: #fff; }
.cp-form .consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 11px;
  font-weight: 400;
  color: #F1F1F1;
  line-height: 1.45;
}
.cp-form .consent a { color: #F1F1F1; text-decoration: underline; }
.cp-form button[type="submit"] {
  margin-top: 6px;
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  font-family: var(--lato);
  font-size: 14px;
  font-weight: 700;
  padding: 13px 32px;
  text-transform: uppercase;
  transition: background-color .3s;
}
.cp-form button[type="submit"]:hover { background: var(--secondary); }
@media (max-width: 900px) {
  .cp-inner { grid-template-columns: 1fr; gap: 40px; padding: 70px 24px; }
  .cp-title { font-size: 32px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../assets/img/hero.jpg') center / cover no-repeat;
}
.hero-overlay { position: absolute; inset: 0; background: #111; opacity: .5; }
.hero-content {
  position: relative;
  width: 100%;
  max-width: 1280px;
  padding: 0 20px;
  text-align: center;
  color: #fff;
}
.hero-title {
  font-family: var(--gruppo);
  font-size: 70px;
  font-weight: 400;
  color: #fdfdfd;
  line-height: 1.12;
}
.hero-sub {
  margin-top: 18px;
  font-family: var(--lato);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
}
.hero-cta { margin-top: 32px; }
.hero-search {
  margin: 22px auto 0;
  max-width: 576px;
  display: flex;
}
.hero-search .select-wrap { flex: 1; background: #fff; }
.hero-search select {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  font-family: var(--lato);
  font-size: 13px;
  color: #666;
  background: transparent;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.hero-search button {
  width: 50px;
  height: 44px;
  border: 0;
  background: var(--secondary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .3s;
}
.hero-search button:hover { background: #fff; color: var(--secondary); }

/* ==========================================================================
   Press
   ========================================================================== */
.press { background: #fff; padding: 100px 0 0; }
.press-inner { max-width: 1370px; margin: 0 auto; padding: 0 20px; }
.press .section-title { margin-bottom: 50px; }
.press-slider { overflow: hidden; }
.press-track { display: flex; align-items: flex-start; will-change: transform; transition: transform .5s ease; }
.press-slide {
  flex: 0 0 33.3333%;
  box-sizing: border-box;
  padding: 0 20px;
  text-align: left;
}
.press-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
}
.press-item-title {
  margin-top: 22px;
  /* fixed two-line box so every slide is the same height and the nav arrows
     sit right under the content instead of a tall stretched gap */
  min-height: 2.7em;
  font-family: var(--gruppo);
  font-size: 23px;
  font-weight: 500;
  color: var(--ink-2);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.press-source {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #777;
}
.press-nav { margin-top: 26px; display: flex; justify-content: center; gap: 18px; }
.press-arrow {
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 0;
  border: 1px solid #ccc;
  background: transparent;
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  transition: background-color .3s, color .3s, border-color .3s;
}
.press-arrow svg { display: block; }
.press-arrow:hover { background: var(--secondary); border-color: var(--secondary); color: #fff; }
@media (max-width: 900px) {
  .press-slide { flex: 0 0 50%; }
}
@media (max-width: 600px) {
  .press-slide { flex: 0 0 100%; }
  .press-nav { margin-top: 16px; }
}

/* ==========================================================================
   About / intro
   ========================================================================== */
.about { background: #fff; padding: 130px 0 100px; }
.about-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 10px;
}
.about-text { padding: 0 60px; }
.about-title {
  font-family: var(--gruppo);
  font-size: 52px;
  font-weight: 400;
  color: var(--secondary);
  line-height: 1.12;
  margin-bottom: 24px;
}
.about-tagline {
  font-family: var(--gruppo);
  font-size: 22px;
  font-style: italic;
  color: var(--secondary);
  margin-bottom: 20px;
}
.about-quote {
  font-size: 16px;
  line-height: 26px;
  color: var(--secondary);
}
.about-quote + .about-quote { margin-top: 18px; }
.quote-author {
  display: inline-block;
  margin-top: 16px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
}
.about-photo img { width: 100%; height: 466px; object-fit: cover; }

/* ==========================================================================
   Team
   ========================================================================== */
.team {
  position: relative;
  padding: 150px 0 90px;
  background: url('../assets/img/team-bg.jpg') center / cover no-repeat;
}
.team::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: .9;
}
.team-inner {
  position: relative;
  max-width: 1370px;
  margin: 0 auto;
  padding: 0 20px;
}
.team .section-title { margin-bottom: 76px; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 70px;
  row-gap: 68px;
}
.team-card { display: block; text-align: center; }

/* ---- Hover effect ported verbatim from the reference .animated-border ---- */
.team-photo {                       /* == .animated-border */
  position: relative;
  overflow: visible;
}
.team-photo-inner {                 /* == .image-container — bleeds 15px past the frame */
  margin: -15px;
  transition: opacity .3s ease;
}
.team-photo-inner img {
  width: 100%;
  aspect-ratio: 383 / 490;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.team-card:hover .team-photo-inner { opacity: .5; cursor: pointer; }

.team-photo::before,
.team-photo::after {
  content: ' ';
  position: absolute;
  border: 2px solid transparent;
  width: 0;
  height: 0;
  transition: all .25s ease-out;
  transform: translate(20px, 10px);
  pointer-events: none;
}
.team-photo::before {                /* top + right border, grows from top-left */
  top: 0;
  left: 0;
  border-top: 2px solid transparent;
  border-right: 2px solid transparent;
}
.team-photo::after {                 /* bottom + left border, grows from bottom-right */
  bottom: 0;
  right: 0;
  border-bottom: 2px solid transparent;
  border-left: 2px solid transparent;
}
@media (hover: hover) and (pointer: fine) {
  .team-card:hover .team-photo::before {
    border-top-color: var(--secondary);
    border-right-color: var(--secondary);
    width: 100%;
    height: 100%;
    transition: width .25s ease-out, height .25s ease-out .25s;
  }
  .team-card:hover .team-photo::after {
    border-bottom-color: var(--secondary);
    border-left-color: var(--secondary);
    width: 100%;
    height: 100%;
    transition: width .25s ease-out .5s, height .25s ease-out .75s, border-color .01s ease-out .5s;
  }
  .team-card:not(:hover) .team-photo::before,
  .team-card:not(:hover) .team-photo::after { transition: all .01s ease-in; }
}
@media (prefers-reduced-motion: reduce) {
  .team-photo::before,
  .team-photo::after { transition: none; }
}

.team-more { display: none; }        /* == .learn-more-button */
.team-card:hover .team-more {
  display: block;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 20px;
  z-index: 1000;
}
.team-more-btn {
  display: inline-block;
  padding: 15px 35px;
  border: 2px solid var(--secondary);
  background: transparent;
  color: var(--secondary);
  font-family: var(--lato);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .5px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color .3s, color .3s;
}
.team-card:hover .team-more-btn:hover { background: var(--secondary); color: #fff; }
.team-name {
  margin-top: 30px;   /* +15 absorbs the photo's -15px bleed, then ~15px gap */
  font-family: var(--gruppo);
  font-size: 30px;
  font-weight: 400;
  color: var(--ink-2);
  line-height: 1.2;
}
.team-role {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--secondary);
  letter-spacing: .3px;
}

/* ==========================================================================
   Home Search trio
   ========================================================================== */
.trio { background: #fff; padding: 90px 0; }
.trio-inner {
  max-width: 1370px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.trio-card {
  position: relative;
  height: 530px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 60px;
  overflow: hidden;
}
.trio-hover {
  position: absolute;
  inset: 0;
  background: #1a1a1a;
  opacity: 0;
  transition: opacity .3s;
}
.trio-card:hover .trio-hover { opacity: .5; }
.trio-card h2 {
  position: relative;
  font-family: var(--gruppo);
  font-size: 30px;
  font-weight: 500;
  color: #fff;
  text-align: center;
  line-height: 1.3;
  text-shadow: 0 1px 12px rgba(0,0,0,.45);
  transition: transform .3s ease-in-out;
}
.trio-card h2::after {
  content: '';
  position: absolute;
  top: calc(100% + 20px);
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #6A7379;
  opacity: 0;
  transition: opacity .3s ease;
}
.trio-card:hover h2 { transform: translateY(-40px); }
.trio-card:hover h2::after { opacity: 1; }

/* ==========================================================================
   Testimonials (ocean video)
   ========================================================================== */
.testimonials { position: relative; padding: 110px 0; overflow: hidden; }
.testimonials-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.testimonials-overlay { position: absolute; inset: 0; background: #fff; opacity: .9; }
.testimonial-container {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  font-family: var(--lato);
}
.testimonial-navigation-container { flex: 1; text-align: left; }
.testimonial-navigation-container h2 {
  margin: 30px;
  font-size: 43px;
  font-weight: 400;
  font-family: var(--gruppo);
  line-height: 1.12;
  color: var(--ink);
}
.testimonial-navigation { display: flex; align-items: center; gap: 10px; }
.button-separator { width: 2px; height: 10px; background: var(--secondary); margin-top: -5px; }
#prev-btn, #next-btn {
  background: transparent;
  color: var(--secondary);
  border: none;
  padding: 10px 20px;
  margin: 5px 0;
  position: relative;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
}
#prev-btn span, #next-btn span {
  display: inline-block;
  position: relative;
  padding-bottom: 3px;
  border-bottom: 1px solid #999;
}
#prev-btn span::after, #next-btn span::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--secondary);
  transition: width .3s ease;
}
#prev-btn:hover span::after, #next-btn:hover span::after { width: 100%; }
.testimonial-widget { flex: 2; position: relative; margin-left: -20px; }
.testimonial-item { display: none; text-align: left; }
.testimonial-item.active { display: block; }
.testimonial-item p {
  margin-bottom: 0;
  font-size: 16px;
  line-height: 26px;
  color: rgba(0,0,0,.8);
  border-left: 1px solid #d5d5d5;
  padding: 0 40px 20px 40px;
}
.testimonial-item p:not(.name) {
  font-family: var(--gruppo);
  font-style: italic;
}
.testimonial-item p:not(.name)::before { content: '\201C'; }
.testimonial-item p:not(.name)::after { content: '\201D'; }
.testimonial-item .name {
  margin-bottom: 25px;
  font-size: 14px;
  line-height: 18px;
  font-weight: 700;
  text-transform: uppercase;
  border-left: 1px solid #d5d5d5;
  padding-top: 0;
}
.testimonial-button {
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
  padding: 15px 35px;
  display: inline-block;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 700;
  transition: background-color .3s, color .3s;
  margin-left: 40px;
}
.testimonial-button:hover { background: var(--secondary); color: #fff; }

/* ==========================================================================
   Search Homes by Neighborhood
   ========================================================================== */
.hoods { background: #fff; padding: 80px 0 100px; }
.hoods-inner { max-width: 1370px; margin: 0 auto; padding: 0 20px; }
.hoods .section-title { color: var(--ink-2); margin-bottom: 46px; }
.hoods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.hood-card {
  position: relative;
  height: 530px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 56px;
  overflow: hidden;
}
.hood-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #000 100%);
  opacity: .69;
  transition: opacity .3s;
}
.hood-card h2 {
  position: relative;
  font-family: var(--gruppo);
  font-size: 30px;
  font-weight: 500;
  color: #fff;
  text-align: center;
  line-height: 1.3;
  transition: transform .3s ease-in-out;
}
.hood-card h2::after {
  content: '';
  position: absolute;
  top: calc(100% + 20px);
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #6A7379;
  opacity: 0;
  transition: opacity .3s ease;
}
.hood-card:hover h2 { transform: translateY(-40px); }
.hood-card:hover h2::after { opacity: 1; }

/* ==========================================================================
   Neighborhood strips
   ========================================================================== */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); }
.strip-1 .strip-cell { min-height: 420px; }
.strip-2 .strip-cell { min-height: 400px; }
.strip-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  padding: 40px 20px;
}
.strip-dark { background: var(--secondary); transition: background-color .3s ease; }
.strip-dark:hover { background: var(--dark); }
.strip-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #000 100%);
  opacity: .69;
}
.strip-content { position: relative; max-width: 440px; }
.strip-content h2 {
  font-family: var(--gruppo);
  font-size: 30px;
  font-weight: 400;
  color: #fff;
  line-height: 1.35;
}
.strip-hoods-title { font-size: 36px !important; font-weight: 300 !important; }
.strip-content h2 { transition: transform .3s ease; }
.strip-content p {
  margin-top: 14px;
  color: #fff;
  font-size: 16px;
  line-height: 26px;
}
.strip-content .btn-outline-light { margin-top: 28px; }
/* original .card behavior: only the title shows until hover */
.strip-cell.has-bg .strip-content p {
  opacity: 0;
  transition: opacity .3s ease;
}
.strip-cell.has-bg .strip-content .btn-outline-light {
  opacity: 0;
  transition: opacity .3s ease, transform .3s ease, background-color .3s, color .3s;
}
.strip-cell.has-bg:hover .strip-content h2 { transform: translateY(-50px); }
.strip-cell.has-bg:hover .strip-content p { opacity: 1; }
.strip-cell.has-bg:hover .strip-content .btn-outline-light {
  opacity: 1;
  transform: translateY(40px);
}
.strip-cell.has-bg:hover .strip-shade {
  background: #000000F2;
  opacity: .3;
}
.strip-shade { transition: background .3s ease, opacity .3s ease; }
.strip-cell { overflow: hidden; }
.strip-dark .strip-content { z-index: 1; }

/* In photo cells the name is the only in-flow child, so the cell's flex
   centering lands it exactly mid-cell regardless of how long the hidden
   description is. The description and button hang below it, out of flow,
   and keep the same hover motion as before. */
.strip-cell.has-bg .strip-content { width: 100%; }   /* max-width 440px still applies */
.strip-cell.has-bg .strip-reveal {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  transition: transform .3s ease;
}
.strip-cell.has-bg:hover .strip-reveal { transform: translateY(-40px); }

/* ==========================================================================
   Notable Transactions
   ========================================================================== */
.transactions {
  position: relative;
  padding: 150px 0 120px;
  background: url('../assets/img/transactions-bg.jpg') center / cover no-repeat;
}
.transactions-overlay { position: absolute; inset: 0; background: #e6e6e6; opacity: .5; }
.transactions-inner {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 10px;
}
.transactions .section-title { color: var(--ink-2); margin-bottom: 76px; }
.sold-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.sold-card { background: #fff; display: block; }
.sold-photo { position: relative; overflow: hidden; }
.sold-photo img {
  width: 100%;
  aspect-ratio: 695 / 360;
  object-fit: cover;
  transition: transform .6s ease;
}
.sold-card:hover .sold-photo img { transform: scale(1.04); }
.sold-photo .prop-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .32);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.sold-card:hover .sold-photo .prop-overlay { opacity: 1; }
.sold-photo .prop-view {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  border: 2px solid var(--secondary);
  background: transparent;
  color: var(--secondary);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 15px 42px;
  white-space: nowrap;
  transition: opacity .4s ease, background-color .3s ease, color .3s ease;
}
.sold-card:hover .sold-photo .prop-view { opacity: 1; pointer-events: auto; }
.sold-photo .prop-view:hover { background: var(--secondary); color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .sold-photo img,
  .sold-photo .prop-overlay,
  .sold-photo .prop-view { transition: none; }
}
.sold-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--secondary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 35px;
  letter-spacing: .5px;
}
.sold-info { padding: 20px 24px 34px; text-align: center; }
.sold-title {
  font-family: var(--gruppo);
  font-size: 25px;
  font-weight: 500;
  color: var(--secondary);
  line-height: 1.35;
}
.sold-address {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-3);
}
.sold-specs {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.1px;
  color: var(--ink-3);
}
.sold-specs li + li {
  border-left: 1px solid #c9c9c9;
  padding-left: 14px;
}
.sold-price {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-3);
}
.transactions-cta { text-align: center; margin-top: 64px; }
.transactions-cta .btn-outline-dark {
  font-size: 14px;
  font-weight: 700;
  border-color: var(--secondary);
  color: #080808;
}
.transactions-cta .btn-outline-dark:hover { color: #fff; }

/* ==========================================================================
   Newsletter
   ========================================================================== */
.newsletter {
  margin-top: 4%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 900px;
  background: #fff;
}
.newsletter-photo { height: 100%; }
.newsletter-photo img { width: 100%; height: 100%; min-height: 900px; object-fit: cover; }
.newsletter-col { position: relative; height: 100%; display: flex; align-items: center; }
.newsletter-panel {
  background: var(--panel-dark);
  color: #fff;
  margin-left: -8%;
  margin-right: 20%;
  padding: 90px 75px;
  width: 88%;
}
.newsletter-panel h2 {
  font-family: var(--gruppo);
  font-size: 43px;
  font-weight: 400;
  line-height: 1.12;
}
.newsletter-blurb {
  margin-top: 20px;
  font-size: 16px;
  line-height: 26px;
  color: #ececec;
}
.newsletter-form { margin-top: 24px; }
.newsletter-form label {
  display: block;
  margin-top: 18px;
  font-size: 16px;
  color: #ececec;
}
.newsletter-form input[type="text"],
.newsletter-form input[type="tel"],
.newsletter-form input[type="email"] {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 16px 12px 0;
  font-family: var(--lato);
  font-size: 12px;
  color: #fff;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #69727d;
  border-radius: 0;
  outline: none;
}
.newsletter-form input::placeholder { color: #bbb; }
.newsletter-form input:focus { border-bottom-color: #fff; }
.consent {
  display: flex !important;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px !important;
  line-height: 1.5;
  margin-top: 22px;
}
.consent input { margin-top: 3px; }
.consent a { text-decoration: underline; }
.newsletter-form .btn-outline-light {
  margin-top: 28px;
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
}
.newsletter-form .btn-outline-light:hover { background: #fff; color: var(--secondary); }

/* ==========================================================================
   Work With Us
   ========================================================================== */
.workwithus {
  position: relative;
  min-height: 653px;
  display: flex;
  align-items: center;
  background: url('../assets/img/workwithus.jpg') center / cover no-repeat;
}
.workwithus-overlay { position: absolute; inset: 0; background: #fff; opacity: .5; }
.workwithus-inner {
  position: relative;
  max-width: 940px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}
.workwithus .section-title { color: var(--secondary); }
.rule {
  width: 99px;
  height: 1px;
  background: var(--secondary);
  margin: 22px auto 0;
}
.workwithus-inner p {
  margin-top: 20px;
  font-size: 16px;
  line-height: 26px;
  color: var(--secondary);
}
.btn-cta { margin-top: 32px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-brand {
  text-align: left;
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 30px 10px;
}
.footer-brand h2 {
  font-family: var(--gruppo);
  font-size: 30px;
  font-weight: 400;
  color: var(--secondary);
}
.footer-brand p {
  font-family: var(--gruppo);
  font-size: 21px;
  color: var(--secondary);
  margin-top: 6px;
}
.footer-contact {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 30px 40px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr;
  gap: 40px;
  background: #fff;
}
.fc-item + .fc-item { margin-top: 40px; }
.fc-item h3, .fc-signup h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--secondary);
  margin-bottom: 10px;
}
.fc-item a, .fc-item p {
  font-size: 14px;
  font-weight: 700;
  line-height: 24px;
  color: var(--secondary);
  letter-spacing: .5px;
}
.fc-item a:hover { text-decoration: underline; }
.fc-signup input[type="email"] {
  display: block;
  width: 100%;
  padding: 12px 16px 12px 0;
  font-family: var(--lato);
  font-size: 12px;
  border: 0;
  border-bottom: 1px solid #69727d;
  border-radius: 0;
  outline: none;
  background: transparent;
}
.fc-signup .consent { color: #444; }
.fc-signup .btn-outline-dark { margin-top: 24px; }
.footer-legal {
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px 30px 40px;
  text-align: center;
  background: #fff;
}
.legal-copy { font-size: 13px; color: #333; }
.legal-text {
  max-width: 1100px;
  margin: 16px auto 0;
  font-size: 12px;
  line-height: 20px;
  color: #555;
}
.legal-logo { margin: 30px auto 0; }
.legal-divider {
  height: 1px;
  background: #696969;
  margin: 30px 20px;
}
.legal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #333;
}
.legal-row a:hover { text-decoration: underline; }
.socials { display: flex; gap: 14px; }
.socials a {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary);
  border: 1px solid #C6C6C6;
  color: #C6C6C6;
  transition: color .3s, border-color .3s;
}
.socials a:hover { color: #fff; border-color: #fff; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .main-nav { display: none; }
  .hero-title { font-size: 56px; }
}
@media (max-width: 1024px) {
  .team-grid, .trio-inner, .hoods-grid { grid-template-columns: repeat(2, 1fr); column-gap: 30px; }
  .strip { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; }
  .about-photo { order: -1; padding: 0 30px; }
  .about-photo img { height: auto; }   /* full image in frame, not a cropped strip */
  .about-text { padding: 40px 30px 0; }
  .newsletter { grid-template-columns: 1fr; min-height: 0; }
  .newsletter-photo img { min-height: 420px; max-height: 520px; }
  .newsletter-panel { margin: -60px 24px 40px; width: auto; padding: 60px 34px; }
  .sold-grid { grid-template-columns: 1fr; max-width: 720px; margin: 0 auto; }
  .footer-contact { grid-template-columns: 1fr; gap: 40px; }
  .testimonial-container { flex-direction: column; }
  .testimonial-widget { margin-left: 0; }
  .testimonial-navigation-container h2 { text-align: center; margin: 20px; }
  .testimonial-navigation { justify-content: center; }
}
@media (max-width: 640px) {
  /* Slide-out menu covers the full screen */
  .offcanvas { width: 100vw; }

  /* Header: centered logo, hamburger flush to the right edge */
  .header-inner { position: relative; padding: 0 18px; }
  .logo { position: absolute; left: 50%; transform: translateX(-50%); }
  .logo img { left: 50%; transform: translateX(-50%); }
  .hamburger-menu { margin-left: auto; padding-right: 0; }

  .hero-title { font-size: 38px; }
  /* Keep "Bisignano Group" together on its own line */
  .hero-title .hero-title-break { display: block; white-space: nowrap; }
  .about-title { font-size: 34px; }
  .section-title { font-size: 34px; }
  .testimonial-navigation-container h2 { font-size: 34px; }
  .team-grid, .trio-inner, .hoods-grid { grid-template-columns: 1fr; }
  .trio-card, .hood-card { height: 420px; }
  .hero-search { flex-direction: row; }
  .newsletter-panel h2 { font-size: 34px; }
  .testimonial-item p { border-left: none; padding: 0 0 20px; }
  .testimonial-item .name { border-left: none; }
  .testimonial-button { margin-left: 0; }
  .legal-row { justify-content: center; }
}

/* inline confirmation shown after a form submit (pre-Resend) */
.form-note { margin-top: 14px; font-size: 13px; line-height: 1.5; color: inherit; opacity: .85; }

/* Pages that open on a white surface rather than a photo (property search,
   listing detail, press article, legal) have nothing dark for the white logo
   and nav to sit on, so they start in the scrolled state. */
body.header-solid .site-header { background: var(--dark); }
body.header-solid .logo-full { opacity: 1; }
body.header-solid .logo-icon { opacity: 0; }
