/* Licona Team — site styles */
:root {
  --ink: #111;
  --ink-soft: #444;
  --muted: #777;
  --line: #e2e2e2;
  --paper: #fff;
  --paper-alt: #f4f3f1;
  --dark: #151515;
  --accent: #111;
  --overlay: rgba(0, 0, 0, .38);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 92px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.7; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.2; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(40px, 6vw, 70px); }
h2 { font-size: clamp(30px, 3.6vw, 43px); }
h3 { font-size: clamp(22px, 2.2vw, 30px); }
h4 { font-size: 21px; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 860px; }
.center { text-align: center; }
.eyebrow { font-family: var(--sans); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; }
.muted { color: var(--muted); }
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section--alt { background: var(--paper-alt); }
.section--dark { background: var(--dark); color: #fff; }
.section-title { text-align: center; margin-bottom: clamp(32px, 4vw, 56px); }
.section-title h2 { margin-bottom: .25em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn { display: inline-block; font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; padding: 15px 34px; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--light { color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--solid { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--solid:hover { background: #fff; color: var(--ink); }

/* Header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); color: #fff; transition: background .25s, color .25s, height .25s, box-shadow .25s; }
.site-header .wrap { max-width: 1440px; height: 100%; display: flex; align-items: center; gap: 24px; }
.site-header.is-solid, body.no-hero .site-header { background: #fff; color: var(--ink); box-shadow: 0 1px 0 var(--line); --header-h: 76px; }
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 56px; width: auto; }
.logo .logo--dark { display: none; }
.site-header.is-solid .logo .logo--light, body.no-hero .logo .logo--light { display: none; }
.site-header.is-solid .logo .logo--dark, body.no-hero .logo .logo--dark { display: block; }
.nav { margin-left: auto; display: flex; align-items: center; }
.nav > ul { display: flex; list-style: none; margin: 0; padding: 0; }
.nav li { position: relative; }
.nav a, .nav button.link { display: block; padding: 12px 13px; font: 700 12.5px/1 var(--sans); letter-spacing: .15em; text-transform: uppercase; text-decoration: none; color: inherit; background: none; border: 0; cursor: pointer; }
.nav a:hover, .nav button.link:hover { text-decoration: underline; text-underline-offset: 6px; }
.nav .sub { position: absolute; top: 100%; left: 0; min-width: 230px; list-style: none; margin: 0; padding: 8px 0; background: rgba(20, 20, 20, .92); opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .18s; }
.nav li:hover > .sub, .nav li:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.nav .sub a { color: #fff; padding: 14px 18px; }
.hamburger { background: none; border: 0; color: inherit; padding: 12px; cursor: pointer; margin-left: 4px; }
.hamburger span, .hamburger span::before, .hamburger span::after { display: block; width: 26px; height: 2px; background: currentColor; position: relative; }
.hamburger span::before, .hamburger span::after { content: ''; position: absolute; left: 0; }
.hamburger span::before { top: -8px; }
.hamburger span::after { top: 8px; }
@media (max-width: 1100px) { .nav > ul { display: none; } }

/* Drawer */
.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity .25s; }
.drawer.open .drawer__scrim { opacity: 1; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--dark); color: #fff; padding: 28px 36px 40px; overflow-y: auto; transform: translateX(100%); transition: transform .3s ease; }
.drawer.open .drawer__panel { transform: none; }
.drawer__close { background: none; border: 0; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; float: right; }
.drawer nav { clear: both; padding-top: 24px; }
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer li a, .drawer li .grp { display: block; padding: 11px 0; font-family: var(--serif); font-size: 22px; text-decoration: none; }
.drawer li ul a { font-family: var(--sans); font-size: 13px; letter-spacing: .15em; text-transform: uppercase; padding: 8px 0 8px 16px; color: #ccc; }
.drawer .drawer__contact { margin-top: 32px; font-size: 14px; color: #bbb; }
.drawer .drawer__contact a { color: #fff; }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; overflow: hidden; background: #222; }
.hero--page { min-height: 62vh; min-height: 62svh; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: var(--overlay); }
.hero__content { position: relative; z-index: 1; padding: var(--header-h) var(--gutter) 40px; max-width: 980px; }
.hero__content h1 { margin-bottom: .3em; }
.hero__content p { font-family: var(--serif); font-size: 18px; }
.hero__tag { font: 700 13px/1.6 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.hero-search { margin: 36px auto 0; max-width: 460px; display: flex; background: #fff; }
.hero-search input { flex: 1; border: 0; padding: 16px 18px; font: 15px var(--sans); min-width: 0; }
.hero-search button { border: 0; background: var(--ink); color: #fff; padding: 0 22px; font: 700 12px var(--sans); letter-spacing: .18em; text-transform: uppercase; cursor: pointer; }

/* Media + text (about) */
.media-text { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; background: #000; color: #fff; }
.media-text img { width: 100%; height: 100%; object-fit: cover; }
.media-text__body { padding: clamp(40px, 6vw, 96px); display: flex; flex-direction: column; justify-content: center; background: rgba(0, 0, 0, .88); }
@media (max-width: 860px) { .media-text { grid-template-columns: 1fr; } .media-text img { height: 360px; } }

/* Awards */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.stat { padding: 32px 20px; text-align: center; border-bottom: 1px solid var(--line); }
.stat b { display: block; font: 400 30px/1.2 var(--serif); margin-bottom: 8px; }
.stat span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }

/* Listing cards */
.grid { display: grid; gap: clamp(24px, 3vw, 44px); }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.card { text-decoration: none; color: inherit; display: block; }
.card__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #ddd; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card__img img { transform: scale(1.04); }
.card__badge { position: absolute; top: 0; right: 0; background: var(--ink); color: #fff; font: 700 11px/1 var(--sans); letter-spacing: .15em; text-transform: uppercase; padding: 9px 16px; }
.card__body { text-align: center; padding: 20px 8px 0; }
.card__title { font-family: var(--serif); font-size: 19px; line-height: 1.4; margin-bottom: 6px; }
.card__addr, .card__facts { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.card__facts { color: var(--ink-soft); margin-top: 4px; }
.card__price { font-weight: 700; margin-top: 6px; letter-spacing: .05em; }
.section--dark .card__facts { color: #bbb; }

.filters { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 40px; }
.filters input, .filters select { font: 14px var(--sans); padding: 12px 14px; border: 1px solid #ccc; background: #fff; min-width: 0; }
.filters input { flex: 1 1 260px; max-width: 420px; }
.pager { text-align: center; margin-top: 48px; }

/* Testimonials */
.quote-slider { position: relative; max-width: 900px; margin: 0 auto; text-align: center; }
.quote-slide { display: none; }
.quote-slide.active { display: block; animation: fade .5s; }
.quote-slide blockquote { margin: 0; font-family: var(--serif); font-size: clamp(18px, 2vw, 23px); line-height: 1.6; }
.quote-slide cite { display: block; margin-top: 24px; font: 700 12px var(--sans); letter-spacing: .2em; text-transform: uppercase; font-style: normal; }
.quote-nav { margin-top: 28px; display: flex; gap: 12px; justify-content: center; }
.quote-nav button { background: none; border: 1px solid currentColor; width: 44px; height: 44px; cursor: pointer; font-size: 18px; color: inherit; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.t-grid { columns: 2 380px; column-gap: 32px; }
.t-card { break-inside: avoid; background: var(--paper-alt); padding: 32px; margin-bottom: 32px; }
.t-card:nth-child(even) { background: #fff; border: 1px solid var(--line); }
.t-card h3 { margin: 0; font-size: 24px; }
.t-card .role { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.t-card p { margin-top: 14px; }
.t-card img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin-bottom: 12px; }

/* CTA band */
.cta { position: relative; color: #fff; text-align: center; padding: clamp(90px, 12vw, 170px) 0; overflow: hidden; background: #333; }
.cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.cta .wrap { position: relative; z-index: 1; max-width: 760px; }
.cta h2::after { content: ''; display: block; width: 80px; height: 1px; background: #fff; margin: 22px auto 0; }

/* Team */
.team-card { text-align: center; text-decoration: none; }
.team-card .card__img { aspect-ratio: 4 / 5; }
.team-card h3 { font-size: 24px; margin: 18px 0 4px; }
.team-card .role { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.agent { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.agent__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.details { list-style: none; margin: 24px 0; padding: 0; }
.details li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.details strong { display: inline-block; min-width: 110px; font-size: 11.5px; letter-spacing: .15em; text-transform: uppercase; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; list-style: none; padding: 0; margin: 16px 0 0; }
.socials a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid currentColor; text-decoration: none; font-size: 11px; font-weight: 700; }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
@media (max-width: 800px) { .agent { grid-template-columns: 1fr; } }

/* Listing detail */
.gallery { position: relative; height: 100vh; height: 100svh; min-height: 520px; background: #000; overflow: hidden; }
.gallery__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; }
.gallery__slide.active { opacity: 1; }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .75), rgba(0, 0, 0, 0) 55%); pointer-events: none; }
.gallery__info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; color: #fff; padding: 0 var(--gutter) 48px; text-align: center; }
.gallery__info h1 { font-size: clamp(26px, 3.4vw, 42px); max-width: 1000px; margin: 12px auto 8px; }
.gallery__label { display: inline-block; background: #fff; color: var(--ink); font: 700 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; padding: 9px 14px; }
.gallery__price { font: 700 20px var(--sans); letter-spacing: .06em; }
.gallery__arrow { position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); background: rgba(0, 0, 0, .35); color: #fff; border: 0; width: 52px; height: 52px; font-size: 22px; cursor: pointer; }
.gallery__arrow--prev { left: 12px; }
.gallery__arrow--next { right: 12px; }
.gallery__count { position: absolute; top: calc(var(--header-h) + 12px); right: var(--gutter); z-index: 3; color: #fff; font-size: 12px; letter-spacing: .15em; }
.gallery__all { position: absolute; top: calc(var(--header-h) + 4px); left: var(--gutter); z-index: 3; }
.listing-bar { border-bottom: 1px solid var(--line); }
.listing-bar .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; }
.listing-bar div { padding: 22px 32px; text-align: center; }
.listing-bar b { display: block; font: 400 24px var(--serif); }
.listing-bar span { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.prose { font-size: 16.5px; }
.prose h2, .prose h3 { margin-top: 1.4em; }
.prose a { text-underline-offset: 3px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px 56px; }
.features h3 { font-size: 22px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.features dl { margin: 0 0 24px; }
.features dl div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.features dt { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.features dd { margin: 0; }
.pull-quote { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 32px); line-height: 1.5; text-align: center; max-width: 900px; margin: 0 auto; }
.agent-strip { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; justify-content: center; }
.agent-strip img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; }
.map { height: 420px; background: #eee; }
.tour-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .95); display: none; overflow-y: auto; padding: 70px var(--gutter) 40px; }
.lightbox.open { display: block; }
.lightbox__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 12px; max-width: 1500px; margin: 0 auto; }
.lightbox__close { position: fixed; top: 14px; right: 20px; background: none; border: 0; color: #fff; font-size: 40px; cursor: pointer; }

/* Mortgage calculator */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.calc label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; margin: 16px 0 6px; }
.calc input, .calc select { width: 100%; padding: 12px; font: 15px var(--sans); background: transparent; color: inherit; border: 1px solid #666; }
.calc select option { color: #000; }
.calc__result b { display: block; font: 400 48px var(--serif); margin: 8px 0 16px; }
.calc__rows div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #444; font-size: 14px; }
@media (max-width: 800px) { .calc { grid-template-columns: 1fr; } }

/* Forms */
.form { display: grid; gap: 14px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form input, .form textarea, .form select { width: 100%; padding: 14px 16px; font: 15px var(--sans); border: 1px solid #bbb; background: #fff; color: var(--ink); }
.form textarea { min-height: 130px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.form .consent { font-size: 12px; color: var(--muted); line-height: 1.5; }
.form .status { font-size: 14px; min-height: 1.4em; }
.form .status.ok { color: #1c6b34; }
.form .status.err { color: #a11; }
.section--dark .form .status.ok { color: #9fe0b0; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 150; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .6); }
.modal.open { display: flex; }
.modal__box { background: #fff; max-width: 620px; width: 100%; max-height: 92vh; overflow-y: auto; padding: clamp(28px, 4vw, 48px); position: relative; }
.modal__close { position: absolute; top: 10px; right: 14px; background: none; border: 0; font-size: 32px; cursor: pointer; }

/* Neighborhoods */
.hood-card { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; color: #fff; text-decoration: none; }
.hood-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.hood-card:hover img { transform: scale(1.05); }
.hood-card::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .35); }
.hood-card div { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding: 16px; }
.hood-card h3 { margin: 0; }

/* Video grid */
.video-card { display: block; text-decoration: none; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: inherit; font: inherit; width: 100%; }
.video-card .card__img::after { content: '▶'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 44px; background: rgba(0, 0, 0, .2); }
.video-card h3 { font-size: 18px; margin-top: 14px; }
.video-embed { width: 100%; aspect-ratio: 16 / 9; border: 0; }

/* Blog */
.post-card h3 { font-size: 24px; margin: 18px 0 6px; }
.post-meta { font-size: 11.5px; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 28px; font-size: 13.5px; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 2fr; gap: 40px; }
.footer-grid h2 { font-size: 28px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.footer-cols strong { display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 6px; }
.footer-cols a { text-decoration: none; }
.footer-cols a:hover { text-decoration: underline; }
.broker { display: flex; gap: 28px; align-items: flex-start; margin-top: 36px; flex-wrap: wrap; }
.broker img.exp { width: 120px; }
.broker ul { list-style: none; margin: 8px 0; padding: 0; }
.broker ul a { text-underline-offset: 3px; }
.broker .icons { display: flex; gap: 10px; margin-top: 12px; }
.broker .icons img { height: 34px; width: auto; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: var(--muted); font-size: 12.5px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }

/* Misc */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; list-style: none; padding: 0; }
.steps li { background: var(--paper-alt); padding: 28px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compare > div { border: 1px solid var(--line); padding: 28px; }
.compare ul { padding-left: 18px; }
@media (max-width: 700px) { .compare { grid-template-columns: 1fr; } }
.notice { background: var(--paper-alt); border-left: 3px solid var(--ink); padding: 18px 22px; font-size: 14px; }
.embed-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 24px; }
/* CMS content that wraps headings in list items (e.g. numbered steps) */
.prose li:has(> h2, > h3, > h4) { list-style: none; }
.prose ul:has(> li > h2, > li > h3, > li > h4) { padding-left: 0; }
.prose li > h4 { margin: 1.2em 0 .3em; }
