/* Farm Kart: project cards, detail modals, contact photo */

.section-head .lead { max-width: 440px; }

.btn.ghost { background: transparent; color: var(--forest-800); box-shadow: inset 0 0 0 1.5px var(--pill-line); }
.btn.ghost:hover { background: var(--pill-bg); box-shadow: inset 0 0 0 1.5px var(--green-500); }

/* Project cards */
.projects { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 50px; }
.project {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
.project:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.project .media { position: relative; aspect-ratio: 1; margin: 10px 10px 0; border-radius: calc(var(--radius-lg) - 8px); overflow: hidden; background: var(--sage-50); }
.project .media img { width: 100%; height: 100%; object-fit: contain; transition: transform 1s var(--ease); }
.project:hover .media img { transform: scale(1.04); }
.project .media .badge { position: absolute; top: 12px; left: 12px; text-transform: uppercase; letter-spacing: .04em; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .4); }
.project .media .badge:not(.closed):not(.soon) { background: var(--lime-400); color: var(--forest-900); }
.project .body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.project h3 { font-size: 22px; color: var(--forest-800); margin-bottom: 6px; }
.project .price { font-family: var(--font-head); font-weight: 800; font-size: 26px; letter-spacing: -0.03em; color: var(--green-600); margin: 0 0 14px; line-height: 1.1; }
.facts { margin: 0 0 20px; display: grid; gap: 0; border-top: 1px solid var(--line); flex: 1; align-content: start; }
.facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts dt { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-500); }
.facts dt svg { width: 16px; height: 16px; color: var(--green-500); }
.facts dd { margin: 0; font-weight: 600; color: var(--ink-900); text-align: right; }
.project .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.project .actions .btn { padding: 12px 16px; font-size: 15px; flex: 1 1 auto; justify-content: center; }
@media (max-width: 1100px) { .projects { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .projects { grid-template-columns: 1fr; } }

.timeline .tl-item h3 { margin: 0; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.3; }
.timeline .tl-item .card-body { min-height: 48px; display: flex; align-items: center; padding: 16px 22px; }
.contact-form textarea { height: 150px; }

/* Contact info photo (replaces the map on this page) */
.contact-photo { margin-top: auto; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Detail modals */
html.modal-open { overflow: hidden; }
.project-modal {
    width: min(980px, calc(100% - 32px));
    max-height: min(88vh, 900px);
    padding: 0;
    border: 0;
    border-radius: var(--radius-xl);
    background: var(--white);
    color: var(--ink-700);
    box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .6);
    overflow: hidden;
}
.project-modal[open] { display: flex; animation: modalIn .45s var(--ease); }
.project-modal::backdrop { background: rgba(5, 18, 10, .62); backdrop-filter: blur(4px); }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-shell { display: flex; flex-direction: column; width: 100%; max-height: inherit; overflow-y: auto; overscroll-behavior: contain; }
.modal-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px clamp(20px, 3vw, 32px); background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.modal-kicker { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--green-500); margin-bottom: 4px; }
.modal-head h2 { font-size: clamp(26px, 3vw, 36px); color: var(--green-600); margin: 0; }
.modal-close { flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--forest-800); display: grid; place-items: center; cursor: pointer; transition: background .25s, color .25s, transform .3s var(--ease); }
.modal-close:hover { background: var(--green-600); color: #fff; transform: rotate(90deg); }
.modal-close svg { width: 20px; height: 20px; }
.modal-body { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(20px, 3vw, 36px); padding: clamp(20px, 3vw, 32px); }
.modal-media { align-self: start; position: sticky; top: 100px; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1; background: var(--sage-50); }
.modal-media img { width: 100%; height: 100%; object-fit: cover; }
.modal-text { font-size: 16px; color: var(--ink-500); }
.modal-text p { margin-bottom: 1em; }
.modal-text .btn { margin-top: 8px; }
.modal-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 0 0 22px; }
.modal-facts > div { background: var(--sage-50); border-radius: var(--radius); padding: 12px 14px; }
.modal-facts dt { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-500); }
.modal-facts dd { margin: 2px 0 0; font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--forest-800); letter-spacing: -0.02em; }
.covers-label { font-weight: 600; color: var(--ink-900); margin-bottom: .6em !important; }
.covers { list-style: none; padding: 0; margin: 0 0 1.2em; display: flex; flex-wrap: wrap; gap: 8px; }
.covers li { padding: 6px 14px; border-radius: 999px; background: var(--pill-bg); border: 1px solid var(--pill-line); color: var(--forest-700); font-size: 14.5px; font-weight: 500; }
.covers.ticks li { background: #fff; }
.pay-box { background: var(--forest-900); color: #fff; border-radius: var(--radius-lg); padding: 20px 22px; margin: 6px 0 16px; }
.pay-intro { display: flex; align-items: center; gap: 10px; margin: 0 0 12px !important; color: rgba(255, 255, 255, .85); font-size: 15px; }
.pay-intro svg { width: 20px; height: 20px; color: var(--lime-400); flex-shrink: 0; }
.pay-rows { margin: 0; display: grid; gap: 0; }
.pay-rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.pay-rows dt { color: rgba(255, 255, 255, .65); font-size: 14.5px; }
.pay-rows dd { margin: 0; font-family: var(--font-head); font-weight: 700; color: var(--lime-300); text-align: right; letter-spacing: -0.01em; }
.nb { font-size: 15px; }
.nb b { color: var(--ink-900); font-weight: 600; }
.nb a { color: var(--green-600); text-decoration: underline; text-underline-offset: 3px; }
.insured { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--forest-700); }
.insured svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--green-500); margin-top: 2px; }
@media (max-width: 760px) {
    .project-modal { width: calc(100% - 16px); max-height: 92vh; border-radius: var(--radius-lg); }
    .modal-body { grid-template-columns: 1fr; }
    .modal-media { position: static; max-width: 300px; }
    .pay-rows > div { flex-direction: column; gap: 2px; }
    .pay-rows dd { text-align: left; }
}
