/* ============================================================
   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) {
  .hero-content { display: flex; align-items: flex-end; padding: 86px 0 70px; }
  .hero-content > .container { width: 100%; }
  .hero-cardcol { display: none !important; }   /* hide agent card on mobile/tablet */
}

/* --- 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 { 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: 6px 12px; display: inline-flex; align-items: center; line-height: 0; }
.logo-chip img { height: 50px; width: auto; display: block; }
.footer-logo.logo-chip { padding: 10px 16px; }
.footer-logo.logo-chip img { height: 74px; }
/* 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); }

/* --- 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 {
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primary-color);
  opacity: .9;
}

/* --- 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%; }

/* --- 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); }
.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; }

/* --- 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); }

/* --- Misc --- */
.text-brand { color: var(--primary-color) !important; }
.bg-brand { background: var(--primary-color) !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; }
