/* ============================================
   Serly Andrias, Los Angeles Real Estate
   Editorial / cinematic identity, subtle Old
   Hollywood and Art Deco reference. Restrained,
   not themed.
   ============================================ */

:root {
  --ink: #14100b;
  --ink-soft: #4a4038;
  --ivory: #fbf2e6;
  --ivory-dark: #f3ddc4;
  --brass: #b8874a;
  --brass-light: #d8a866;
  --emerald: #10231a;
  --line: #ecd3ae;
  --line-on-dark: rgba(243,237,225,0.16);
  --white: #ffffff;
  --radius: 2px;
  --max-width: 1180px;
  --display: "Cormorant Garamond", Georgia, serif;
  --accent-face: "Cinzel", "Cormorant Garamond", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: 0.005em;
}
h1 { font-size: 3.4rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }

p { margin: 0 0 1em; }

a { color: var(--ink); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--ink-soft); text-decoration: underline; }
section.dark a:not(.btn), .hero.dark a:not(.btn), .page-header.dark a:not(.btn), .newsletter-box a:not(.btn), .video-card a:not(.btn) { color: var(--ivory); }
section.dark a:not(.btn):hover, .hero.dark a:not(.btn):hover, .page-header.dark a:not(.btn):hover, .newsletter-box a:not(.btn):hover, .video-card a:not(.btn):hover { color: var(--ivory-dark); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 30px; }
img { max-width: 100%; display: block; }

.eyebrow {
  font-family: var(--accent-face);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.68rem;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 0.9em;
  display: block;
}

/* thin deco divider: hairline with a small diamond mark centered */
.deco-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 10px 0 34px;
}
.deco-divider .ln { height: 1px; width: 64px; background: var(--ink); opacity: 0.7; }
.deco-divider .dot { width: 5px; height: 5px; background: var(--ink); transform: rotate(45deg); }
.deco-divider.left { justify-content: flex-start; }
section.dark .deco-divider .ln, .hero.dark .deco-divider .ln { background: var(--ivory); }
section.dark .deco-divider .dot, .hero.dark .deco-divider .dot { background: var(--ivory); }

/* ---------- Top bar ---------- */
.topbar { background: var(--emerald); color: rgba(243,237,225,0.75); font-size: 0.8rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding: 9px 30px; }
.topbar a { color: rgba(243,237,225,0.75); }
.topbar a:hover { color: var(--ivory); }
.topbar .topbar-links { display: flex; gap: 24px; }
.topbar .topbar-social { display: flex; gap: 18px; }

/* ---------- Header / Nav ---------- */
header.site-header {
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.logo {
  font-family: var(--accent-face);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
nav.main-nav ul { list-style: none; display: flex; gap: 32px; margin: 0; padding: 0; }
nav.main-nav a {
  color: var(--ink-soft);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}
nav.main-nav a:hover, nav.main-nav a.active { color: var(--ink); }

/* ---------- Neighborhoods dropdown ---------- */
nav.main-nav li.has-dropdown { position: relative; }
nav.main-nav li.has-dropdown > a::after { content: "\25BE"; font-size: 0.65em; margin-left: 4px; position: relative; top: -1px; }
nav.main-nav .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--ivory);
  border: 1px solid var(--line);
  min-width: 230px;
  max-height: 70vh;
  overflow-y: auto;
  padding: 8px 0;
  margin: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease;
  box-shadow: 0 26px 46px -22px rgba(21,19,15,0.35);
  z-index: 60;
}
nav.main-nav li.has-dropdown:hover .dropdown-menu,
nav.main-nav li.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
nav.main-nav .dropdown-menu li { padding: 0; }
nav.main-nav .dropdown-menu a {
  display: block;
  padding: 9px 22px;
  font-size: 0.78rem;
  text-transform: none;
  letter-spacing: 0.01em;
  font-weight: 400;
  color: var(--ink-soft);
}
nav.main-nav .dropdown-menu a::after { content: none; }
nav.main-nav .dropdown-menu a:hover, nav.main-nav .dropdown-menu a.active { background: var(--ivory-dark); color: var(--ink); }

