/* ============================================================
   Chesson Realty — custom layer on top of the Residem template
   ============================================================ */

/* --- Hero layout: text bottom-left + agent card top-right (desktop); stacked column (mobile) --- */
.hero-content { top: 0; bottom: 0; }
.hero-text, .hero-cardcol { display: flex; flex-direction: column; }
.hero-title { font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1.03; }
@media (min-width: 992px) {
  .hero-content > .container { height: 100%; }
  .hero-row { height: 100%; }
  .hero-text { justify-content: flex-end; padding-bottom: 7%; }
  .hero-cardcol { justify-content: flex-start; align-items: flex-end; padding-top: 120px; }
}
@media (max-width: 991px) {
  /* on mobile the hero text moves BELOW the marquee (see #hero-mobile);
     the carousel becomes a 3:2 banner so more of each photo is visible */
  .hero-content { display: none !important; }
  /* the navbar is position:absolute and overlays the hero. On the homepage,
     drop it into normal flow so the carousel starts right below it (no overlap,
     no magic offset). Scoped with :not(.menu-open) so the full-screen menu still pins. */
  body.home header:not(.menu-open) { position: relative !important; }
  #section-hero .mh-800 { min-height: 0 !important; height: 66.7vw !important; max-height: 70vh; }
  #section-hero .swiper,
  #section-hero .swiper-wrapper,
  #section-hero .swiper-slide { height: 100% !important; }
}

/* --- Hero carousel: let prev/next arrows receive clicks beneath the overlays --- */
#section-hero .abs,
.hero-content .container,
.hero-content .row,
.hero-text, .hero-cardcol { pointer-events: none; }
#agent-card,
.hero-text a,
#agent-card a,
#section-hero .swiper-button-next,
#section-hero .swiper-button-prev { pointer-events: auto; }
#section-hero .swiper-button-next,
#section-hero .swiper-button-prev { z-index: 12; }

/* Meet-William collage: keep every image a uniform square */
#section-overview .col-lg-6 img,
.img-collage img { aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; }

/* nav 'Contact William' button stays on one line */
.menu_side_area .btn-main,
.menu_side_area .btn-main span { white-space: nowrap; }

