/*
Theme Name: Batumi Expert Child
Theme URI: https://batumi-expert.ru
Author: batumi.expert team
Description: Премиум child theme для Astra. Палитра Глубокая ночь + Песок + Малахит + Янтарь. Шрифты Source Serif 4, Manrope, JetBrains Mono. Эстетика Sotheby's International Realty адаптированная под русскоязычную аудиторию.
Template: astra
Version: 1.0.2
Text Domain: batumi-expert-child
*/

/* ========================================
   DESIGN TOKENS (БРЕНДБУК v1.0)
   ======================================== */
:root {
  /* Палитра */
  --be-dark:        #0F1F2E;  /* Глубокая ночь — текст, header, footer */
  --be-sand:        #F5EFE3;  /* Песок — фон сайта */
  --be-paper:       #E6DFD0;  /* Бумага — карточки, секции */
  --be-mist:        #8B96A3;  /* Туман — вспомогательный текст */
  --be-malachite:   #1E7A5F;  /* Малахит — главный CTA, доходность, ВНЖ-проходит */
  --be-amber:       #C75B3B;  /* Янтарь — срочность, дедлайны, $150K */
  --be-sea:         #2C5F7C;  /* Глубокое море — графики, вторичные CTA */
  --be-white:       #FFFFFF;
  --be-border:      rgba(15, 31, 46, 0.08);
  --be-shadow:      0 8px 24px rgba(15, 31, 46, 0.10);
  --be-shadow-hover: 0 16px 40px rgba(15, 31, 46, 0.18);

  /* Типографика */
  --be-font-display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --be-font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --be-font-body:    'Source Serif 4', Georgia, serif;
  --be-font-mono:    'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* Spacing scale (8px base) */
  --be-space-1: 8px;
  --be-space-2: 16px;
  --be-space-3: 24px;
  --be-space-4: 32px;
  --be-space-5: 48px;
  --be-space-6: 64px;
  --be-space-7: 96px;
  --be-space-8: 128px;

  /* Layout */
  --be-max-width: 1440px;
  --be-content-width: 1200px;
  --be-radius-sm: 4px;
  --be-radius-md: 8px;
  --be-radius-lg: 16px;
}

/* ========================================
   GLOBAL OVERRIDES
   ======================================== */
body {
  font-family: var(--be-font-body) !important;
  color: var(--be-dark) !important;
  background-color: var(--be-sand) !important;
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

/* Заголовки — серифом, как у Sotheby's */
h1, h2, h3, h4, h5, h6,
.elementor-heading-title {
  font-family: var(--be-font-display) !important;
  color: var(--be-dark) !important;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(40px, 6vw, 72px);
  margin-bottom: var(--be-space-3);
}

h2 {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: var(--be-space-3);
}

h3 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: var(--be-space-2);
}

/* Цифры — моноширинный шрифт */
.numbers, .price, .stat, .calculator-result {
  font-family: var(--be-font-mono);
  font-feature-settings: 'tnum';
}

/* ========================================
   HEADER (Sotheby's-style)
   ======================================== */
.site-header {
  background-color: var(--be-dark) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-header .site-title,
.site-header .site-logo-img {
  color: var(--be-white);
}

.site-header .main-navigation a {
  color: var(--be-white) !important;
  font-family: var(--be-font-heading);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
}

.site-header .main-navigation a:hover {
  color: var(--be-amber) !important;
}

/* ========================================
   КНОПКИ
   ======================================== */
.wp-block-button__link,
.elementor-button,
button[type="submit"],
.btn-primary {
  background-color: var(--be-malachite) !important;
  color: var(--be-white) !important;
  font-family: var(--be-font-heading) !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  padding: 16px 32px;
  border-radius: var(--be-radius-sm);
  border: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.wp-block-button__link:hover,
.elementor-button:hover,
button[type="submit"]:hover {
  background-color: #16634D !important;  /* Малахит темнее */
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30, 122, 95, 0.25);
}

/* Янтарный CTA для срочности */
.btn-urgent,
.elementor-button.urgent {
  background-color: var(--be-amber) !important;
}

.btn-urgent:hover {
  background-color: #A84A2E !important;
}

/* Ghost-кнопка (Sotheby's-style outline) */
.btn-ghost {
  background-color: transparent !important;
  color: var(--be-dark) !important;
  border: 1px solid var(--be-dark) !important;
}

.btn-ghost:hover {
  background-color: var(--be-dark) !important;
  color: var(--be-white) !important;
}

/* Ghost-кнопка в hero поверх фото — повышенный контраст (#0028) */
.hero-section .btn-ghost {
  border: 2px solid var(--be-white) !important;
  color: var(--be-white) !important;
  background: rgba(0,0,0,0.3) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.hero-section .btn-ghost:hover {
  background: rgba(0,0,0,0.55) !important;
  border-color: var(--be-white) !important;
  color: var(--be-white) !important;
}

/* Стрелочные ссылки (Sotheby's: "SEE DETAILS →") */
.arrow-link {
  font-family: var(--be-font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  color: var(--be-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--be-dark);
  padding-bottom: 4px;
  transition: all 0.3s ease;
}

.arrow-link::after {
  content: '  →';
  transition: transform 0.3s ease;
  display: inline-block;
}

.arrow-link:hover::after {
  transform: translateX(8px);
}

/* ========================================
   HERO (главная страница)
   ======================================== */
.hero-section {
  min-height: 90vh;
  background-color: var(--be-dark);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
  color: var(--be-white);
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 31, 46, 0.4) 0%,
    rgba(15, 31, 46, 0.7) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--be-space-4);
}

.hero-title {
  color: var(--be-white) !important;
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 400;
  margin-bottom: var(--be-space-3);
  max-width: 900px;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(18px, 2vw, 22px);
  max-width: 700px;
  margin-bottom: var(--be-space-5);
  font-family: var(--be-font-body);
}

/* ========================================
   КАРТОЧКИ (комплексы, услуги, кейсы)
   ======================================== */
.bx-card {
  background-color: var(--be-white);
  border-radius: var(--be-radius-sm);
  box-shadow: var(--be-shadow);
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
}

.bx-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--be-shadow-hover);
}