.nav-cta {
  border: 1px solid var(--ink);
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.nav-cta:hover { background: var(--ink); color: var(--ivory); }

/* ---------- Hero ---------- */
.hero { padding: 80px 0 64px; background: var(--ivory); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.hero h1 { margin-bottom: 0.3em; }
.hero .lede { font-size: 1.16rem; color: var(--ink-soft); max-width: 46ch; }
.hero-photo { position: relative; }
.hero-photo img {
  border-radius: var(--radius);
  filter: grayscale(18%) sepia(6%) contrast(1.03);
}
.hero-photo::before {
  content: "";
  position: absolute;
  top: -14px; left: -14px; right: 14px; bottom: 14px;
  border: 1px solid var(--ink);
  z-index: -1;
}
.hero.dark { background: var(--emerald); }
.hero.dark h1, .hero.dark .lede { color: var(--ivory); }
.hero.dark .eyebrow { color: var(--ivory); }
.hero.dark .badge { border-color: rgba(243,237,225,0.35); color: rgba(243,237,225,0.85); }
.hero.dark .hero-photo::before { border-color: var(--ivory); }
.hero.dark .btn.btn-outline { border-color: var(--ivory); color: var(--ivory); }
.hero.dark .btn.btn-outline:hover { background: var(--ivory); color: var(--emerald); }

.btn {
  display: inline-block;
  background: var(--emerald);
  color: var(--ivory);
  padding: 14px 30px;
  border-radius: var(--radius);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  margin-top: 8px;
  border: 1px solid var(--emerald);
}
.btn:hover { background: transparent; color: var(--emerald); }
.btn.btn-outline { background: transparent; border: 1px solid var(--ink); color: var(--ink); }
.btn.btn-outline:hover { background: var(--ink); color: var(--ivory); }
.btn.btn-brass { background: var(--ivory); border-color: var(--ivory); color: var(--emerald); }
.btn.btn-brass:hover { background: transparent; color: var(--ivory); border-color: var(--ivory); }
.btn-row { display: flex; gap: 16px; margin-top: 22px; flex-wrap: wrap; }

/* ---------- Specialty badges ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.badge {
  background: transparent;
  border: 1px solid var(--line);
  padding: 7px 17px;
  border-radius: 20px;
  font-size: 0.78rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* ---------- Sections ---------- */
section { padding: 84px 0; }
section.alt { background: var(--white); }
section.dark { background: var(--emerald); color: var(--ivory); }
section.dark h2, section.dark h3, section.dark p { color: var(--ivory); }
section.dark .eyebrow { color: var(--ivory); }
.section-head { max-width: 660px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin: 0 0 48px; text-align: left; }

/* ---------- Cards / Grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 26px 46px -28px rgba(21,19,15,0.4); }
.card .card-media {
  height: 220px;
  background: var(--ivory-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
  text-align: center;
  padding: 20px;
}
.card .card-media img { width: 100%; height: 100%; object-fit: cover; }
.card .card-body { padding: 22px 24px 26px; }
.card .price { font-family: var(--display); font-size: 1.55rem; color: var(--ink); margin-bottom: 2px; }
.card .addr { font-weight: 500; margin-bottom: 2px; color: var(--ink); }
.card .city { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 12px; }
.card .stats { display: flex; gap: 14px; font-size: 0.84rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 12px; }
.card .status-tag {
  position: absolute;
  margin-top: -34px;
  margin-left: 20px;
  background: var(--emerald);
  color: var(--ivory);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px 13px;
  border-radius: 2px;
}
.status-tag.sold { background: var(--ink-soft); }

/* ---------- Sold table ---------- */
.sold-table { width: 100%; border-collapse: collapse; background: var(--white); }
.sold-table th, .sold-table td { text-align: left; padding: 15px 16px; border-bottom: 1px solid var(--line); font-size: 0.92rem; color: var(--ink); }
.sold-table th { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.7rem; color: var(--ink-soft); background: var(--ivory-dark); font-family: var(--accent-face); font-weight: 500; }
.sold-table tr:hover td { background: var(--ivory); }
.sold-table td.price { font-family: var(--display); font-size: 1.05rem; }

/* ---------- Scrollable sold/rentals boxes ---------- */
.scroll-table {
  max-height: 560px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.scroll-table .sold-table { border: none; }
.scroll-table .sold-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  box-shadow: 0 1px 0 var(--line);
}
/* The sold table always has its own white row background, even when the
   surrounding section is dark, so its text and links must stay dark
   regardless of ambient section context. */
section.dark .sold-table a, section.dark .scroll-table a { color: var(--ink); }
section.dark .sold-table a:hover, section.dark .scroll-table a:hover { color: var(--ink-soft); text-decoration: underline; }

/* ---------- Photo carousel (Recently Sold gallery) ---------- */
.photo-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
  aspect-ratio: 16 / 9;
  max-width: 640px;
  margin: 0 auto;
}
.photo-carousel .carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}
.photo-carousel .carousel-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
}
.photo-carousel .carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-carousel .carousel-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 20px 14px;
  background: linear-gradient(180deg, rgba(16,35,26,0) 0%, rgba(16,35,26,0.85) 100%);
  color: var(--ivory);
}
.photo-carousel .carousel-caption .addr { font-family: var(--display); font-size: 1rem; margin-bottom: 2px; }
.photo-carousel .carousel-caption .meta { font-size: 0.76rem; color: rgba(243,237,225,0.8); }
.photo-carousel .carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(243,237,225,0.5);
  background: rgba(16,35,26,0.45);
  color: var(--ivory);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease;
}
.photo-carousel .carousel-arrow:hover { background: rgba(16,35,26,0.75); }
.photo-carousel .carousel-arrow.prev { left: 18px; }
.photo-carousel .carousel-arrow.next { right: 18px; }
.photo-carousel .carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.photo-carousel .carousel-dots .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(243,237,225,0.4);
  border: none;
  cursor: pointer;
  padding: 0;
}
.photo-carousel .carousel-dots .dot.active { background: var(--ivory); }
@media (max-width: 600px) {
  .photo-carousel { aspect-ratio: 4 / 5; }
  .photo-carousel .carousel-arrow { width: 36px; height: 36px; font-size: 1.15rem; }
}