/* --- NC towns marquee strip --- */
.nc-marquee {
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid rgba(255,255,255,.12);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.nc-marquee .nc-track {
  display: inline-block;
  animation: ncscroll 38s linear infinite;
}
.nc-marquee:hover .nc-track { animation-play-state: paused; }
.nc-marquee span {
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 0 1.1rem;
  opacity: .85;
}
.nc-marquee .dot { color: var(--primary-color); opacity: 1; }
@keyframes ncscroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --- Text wordmark logo (replaces the template logo image) --- */
.text-logo {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: .04em;
  line-height: 1;
  color: #fff;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
}
.text-logo:hover { color: #fff; }
.text-logo span { font-weight: 400; opacity: .8; margin-left: .35em; }
.footer-logo { font-size: 1.95rem; }

/* Logo on a white chip so the multi-colour logo reads on the dark header/footer */
.logo-chip { background: #fff; border-radius: 10px; padding: 10px 16px; display: inline-flex; align-items: center; justify-content: center; }
.logo-chip img { height: 50px; width: auto; display: block; }
.footer-logo.logo-chip { padding: 13px 20px; }
.footer-logo.logo-chip img { height: 74px; }

/* ============================================================
   William Chesson Realty — primary logo, rebuilt as live text
   (Outfit font; brand red #DA1F2A, ink #16181D, slate #8A93A0)
   ============================================================ */
.wrc-logo {
  --tile: 38px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}
.wrc-logo .wrc-tile {
  flex: 0 0 auto;
  width: var(--tile);
  height: var(--tile);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #DA1F2A;
  color: #fff;
  border-radius: 11px;
  font-weight: 200;
  font-size: calc(var(--tile) * .40);
  letter-spacing: .03em;
  padding-left: .03em;
}
.wrc-logo .wrc-name { display: inline-flex; flex-direction: column; justify-content: center; }
.wrc-logo .wrc-first {
  font-size: calc(var(--tile) * .205);
  letter-spacing: .34em;
  font-weight: 300;
  color: #8A93A0;
  text-transform: uppercase;
}
.wrc-logo .wrc-last {
  font-size: calc(var(--tile) * .42);
  letter-spacing: .015em;
  font-weight: 300;
  color: #16181D;
  text-transform: uppercase;
  margin: .08em 0 .05em;
}
.wrc-logo .wrc-sub {
  font-size: calc(var(--tile) * .235);
  letter-spacing: .42em;
  font-weight: 200;
  color: #DA1F2A;
  text-transform: uppercase;
}
.footer-logo .wrc-logo { --tile: 50px; }
/* logo-left header: keep the logo+nav column wide (button column sizes to
   content) so the 6-item menu stays on one row */
header .col-end { flex-grow: 0; }
@media (min-width: 992px) {
  #mainmenu > li { margin-right: 24px; }
}

/* --- Hover lift for cards --- */
.lift { transition: transform .35s ease, box-shadow .35s ease; }
.lift:hover { transform: translateY(-8px); box-shadow: 0 1.2rem 2.5rem rgba(0,0,0,.12); }

/* --- Feature / why cards --- */
.feature-card {
  background: #f5f5f6;
  border: 1px solid #ececec;
  border-radius: 16px;
  padding: 2.2rem 1.8rem;
  height: 100%;
  box-shadow: 0 .5rem 1.4rem rgba(0,0,0,.05);
}
.feature-card i,
.feature-card .material-symbols-outlined { color: var(--primary-color); }
/* wrap the feature-card icon in a white circle */
.feature-card.lift .material-symbols-outlined {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  font-size: 30px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 .4rem 1rem rgba(0,0,0,.06);
  margin-bottom: 1.5rem !important;
}

/* --- Material Symbols (consistent outlined icon set) --- */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
}

/* --- Process / steps --- */
.step-card { position: relative; padding: 2rem 1.5rem; height: 100%; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 16px;
  background: #061429;          /* darker blue than the navy section background */
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primary-color);
  margin-bottom: 1.1rem;
}

/* --- Uniform listing card images (crop any aspect to a consistent shape) --- */
img.hover-scale-1-1 { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
/* perf: blur the card PHOTO on hover (cheap, scroll-friendly) instead of
   backdrop-filter on the overlay (re-samples the live backdrop every scroll
   frame -> laggy). Keeps the same blurred-photo look behind the button. */
.hover .bg-blur {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  background: rgba(0,0,0,.3);
}
.hover:hover img.hover-scale-1-1 { filter: blur(5px); }

/* --- Areas We Serve cards --- */
.area-card { position: relative; overflow: hidden; border-radius: 12px; display: block; }
.area-card img { transition: transform .6s ease; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.area-card:hover img { transform: scale(1.08); }
/* featured large area tile — fills its column height next to a grid of small tiles */
.area-card.area-lg { height: 100%; }
.area-card.area-lg img { height: 100%; min-height: 320px; aspect-ratio: auto; }
.area-card.area-lg .area-label { padding: 2rem 1.5rem 1.3rem; }
/* wide short tile (last item in the small grid) */
.area-card.area-wide img { aspect-ratio: 16 / 6; }
.area-card .area-label {
  position: absolute; left: 0; bottom: 0; width: 100%;
  padding: 1.5rem 1.25rem .9rem;
  color: #fff; z-index: 2; font-weight: 600;
  background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,0));
}

/* --- Testimonials --- */
.quote-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 14px;
  padding: 2.2rem;
  height: 100%;
}
.quote-card .q-mark {
  font-size: 2.4rem; line-height: 1;
  color: var(--primary-color); opacity: .5;
}
.quote-card .stars { color: var(--primary-color); letter-spacing: 3px; font-size: 1.05rem; }

