/*
Theme Name: Nazpet
Theme URI: https://nazpet.ir/
Author: Nazpet
Description: A clean RTL WordPress theme for practical dog and cat care guides.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: nazpet
*/

:root {
  --np-ink: #18231f;
  --np-muted: #66736d;
  --np-line: #dde5df;
  --np-cream: #fbf7ef;
  --np-sage: #dfece3;
  --np-green: #2e6d55;
  --np-coral: #d76d55;
  --np-gold: #d9a441;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--np-ink);
  background: var(--np-cream);
  font-family: Tahoma, Arial, sans-serif;
  line-height: 1.9;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--np-green); }

.np-wrap {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.np-header {
  background: rgba(251, 247, 239, .94);
  border-bottom: 1px solid var(--np-line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}

.np-nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.np-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  color: var(--np-green);
}

.np-logo {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--np-green);
  color: #fff;
  font-size: 20px;
}

.np-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--np-muted);
  font-size: 14px;
}

.np-hero {
  padding: 72px 0 42px;
  background: linear-gradient(135deg, #fbf7ef 0%, #edf5ee 52%, #f8eadf 100%);
  border-bottom: 1px solid var(--np-line);
}

.np-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 42px;
  align-items: center;
}

.np-kicker {
  color: var(--np-coral);
  font-weight: 700;
  margin: 0 0 10px;
}

.np-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.25;
  letter-spacing: 0;
}

.np-hero p {
  margin: 18px 0 0;
  color: var(--np-muted);
  font-size: 17px;
  max-width: 650px;
}

.np-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.np-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--np-green);
  color: #fff;
  font-weight: 700;
}

.np-button.alt {
  background: transparent;
  color: var(--np-green);
  border: 1px solid var(--np-green);
}

.np-visual {
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(46, 109, 85, .2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 26% 28%, rgba(217, 164, 65, .36) 0 13%, transparent 14%),
    radial-gradient(circle at 68% 31%, rgba(215, 109, 85, .32) 0 12%, transparent 13%),
    linear-gradient(145deg, #ffffff 0%, #dfece3 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.np-visual svg {
  width: min(360px, 82%);
  height: auto;
}

.np-band { padding: 46px 0; }
.np-band.white { background: #fff; }

.np-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.np-section-head h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.35;
}

.np-section-head p {
  margin: 6px 0 0;
  color: var(--np-muted);
}

.np-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.np-card {
  background: #fff;
  border: 1px solid var(--np-line);
  border-radius: 8px;
  padding: 22px;
  min-height: 184px;
}

.np-clickable-card {
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.np-clickable-card:hover,
.np-clickable-card:focus {
  border-color: rgba(46, 109, 85, .45);
  box-shadow: 0 10px 26px rgba(24, 35, 31, .08);
  transform: translateY(-2px);
}

.np-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.np-card p {
  margin: 0;
  color: var(--np-muted);
}

.np-card .np-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  margin-bottom: 14px;
  background: var(--np-sage);
}

.np-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.np-single {
  max-width: 860px;
}

.np-single-image {
  overflow: hidden;
  border-radius: 8px;
  margin: 0 0 28px;
  border: 1px solid var(--np-line);
}

.np-single-head {
  margin-bottom: 28px;
}

.np-single-head h1 {
  margin: 8px 0 10px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.45;
  letter-spacing: 0;
}

.np-single-meta,
.np-single-date {
  color: var(--np-muted);
  font-size: 14px;
}

.np-single .wp-block-post-content {
  font-size: 17px;
}

.np-single .wp-block-post-content h2 {
  margin: 34px 0 10px;
  font-size: 26px;
  line-height: 1.45;
}

.np-single .wp-block-post-content a {
  color: var(--np-green);
  font-weight: 700;
}

.np-footer {
  padding: 34px 0;
  color: var(--np-muted);
  border-top: 1px solid var(--np-line);
}

@media (max-width: 820px) {
  .np-menu { display: none; }
  .np-hero-grid, .np-grid, .np-posts { grid-template-columns: 1fr; }
  .np-hero { padding-top: 42px; }
}