/* ---------- Video walkthroughs ---------- */
.video-card {
  background: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
}
.video-card video { width: 100%; display: block; background: #000; max-height: 640px; object-fit: contain; margin: 0 auto; }
.video-card .video-caption { padding: 22px 26px; color: var(--ivory); }
.video-card .video-caption .eyebrow { color: var(--ivory); }
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }

/* ---------- Newsletter ---------- */
.newsletter-box {
  background: var(--ink);
  color: var(--ivory);
  border-radius: var(--radius);
  padding: 50px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: center;
}
.newsletter-box h2, .newsletter-box p { color: var(--ivory); }
.newsletter-box .eyebrow { color: var(--ivory); }
.form-embed { background: var(--ivory); border-radius: var(--radius); padding: 10px; }
.form-embed iframe { width: 100%; border: none; display: block; min-height: 480px; background: var(--ivory); }
.consent-text { font-size: 0.76rem; color: rgba(243,237,225,0.55); margin-top: 12px; }

.archive-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 32px;
  margin-bottom: 20px;
}
.archive-card .issue-date { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink); margin-bottom: 8px; display: block; font-family: var(--accent-face); }
.archive-card h3 { margin-bottom: 10px; }
.archive-card p { margin: 0 0 14px; color: var(--ink-soft); font-size: 0.96rem; }
.archive-empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 50px 30px; text-align: center; color: var(--ink-soft); background: var(--white); }

.editor-note {
  background: #fdf7ea;
  border: 1px dashed var(--ink);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.85rem;
  color: #5c4a26;
  margin-bottom: 30px;
}
.editor-note strong { color: #3a2e14; }

/* ---------- Areas served ---------- */
.areas-list { display: flex; flex-wrap: wrap; gap: 10px; }
.areas-list li { list-style: none; background: var(--ivory-dark); padding: 8px 17px; border-radius: 20px; font-size: 0.86rem; transition: background 0.15s ease; }
.areas-list li a { color: var(--ink-soft); }
.areas-list li:hover { background: var(--ink); }
.areas-list li:hover a { color: var(--ivory); }

/* ---------- Team strip (Basson Team) ---------- */
.team-strip {
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 40px;
}
.team-strip img.team-logo { height: 54px; width: auto; background: var(--emerald); padding: 8px 14px; border-radius: 2px; }
.team-strip p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }
.team-strip strong { color: var(--ink); }

