/* ==========================================================================
   Hidden Pearl Estate Sales — Classic & Elegant, brand palette
   Navy #273D59 · Seafoam #8CA09D · Pearl Beige #DDCDBB
   Backgrounds: pearl-blush pair — light #F8EFEC / deep #F0DFD9
   ========================================================================== */

:root {
  --navy:       #273D59;
  --navy-2:     #364B66;
  --seafoam:    #8CA09D;
  --seafoam-d:  #6E8380;
  --pearl:      #DDCDBB;
  --ivory:      #F8EFEC;  /* light pearl blush — page background & light sections */
  --paper:      #FFFFFF;
  --tint:       #F0DFD9;  /* deeper pearl blush — alternating sections */
  --ink:        #273D59;
  --body:       #3E4D63;
  --muted:      #64748A;
  --soft:       #8C99AB;
  --border:     #E5D2CB;
  --ok-bg:      #DCE5E1;
  --ok-ink:     #3F5B55;
  --warn-bg:    #EBDFC9;
  --warn-ink:   #77603B;
  --off-bg:     #E2DDD4;
  --off-ink:    #64748A;
  --fd: 'Didot', 'Bodoni 72', Georgia, 'Times New Roman', serif;
  --fb: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --r: 6px;
  --rb: 3px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--fb);
  color: var(--body);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }

