/*
Theme Name: KindHands
Theme URI: https://kindhands.org
Description: Кастомная тема для волонтерского приюта животных
Version: 1.0
Author: KindHands Team
Text Domain: kindhands
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent: #009de8;
  --accent-hover: #007fc0;
  --text: #1a1a1a;
  --muted: #666;
  --bg: #fff;
  --card-bg: #f9f9f9;
  --border: #e5e5e5;
  --radius: 12px;
  --shadow: 0 2px 16px rgba(0,0,0,.08);
}

body { font-family: 'Inter', system-ui, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section--gray { background: var(--card-bg); }

/* ── Buttons ── */
.btn { display: inline-block; padding: 12px 28px; border-radius: 8px; font-weight: 600; font-size: 1rem; cursor: pointer; transition: background .2s, transform .1s; border: none; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn--outline:hover { background: var(--accent); color: #fff; }

/* ── Header ── */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--border); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.site-logo { display: flex; align-items: center; gap: 10px; }
.site-logo__text { font-size: 1.2rem; font-weight: 800; color: var(--accent); line-height: 1; }
.site-logo .custom-logo-link { display: flex; align-items: center; }
.site-logo .custom-logo { height: 40px; width: auto; max-width: 160px; display: block; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { font-size: .95rem; font-weight: 500; color: var(--muted); transition: color .2s; }
.site-nav a:hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); transition: .3s; }