/* Footer link list */
.ul-style-2 { list-style: none; padding: 0; margin: 0; }
.ul-style-2 li { margin-bottom: .55rem; }
.ul-style-2 li a { opacity: .85; transition: opacity .2s ease, color .2s ease; }
.ul-style-2 li a:hover { opacity: 1; color: var(--primary-color); }
.quote-card .author img {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover; margin-right: .9rem;
}

/* --- FAQ (native details, reliable, no JS) --- */
.faq details {
  border: 1px solid #e7e7e7;
  border-radius: 10px;
  margin-bottom: 1rem;
  padding: 0 1.5rem;
  background: #fff;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.2rem 0;
  font-weight: 600;
  font-size: 1.08rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary-color); font-size: 1.6rem; line-height: 1; margin-left: 1rem; }
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { border-bottom: 1px solid #eee; }
.faq details p { padding: 1rem 0 1.2rem; margin: 0; }
/* smooth open/close animation (modern browsers; falls back to instant elsewhere) */
html { interpolate-size: allow-keywords; }
.faq details::details-content {
  height: 0;
  opacity: 0;
  overflow: clip;
  transition: height .35s ease, opacity .3s ease, content-visibility .35s allow-discrete;
}
.faq details[open]::details-content {
  height: auto;
  opacity: 1;
}
.faq summary::after { transition: transform .25s ease; }

/* --- Signature accent --- */
.signature { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-size: 1.6rem; }

/* --- Timeline (About) --- */
.timeline { position: relative; }
.timeline .t-item { position: relative; padding: 0 0 2rem 2.75rem; }
/* the vertical line (centred at 10px from the left edge) */
.timeline::before {
  content: ""; position: absolute; left: 9px; top: .5rem; bottom: 1rem;
  width: 2px; background: rgba(var(--primary-color-rgb), .3);
  transform-origin: top center;
}
/* the dot — centred ON the line via translateX(-50%) */
.timeline .t-item::before {
  content: ""; position: absolute; left: 10px; top: .3rem;
  transform: translateX(-50%);
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--primary-color); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--primary-color);
}
.timeline .t-year { color: var(--primary-color); font-weight: 700; }

/* --- Timeline animation (progressive enhancement; JS adds .tl-anim then .in-view) --- */
.timeline.tl-anim::before { transform: scaleY(0); transition: transform 1.4s ease; }
.timeline.tl-anim.in-view::before { transform: scaleY(1); }

/* ============================================================
   Clayton page — Parks tabs (match the #filters pill look site-wide)
   Self-contained (own JS in clayton.html) so they never fail to load.
   ============================================================ */
