/* ============================================================
   Homepage template — pairs with foundation.css
   ============================================================ */

/* ---- hero ---- */
.hp-hero{background:var(--surface-alt);border-bottom:1px solid var(--outline)}
.hp-hero-grid{max-width:var(--container);margin:0 auto;padding:3.5rem 2rem;display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:center}
.hp-hero h1{font-family:var(--display);font-weight:600;font-size:2.7rem;line-height:1.12;margin-bottom:1rem;color:var(--on-surface)}
.hp-hero h1 em{font-style:normal;color:var(--primary)}
.hp-hero-sub{font-size:1.05rem;color:var(--on-surface-variant);margin-bottom:1.75rem;max-width:480px}
.hp-search{position:relative;margin-bottom:1rem;max-width:520px}
.hp-search-row{display:flex;gap:0;background:var(--surface);border:1px solid var(--outline-strong);border-radius:10px;overflow:hidden}
.hp-search-row input{flex:1;border:none;padding:.9rem 1.1rem;font-family:var(--sans);font-size:.95rem;background:transparent}
.hp-search-row input:focus{outline:none}
.hp-search-row button{background:var(--primary);border:none;color:#fff;padding:0 1.3rem;cursor:pointer;display:flex;align-items:center}
.hp-search-row button:hover{background:var(--primary-dark)}
.hp-search-results{position:absolute;top:calc(100% + 6px);left:0;right:0;background:var(--surface);border:1px solid var(--outline-strong);border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,.08);z-index:50;max-height:340px;overflow-y:auto;display:none}
.hp-search-results.open{display:block}
.hp-search-results a{display:flex;flex-direction:column;padding:.7rem 1rem;border-bottom:1px solid var(--outline)}
.hp-search-results a:last-child{border-bottom:none}
.hp-search-results a:hover{background:var(--surface-container)}
.hp-search-results .r-title{font-size:.9rem;font-weight:700;color:var(--on-surface)}
.hp-search-results .r-cat{font-size:.76rem;color:var(--on-surface-variant)}
.hp-search-results .r-empty{padding:.9rem 1rem;font-size:.85rem;color:var(--on-surface-variant)}
.hp-popular{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;font-size:.85rem;color:var(--on-surface-variant)}
.hp-popular .pill{background:var(--surface);border:1px solid var(--outline-strong);border-radius:20px;padding:.35rem .9rem;font-size:.82rem}
.hp-popular .pill:hover{border-color:var(--primary);color:var(--primary)}
.hp-hero-img{border-radius:16px;overflow:hidden}
.hp-hero-img img{width:100%;height:100%;object-fit:cover}

@media(max-width:860px){
    .hp-hero-grid{grid-template-columns:1fr}
    .hp-hero-img{order:-1}
    .hp-hero h1{font-size:2.1rem}
}

/* ---- sections ---- */
.hp-section{padding:3.5rem 2rem;max-width:var(--container);margin:0 auto}
.hp-section-head{margin-bottom:1.75rem}
.hp-section-head h2{font-size:1.7rem;margin-bottom:.3rem}
.hp-section-head p{color:var(--on-surface-variant);font-size:.95rem}
.hp-section-head-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem}
.hp-view-all{font-weight:700;font-size:.9rem;color:var(--primary)}

/* explore by pet */
.pet-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.25rem}
.pet-card{border:1px solid var(--outline);border-radius:14px;padding:1.5rem;background:var(--surface)}
.pet-card img{width:100%;height:150px;object-fit:cover;border-radius:10px;margin-bottom:1rem}
.pet-card .pet-icon{font-size:1.4rem;margin-bottom:.4rem}
.pet-card h3{font-size:1.1rem;margin-bottom:.35rem}
.pet-card p{font-size:.85rem;color:var(--on-surface-variant);margin-bottom:.75rem}
.pet-card a{font-weight:700;font-size:.85rem;color:var(--primary)}
@media(max-width:900px){.pet-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.pet-grid{grid-template-columns:1fr}}

/* symptoms / emergency two-col */
.symptom-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:1.5rem}
@media(max-width:900px){.symptom-grid{grid-template-columns:1fr}}
.symptom-panel{background:var(--surface-container);border-radius:14px;padding:1.75rem}
.symptom-panel h2{font-size:1.3rem;margin-bottom:.2rem}
.symptom-panel > p{font-size:.86rem;color:var(--on-surface-variant);margin-bottom:1.1rem}
.az-row{display:flex;flex-wrap:wrap;gap:.4rem;margin-bottom:1.25rem}
.az-row a{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:7px;background:var(--surface);border:1px solid var(--outline-strong);font-size:.82rem;font-weight:700;color:var(--on-surface-variant)}
.az-row a:hover{border-color:var(--primary);color:var(--primary)}
.symptom-list{display:grid;grid-template-columns:repeat(4,1fr);gap:.75rem 1rem}
.symptom-list a{display:flex;align-items:center;gap:.5rem;font-size:.87rem;color:var(--on-surface)}
.symptom-list a:hover{color:var(--primary)}
.symptom-list .more{font-weight:700;color:var(--primary)}
@media(max-width:700px){.symptom-list{grid-template-columns:repeat(2,1fr)}}

.emergency-panel{background:var(--danger-bg);border:1px solid var(--danger-border);border-radius:14px;padding:1.75rem;display:flex;flex-direction:column}
.emergency-panel h2{font-size:1.3rem;color:var(--danger);margin-bottom:.2rem}
.emergency-panel > p{font-size:.86rem;color:var(--on-surface-variant);margin-bottom:1.1rem}
.emergency-list{margin-bottom:1.5rem;flex:1}
.emergency-list li{display:flex;align-items:center;gap:.6rem;font-size:.88rem;font-weight:600;color:var(--on-surface);padding:.4rem 0;border-bottom:1px dashed var(--danger-border)}
.emergency-list li:last-child{border-bottom:none}
.emergency-list .icon{color:var(--danger);flex-shrink:0}

/* conditions */
.conditions-grid{display:grid;grid-template-columns:1fr 1fr 1.3fr;gap:1.25rem}
@media(max-width:900px){.conditions-grid{grid-template-columns:1fr}}
.condition-hub-card{border:1px solid var(--outline);border-radius:12px;padding:1.4rem}
.condition-hub-card h3{font-size:1.02rem;margin-bottom:.25rem}
.condition-hub-card p{font-size:.83rem;color:var(--on-surface-variant)}
.condition-tags{border:1px solid var(--outline);border-radius:12px;padding:1.4rem;display:grid;grid-template-columns:1fr 1fr;gap:.7rem 1.2rem;align-content:start}
.condition-tags a{font-size:.87rem;display:flex;align-items:center;gap:.5rem;color:var(--on-surface)}
.condition-tags a:hover{color:var(--primary)}
.condition-tags .more-conditions{grid-column:1/-1;font-weight:700;color:var(--primary)}

/* journal */
.journal-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.25rem}
@media(max-width:900px){.journal-grid{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.journal-grid{grid-template-columns:1fr}}
.journal-card img{width:100%;height:130px;object-fit:cover;border-radius:10px;margin-bottom:.9rem}
.journal-card .cat-badge{display:inline-block;font-size:.7rem;font-weight:700;color:#fff;background:var(--primary);padding:.2rem .55rem;border-radius:4px;margin-bottom:.6rem;text-transform:uppercase;letter-spacing:.03em}
.journal-card h3{font-size:1rem;margin-bottom:.5rem;line-height:1.35}
.journal-card a.read-more{font-size:.85rem;font-weight:700;color:var(--primary)}
