/* assets/home.css — homepage (inspired by the original site) and About page */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;600;700;800&display=swap');

.home-page { --purple: #4105f5; --purple-dark: #2c02b0; --navy: #02234f; --cream: #F2E2B8; --ink: #1d2433; --muted: #5b6577; --line: #e7e8f0; }
.home-page main * { font-family: "Raleway", sans-serif; }
.home-wrap { max-width: 1160px; margin: 0 auto; padding: 84px 20px 48px; }
.home-wrap .notice { margin-top: 0; }
.home-wrap svg { width: 1em; height: 1em; flex-shrink: 0; }

/* Pill buttons, like the original */
.pill { display: inline-flex; align-items: center; gap: .4rem; padding: 10px 26px; background: var(--purple); color: #fff !important;
    border-radius: 5rem; font-weight: 600; font-size: .95rem; border: 2px solid var(--purple); transition: background .15s, border-color .15s, transform .15s; }
.pill:hover { background: #FF0080; border-color: #FF0080; transform: translateY(-1px); }
.pill.small { padding: 7px 18px; font-size: .88rem; }

/* ---------- 1. Hero ---------- */
.hero-photo { position: relative; min-height: 500px; border-radius: 1.75rem; overflow: hidden; display: flex; flex-direction: column;
    justify-content: center; background: url('../images/image.jpg') center 40% / cover no-repeat; box-shadow: 0 20px 50px -24px rgba(20,10,80,.45); }
.hero-photo::before { content: ""; position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(10,6,36,.82) 0%, rgba(10,6,36,.55) 42%, rgba(10,6,36,.08) 78%); }
.hero-copy { position: relative; padding: 48px 48px 24px; max-width: 640px; }
.hero-chip { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: #fff; padding: 6px 12px;
    border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(6px); margin-bottom: 1rem; }
.hero-photo h1 { color: var(--cream); font-size: 3.1rem; font-weight: 800; line-height: 1.08; letter-spacing: -.01em; margin-bottom: .8rem; }
.hero-photo p { color: rgba(255,255,255,.9); font-size: 1.1rem; line-height: 1.55; margin-bottom: 1.4rem; max-width: 500px; }
.hero-search { display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 999px; padding: 6px 6px 6px 18px;
    box-shadow: 0 12px 32px rgba(0,0,0,.25); max-width: 600px; }
.hero-search .hs-icon { color: #8a91a3; display: flex; font-size: 1.1rem; }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 1rem; padding: 10px 4px; color: var(--ink); background: transparent; }
.hero-search select { border: 0; border-left: 1px solid var(--line); background: transparent; font-size: .92rem; color: var(--ink);
    padding: 10px 8px; outline: 0; cursor: pointer; max-width: 150px; }
.hero-search button { border: 0; background: var(--purple); color: #fff; font-weight: 700; font-size: .95rem; padding: 12px 24px;
    border-radius: 999px; cursor: pointer; transition: background .15s; }
.hero-search button:hover { background: #FF0080; }
.hero-links { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-top: 1.1rem; }
.hero-links > a:first-child { color: #fff; font-weight: 600; font-size: .95rem; display: inline-flex; align-items: center; gap: .4rem;
    border-bottom: 1px solid rgba(255,255,255,.4); padding-bottom: 2px; }
.hero-links > a:first-child:hover { border-color: var(--cream); color: var(--cream); }
.hero-stats { position: relative; display: flex; gap: 0; margin: 8px 48px 36px; background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22); border-radius: 16px; backdrop-filter: blur(10px); max-width: 560px; }
.hero-stats div { flex: 1; padding: 14px 18px; display: flex; flex-direction: column; gap: 2px; }
.hero-stats div + div { border-left: 1px solid rgba(255,255,255,.18); }
.hero-stats strong { color: #fff; font-size: 1.45rem; font-weight: 800; }
.hero-stats span { color: rgba(255,255,255,.8); font-size: .8rem; }

/* ---------- 2. Who we are ---------- */
.who { display: grid; grid-template-columns: 1fr 1.05fr; gap: 3.5rem; align-items: center; padding: 5rem 0 3.5rem; }
.who-media { position: relative; }
.who-img { width: 100%; border-radius: 3rem 0 3rem 3rem; object-fit: cover; aspect-ratio: 4 / 3.4; box-shadow: 0 24px 48px -28px rgba(2,35,79,.5); }
.who-badge { position: absolute; right: -18px; bottom: 28px; background: #fff; border-radius: 16px; padding: 14px 18px; max-width: 230px;
    box-shadow: 0 14px 34px rgba(2,35,79,.18); display: flex; flex-direction: column; gap: 3px; border-left: 4px solid var(--purple); }
.who-badge strong { color: var(--navy); font-size: 1.05rem; }
.who-badge span { color: var(--muted); font-size: .82rem; line-height: 1.4; }
.who-text .eyebrow { font-size: .85rem; text-transform: uppercase; font-weight: 700; color: var(--purple); letter-spacing: .12em; }
.who-text h2 { font-size: 2.1rem; font-weight: 800; color: var(--navy); margin: .35rem 0 .2rem; letter-spacing: -.01em; }
.who-text p { font-size: 1rem; line-height: 1.7; color: #3f4a5e; margin: .8rem 0; }
.who-text .criteria-lead { color: var(--navy); font-weight: 700; margin-top: 1.2rem; }
.criteria-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: .6rem 0 1.1rem; }
.crit { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: linear-gradient(180deg, #fff, #f8f7ff); display: flex; flex-direction: column; }
.crit span { font-size: .82rem; color: var(--muted); font-weight: 600; }
.crit strong { font-size: 1.5rem; color: var(--purple); font-weight: 800; line-height: 1.2; }
.crit em { font-style: normal; font-size: .75rem; color: #1d1d2b; font-weight: 700; }

/* ---------- 3. Tools ---------- */
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 1.5rem; border-radius: 1.5rem;
    background: linear-gradient(135deg, #f4f1ff 0%, #eef3ff 100%); margin-bottom: 4rem; }
.tool { background: #fff; border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--ink);
    border: 1px solid transparent; transition: transform .15s, box-shadow .15s, border-color .15s; }
.tool:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -16px rgba(65,5,245,.45); border-color: #dcd3ff; }
.tool-icon { width: 42px; height: 42px; border-radius: 12px; background: #efeaff; color: var(--purple); display: flex; align-items: center;
    justify-content: center; font-size: 1.35rem; margin-bottom: 6px; }
.tool strong { font-size: 1.08rem; color: var(--navy); }
.tool > span:last-child { font-size: .9rem; color: var(--muted); line-height: 1.5; }

/* ---------- 4. Available apartments ---------- */
.avail-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.avail-head h2 { font-size: 2rem; font-weight: 800; color: var(--navy); letter-spacing: -.01em; }
.avail-head p { color: var(--muted); font-size: .92rem; margin-top: .25rem; display: flex; align-items: center; gap: .5rem; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #22b35e; box-shadow: 0 0 0 4px rgba(34,179,94,.18); }
.see-all { color: var(--purple); font-weight: 700; display: inline-flex; align-items: center; gap: .35rem; }
.county-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 1.4rem; scrollbar-width: thin; }
.county-chips a { flex: 0 0 auto; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--navy);
    font-size: .88rem; font-weight: 600; background: #fff; transition: all .15s; }
.county-chips a:hover { border-color: var(--purple); color: var(--purple); background: #f6f3ff; }

.home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.home-card { background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column;
    cursor: pointer; transition: transform .18s, box-shadow .18s; box-shadow: 0 2px 8px rgba(2,35,79,.05); }
.home-card:hover, .home-card:focus-visible { transform: translateY(-4px); box-shadow: 0 22px 40px -22px rgba(2,35,79,.45); outline: none; }
.home-card-photo { position: relative; aspect-ratio: 16 / 10.5; background: linear-gradient(135deg, var(--purple), #1d0372); overflow: hidden; }
.home-card-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.home-card:hover .home-card-photo img { transform: scale(1.04); }
.home-card-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 45%); pointer-events: none; }
.home-card-photo .ph-city { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff;
    font-weight: 700; font-size: 1.15rem; letter-spacing: .02em; }
.home-card-photo img + .ph-city { display: none; }
.home-card-photo .ph-price { position: absolute; left: 14px; bottom: 12px; z-index: 2; color: #fff; font-size: 1.35rem; font-weight: 800;
    text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.home-card-photo .ph-count { position: absolute; right: 12px; bottom: 14px; z-index: 2; color: #fff; font-size: .75rem; font-weight: 600;
    background: rgba(0,0,0,.45); padding: 3px 9px; border-radius: 999px; }
.home-card-photo .ph-due { position: absolute; left: 12px; top: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 5px;
    background: #fff; color: #8a4b00; font-size: .76rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.home-card-photo .save-btn { left: auto; right: 12px; top: 12px; }
.home-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.home-card .name { font-size: 1.1rem; font-weight: 700; color: var(--navy); line-height: 1.3; margin: 0; }
.home-card .address { font-size: .88rem; color: var(--muted); display: flex; gap: 5px; align-items: flex-start; margin: 0; }
.home-card .address svg { margin-top: 2px; color: var(--purple); }
.home-card .pills { display: flex; gap: 6px; flex-wrap: wrap; }
.home-card .pills span { font-size: .78rem; font-weight: 600; color: var(--purple); background: #f1edff; padding: 4px 10px; border-radius: 999px; }
.card-actions { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
    border-top: 1px solid var(--line); flex-wrap: wrap; }
.details-btn { border: 1.5px solid var(--purple); background: #fff; color: var(--purple); font-weight: 600; font-size: .9rem; padding: 8px 16px;
    border-radius: 999px; cursor: pointer; transition: all .15s; }
.details-btn:hover { background: var(--purple); color: #fff; }
.apply-link { color: var(--purple) !important; font-weight: 700; font-size: .9rem; display: inline-flex; align-items: center; gap: .3rem; }
.apply-link:hover { color: #FF0080 !important; }
.home-card .mt-note { font-size: .72rem; width: 100%; text-align: right; }
.home-note { color: var(--muted); font-size: .82rem; margin-top: 1.2rem; line-height: 1.5; }
.home-note a { color: var(--purple); }
.more-link { text-align: center; margin-top: 1.6rem; }

/* About page */
.about-photo { border-radius: 14px; max-height: 320px; object-fit: cover; margin: .6rem 0 .4rem; }
.plain-list { list-style: disc; padding-left: 1.3rem; }
.plain-list li { list-style: disc; margin: .35rem 0; }

/* ---------- smaller screens ---------- */
@media (max-width: 900px) {
    .who { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 3.5rem; }
    .who-badge { right: 12px; }
    .tools { grid-template-columns: 1fr; }
    .hero-photo h1 { font-size: 2.5rem; }
}
@media (max-width: 600px) {
    .home-wrap { padding: 74px 14px 40px; }
    .hero-photo { border-radius: 1.25rem; min-height: 0; }
    .hero-photo::before { background: linear-gradient(180deg, rgba(10,6,36,.55) 0%, rgba(10,6,36,.85) 100%); }
    .hero-copy { padding: 32px 20px 12px; }
    .hero-photo h1 { font-size: 2rem; }
    .hero-photo p { font-size: 1rem; }
    .hero-search { flex-wrap: wrap; border-radius: 18px; padding: 10px; }
    .hero-search .hs-icon { display: none; }
    .hero-search input { flex: 1 1 100%; border-bottom: 1px solid var(--line); padding: 10px 8px; }
    .hero-search select { border-left: 0; flex: 1; max-width: none; }
    .hero-search button { flex: 1; }
    .hero-stats { margin: 8px 20px 24px; }
    .hero-stats div { padding: 10px 12px; }
    .hero-stats strong { font-size: 1.15rem; }
    .hero-stats span { font-size: .72rem; }
    .who-text h2, .avail-head h2 { font-size: 1.65rem; }
    .crit strong { font-size: 1.25rem; }
    .tools { padding: 1rem; margin-bottom: 3rem; }
}