/* ---------- Brand signature (Compass + DRE) ---------- */
.brand-signature { display: flex; align-items: center; gap: 14px; }
.brand-signature img.compass-logo { height: 20px; width: auto; }
.brand-signature .dre { font-size: 0.75rem; color: rgba(243,237,225,0.6); letter-spacing: 0.04em; }
.brand-signature.on-light .dre { color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; }
.contact-info .item { margin-bottom: 24px; }
.contact-info .item .label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink); display: block; margin-bottom: 5px; font-family: var(--accent-face); }
form.contact-form { display: flex; flex-direction: column; gap: 16px; }
form.contact-form label { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 4px; display: block; }
form.contact-form input, form.contact-form select, form.contact-form textarea {
  width: 100%; padding: 13px 14px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--white); font-family: var(--sans); font-size: 0.95rem;
}
form.contact-form textarea { min-height: 140px; resize: vertical; }
form.contact-form button { border: none; cursor: pointer; width: fit-content; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--emerald); color: rgba(243,237,225,0.8); padding: 60px 0 30px; margin-top: 40px; }
footer.site-footer .footer-grid { display: grid; grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr; gap: 42px; margin-bottom: 40px; }
footer.site-footer h4 { color: var(--ivory); font-family: var(--accent-face); text-transform: uppercase; font-size: 0.74rem; letter-spacing: 0.14em; margin-bottom: 18px; font-weight: 500; }
footer.site-footer a { color: rgba(243,237,225,0.8); font-size: 0.9rem; }
footer.site-footer a:hover { color: var(--ivory); }
footer.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
footer.site-footer .logo { color: var(--ivory); }
footer.site-footer .disclaimer { border-top: 1px solid var(--line-on-dark); padding-top: 24px; font-size: 0.75rem; color: rgba(243,237,225,0.45); line-height: 1.6; }
.social-row { display: flex; gap: 14px; margin-top: 6px; }

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 32px;
  position: relative;
}
.testimonial-card.wide { grid-column: 1 / -1; }
.testimonial-card .quote-mark {
  font-family: var(--display);
  font-size: 3.2rem;
  color: var(--ink);
  line-height: 1;
  display: block;
  margin-bottom: 4px;
}
.testimonial-card p.quote-text { color: var(--ink-soft); font-size: 0.98rem; margin-bottom: 16px; }
.testimonial-card .attribution { font-family: var(--accent-face); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink); }

/* ---------- FAQ accordion ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 0;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 34px 22px 0;
  position: relative;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 20px;
  font-family: var(--sans);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--ink);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary:hover { color: var(--ink-soft); }
.faq-item .faq-answer { padding: 0 34px 24px 0; color: var(--ink-soft); }
.faq-item .faq-answer p { margin: 0; }

/* ---------- Prose (neighborhood guides, newsletter articles) ---------- */
.prose { max-width: 720px; margin: 0 auto; font-size: 1.05rem; }
.prose h2 { margin-top: 1.8em; font-size: 1.7rem; }
.prose ul { padding-left: 1.3em; margin: 0 0 1.4em; }
.prose li { margin-bottom: 0.5em; color: var(--ink-soft); }
.prose .fact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin: 0 0 1.6em;
}
.prose .fact-card h3 { font-size: 1.15rem; margin-bottom: 12px; }
.prose .fact-card p:last-child { margin-bottom: 0; }

/* ---------- Neighborhood guide hub ---------- */
.guide-card .card-body { padding: 24px; }
.guide-card .card-body h3 { margin-bottom: 8px; }
.guide-card .card-body p { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 14px; }

/* ---------- Page header (interior pages) ---------- */
.page-header { padding: 64px 0 44px; background: var(--ivory-dark); text-align: center; }
.page-header p.lede { max-width: 60ch; margin: 0 auto; color: var(--ink-soft); }
.page-header.dark { background: var(--emerald); }
.page-header.dark h1 { color: var(--ivory); }
.page-header.dark p.lede { color: rgba(243,237,225,0.8); }
.page-header.dark .eyebrow { color: var(--ivory); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  h1 { font-size: 2.3rem; }
  .hero-grid, .contact-grid, .newsletter-box, .video-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  footer.site-footer .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-wrap nav.main-nav { display: none; }
  .team-strip { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .topbar .topbar-links { display: none; }
  footer.site-footer .footer-grid { grid-template-columns: 1fr; }
}
