/*
Theme Name: Астраханская грядка
Theme URI: https://astr-gryadka.ru
Author: Астраханская грядка
Description: Современная тема для сельскохозяйственной компании. Полная поддержка Customizer, кастомные типы записей (Продукция, Отзывы), блог, форма заявки.
Version: 2.0
License: GPL v2 or later
Text Domain: astr-gryadka
*/

:root {
  --green-dark: #1a3a1a;
  --green-mid: #2d5a1b;
  --green-accent: #4a8c2a;
  --green-light: #a8d070;
  --amber: #c8821a;
  --amber-light: #f0c060;
  --cream: #f8f4ec;
  --cream-dark: #ede7d8;
  --text: #1c2a12;
  --text-muted: #5a6e4a;
  --white: #ffffff;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Manrope', sans-serif; background: var(--cream); color: var(--text); overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--green-accent); }

/* NAV - LIGHT */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 5%;
  background: rgba(248, 244, 236, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream-dark);
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.site-logo-link { display: block; line-height: 0; }
.logo-img, .custom-logo { height: 50px; width: auto; display: block; }
.nav-menu { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-menu li { list-style: none; }
.nav-menu a {
  color: var(--text); text-decoration: none;
  font-size: 0.875rem; font-weight: 500;
  transition: color 0.2s;
}
.nav-menu a:hover, .nav-menu .current-menu-item a, .nav-menu .current_page_item a {
  color: var(--green-accent);
}
.nav-cta > a {
  background: var(--amber); color: var(--white) !important;
  padding: 0.5rem 1.2rem; border-radius: 4px;
}
.nav-cta > a:hover { background: var(--amber-light); color: var(--text) !important; }
.burger { display: none; background: none; border: none; color: var(--green-dark); font-size: 1.6rem; cursor: pointer; }

/* PAGE HERO */
.page-hero {
  padding: 8rem 5% 4rem;
  background: linear-gradient(150deg, var(--green-dark) 0%, #2d4a1a 100%);
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%234a8c2a' fill-opacity='0.07'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/svg%3E");
}
.page-hero-inner { position: relative; z-index: 1; }
.page-tag {
  display: inline-block;
  background: rgba(168,208,112,0.15);
  border: 1px solid rgba(168,208,112,0.3);
  color: var(--green-light);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; padding: 0.35rem 0.9rem;
  border-radius: 2px; margin-bottom: 1rem;
}
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--cream); line-height: 1.15;
  margin-bottom: 0.75rem;
}
.page-hero p { color: rgba(248,244,236,0.75); font-size: 1rem; max-width: 600px; line-height: 1.7; }

/* SECTIONS */
.section { padding: 5rem 5%; }
.section-tag {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--green-accent);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.2; color: var(--text);
  margin-bottom: 1.25rem;
}

/* BUTTONS */
.btn-primary {
  background: var(--amber); color: var(--white);
  padding: 0.85rem 2rem; border-radius: 4px;
  text-decoration: none; font-weight: 600; font-size: 0.9rem;
  transition: all 0.2s; display: inline-block;
}
.btn-primary:hover { background: var(--amber-light); color: var(--text); transform: translateY(-2px); }
.btn-outline {
  border: 1.5px solid rgba(168,208,112,0.4);
  color: var(--green-light); padding: 0.85rem 2rem; border-radius: 4px;
  text-decoration: none; font-weight: 500; font-size: 0.9rem;
  transition: all 0.2s; display: inline-block;
}
.btn-outline:hover { border-color: var(--green-light); background: rgba(168,208,112,0.1); }
.btn-white {
  background: var(--white); color: var(--green-dark);
  padding: 0.9rem 2.2rem; border-radius: 4px;
  text-decoration: none; font-weight: 700; font-size: 0.95rem;
  transition: all 0.2s; display: inline-block; flex-shrink: 0;
}
.btn-white:hover { background: var(--cream); transform: translateY(-2px); }

/* HOMEPAGE HERO */
.hero {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--green-dark) 0%, #2d4a1a 60%, #3d6820 100%);
  display: flex; align-items: center; padding: 7rem 5% 5rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%234a8c2a' fill-opacity='0.08'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}