.clayton-tabs .d-tab-nav {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.clayton-tabs .d-tab-nav li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  color: #15191f;
  background: transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.clayton-tabs .d-tab-nav li .material-symbols-outlined { font-size: 20px; }
.clayton-tabs .d-tab-nav li:not(.active-tab):hover { background: rgba(0,0,0,.05); }
.clayton-tabs .d-tab-nav li.active-tab { background: var(--primary-color); color: #fff; }
.clayton-tabs .d-tab-nav li.active-tab .material-symbols-outlined { color: #fff; }

/* panels: first shows by default (CSS fallback if JS is delayed) */
.clayton-tabs .d-tab-content { padding: 0; margin: 0; list-style: none; }
.clayton-tabs .d-tab-content > li { display: none; padding-top: .5rem; }
.clayton-tabs .d-tab-content > li:first-child { display: block; }
.clayton-tabs .d-tab-content img {
  border-radius: 18px;
  box-shadow: 0 1.1rem 2.6rem rgba(0,0,0,.13);
}
.clayton-tabs .d-tab-content h3 { margin-bottom: .6rem; }
/* icon chip floats at the left; bold term + description flow together with a
   hanging indent (wraps cleanly on narrow screens) */
.clayton-tabs .ul-style-2 li {
  position: relative;
  padding-left: 56px;
  min-height: 40px;
  line-height: 1.55;
}
.clayton-tabs .ul-style-2 li .material-symbols-outlined {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f4f4f5;
  border-radius: 50%;
  font-size: 21px;
  margin: 0 !important;
}
/* mobile: stack the pills full-width */
@media (max-width: 575px) {
  .clayton-tabs .d-tab-nav { display: flex; flex-direction: column; width: 100%; }
  .clayton-tabs .d-tab-nav li { width: 100%; justify-content: center; }
}

/* ============================================================
   Clayton page — editorial neighborhood tiles (content over photo)
   ============================================================ */
.nb-tile {
  position: relative;
  display: block;
  height: 480px;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 .8rem 2rem rgba(0,0,0,.14);
  color: #fff;
}
.nb-tile:hover { color: #fff; }
.nb-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.nb-tile:hover img { transform: scale(1.07); }
.nb-tile .nb-tile-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,12,20,.92) 6%, rgba(8,12,20,.55) 40%, rgba(8,12,20,.05) 74%);
}
.nb-tile .nb-tile-no {
  position: absolute;
  top: 20px;
  left: 24px;
  z-index: 2;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  opacity: .9;
}
.nb-tile .nb-tile-body {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  width: 100%;
  padding: 1.9rem 1.7rem;
}
.nb-tile-name { display: block; font-size: 1.5rem; font-weight: 700; line-height: 1.12; }
.nb-tile-desc { display: block; margin-top: .55rem; font-size: .97rem; line-height: 1.5; color: rgba(255,255,255,.82); }
.nb-tile-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1rem; }
.nb-tile-tags > span {
  display: inline-block;
  padding: 5px 13px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: #fff;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 999px;
}
.nb-tile-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  /* revealed on hover */
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .4s ease, opacity .35s ease, margin-top .4s ease;
}
.nb-tile-cta .material-symbols-outlined { font-size: 19px; transition: transform .3s ease; }
.nb-tile:hover .nb-tile-cta { max-height: 40px; opacity: 1; margin-top: 1.1rem; }
.nb-tile:hover .nb-tile-cta .material-symbols-outlined { transform: translateX(4px); }
/* on touch / no-hover devices, keep the CTA visible */
@media (hover: none) {
  .nb-tile-cta { max-height: 40px; opacity: 1; margin-top: 1.1rem; }
}

/* solid navy band (Clayton "by the numbers") */
.bg-navy { background: var(--secondary-color) !important; }

/* --- Feature card with photo header + overlapping icon badge --- */
.feature-card-img { padding: 0 !important; overflow: hidden; }
.feature-card-img .fc-media { overflow: hidden; line-height: 0; }
.feature-card-img .fc-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.feature-card-img:hover .fc-media img { transform: scale(1.06); }
.feature-card-img .fc-body { padding: 0 1.8rem 2rem; }
/* reuse the base white-circle icon, just resize it and pull it up over the photo */
.feature-card.lift.feature-card-img .fc-icon {
  width: 58px !important;
  height: 58px !important;
  font-size: 27px;
  margin: -29px 0 1.1rem !important;
  position: relative;
  z-index: 2;
}
.feature-card-img h4 { margin-bottom: .5rem; }

