/* =============================================================
   Waldorf Sunny Isles — Advisor Edition
   Adds: dedicated "Presented By" hero section + footer brokerage card
   This file is loaded AFTER main.css so it overrides where needed.
   ============================================================= */

/* ---------- PRESENTED BY SECTION ---------- */
.section-presented-by {
  background: linear-gradient(180deg, #f7f1e3 0%, #efe6d0 100%);
  padding-top: clamp(72px, 9vw, 120px);
  padding-bottom: clamp(72px, 9vw, 120px);
  position: relative;
}

/* Gold accent line at top of section */
.section-presented-by::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 3px;
  background: var(--color-gold, #c7a869);
}

.presented-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.presented-portrait-col { position: relative; }

/* Portrait frame: ivory backdrop, gold corner accent, soft shadow */
.presented-portrait-frame {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f3eed9 100%);
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow:
    0 30px 60px -28px rgba(14, 27, 44, 0.35),
    0 0 0 1px rgba(199, 168, 105, 0.18);
}

/* Decorative gold corner brackets */
.presented-portrait-frame::before,
.presented-portrait-frame::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--color-gold, #c7a869);
  pointer-events: none;
}
.presented-portrait-frame::before {
  top: 14px;
  left: 14px;
  border-right: none;
  border-bottom: none;
}
.presented-portrait-frame::after {
  bottom: 14px;
  right: 14px;
  border-left: none;
  border-top: none;
}

.presented-portrait {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.presented-meta-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.presented-meta-col .eyebrow {
  margin-bottom: 14px;
}

.presented-name {
  font-family: var(--font-serif, "Cormorant Garamond", "Playfair Display", Georgia, serif);
  font-size: clamp(38px, 4.4vw, 60px);
  font-weight: 400;
  line-height: 1.05;
  color: var(--color-ink, #0e1b2c);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.presented-role {
  font-family: var(--font-sans, "Inter", sans-serif);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold, #c7a869);
  margin: 0 0 22px;
  font-weight: 500;
}

.presented-rule {
  width: 56px;
  height: 2px;
  background: var(--color-gold, #c7a869);
  margin: 0 0 24px;
  opacity: 0.7;
}

.presented-bio {
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-ink-soft, #243a55);
  max-width: 52ch;
  margin: 0 0 28px;
}

.presented-contact {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
}
.presented-contact li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pres-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-ink-soft, #243a55);
  opacity: 0.7;
}
.presented-contact a {
  font-family: var(--font-serif, "Cormorant Garamond", Georgia, serif);
  font-size: 22px;
  color: var(--color-ink, #0e1b2c);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(199, 168, 105, 0.4);
  transition: border-color 200ms ease, color 200ms ease;
}
.presented-contact a:hover {
  color: var(--color-gold, #c7a869);
  border-bottom-color: var(--color-gold, #c7a869);
}

.presented-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

/* Override btn-ghost on cream presented-by background (default uses ivory text) */
.section-presented-by .btn-ghost {
  color: var(--color-ink, #0e1b2c);
  border-color: rgba(14, 27, 44, 0.35);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
}
.section-presented-by .btn-ghost:hover {
  border-color: var(--color-ink, #0e1b2c);
  background: rgba(255, 255, 255, 0.7);
}

/* Brokerage logo card (in Presented By section) */
.presented-brokerage {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 28px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow:
    0 10px 28px -14px rgba(14, 27, 44, 0.28),
    0 0 0 1px rgba(199, 168, 105, 0.18);
  position: relative;
  text-decoration: none;
  transition: transform 240ms ease, box-shadow 240ms ease;
}
.presented-brokerage::before {
  content: "BROKERAGE";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-gold, #c7a869);
  color: #ffffff;
  font-size: 9.5px;
  letter-spacing: 0.24em;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.presented-brokerage img {
  display: block;
  max-width: 140px;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.presented-brokerage:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 36px -16px rgba(14, 27, 44, 0.38),
    0 0 0 1px rgba(199, 168, 105, 0.3);
}

/* ---------- FOOTER BROKERAGE MARK ---------- */
.footer-brokerage-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  padding: 18px 28px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.45);
  position: relative;
}
.footer-brokerage-mark::before {
  content: "PRESENTED BY";
  position: absolute;
  top: -9px;
  left: 16px;
  padding: 0 8px;
  background: var(--color-ink, #0e1b2c);
  font-family: "Inter", sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.55);
}
.footer-brokerage-mark:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.55);
}
.footer-brokerage-mark img {
  display: block;
  max-width: 180px;
  max-height: 110px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ---------- DARK MODE FOOTER BROKERAGE ---------- */
[data-theme="dark"] .footer-brokerage-mark {
  background: #ffffff; /* keep white so the colorful logo reads */
}

/* ---------- DARK MODE PRESENTED-BY SECTION ---------- */
[data-theme="dark"] .section-presented-by {
  background: linear-gradient(180deg, #1a2638 0%, #131e2d 100%);
}
[data-theme="dark"] .presented-portrait-frame {
  background: linear-gradient(180deg, #243a55 0%, #1a2638 100%);
}
[data-theme="dark"] .presented-name { color: var(--color-cream, #f5f1e8); }
[data-theme="dark"] .presented-bio { color: rgba(245, 241, 232, 0.8); }
[data-theme="dark"] .presented-contact a { color: var(--color-cream, #f5f1e8); }
[data-theme="dark"] .pres-label { color: rgba(245, 241, 232, 0.65); }
[data-theme="dark"] .section-presented-by .btn-ghost {
  color: var(--color-cream, #f5f1e8);
  border-color: rgba(245, 241, 232, 0.35);
  background: rgba(245, 241, 232, 0.06);
}
[data-theme="dark"] .section-presented-by .btn-ghost:hover {
  background: rgba(245, 241, 232, 0.12);
  border-color: var(--color-cream, #f5f1e8);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .presented-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .presented-portrait-frame {
    max-width: 420px;
    margin: 0 auto;
    aspect-ratio: 4 / 5;
  }
  .presented-meta-col {
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .presented-bio { font-size: 15.5px; }
  .presented-contact { gap: 12px 24px; }
  .presented-contact a { font-size: 19px; }
  .presented-cta-row { width: 100%; }
  .presented-cta-row .btn { flex: 1 1 auto; text-align: center; }
}