.bx-card__image {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.bx-card__body {
  padding: var(--be-space-3);
}

.bx-card__title {
  font-family: var(--be-font-display);
  font-size: 24px;
  margin-bottom: var(--be-space-1);
}

.bx-card__location {
  font-family: var(--be-font-heading);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--be-mist);
  margin-bottom: var(--be-space-2);
}

.bx-card__price {
  font-family: var(--be-font-mono);
  font-size: 24px;
  color: var(--be-amber);
  font-weight: 600;
  margin-bottom: var(--be-space-1);
}

.bx-card__yield {
  font-family: var(--be-font-heading);
  font-size: 13px;
  color: var(--be-malachite);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ========================================
   ФОРМЫ (Forminator)
   ======================================== */
.forminator-input,
.forminator-textarea,
.forminator-select select,
input[type="text"], input[type="email"], input[type="tel"],
textarea {
  background-color: var(--be-white) !important;
  border: 1px solid var(--be-border) !important;
  border-radius: var(--be-radius-sm) !important;
  padding: 14px 18px !important;
  font-family: var(--be-font-body) !important;
  font-size: 16px !important;
  color: var(--be-dark) !important;
  transition: border-color 0.3s ease;
}

.forminator-input:focus,
.forminator-textarea:focus,
input:focus, textarea:focus {
  border-color: var(--be-malachite) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(30, 122, 95, 0.1) !important;
}

label {
  font-family: var(--be-font-heading) !important;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--be-dark);
  font-weight: 600;
  margin-bottom: 8px !important;
}

/* ========================================
   СЕКЦИИ
   ======================================== */
.section-light {
  background-color: var(--be-sand);
  padding: var(--be-space-7) var(--be-space-4);
}

.section-dark {
  background-color: var(--be-dark);
  color: var(--be-white);
  padding: var(--be-space-7) var(--be-space-4);
}

.section-paper {
  background-color: var(--be-paper);
  padding: var(--be-space-7) var(--be-space-4);
}

.section-dark h1,
.section-dark h2,
.section-dark h3 {
  color: var(--be-white) !important;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background-color: var(--be-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--be-space-7) var(--be-space-4) var(--be-space-4);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: var(--be-amber);
}

/* ========================================
   MOBILE
   ======================================== */
@media (max-width: 768px) {
  .hero-section {
    min-height: 70vh;
  }

  .section-light, .section-dark, .section-paper {
    padding: var(--be-space-5) var(--be-space-3);
  }

  .bx-card__image {
    height: 200px;
  }
}

/* ========================================
   АНИМАЦИИ (минимальные, премиум)
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.8s ease forwards;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* ========================================
   ГЛАВНАЯ СТРАНИЦА (front-page.php)
   ======================================== */
