/* Pets of Realty ONE — black, white and Realty ONE gold */
:root {
  --black: #0b0b0b;
  --white: #ffffff;
  --gold: #C5A95E;
  --gold-ink: #7a5f22;   /* darker gold for text on white */
  --ink: #111111;
  --muted: #555555;
  --line: #e4e1d8;
  --serif: "Young Serif", Georgia, serif;
  --sans: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; overflow-x: clip; background: var(--white); color: var(--ink); font: 16px/1.55 var(--sans); }
img { max-width: 100%; }
a { color: var(--gold-ink); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.wrap { max-width: 1184px; margin: 0 auto; padding-inline: 24px; }
.gold { color: var(--gold); }

/* Top bar */
.topbar { background: var(--black); position: sticky; top: 0; z-index: 20; }
.topbar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 14px; }
.brand img { display: block; height: 60px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; }
.nav a { color: var(--white); text-decoration: none; }
.nav a:hover { color: var(--gold); }
.nav .nav-cta { color: var(--gold); font-weight: 600; }

/* Hero */
.hero { background: var(--black); color: var(--white); overflow: hidden; }
.hero-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-block: 64px 88px; }
.hero-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6vw, 64px); line-height: 1.04; margin: 0; max-width: 14ch; text-wrap: balance; }
.lede { font-size: 19px; margin: 0; max-width: 34rem; color: #d9d9d9; }
.coolture { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding-top: 8px; }
.coolture img { height: 92px; width: auto; transform: rotate(-4deg); }
.coolture span { font-family: var(--serif); font-size: 38px; line-height: 1; color: var(--gold); }
.hero-art { flex: 1 1 340px; min-width: 0; display: flex; justify-content: center; }
.hero-photo { position: relative; width: 380px; max-width: 86%; }
.hero-circle { aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 6px solid var(--gold); }
.hero-circle img { width: 100%; height: 100%; object-fit: cover; display: block; }
.doodle { position: absolute; height: auto; pointer-events: none; }
.doodle-more { top: -18px; right: -24px; width: 22%; transform: rotate(10deg); }
.doodle-open { bottom: -10px; left: -30px; width: 26%; transform: rotate(-8deg); }

/* Pets */
.pets { padding-block: 64px 80px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; border-bottom: 2px solid var(--ink); padding-bottom: 14px; margin-bottom: 32px; }
.section-head h2 { font-family: var(--serif); font-weight: 400; font-size: 40px; margin: 0; }
.section-head p { margin: 0; color: var(--muted); font-size: 15px; }
.grid { display: flex; flex-direction: column; gap: 28px; }
.mrow { display: flex; gap: 28px; align-items: flex-start; }
.mcol { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.card { border: 1px solid var(--line); border-radius: 8px; background: var(--white); display: flex; flex-direction: column; min-width: 0; }
.card.wide { width: 100%; }
.card-head { padding: 18px 20px 14px; display: flex; flex-direction: column; gap: 4px; }
.card-head h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.1; margin: 0; text-wrap: balance; }
.shared { font-size: 15px; color: var(--muted); position: relative; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; background: var(--black); color: var(--gold); padding: 4px 10px; border-radius: 99px; }
.chip.breed { background: transparent; color: var(--gold-ink); border: 1px solid var(--gold); padding: 3px 10px; }

/* Agent name + contact popover */
.agent { all: unset; cursor: pointer; font-weight: 600; color: var(--gold-ink); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.agent:hover { color: var(--ink); }
.agent:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 2px; }
.contact { position: absolute; top: calc(100% + 8px); left: 0; z-index: 10; width: min(290px, 80vw); background: var(--black); color: var(--white); border-radius: 10px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3); }
.contact[hidden] { display: none; }
.contact .who { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.contact a { color: var(--white); text-decoration: none; font-size: 15px; overflow-wrap: anywhere; }
.contact a:hover { color: var(--gold); }
.contact .close { all: unset; cursor: pointer; position: absolute; top: 6px; right: 8px; width: 32px; height: 32px; display: grid; place-items: center; color: #bdbdbd; font-size: 20px; border-radius: 6px; }
.contact .close:hover { color: var(--white); }
.contact .team-name { font-family: var(--serif); font-size: 18px; padding-right: 28px; }
.contact .member { display: flex; flex-direction: column; gap: 4px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.15); }

/* Photos */
.photos { display: grid; gap: 3px; background: var(--line); }
.photos.n2, .photos.n4 { grid-template-columns: 1fr 1fr; }
.photos.n3 { grid-template-columns: repeat(3, 1fr); }
.photo { all: unset; cursor: zoom-in; display: block; position: relative; aspect-ratio: 1; overflow: hidden; background: #f3f1ec; }
.photos.n1 .photo { aspect-ratio: 4 / 3; }
.photos.wide .photo { aspect-ratio: 1000 / 537; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.photo .cap { position: absolute; left: 8px; bottom: 8px; background: rgba(11, 11, 11, 0.78); color: var(--white); font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; }
.sticker { position: absolute; right: 12px; bottom: 12px; width: 60px; height: 60px; border-radius: 50%; background: var(--black); border: 2px solid var(--gold); display: grid; place-items: center; pointer-events: none; }
.sticker img { width: 58%; height: auto; }
.capgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 16px; padding: 0 16px; }
.capgrid figure { margin: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; position: relative; }
.capgrid figure[hidden] { display: none; }
.capgrid .photo { border-radius: 8px; }
.capgrid figcaption { font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.card-body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.card-body p { margin: 0; }
.card-body ul { margin: 0; padding-left: 20px; }
.card-body li { margin: 3px 0; }
.none { color: var(--muted); font-style: italic; }

/* Submit */
.submit { background: var(--gold); }
.submit-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding-block: 56px; }
.megaphone { width: 112px; height: 112px; border-radius: 50%; background: var(--black); display: grid; place-items: center; transform: rotate(-10deg); flex: 0 0 auto; }
.megaphone img { width: 70%; height: auto; }
.submit-copy { flex: 1 1 360px; min-width: 0; }
.submit h2 { font-family: var(--serif); font-weight: 400; font-size: 40px; margin: 0 0 6px; color: var(--black); }
.submit p { margin: 0; font-size: 18px; color: #1d1708; }
.submit-btn { background: var(--black); color: var(--white); text-decoration: none; padding: 16px 26px; border-radius: 99px; font-weight: 600; font-size: 17px; overflow-wrap: anywhere; }
.submit-btn:hover { color: var(--gold); }

.footer { background: var(--black); color: #bdbdbd; padding-block: 28px; font-size: 14px; text-align: center; }

/* Big galleries (lots of photos) */
.cover { position: relative; }
.photos.cover .photo { aspect-ratio: 1; }
.see-all { all: unset; cursor: pointer; position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; background: var(--black); color: var(--white); font-weight: 600; font-size: 14px; padding: 9px 14px; border-radius: 99px; border: 2px solid var(--gold); }
.see-all:hover { color: var(--gold); }
.see-all:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.cover-cap { margin: 10px 20px 0; font-size: 13.5px; color: var(--muted); }
.capgrid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; }
.capgrid.three figcaption { font-size: 12.5px; }
.expand-row { padding: 12px 16px 0; }
.expand { all: unset; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--black); background: var(--gold); padding: 9px 16px; border-radius: 99px; }
.expand:hover { background: #d4bb78; }
.expand:focus-visible { outline: 3px solid var(--black); outline-offset: 2px; }

/* Lightbox */
dialog { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
dialog::backdrop { background: rgba(5, 5, 5, 0.88); }
dialog { overflow: visible; }
.lb-stage { position: relative; display: flex; justify-content: center; }
dialog img { display: block; max-width: 92vw; max-height: 80vh; border-radius: 8px; }
dialog p { color: var(--white); text-align: center; margin: 10px auto 0; font-size: 15px; max-width: 60ch; }
#lightbox-count { color: var(--gold); font-size: 13px; margin-top: 4px; }
.lb-btn { all: unset; cursor: pointer; position: absolute; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: rgba(11,11,11,0.8); color: var(--white); font-size: 30px; line-height: 1; border: 2px solid var(--gold); }
.lb-btn:hover { color: var(--gold); }
.lb-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb-close { right: 10px; top: 10px; font-size: 26px; }
#lightbox.single .lb-prev, #lightbox.single .lb-next { display: none; }

@media (max-width: 520px) {
  .wrap { padding-inline: 16px; }
  .brand img { height: 42px; }
  .section-head h2, .submit h2 { font-size: 32px; }
  .coolture img { height: 70px; }
  .coolture span { font-size: 30px; }
}
.card > .photos:last-child { border-radius: 0 0 7px 7px; overflow: hidden; }

/* Doodles */
.pets { position: relative; }
.margin-doodles { position: absolute; inset: 0; pointer-events: none; }
.md { position: absolute; width: 58px; height: auto; opacity: 0.42; transform: rotate(var(--r, 0deg)); }
.md.rog { width: 50px; }
@media (max-width: 1239px) { .margin-doodles { display: none; } }
.submit { position: relative; overflow: hidden; }
.submit-inner { position: relative; z-index: 1; }
.sd { position: absolute; width: 64px; height: auto; opacity: 0.28; pointer-events: none; }
.sd-1 { top: 10px; left: 38%; transform: rotate(-14deg); }
.sd-2 { bottom: 8px; left: 6%; transform: rotate(12deg); width: 52px; }
.sd-3 { top: 12px; right: 4%; transform: rotate(8deg); }
.sd-4 { bottom: 6px; right: 30%; transform: rotate(-6deg); width: 56px; }
@media (max-width: 700px) { .sd-1, .sd-4 { display: none; } }
.footer-doodles { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; margin-bottom: 14px; }
.footer-doodles img { width: 38px; height: 38px; object-fit: contain; opacity: 0.85; }
.footer-doodles img:nth-child(odd) { transform: rotate(-8deg); }
.footer-doodles img:nth-child(even) { transform: rotate(7deg); }

/* Three photos where the first is a wide group shot */
.photos.lead3 { grid-template-columns: 1fr 1fr; }
.photos.lead3 .photo:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }

/* Dog / Cat / Other filter buttons */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -12px 0 28px; }
.filter { all: unset; cursor: pointer; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 16px; border-radius: 99px; border: 1.5px solid var(--gold); color: var(--gold-ink); background: transparent; }
.filter:hover { background: #f6f0e1; }
.filter[aria-pressed="true"] { background: var(--black); color: var(--gold); border-color: var(--black); }
.filter:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Email backup link under the submit button text */
.submit .submit-alt { font-size: 15px; margin-top: 8px; }
.submit-alt a { color: var(--black); font-weight: 600; }

/* Short pet videos (tap to play) */
.pet-video { margin: 3px 0 0; background: var(--black); }
.pet-video video { display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--black); }
.pet-video figcaption { color: var(--gold); font-size: 13px; font-weight: 600; padding: 7px 14px 9px; }
.card > .pet-video:last-child { border-radius: 0 0 7px 7px; overflow: hidden; }
.pet-video.tall video { aspect-ratio: 4 / 5; object-fit: contain; }

/* Easter egg: a faint acorn tucked beside the filter buttons. No hint, except a small wiggle after hovering ~2.5 seconds. */
.egg { all: unset; margin-left: auto; align-self: center; width: 30px; height: 30px; flex: 0 0 auto; cursor: default; opacity: 0.45; transform: rotate(10deg); }
.egg img { width: 100%; height: 100%; display: block; }
.egg:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.egg:hover { animation: egg-wiggle 0.6s ease-in-out 2.5s 2; }
@keyframes egg-wiggle { 0%,100% { transform: rotate(10deg); } 25% { transform: rotate(-6deg); } 75% { transform: rotate(22deg); } }
@media (prefers-reduced-motion: reduce) { .egg:hover { animation: none; } }
#egg-dialog .egg-msg { font-family: var(--serif); font-size: 24px; color: var(--gold); margin-top: 14px; }
#egg-dialog .egg-sub { color: #d9d9d9; margin-top: 4px; }
#egg-img { max-height: 70vh; }

/* Sprinkled doodles (camouflage for the acorn easter egg). "desk" ones hide on phones. */
.hero { position: relative; }
.sprinkles { position: absolute; inset: 0; pointer-events: none; }
.sp { position: absolute; width: 30px; height: auto; opacity: 0.4; transform: rotate(var(--r, 0deg)); }
.hero .sp { opacity: 0.42; }
.sp-inline { width: 26px; height: auto; opacity: 0.45; vertical-align: middle; margin-left: 6px; transform: rotate(-10deg); }
.sd-5 { top: 12px; left: 22%; width: 48px; transform: rotate(10deg); }
.sd-6 { bottom: 10px; right: 48%; width: 46px; transform: rotate(-12deg); }
@media (max-width: 699px) { .sp.desk, .sd-6 { display: none; } }

/* Phones (and in-app browsers like Facebook's): let the menu bar scroll away instead of pinning it.
   Facebook's browser misreports the notch spacing, which left the pinned bar stuck mid-screen. */
@media (max-width: 699px) { .topbar { position: relative; top: auto; } }