.hero-content { position: relative; max-width: 620px; z-index: 1; }
.hero-tag {
  display: inline-block;
  background: rgba(168,208,112,0.15);
  border: 1px solid rgba(168,208,112,0.3);
  color: var(--green-light);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; padding: 0.4rem 1rem;
  border-radius: 2px; margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.3rem, 4.5vw, 4rem);
  line-height: 1.1; color: var(--cream); margin-bottom: 1.5rem;
}
.hero h1 em { color: var(--green-light); font-style: normal; }
.hero p.hero-desc {
  font-size: 1.05rem; line-height: 1.7;
  color: rgba(248,244,236,0.85);
  margin-bottom: 2.5rem; max-width: 500px;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 3rem; margin-top: 4rem;
  padding-top: 2rem; border-top: 1px solid rgba(168,208,112,0.2);
  flex-wrap: wrap;
}
.stat-num { font-family: 'Playfair Display', serif; font-size: 2.2rem; color: var(--green-light); font-weight: 700; }
.stat-label { font-size: 0.8rem; color: rgba(248,244,236,0.7); margin-top: 0.2rem; }
.hero-logo {
  position: absolute; right: 5%; top: 50%;
  transform: translateY(-50%);
  width: 42%; max-width: 480px;
  display: flex; align-items: center; justify-content: center;
}
.hero-logo img { max-width: 100%; max-height: 480px; filter: drop-shadow(0 8px 24px rgba(0,0,0,0.3)); }

/* FEATURES STRIP */
.features-strip {
  background: var(--white); padding: 3rem 5%;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  border-bottom: 1px solid var(--cream-dark);
}
.feat { display: flex; align-items: center; gap: 1rem; }
.feat-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--cream); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; font-size: 1.4rem;
}
.feat h4 { font-size: 0.875rem; font-weight: 600; margin-bottom: 0.2rem; }
.feat p { font-size: 0.8rem; color: var(--text-muted); }

/* MISSION */
.mission { background: var(--white); padding: 5rem 5%; }
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.mission-img { height: 480px; border-radius: 8px; overflow: hidden; }
.mission-img img { width: 100%; height: 100%; object-fit: cover; }
.mission p { color: var(--text-muted); line-height: 1.85; margin-bottom: 1.25rem; font-size: 1rem; }
.mission p strong { color: var(--text); }

/* PRODUCTS */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.prod-card {
  background: var(--white); border-radius: 6px; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.prod-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(26,58,26,0.1); }
.prod-img { height: 200px; overflow: hidden; position: relative; }
.prod-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.prod-card:hover .prod-img img { transform: scale(1.04); }
.prod-badge {
  position: absolute; top: 0.75rem; left: 0.75rem;
  background: var(--green-accent); color: var(--white);
  font-size: 0.65rem; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; padding: 0.25rem 0.6rem; border-radius: 2px;
}
.prod-body { padding: 1.25rem; }
.prod-body h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.4rem; }
.prod-body p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }
.prod-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 1rem; padding-top: 0.75rem;
  border-top: 1px solid var(--cream-dark);
}
.prod-price { font-weight: 700; color: var(--green-accent); }
.prod-link { color: var(--amber); font-size: 0.8rem; font-weight: 600; text-decoration: none; }