.serif { font-family: var(--fd); font-weight: 400; color: var(--ink); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  background: var(--navy);
  color: var(--ivory);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 13px 26px;
  border-radius: var(--rb);
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid var(--navy);
  cursor: pointer;
  font-family: var(--fb);
  transition: background .18s, border-color .18s, color .18s;
}
.btn:hover { background: var(--seafoam-d); border-color: var(--seafoam-d); color: #fff; }
.btn.ghost { background: transparent; border: 1px solid var(--seafoam); color: var(--navy); }
.btn.ghost:hover { background: var(--seafoam); border-color: var(--seafoam); color: #fff; }
.btn.on-dark { background: transparent; border-color: rgba(248,239,236,.55); color: var(--ivory); }
.btn.on-dark:hover { background: var(--ivory); color: var(--navy); border-color: var(--ivory); }

/* ---- Pills ---- */
.pill {
  display: inline-block; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
  font-weight: 700; padding: 5px 11px; border-radius: 99px;
}
.pill.green { background: var(--ok-bg); color: var(--ok-ink); }
.pill.amber { background: var(--warn-bg); color: var(--warn-ink); }
.pill.gray  { background: var(--off-bg); color: var(--off-ink); }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(248,239,236,.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 10px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.logo { display: flex; align-items: center; gap: 11px; }
.logo .lt { font-family: var(--fd); font-size: 21px; color: var(--ink); line-height: 1.1; }
.logo .lt small {
  display: block; font-family: var(--fb); font-weight: 600; font-size: 8.5px;
  letter-spacing: 3px; text-transform: uppercase; color: var(--seafoam-d); margin-top: 3px;
}
.nav-links { display: flex; gap: 22px; align-items: center; font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; }
.nav-links a { color: var(--muted); padding-bottom: 3px; border-bottom: 2px solid transparent; transition: color .15s; }
.nav-links a:hover { color: var(--navy); border-bottom-color: var(--seafoam); }
.nav-links .btn { padding: 10px 18px; font-size: 11px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .2s, opacity .2s; }

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 110px 24px 120px;
  text-align: center;
  color: var(--ivory);
  background:
    linear-gradient(rgba(21,32,48,.52), rgba(21,32,48,.62)),
    url('../img/hero.jpg') center 40% / cover no-repeat;
}
.hero-logo {
  width: clamp(210px, 30vw, 310px); height: auto; margin: 0 auto 14px;
  padding: 24px 32px;
  background: radial-gradient(closest-side, rgba(248,239,236,.96) 46%, rgba(248,239,236,.75) 68%, rgba(248,239,236,0) 100%);
}
.hero .eyebrow {
  font-size: 11px; letter-spacing: 3.5px; text-transform: uppercase;
  color: var(--pearl); font-weight: 600; display: block; margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--fd); font-weight: 400; font-size: clamp(34px, 5.4vw, 54px);
  line-height: 1.15; max-width: 720px; margin: 0 auto 16px; color: #F8F3EE;
}
.hero p {
  font-family: var(--fd); font-style: italic;
  font-size: clamp(18px, 2.4vw, 23px); line-height: 1.6; color: #F0E9E0;
  max-width: 620px; margin: 0 auto 36px;
}
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Sections ---- */
.sec { padding: 72px 0 80px; }
.sec-head { text-align: center; margin-bottom: 40px; }
.eyebrow {
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--seafoam-d); font-weight: 700;
}
.sec-head h2 { font-family: var(--fd); font-weight: 400; font-size: clamp(26px, 3.4vw, 34px); color: var(--ink); margin-top: 10px; }
.sec-head .rule { width: 46px; height: 2px; background: var(--seafoam); margin: 16px auto 0; }
.sec.tint  { background: var(--tint); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---- Upcoming sale cards (1 row × 3 carousel) ---- */
.sales-wrap .carousel { gap: 24px; }
.sales-wrap .card {
  flex: 0 0 calc((100% - 48px) / 3); /* 3 across, 2 × 24px gaps */
  scroll-snap-align: start;
}
.card {
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--r);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 14px 34px rgba(39,61,89,.14); transform: translateY(-2px); }
.card .cover { height: 190px; background: var(--tint); }
.card .cover img { width: 100%; height: 100%; object-fit: cover; }
.card .cover.empty {
  display: flex; align-items: center; justify-content: center;
  color: var(--soft); font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  background: repeating-linear-gradient(45deg, var(--tint), var(--tint) 14px, #EAD6CF 14px, #EAD6CF 28px);
}
/* Past-sale cards: softly muted photo, chip and pill side by side. */
.card.past .cover img { filter: grayscale(35%) brightness(.98); }
.card.past .date-chip { margin-right: 8px; }
.card.past .pill { vertical-align: 1px; margin-bottom: 12px; }
.card-body { padding: 20px 22px 22px; }
.date-chip {
  display: inline-block; background: var(--pearl); color: var(--navy);
  font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700;
  padding: 5px 10px; border-radius: var(--rb); margin-bottom: 12px;
}
.card-body h3 { font-family: var(--fd); font-weight: 400; font-size: 21px; color: var(--ink); margin-bottom: 7px; }
.card-body .addr, .card-body .hours { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.card-body .hours { margin-bottom: 14px; }
.card-link { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--seafoam-d); font-weight: 700; }
.card-link:hover { color: var(--navy); }
.no-sales {
  max-width: 560px; margin: 0 auto; text-align: center; background: var(--paper);
  border: 1px solid var(--border); border-radius: var(--r); padding: 40px 30px;
  color: var(--muted); font-size: 15px; line-height: 1.7;
}

/* ---- Services ---- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.svc {
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--r);
  padding: 26px 24px 28px; text-align: center;
}
.svc-mark {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--seafoam);
  margin: 0 auto 14px; display: flex; align-items: center; justify-content: center;
  color: var(--seafoam-d);
}
.svc-mark svg { width: 19px; height: 19px; }
.svc h3 { font-family: var(--fd); font-weight: 400; font-size: 19px; color: var(--ink); margin-bottom: 10px; }
.svc p { font-size: 13px; line-height: 1.65; color: var(--muted); }
.svc ul { list-style: none; text-align: left; margin-top: 2px; }
.svc ul li {
  font-size: 13px; line-height: 1.55; color: var(--muted);
  padding: 6px 0 6px 28px; position: relative;
}
/* Larger "pearl" bullet, per the brand's pearl theme. */
.svc ul li::before {
  content: ''; position: absolute; left: 2px; top: 8px;
  width: 15px; height: 15px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #FFFFFF 0%, #F5EDE6 30%, var(--pearl) 58%, var(--seafoam) 130%);
  box-shadow: inset -2px -2px 3px rgba(39,61,89,.18), inset 1px 1px 2px rgba(255,255,255,.9),
              0 1px 2px rgba(39,61,89,.18);
}
.svc-cta {
  text-align: center; margin-top: 34px; font-size: 14px; color: var(--muted);
  display: flex; gap: 16px; align-items: center; justify-content: center; flex-wrap: wrap;
}

/* ---- Featured items carousel (1 row × 5, scrolls when more) ---- */
.carousel-wrap { position: relative; padding: 0 46px; }
.carousel {
  display: flex; gap: 16px; overflow-x: auto; scroll-behavior: smooth;
  scroll-snap-type: x proximity; scrollbar-width: none; padding-bottom: 4px;
}
.carousel::-webkit-scrollbar { display: none; }
.car-item {
  flex: 0 0 calc((100% - 64px) / 5); /* 5 across, 4 × 16px gaps */
  scroll-snap-align: start;
  border-radius: 5px; overflow: hidden; border: 1px solid var(--border);
  background: var(--tint); position: relative; display: block;
}
.car-item img { width: 100%; height: 150px; object-fit: cover; transition: transform .25s; display: block; }
.car-item:hover img { transform: scale(1.05); }
.car-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(21,32,48,.78));
  color: var(--ivory); font-size: 10px; letter-spacing: 1px; text-transform: uppercase;
  padding: 18px 10px 8px; opacity: 0; transition: opacity .2s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.car-item:hover .car-cap { opacity: 1; }