.bx-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Hero дополнения */
.bx-hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.bx-hero-note { margin-top: 20px; color: rgba(255,255,255,0.8); font-size: 16px; }
.bx-hero-note strong { color: #fff; }

/* Секции */
.bx-section { padding: 88px 0; }
.bx-section--paper { background: var(--be-paper); }
.bx-section--dark { background: var(--be-dark); color: var(--be-white); }
.bx-section__title { text-align: center; font-size: clamp(32px,4vw,48px); font-weight: 400; margin-bottom: 12px; }
.bx-section__title--light { color: var(--be-white) !important; }
.bx-section__lead { text-align: center; max-width: 640px; margin: 0 auto 48px; opacity: .85; }

/* Сетка преимуществ */
.bx-grid { display: grid; gap: 28px; }
.bx-grid--4 { grid-template-columns: repeat(4, 1fr); }
.bx-feature { background: var(--be-white); border-radius: 14px; padding: 32px 24px; text-align: center; box-shadow: 0 4px 24px rgba(15,31,46,.06); }
.bx-feature__icon { font-size: 34px; margin-bottom: 12px; }
.bx-feature h3 { font-size: 20px; margin-bottom: 10px; color: var(--be-dark); }
.bx-feature p { font-size: 15px; color: var(--be-mist); line-height: 1.6; }

/* Сплит-секции (фото + текст) */
.bx-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 480px; }
.bx-split--reverse .bx-split__media { order: 2; }
.bx-split__media { background-size: cover; background-position: center; min-height: 380px; }
.bx-split__text { display: flex; flex-direction: column; justify-content: center; padding: 64px 7%; gap: 20px; background: var(--be-sand); }
.bx-split__text h2 { font-size: clamp(28px,3.5vw,40px); font-weight: 400; }
.bx-split__text p { font-size: 17px; line-height: 1.7; color: var(--be-dark); opacity: .85; }
.bx-split__text .btn-primary, .bx-split__text .btn-ghost { align-self: flex-start; }
.btn-ghost--dark { border-color: var(--be-dark) !important; color: var(--be-dark) !important; }

/* Калькулятор */
.bx-calc-holder { max-width: 720px; margin: 0 auto; background: var(--be-white); border-radius: 16px; padding: 32px; color: var(--be-dark); }

/* Финальный CTA */
.bx-cta-final { background: var(--be-malachite); color: #fff; text-align: center; padding: 80px 0; }
.bx-cta-final h2 { color: #fff; font-size: clamp(28px,3.5vw,42px); font-weight: 400; margin-bottom: 12px; }
.bx-cta-final p { font-size: 18px; opacity: .92; margin-bottom: 28px; }
.bx-cta-final .btn-primary { background: #fff !important; color: var(--be-malachite) !important; }
.btn-lg { padding: 16px 40px !important; font-size: 17px !important; }

/* Адаптив главной */
@media (max-width: 900px) {
  .bx-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .bx-split { grid-template-columns: 1fr; }
  .bx-split--reverse .bx-split__media { order: 0; }
  .bx-split__media { min-height: 280px; }
}
@media (max-width: 560px) {
  .bx-grid--4 { grid-template-columns: 1fr; }
  .bx-section { padding: 56px 0; }
}

/* ========================================
   ПРОЗА (контент страниц + SEO-блок главной)
   ======================================== */
.bx-prose { max-width: 820px; }
.bx-prose h2 { font-size: clamp(26px,3vw,36px); font-weight: 400; margin: 40px 0 16px; color: var(--be-dark); }
.bx-prose h3 { font-size: clamp(20px,2.2vw,26px); font-weight: 600; margin: 28px 0 12px; color: var(--be-dark); }
.bx-prose p { font-size: 17px; line-height: 1.75; margin-bottom: 16px; color: var(--be-dark); }
.bx-prose ul, .bx-prose ol { margin: 0 0 20px 22px; line-height: 1.7; }
.bx-prose li { margin-bottom: 8px; font-size: 17px; }
.bx-prose strong { color: var(--be-dark); font-weight: 600; }
.bx-prose a { color: var(--be-malachite); }
.bx-prose table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.bx-prose th, .bx-prose td { border: 1px solid var(--be-paper); padding: 10px 14px; text-align: left; font-size: 15px; }
.bx-prose th { background: var(--be-paper); }
.bx-page-content { background: var(--be-white); }

/* Контент обычных страниц (не главная) — Astra .entry-content */
.entry-content { max-width: 820px; margin: 0 auto; }
.entry-content h2 { font-size: clamp(26px,3vw,36px); font-weight: 400; margin: 40px 0 16px; }
.entry-content h3 { font-size: clamp(20px,2.2vw,26px); font-weight: 600; margin: 28px 0 12px; }
.entry-content p, .entry-content li { font-size: 17px; line-height: 1.75; }

/* ========================================
   FIX: главная — секции на всю ширину
   Astra .ast-container = flex-row душит full-width секции.
   На главной делаем контейнер блочным и снимаем ограничения.
   ======================================== */
.home #content > .ast-container,
.page-template-front-page #content > .ast-container {
  display: block !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.home #primary, .home .ast-container > #primary { width: 100% !important; max-width: 100% !important; padding: 0 !important; }
/* секции главной — на всю ширину вьюпорта */
.home .hero-section, .home .bx-section, .home .bx-split, .home .bx-cta-final { width: 100%; }