/* WHY */
.why-section { background: var(--green-dark); padding: 5rem 5%; }
.why-section .section-title { color: var(--cream); }
.why-section .section-tag { color: var(--green-light); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.why-card {
  padding: 1.75rem 1.5rem;
  border: 1px solid rgba(168,208,112,0.15); border-radius: 6px;
  background: rgba(255,255,255,0.03);
}
.why-icon { font-size: 1.8rem; margin-bottom: 1rem; }
.why-card h3 { color: var(--cream); font-size: 0.95rem; font-weight: 600; margin-bottom: 0.6rem; }
.why-card p { color: rgba(248,244,236,0.7); font-size: 0.85rem; line-height: 1.65; }

/* SEASONS */
.seasons { background: var(--cream-dark); padding: 5rem 5%; }
.season-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.season-card {
  background: var(--white); border-radius: 8px;
  padding: 2rem 1.5rem; text-align: center; transition: transform 0.3s;
}
.season-card:hover { transform: translateY(-5px); }
.season-icon { font-size: 3rem; margin-bottom: 1rem; }
.season-card h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--green-accent); margin-bottom: 0.5rem; }
.season-period { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 1rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.season-list { font-size: 0.875rem; color: var(--text); line-height: 1.8; }

/* TESTIMONIALS */
.testi-section { background: var(--white); padding: 5rem 5%; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.testi-card { background: var(--cream); border-radius: 6px; padding: 2rem; position: relative; }
.testi-card::before {
  content: '"'; font-family: 'Playfair Display', serif;
  font-size: 4.5rem; line-height: 1; color: var(--cream-dark);
  position: absolute; top: 0.5rem; left: 1.5rem;
}
.testi-text { font-size: 0.875rem; line-height: 1.7; color: var(--text-muted); margin: 1.5rem 0 1.25rem; }
.testi-author { display: flex; align-items: center; gap: 0.75rem; }
.testi-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--green-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; color: white; flex-shrink: 0;
}
.testi-name { font-weight: 600; font-size: 0.875rem; }
.testi-role { font-size: 0.78rem; color: var(--text-muted); }
.testi-stars { color: var(--amber); font-size: 0.78rem; margin-top: 0.15rem; }

/* BLOG */
.blog-section { background: var(--cream); padding: 5rem 5%; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.blog-card {
  background: var(--white); border-radius: 8px; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none; color: inherit; display: block;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(26,58,26,0.08); }
.blog-img { height: 200px; overflow: hidden; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.blog-card:hover .blog-img img { transform: scale(1.05); }
.blog-body { padding: 1.5rem; }
.blog-date {
  font-size: 0.75rem; color: var(--green-accent);
  font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.blog-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.6rem; line-height: 1.35; color: var(--text); }
.blog-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }
.blog-readmore { display: inline-block; margin-top: 0.75rem; color: var(--amber); font-size: 0.8rem; font-weight: 600; }

/* SINGLE POST */
.post-content { max-width: 800px; margin: 0 auto; padding: 5rem 5%; line-height: 1.85; }
.post-content h2 { font-family: 'Playfair Display', serif; font-size: 1.7rem; margin: 2.5rem 0 1rem; color: var(--green-dark); }
.post-content h3 { font-size: 1.2rem; margin: 1.75rem 0 0.75rem; color: var(--text); }
.post-content p { color: var(--text); margin-bottom: 1.25rem; font-size: 1.05rem; }
.post-content ul, .post-content ol { margin: 1rem 0 1.5rem 1.5rem; color: var(--text-muted); }
.post-content ul li, .post-content ol li { margin-bottom: 0.5rem; line-height: 1.7; }
.post-content blockquote {
  background: var(--cream); border-left: 4px solid var(--green-accent);
  padding: 1.5rem 2rem; margin: 2rem 0;
  font-style: italic; font-size: 1.1rem; color: var(--green-dark); border-radius: 4px;
}
.post-content img { width: 100%; border-radius: 8px; margin: 1.5rem 0; }
.post-meta { color: var(--text-muted); font-size: 0.875rem; margin-top: 1rem; }

/* CTA */
.cta-banner {
  background: linear-gradient(120deg, var(--green-mid), var(--green-accent));
  padding: 4rem 5%; display: flex; align-items: center;
  justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.cta-banner h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.6rem, 2.5vw, 2.2rem); color: var(--cream); }
.cta-banner p { color: rgba(248,244,236,0.8); margin-top: 0.5rem; font-size: 0.95rem; }

/* CONTACT FORM */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; padding: 5rem 5%; background: var(--white); }
.form-box { background: var(--cream); border-radius: 8px; padding: 2.5rem; }
.form-box h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; margin-bottom: 1.5rem; }
.form-box .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-box .form-group { margin-bottom: 1.1rem; }
.form-box .form-group label { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 0.4rem; }
.form-box input, .form-box textarea, .form-box select {
  width: 100%; padding: 0.75rem 1rem;
  border: 1.5px solid var(--cream-dark); border-radius: 4px;
  background: var(--white); font-family: 'Manrope', sans-serif;
  font-size: 0.9rem; color: var(--text);
}
.form-box input:focus, .form-box textarea:focus, .form-box select:focus { outline: none; border-color: var(--green-accent); }
.form-box textarea { height: 110px; resize: vertical; }
.form-box input[type="submit"] {
  width: 100%; padding: 1rem; background: var(--green-mid);
  color: var(--white); border: none; border-radius: 4px;
  font-family: 'Manrope', sans-serif; font-size: 0.95rem;
  font-weight: 600; cursor: pointer; transition: background 0.2s;
}
.form-box input[type="submit"]:hover { background: var(--green-accent); }

