/*
Theme Name: Альтстудия
Author: WordPress Telex
Description: A sophisticated dark-themed WordPress block theme for Альтстудия — a Moscow-based real estate platform specializing in apartment share sales. Features teal and gold accents, editorial typography, and a premium feel.
Version: 0.1.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: altstudio
Tags: block-theme, full-site-editing, dark, real-estate
*/

/* === Equal Cards Layout === */
.equal-cards > .wp-block-column {
  display: flex;
  flex-direction: column;
  flex-grow: 0;
}
.equal-cards > .wp-block-column > .wp-block-group {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.equal-cards .cta-bottom {
  margin-top: auto;
  justify-content: center;
}

/* === Footer margin reset === */
.wp-site-blocks > footer {
  margin-block-start: 0;
}

/* === Header navigation underline effect === */
.site-header-nav a {
  position: relative;
  text-decoration: none;
  padding-bottom: 4px;
}
.site-header-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--wp--preset--color--accent-teal);
  transition: width 0.3s ease;
}
.site-header-nav a:hover::after {
  width: 100%;
}

/* === Hero section styles === */
.hero-cover .wp-block-cover__inner-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  padding-bottom: 80px;
}

/* === Stat border === */
.stat-item {
  border-right: 2px solid var(--wp--preset--color--accent-gold);
  padding-right: 16px;
}

/* === Card hover effects === */
.listing-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  border-radius: 6px;
}
.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(62, 207, 190, 0.12);
}

/* === Testimonial card === */
.testimonial-card {
  border-left: 2px solid var(--wp--preset--color--accent-teal);
  transition: border-color 0.3s ease;
}
.testimonial-card:hover {
  border-left-color: var(--wp--preset--color--accent-gold);
}

/* === CTA button glow === */
.wp-block-button.glow-button .wp-block-button__link:hover {
  box-shadow: 0 0 28px rgba(62, 207, 190, 0.35);
}

/* === Step number styling === */
.step-number {
  font-family: 'Tenor Sans', sans-serif;
  font-size: 3rem;
  line-height: 1;
  color: var(--wp--preset--color--accent-teal);
  opacity: 0.25;
}

/* === Decorative separator === */
.teal-separator {
  width: 60px;
  height: 2px;
  background: var(--wp--preset--color--accent-teal);
  border: none;
  margin: 0;
}

/* === Section label styling === */
.section-label {
  font-family: 'Tenor Sans', sans-serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* === Legal icon circles === */
.legal-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* === Scroll indicator === */
.scroll-indicator {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.scroll-indicator::before {
  content: '';
  display: block;
  width: 40px;
  height: 1.5px;
  background: var(--wp--preset--color--accent-teal);
  border-radius: 1px;
}

/* === Map placeholder === */
.map-placeholder {
  background: linear-gradient(135deg, #131924 0%, #1a2233 100%);
  border: 1px solid rgba(62, 207, 190, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  position: relative;
  overflow: hidden;
}
.map-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(62, 207, 190, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62, 207, 190, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* === Grain overlay for hero === */
.hero-grain::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255,255,255,0.03) 2px,
      rgba(255,255,255,0.03) 4px
    );
  pointer-events: none;
  z-index: 1;
}

/* === Responsive adjustments === */
@media (max-width: 782px) {
  .stat-item {
    border-right: none;
    border-bottom: 2px solid var(--wp--preset--color--accent-gold);
    padding-right: 0;
    padding-bottom: 12px;
  }
  .hero-cover .wp-block-cover__inner-container {
    padding-bottom: 48px;
  }
}

/* === Fade-in animation === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fade-in {
  animation: fadeInUp 0.6s ease both;
}

/* === CTA section gradient === */
.cta-gradient-bg {
  background: linear-gradient(135deg, #131924 0%, #0B0F1A 40%, #0f1a24 100%);
  position: relative;
}
.cta-gradient-bg::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(62, 207, 190, 0.3), transparent);
}