.car-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--seafoam);
  background: var(--paper); color: var(--navy); font-size: 19px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s; z-index: 2;
}
.car-btn:hover { background: var(--seafoam); color: #fff; }
.car-btn[disabled] { opacity: .35; cursor: default; }
.car-btn[disabled]:hover { background: var(--paper); color: var(--navy); }
.car-prev { left: 0; }
.car-next { right: 0; }
/* When everything fits, hide the arrows and center the row. */
.carousel-wrap.no-overflow .car-btn { display: none; }
.carousel-wrap.no-overflow .carousel { justify-content: center; }

/* ---- Photo tiles (sale page gallery) ---- */
.g-item {
  border-radius: 5px; overflow: hidden; border: 1px solid var(--border);
  background: var(--tint); height: 150px; cursor: zoom-in; padding: 0;
}
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.g-item:hover img { transform: scale(1.04); }

/* ---- About ---- */
.about-grid { display: flex; gap: 48px; align-items: center; max-width: 980px; margin: 0 auto; }
.about-logo { flex: 0 0 280px; }
.about-logo img { width: 100%; height: auto; }
.about-text h2 { font-family: var(--fd); font-weight: 400; font-size: clamp(24px, 3vw, 30px); color: var(--ink); margin: 8px 0 16px; }
.about-text p { font-size: 15px; line-height: 1.75; color: var(--body); margin-bottom: 12px; }
.about-text .facts { font-size: 13.5px; color: var(--muted); margin: 16px 0 20px; }
.about-text .facts span { white-space: nowrap; }

/* ---- Testimonials carousel (one quote at a time) ---- */
.quote-wrap { max-width: 880px; margin: 0 auto; }
.quote-wrap .carousel { gap: 32px; align-items: center; }
.t-slide {
  flex: 0 0 100%; scroll-snap-align: start;
  margin: 0; padding: 4px 12px; text-align: center;
}
.t-slide p {
  font-family: var(--fd); font-weight: 400; font-style: italic;
  font-size: clamp(15px, 1.9vw, 19px); line-height: 1.75; color: var(--ink);
  max-width: 720px; margin: 0 auto 16px;
}
.t-slide footer {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--seafoam-d); font-weight: 700;
}

/* ---- Footer ---- */
.foot { background: var(--navy); color: #C9D2DE; padding: 52px 0 0; }
.foot-grid {
  max-width: 1120px; margin: 0 auto; padding: 0 24px 40px;
  display: flex; gap: 48px; flex-wrap: wrap;
}
.foot h4 { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--seafoam); margin-bottom: 14px; }
.foot .col { flex: 1 1 200px; font-size: 13.5px; line-height: 2.1; }
.foot .col .biz { font-family: var(--fd); font-size: 17px; color: var(--ivory); margin-bottom: 6px; }
.foot .col a { color: #C9D2DE; }
.foot .col a:hover { color: var(--ivory); }
.foot .btn.foot-btn { margin-top: 10px; background: var(--seafoam); border-color: var(--seafoam); color: var(--navy); }
.foot .btn.foot-btn:hover { background: var(--ivory); border-color: var(--ivory); }
.foot-basics { list-style: none; }
.foot-basics li { padding-left: 16px; position: relative; }
.foot-basics li::before { content: '·'; position: absolute; left: 2px; color: var(--seafoam); font-weight: 700; }
.foot-bottom { border-top: 1px solid rgba(248,239,236,.14); }
.foot-bottom-inner {
  max-width: 1120px; margin: 0 auto; padding: 18px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 12px; color: #8FA0B5;
}
.foot-bottom-inner .tag { font-style: italic; font-family: var(--fd); font-size: 13.5px; color: var(--pearl); }

/* ---- Sale listing page ---- */
.crumb { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--soft); padding: 22px 0 0; }
.crumb a { color: var(--seafoam-d); font-weight: 600; }
.crumb a:hover { color: var(--navy); }
.l-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding: 16px 0 24px; border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.l-head h1 { font-family: var(--fd); font-weight: 400; font-size: clamp(28px, 4vw, 38px); color: var(--ink); margin-bottom: 8px; }
.l-head .sub { font-size: 14px; color: var(--muted); }
.l-meta { display: flex; gap: 22px; padding: 28px 0 6px; flex-wrap: wrap; }
.meta-card { flex: 1 1 260px; background: var(--paper); border: 1px solid var(--border); border-radius: var(--r); padding: 20px 22px; }
.meta-card h4 { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--seafoam-d); margin-bottom: 12px; }
.meta-card .row {
  display: flex; justify-content: space-between; gap: 14px; font-size: 13.5px; color: var(--body);
  padding: 6px 0; border-bottom: 1px dashed var(--border);
}
.meta-card .row:last-child { border-bottom: none; }
.meta-card .row b { font-weight: 600; color: var(--ink); text-align: right; }
.map-frame { border: 0; width: 100%; height: 150px; border-radius: 4px; margin-bottom: 12px; background: var(--tint); }
.meta-card .addr-lines { font-size: 13.5px; line-height: 1.7; color: var(--body); }
.meta-card .addr-lines b { color: var(--ink); }
.dir-link { display: inline-block; margin-top: 6px; color: var(--seafoam-d); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; font-weight: 700; }
.dir-link:hover { color: var(--navy); }
.l-desc { padding: 22px 0 8px; font-size: 15px; line-height: 1.8; color: var(--body); max-width: 760px; }
.l-gallery { padding: 28px 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 130px; gap: 14px; }
.l-gallery .g-item { height: 100%; }
.l-gallery .g-item.big { grid-column: span 2; grid-row: span 2; }
.terms {
  margin: 6px 0 30px; background: var(--tint); border: 1px solid var(--seafoam);
  border-radius: var(--r); padding: 16px 20px; font-size: 13px; color: var(--navy-2); line-height: 1.7;
}
.terms b { color: var(--navy); }
.l-cta { display: flex; gap: 14px; padding: 0 0 60px; flex-wrap: wrap; }