/* FOOTER */
footer.site-footer { background: var(--green-dark); color: rgba(248,244,236,0.7); padding: 4rem 5% 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-logo { height: 80px; margin-bottom: 1rem; display: block; }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 { color: var(--green-light); font-size: 0.875rem; font-weight: 600; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { color: rgba(248,244,236,0.6); text-decoration: none; font-size: 0.875rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--green-light); }
.footer-bottom { border-top: 1px solid rgba(168,208,112,0.15); padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: 0.8rem; }

/* PAGE CONTENT */
.entry-content { max-width: 800px; margin: 0 auto; padding: 4rem 5%; line-height: 1.8; }
.entry-content h2 { font-family: 'Playfair Display', serif; font-size: 1.8rem; margin: 2rem 0 1rem; color: var(--text); }
.entry-content p { color: var(--text-muted); margin-bottom: 1rem; }
.entry-content img { max-width: 100%; border-radius: 6px; margin: 1.5rem 0; }
.entry-content ul, .entry-content ol { padding-left: 1.5rem; color: var(--text-muted); margin-bottom: 1rem; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .burger { display: block; }
  .nav-menu {
    display: none; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); padding: 1rem 5%; gap: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  .nav-menu.open { display: flex; }
  .hero-logo { display: none; }
  .features-strip { grid-template-columns: 1fr 1fr; }
  .prod-grid, .why-grid, .testi-grid, .blog-grid, .season-grid { grid-template-columns: 1fr 1fr; }
  .mission-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-wrap { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 560px) {
  .prod-grid, .why-grid, .testi-grid, .blog-grid, .features-strip, .season-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .form-box .form-row { grid-template-columns: 1fr; }
}


/* === READABILITY IMPROVEMENTS v2 === */
body { font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* Stronger contrast */
:root { --text-muted: #4a5d3a; }

/* Larger base font sizes */
.feat p, .prod-body p, .why-card p, .testi-text, .blog-card p,
.season-list, .footer-col a, .footer-bottom p { font-size: 0.925rem; line-height: 1.7; }

/* Bolder headings */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.01em; }

/* Better focus for keyboard navigation */
a:focus, button:focus, input:focus, textarea:focus, select:focus {
  outline: 3px solid var(--green-light);
  outline-offset: 2px;
}

/* Hero text shadows for legibility */
.hero h1, .page-hero h1 { text-shadow: 0 2px 12px rgba(0,0,0,0.15); }
.hero p.hero-desc, .page-hero p { color: rgba(248,244,236,0.92); }

/* Body text contrast */
.mission p, .post-content p { color: #2a3a1c; font-size: 1.05rem; }

/* Scroll padding for fixed nav */
html { scroll-padding-top: 80px; }

/* Mobile improvements */
@media (max-width: 768px) {
  body { font-size: 16px; }
  .hero { padding: 6rem 5% 3rem; min-height: auto; }
  .hero h1 { font-size: 2rem; line-height: 1.2; }
  .section { padding: 3rem 5%; }
  .section-title { font-size: 1.6rem; }
  .hero-stats { gap: 1.25rem; margin-top: 2rem; padding-top: 1.5rem; }
  .stat-num { font-size: 1.8rem; }
  .features-strip, .seasons, .why-section, .testi-section, .blog-section, .mission { padding: 3rem 5%; }
  .cta-banner { padding: 2.5rem 5%; text-align: center; flex-direction: column; }
  .cta-banner > div { text-align: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.75rem; }
  body { font-size: 15px; }
  .testi-card { padding: 1.5rem; }
  .testi-card::before { font-size: 3.5rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Scroll-to-top button */
.scroll-top-btn {
  position: fixed; bottom: 24px; right: 24px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--green-accent); color: white; border: none;
  font-size: 1.4rem; cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 99; display: flex; align-items: center; justify-content: center;
}
.scroll-top-btn.visible { opacity: 1; visibility: visible; }

.whatsapp-fab {
  position: fixed; bottom: 24px; left: 24px;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  z-index: 99; transition: transform 0.2s; text-decoration: none;
}
.whatsapp-fab:hover { transform: scale(1.1); }