/* --- Misc --- */
.text-brand { color: var(--primary-color) !important; }
.bg-brand { background: var(--primary-color) !important; }
/* light-grey section tint (was the subtle red/pink rgba(primary,.1)) */
.bg-color-op-1 { background: #f4f4f5 !important; }

/* ============================================================
   CHESSON PALETTE — deep brand red (main) + navy (support / dark sections)
   ============================================================ */
/* The template sets dark-section colors as variables on the universal (*)
   selector, so we must re-declare them on * here (chesson.css loads later). */
* {
  --bg-dark-1: #0A1E3D;        /* navy dark sections (was teal-green) */
  --bg-dark-2: #112A52;
  --bg-dark-3: #06152C;
  --bg-dark-1-rgb: 10, 30, 61;
}
/* Taglines / eyebrows: neutral, no accent color */
.subtitle { color: #8a8a8a !important; }                              /* muted grey on light */
.section-dark .subtitle { color: rgba(255,255,255,.55) !important; }  /* muted on dark navy */
/* Accents on dark sections — a lighter brand red so they read on navy */
.section-dark .id-color,
.nc-marquee .dot,
.step-num,
footer .id-color { color: #E8525C !important; }
.quote-card .stars { color: var(--primary-color); }

/* Red details (red is the primary brand colour) */
footer.section-dark { border-top: 5px solid var(--primary-color); }            /* red stripe atop footer */
.timeline .t-item::before {                                                    /* red timeline dots */
  background: var(--primary-color);
  box-shadow: 0 0 0 2px var(--primary-color);
}
.faq summary::after { color: var(--primary-color) !important; }                /* red FAQ +/- markers */
.ul-style-2 li a:hover,
.text-brand:hover { color: var(--primary-color) !important; }

/* ============================================================
   Mobile menu — navy panel · white links · red accents · animated
   ============================================================ */
@media (max-width: 992px) {
  /* mobile top bar is always the desktop dark-section navy (was transparent / black) */
  header,
  header.transparent,
  header.header-bg { background: var(--bg-dark-1) !important; }

  /* when open, pin the header full-screen with the same navy backdrop */
  header.menu-open {
    position: fixed !important;
    top: 0; left: 0; right: 0;
    height: 100vh !important;
    background: var(--bg-dark-1) !important;
    z-index: 2000;   /* above the homepage hero (.z-1000) */
  }

  /* hamburger -> red X when open */
  #menu-btn { color: #fff; transition: color .25s ease; z-index: 2002 !important; position: relative; }
  #menu-btn.menu-open { color: var(--primary-color); }
  #menu-btn.menu-open:before { content: "\f00d"; }   /* fa-times */

  /* the sliding menu panel */
  #mainmenu {
    position: fixed !important;
    top: 76px !important;
    left: 0 !important;
    width: 100% !important;
    height: calc(100vh - 76px) !important;
    margin: 0 !important;
    padding: 12px 34px 60px !important;
    background: linear-gradient(180deg, var(--bg-dark-1) 0%, var(--bg-dark-3) 100%);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .3s ease, transform .42s cubic-bezier(.2,.7,.2,1), visibility .3s;
    z-index: 2000;
  }
  header.menu-open #mainmenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* links: white, airy, thin light dividers */
  #mainmenu li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,.10) !important;
  }
  #mainmenu li:last-child { border-bottom: none !important; }
  #mainmenu li a.menu-item {
    color: #fff !important;
    font-size: 1.22rem !important;
    font-weight: 500 !important;
    padding: 17px 0 !important;
    letter-spacing: .01em;
    transition: color .2s ease, padding-left .2s ease;
  }
  #mainmenu li a.menu-item span:not(.badge) { color: #fff !important; transition: color .2s ease; }
  /* red on hover / active (with a subtle nudge) */
  #mainmenu a.menu-item:hover,
  #mainmenu a.menu-item:active,
  #mainmenu li a.menu-item.active {
    background: none !important;
    color: var(--primary-color) !important;
    padding-left: 10px !important;
  }
  #mainmenu a.menu-item:hover span:not(.badge),
  #mainmenu li a.menu-item.active span:not(.badge) { color: var(--primary-color) !important; }

  /* staggered entrance for each item */
  header.menu-open #mainmenu > li { animation: navItemIn .42s ease both; }
  header.menu-open #mainmenu > li:nth-child(1) { animation-delay: .10s; }
  header.menu-open #mainmenu > li:nth-child(2) { animation-delay: .16s; }
  header.menu-open #mainmenu > li:nth-child(3) { animation-delay: .22s; }
  header.menu-open #mainmenu > li:nth-child(4) { animation-delay: .28s; }
  header.menu-open #mainmenu > li:nth-child(5) { animation-delay: .34s; }
  header.menu-open #mainmenu > li:nth-child(6) { animation-delay: .40s; }
  header.menu-open #mainmenu > li:nth-child(7) { animation-delay: .46s; }
}
@keyframes navItemIn {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}