/* ---- Modals ---- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 90; display: none;
  align-items: flex-start; justify-content: center;
  background: rgba(21,32,48,.55); padding: 5vh 18px 40px; overflow-y: auto;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--ivory); border-radius: 8px; width: 100%; max-width: 470px;
  box-shadow: 0 24px 70px rgba(0,0,0,.35); overflow: hidden;
}
.modal-head { padding: 24px 28px 0; position: relative; }
.modal-head .eyebrow { display: block; margin-bottom: 6px; }
.modal-head h3 { font-family: var(--fd); font-weight: 400; font-size: 24px; color: var(--ink); }
.modal-head p { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.6; }
.modal-close {
  position: absolute; top: 14px; right: 16px; width: 34px; height: 34px;
  border: 0; border-radius: 50%; background: transparent; color: var(--muted);
  font-size: 21px; line-height: 1; cursor: pointer;
}
.modal-close:hover { background: var(--tint); color: var(--navy); }
.modal form { padding: 20px 28px 28px; }
.f-label {
  display: block; font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin: 14px 0 5px;
}
.f-label:first-child { margin-top: 0; }
.f-label .req { color: var(--seafoam-d); }
.modal input[type=text], .modal input[type=email], .modal input[type=tel],
.modal select, .modal textarea {
  width: 100%; background: var(--paper); border: 1px solid var(--border); border-radius: 5px;
  padding: 11px 13px; font-size: 14px; color: var(--ink); font-family: var(--fb);
}
.modal select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.modal textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.modal input:focus, .modal select:focus, .modal textarea:focus {
  outline: none; border-color: var(--seafoam); box-shadow: 0 0 0 3px rgba(140,160,157,.22);
}
.modal .btn { width: 100%; margin-top: 20px; padding: 14px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }

/* validate.js status messages */
.php-email-form .loading, .php-email-form .error-message, .php-email-form .sent-message {
  display: none; margin-top: 16px; padding: 12px 14px; border-radius: 5px; font-size: 13px; line-height: 1.6;
}
.php-email-form .loading { background: var(--tint); color: var(--navy-2); }
.php-email-form .error-message { background: #EFDCD6; color: #8A4433; }
.php-email-form .sent-message { background: var(--ok-bg); color: var(--ok-ink); }
.php-email-form .d-block { display: block; }

/* ---- Lightbox ---- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(21,32,48,.92); align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb-btn {
  position: absolute; border: 0; background: rgba(238,231,222,.12); color: var(--ivory);
  width: 46px; height: 46px; border-radius: 50%; font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .15s;
}
.lb-btn:hover { background: rgba(238,231,222,.28); }
.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-count {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: #B9C4D2; font-size: 12px; letter-spacing: 2px;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .l-gallery { grid-template-columns: repeat(3, 1fr); }
  .car-item { flex-basis: calc((100% - 32px) / 3); }
  .sales-wrap .card { flex-basis: calc((100% - 24px) / 2); }
  .about-grid { flex-direction: column; gap: 26px; text-align: center; }
  .about-logo { flex-basis: auto; width: 220px; }
  .about-text .facts { text-align: center; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--ivory); border-bottom: 1px solid var(--border);
    padding: 6px 24px 18px; box-shadow: 0 18px 30px rgba(39,61,89,.12);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--border); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links .btn { margin-top: 12px; text-align: center; width: 100%; }
  .hero { padding: 76px 20px 84px; }
  .sec { padding: 54px 0 60px; }
  .l-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 110px; }
  .carousel-wrap { padding: 0 42px; }
  .car-item { flex-basis: calc((100% - 16px) / 2); }
  .sales-wrap .card { flex-basis: 100%; }
  .l-cta .btn { flex: 1; text-align: center; }
}