/* ── Hero ── */
.hero { background: linear-gradient(135deg, #e6f6fd 0%, #fff 60%); padding: 80px 0; }
.hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero__tag { display: inline-block; background: #d6eefa; color: var(--accent); font-size: .8rem; font-weight: 700; padding: 4px 12px; border-radius: 20px; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .05em; }
.hero__title { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.hero__title em { color: var(--accent); font-style: normal; }
.hero__desc { font-size: 1.1rem; color: var(--muted); margin-bottom: 32px; max-width: 480px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__image img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ── Section titles ── */
.section-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; }
.section-subtitle { color: var(--muted); margin-bottom: 40px; }

/* ── Cards grid ── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }

/* ── Animal card ── */
.animal-card { background: var(--bg); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s; }
.animal-card:hover { transform: translateY(-4px); }
.animal-card__img { aspect-ratio: 4/3; overflow: hidden; }
.animal-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.animal-card:hover .animal-card__img img { transform: scale(1.04); }
.animal-card__body { padding: 20px; }
.animal-card__name { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.animal-card__meta { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.animal-card__status { display: inline-block; font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 20px; margin-bottom: 14px; }
.animal-card__status--looking { background: #d6eefa; color: var(--accent); }
.animal-card__status--adopted { background: #e0f5e9; color: #1a7a3c; }
.animal-card__actions { display: flex; gap: 10px; }

/* ── News card ── */
.news-card { background: var(--bg); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s; }
.news-card:hover { transform: translateY(-4px); }
.news-card__img { aspect-ratio: 16/9; overflow: hidden; }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; }
.news-card__body { padding: 20px; }
.news-card__date { font-size: .8rem; color: var(--muted); margin-bottom: 8px; }
.news-card__title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.news-card__excerpt { font-size: .9rem; color: var(--muted); }
.news-card__link { display: inline-block; margin-top: 14px; font-size: .9rem; font-weight: 600; color: var(--accent); }

/* ── CTA block ── */
.cta-block { background: var(--accent); color: #fff; text-align: center; padding: 72px 20px; }
.cta-block__title { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 16px; }
.cta-block__desc { font-size: 1.05rem; opacity: .9; margin-bottom: 32px; }
.cta-block .btn--primary { background: #fff; color: var(--accent); }
.cta-block .btn--primary:hover { background: #f5f5f5; }

/* ── About snippet ── */
.about-snippet { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-snippet__img img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.about-snippet__title { font-size: 1.6rem; font-weight: 800; margin-bottom: 16px; }
.about-snippet__text { color: var(--muted); margin-bottom: 24px; }

/* ── Page header ── */
.page-header { background: var(--card-bg); padding: 48px 0 32px; border-bottom: 1px solid var(--border); margin-bottom: 48px; }
.page-header__title { font-size: 2rem; font-weight: 800; }
.page-header__desc { color: var(--muted); margin-top: 8px; }

/* ── Single post ── */
.single-post { width: min(90%, 80ch); margin: 0 auto; padding: 48px 20px; }
.single-post__meta { font-size: .85rem; color: var(--muted); margin-bottom: 24px; }
.single-post__title { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 24px; line-height: 1.2; }
.single-post__thumbnail { border-radius: var(--radius); overflow: hidden; margin-bottom: 32px; }
.single-post__thumbnail img { width: 100%; }
.single-post__content { font-size: 1.05rem; line-height: 1.8; }
.single-post__content p { margin-bottom: 1.2em; }
.single-post__content h2, .single-post__content h3 { margin: 1.5em 0 .5em; font-weight: 700; }

/* ── Single animal ── */
.single-animal { max-width: 960px; margin: 0 auto; padding: 48px 20px; }
.single-animal__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.single-animal__img img { border-radius: var(--radius); width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.single-animal__title { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.single-animal__meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.single-animal__meta-item { background: var(--card-bg); border-radius: 8px; padding: 8px 16px; font-size: .9rem; }
.single-animal__meta-item strong { display: block; font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.single-animal__desc { color: var(--muted); line-height: 1.8; margin-bottom: 28px; }

/* ── Reports table ── */
.reports-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.reports-table th { text-align: left; padding: 12px 16px; background: var(--card-bg); font-weight: 700; border-bottom: 2px solid var(--border); }
.reports-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.reports-table tr:hover td { background: #fafafa; }
.report-income { color: #1a7a3c; font-weight: 600; }
.report-expense { color: #e8450a; font-weight: 600; }
.reports-summary { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.reports-summary__item { background: var(--card-bg); border-radius: var(--radius); padding: 20px 28px; flex: 1; min-width: 160px; }
.reports-summary__label { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.reports-summary__value { font-size: 1.6rem; font-weight: 800; }

/* ── Donate page ── */
.donate-page { max-width: 680px; margin: 0 auto; padding: 48px 20px; }
.donate-page__title { font-size: 2rem; font-weight: 800; margin-bottom: 16px; }
.donate-page__desc { color: var(--muted); margin-bottom: 40px; font-size: 1.05rem; }
.donate-methods { display: grid; gap: 16px; margin-bottom: 40px; }
.donate-method { background: var(--card-bg); border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); }
.donate-method__title { font-weight: 700; margin-bottom: 8px; }
.donate-method__detail { font-size: .95rem; color: var(--muted); font-family: monospace; }

/* ── About page ── */
.about-page { max-width: 960px; margin: 0 auto; padding: 48px 20px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; margin-top: 40px; }
.team-card { text-align: center; }
.team-card__img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; }
.team-card__name { font-weight: 700; }
.team-card__role { font-size: .85rem; color: var(--muted); }

/* ── Footer ── */
.site-footer { background: #1a1a1a; color: #ccc; padding: 48px 0 24px; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer__logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.site-footer__logo .custom-logo-link { display: flex; align-items: center; }
.site-footer__logo .custom-logo { height: 36px; width: auto; max-width: 140px; display: block; object-fit: contain; }
.site-footer__logo-text { font-size: 1.2rem; font-weight: 800; color: #fff; line-height: 1; }
.site-footer__desc { font-size: .9rem; line-height: 1.7; }
.site-footer__heading { font-size: .85rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.site-footer__links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.site-footer__links a { font-size: .9rem; color: #ccc; transition: color .2s; }
.site-footer__links a:hover { color: #fff; }
.site-footer__bottom { border-top: 1px solid #333; padding-top: 24px; font-size: .85rem; text-align: center; color: #888; }

/* ── Pagination ── */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; font-weight: 600; font-size: .9rem; border: 1px solid var(--border); transition: .2s; }
.pagination a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── No results ── */
.no-results { text-align: center; padding: 80px 20px; color: var(--muted); }
.no-results__icon { font-size: 3rem; margin-bottom: 16px; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero__inner, .about-snippet, .single-animal__grid, .site-footer__grid { grid-template-columns: 1fr; }
  .hero__image { order: -1; }
  .site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 20px; border-bottom: 1px solid var(--border); gap: 16px; }
  .site-nav.is-open { display: flex; }
  .nav-toggle { display: flex; }
  .site-header__inner { position: relative; }
  .cards-grid { grid-template-columns: 1fr; }
  .reports-table { font-size: .85rem; }
  .reports-table th, .reports-table td { padding: 10px 12px; }
}

@media (max-width: 480px) {
  .section { padding: 40px 0; }
  .hero { padding: 48px 0; }
}
