/*
Theme Name: KleverPottery Minimal
Theme URI: https://www.kleverpottery.ru
Author: Your Name
Author URI: https://example.com
Description: Минималистичная тема для гончарной мастерской на основе kleverpottery.ru. Оптимизирована под WordPress 6.9.1.
Version: 1.0.0
Requires at least: 6.7
Tested up to: 6.9.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kleverpottery
Tags: minimal, pottery, workshop, responsive, animations
*/

/* ===== Сброс и базовые настройки ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Цветовая палитра — замените на значения с оригинального сайта */
  --color-primary: #8B7355;      /* коричневый глиняный */
  --color-secondary: #F5F1E9;    /* светлый фон */
  --color-text: #2C241B;         /* тёмный текст */
  --color-accent: #C9A961;       /* акцент */
  
  /* Типографика */
  --font-main: 'Segoe UI', system-ui, sans-serif;
  --font-size-base: 16px;
  --line-height: 1.6;
  
  /* Анимации */
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;
}

html {
  scroll-behavior: smooth;
  font-size: var(--font-size-base);
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-secondary);
  line-height: var(--line-height);
  overflow-x: hidden;
}

/* ===== Утилиты анимаций ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.animate-fade-in {
  animation: fadeIn var(--transition-normal) forwards;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Плавное появление при скролле (добавьте JS-класс .in-view) */
.in-view {
  animation: fadeIn var(--transition-normal) forwards;
}

/* ===== Layout ===== */
.container {
  width: min(92%, 1200px);
  margin: 0 auto;
  padding: 0 1rem;
}

.site-header {
  padding: 1.5rem 0;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.site-logo:hover {
  opacity: 0.85;
}

.site-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.site-nav a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 0.25rem 0;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-normal);
}

.site-nav a:hover::after {
  width: 100%;
}

/* ===== Hero-секция ===== */
.hero {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1rem;
  background: linear-gradient(135deg, var(--color-secondary) 0%, #fff 100%);
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.hero__subtitle {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 115, 85, 0.3);
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ===== Секции контента ===== */
.section {
  padding: 5rem 0;
}

.section__title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: var(--color-primary);
}

/* ===== Карточки услуг ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.service-card__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-accent);
}

.service-card__title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

/* ===== Галерея ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.gallery-item {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #e0d6c9;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ===== Футер ===== */
.site-footer {
  background: var(--color-text);
  color: #fff;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer__content {
  display: grid;
  gap: 2rem;
  text-align: center;
}

.footer__contacts a {
  color: var(--color-accent);
  text-decoration: none;
}

.footer__copyright {
  text-align: center;
  padding-top: 2rem;
  opacity: 0.8;
  font-size: 0.9rem;
}

/* ===== Адаптивность ===== */
@media (max-width: 768px) {
  .site-nav ul {
    gap: 1rem;
    font-size: 0.95rem;
  }
  
  .hero {
    min-height: 60vh;
  }
  
  .section {
    padding: 3rem 0;
  }
}

/* ===== Доступность ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ===== WordPress-классы ===== */
.aligncenter { display: block; margin: 1.5rem auto; }
.alignleft { float: left; margin: 0.5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.5rem 0 1rem 1.5rem; }
.wp-caption { max-width: 100%; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}