/*
Theme Name: Dom Mechty Camp
Theme URI: https://dommechty.camp
Author: An Edu Global Co., Limited
Author URI: https://dommechty.camp
Description: Детский развивающий лагерь в сердце природы Вьетнама. Адаптивная тема с поддержкой блочного редактора Gutenberg.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
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: dom-mechty
Tags: education, nature, children, block-patterns, block-styles, custom-colors, custom-menu, editor-style, featured-images, full-site-editing, rtl-language-support, threaded-comments, translation-ready, wide-blocks
*/

:root {
  --primary: #2d5f3f;
  --primary-light: #3d7f5f;
  --accent: #d97757;
  --accent-light: #e99777;
  --secondary: #4a7c5e;
  --foreground: #1a1a1a;
  --background: #ffffff;
  --muted: #6b7280;
  --muted-foreground: #4b5563;
  --border: #e5e7eb;
  --card: #ffffff;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--foreground);
  background-color: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--foreground);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--muted-foreground);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent);
}

/* Buttons */
.btn, .wp-block-button__link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary, .wp-block-button.is-style-fill .wp-block-button__link {
  background-color: var(--accent);
  color: white;
}

.btn-primary:hover {
  background-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(217, 119, 87, 0.3);
}

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

.btn-outline:hover {
  background-color: rgba(45, 95, 63, 0.05);
}

/* Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-logo {
  font-size: 2rem;
}

.site-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
}

.site-description {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  transition: color 0.3s ease;
}

.main-navigation a:hover {
  color: var(--primary);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(to bottom, rgba(45, 95, 63, 0.05), transparent);
  padding: 4rem 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-text {
  padding-right: 2rem;
}

.hero-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-title .highlight {
  color: var(--primary);
}

.hero-quote {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.hero-image {
  position: relative;
  height: 500px;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Cards */
.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.card-text {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
}

/* Accommodation Cards */
.accommodation-card {
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.accommodation-card:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

.accommodation-image {
  height: 16rem;
  overflow: hidden;
  background-color: var(--border);
}

.accommodation-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.accommodation-card:hover .accommodation-image img {
  transform: scale(1.05);
}

.accommodation-content {
  padding: 1.5rem;
  background-color: white;
}

/* Program Cards */
.program-card {
  background: linear-gradient(135deg, rgba(45, 95, 63, 0.05), transparent);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 2rem;
  transition: all 0.3s ease;
}

.program-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.program-card ul {
  list-style: none;
  padding: 0;
}

.program-card li {
  padding: 0.5rem 0;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.program-card li::before {
  content: "✓ ";
  color: var(--primary);
  font-weight: bold;
  margin-right: 0.5rem;
}

/* Pricing Card */
.pricing-card {
  border: 2px solid var(--accent);
  border-radius: 0.75rem;
  padding: 3rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
}

.price-currency {
  font-size: 1rem;
  color: var(--muted);
}

.price-features {
  background-color: rgba(45, 95, 63, 0.05);
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}

.price-features ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

.price-features li {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.price-features .checkmark {
  color: var(--accent);
  font-weight: bold;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--accent), var(--secondary));
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.cta-section h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  max-width: 48rem;
  margin: 0 auto 2rem;
}

/* Footer */
.site-footer {
  background-color: var(--foreground);
  color: white;
  padding: 3rem 0;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-widget h3 {
  color: white;
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.footer-widget ul {
  list-style: none;
  padding: 0;
}

.footer-widget li {
  margin-bottom: 0.5rem;
}

.footer-widget a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-widget a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
  }
  
  .hero-image {
    height: 400px;
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-widgets {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .main-navigation {
    display: none;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .footer-widgets {
    grid-template-columns: 1fr;
  }
  
  .section {
    padding: 2rem 0;
  }
}

/* WordPress Specific */
.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.5rem;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* Block Editor Styles */
.wp-block {
  max-width: 1200px;
}

.wp-block-group {
  margin-bottom: 2rem;
}

.wp-block-separator {
  border: none;
  border-top: 2px solid var(--border);
  margin: 3rem 0;
}

/* Accessibility */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .site-header,
  .site-footer,
  .cta-section {
    display: none;
  }
}
