/*
Theme Name: Futuro House
Theme URI: https://thefuturohouse.ru
Description: Custom theme for The Futuro House — Space Age Archive
Version: 1.0
Author: TheFuturoHouse
Text Domain: futuro-theme
*/

@import url('https://fonts.googleapis.com/css2?family=Advent+Pro:wght@300;400;500;600;700;800&family=Nunito:wght@300;400;500;600;700;800&display=swap');

:root {
  --space: #1B2735;
  --space-mid: #233044;
  --white: #FFFFFF;
  --off: #F7F8FA;
  --orange: #19bfc9;
  --orange-hover: #15a8b0;
  --teal: #2DBDA8;
  --blue: #4A8FD4;
  --gold: #d19a31;
  --text: #3A4555;
  --text-light: #6B7A8D;
  --text-lighter: #9EAAB8;
  --border: #E2E6EC;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .tf {
  font-family: 'Advent Pro', sans-serif;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ═══════ NAV ═══════ */
.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  background: rgba(15,22,30,0.88);
  backdrop-filter: blur(12px);
}

.topnav-logo {
  font-family: 'Advent Pro', sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.topnav-logo span { opacity: 0.4; font-weight: 400; font-size: 0.78rem; }

.topnav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.topnav-links a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-family: 'Advent Pro', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}

.topnav-links a:hover { color: var(--white); }

.topnav-right { display: flex; gap: 0.7rem; }

.nav-btn {
  padding: 0.4rem 1rem;
  border-radius: 5px;
  font-family: 'Advent Pro', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.nav-btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
}

.nav-btn-outline:hover { border-color: rgba(255,255,255,0.45); color: white; }

.nav-btn-fill {
  background: var(--orange);
  border: 1.5px solid var(--orange);
  color: white;
}

.nav-btn-fill:hover { background: var(--orange-hover); }

/* ═══════ HERO ═══════ */
.hero {
  margin-top: 60px;
  min-height: calc(100vh - 60px);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,16,24,0.85) 0%, rgba(10,16,24,0.55) 20%, rgba(10,16,24,0.15) 38%, rgba(10,16,24,0.0) 50%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 4rem;
  max-width: 580px;
}

/* Hero video background */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: opacity 1s ease;
}

.hero-video.fade-out {
  opacity: 0;
}

/* When video present, gradient goes on top of both */
.hero-bg {
  z-index: 0;
}

/* ═══════ ABOUT SECTION ═══════ */
.about-section {
  padding: 4rem 3rem;
  background: var(--white);
}

.about-inner {
  max-width: 900px;
  margin: 0 auto;
}

.about-inner h2 {
  font-size: 1.7rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  text-align: center;
}

.about-text {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text-light);
  text-align: justify;
  overflow: hidden;
}

.about-text p {
  margin-bottom: 1rem;
}

.about-text a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.about-text a:hover {
  color: var(--orange-hover);
}

/* WordPress image alignment classes */
.about-text img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.about-text .alignleft {
  float: left;
  margin: 0.3rem 1.5rem 1rem 0;
  max-width: 45%;
}

.about-text .alignright {
  float: right;
  margin: 0.3rem 0 1rem 1.5rem;
  max-width: 45%;
}

.about-text .aligncenter {
  display: block;
  margin: 1.5rem auto;
}

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

.about-text .wp-caption-text {
  font-size: 0.75rem;
  color: var(--text-lighter);
  margin-top: 0.3rem;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 1.5rem;
}

.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--teal);
  border-radius: 50%;
  animation: dotP 2s ease-in-out infinite;
}

@keyframes dotP {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 1rem;
}

.hero h1 em { font-style: normal; color: var(--orange); }

.hero-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.75;
  margin-bottom: 0.5rem;
}

.hero-sub {
  font-size: 0.8rem;
  color: var(--teal);
  font-weight: 400;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

.btn-primary {
  padding: 0.75rem 1.8rem;
  background: var(--orange);
  color: white;
  border: none;
  border-radius: 6px;
  font-family: 'Advent Pro', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-primary:hover { background: var(--orange-hover); transform: translateY(-2px); }

.btn-ghost {
  padding: 0.75rem 1.8rem;
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  font-family: 'Advent Pro', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-ghost:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); }

/* ═══════ STATS STRIP ═══════ */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  max-width: 860px;
  margin: 0 auto;
}

.stat-box {
  padding: 2rem 1.5rem;
  text-align: center;
  border-right: 1px solid var(--border);
}

.stat-box:last-child { border-right: none; }

.stat-num {
  font-family: 'Advent Pro', sans-serif;
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--orange);
  line-height: 1;
}

.stat-label {
  font-size: 0.68rem;
  color: var(--text-lighter);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.3rem;
}

/* ═══════ SECTIONS ═══════ */
.sec-head {
  text-align: center;
  margin-bottom: 2rem;
}

.sec-head h2 {
  font-size: 1.7rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.sec-head p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ═══════ FILTERS ═══════ */
.filters-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.fbtn {
  padding: 0.42rem 0.95rem;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  background: var(--white);
  font-family: 'Nunito', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.15s;
}

.fbtn:hover { border-color: var(--orange); color: var(--orange); }
.fbtn.on { background: var(--orange); color: white; border-color: var(--orange); }

/* ═══════ CARDS GRID ═══════ */
.houses-section {
  padding: 4rem 3rem;
  background: var(--off);
  border-top: 1px solid var(--border);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: all 0.3s;
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: var(--text);
}

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

.card-img-wrap {
  overflow: hidden;
  position: relative;
  height: 160px;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
}

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

.card-tag {
  position: absolute;
  top: 0.6rem; left: 0.6rem;
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
  font-family: 'Advent Pro', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
}

.ct-museum { background: var(--teal); color: white; }
.ct-private { background: var(--orange); color: white; }
.ct-active { background: var(--blue); color: white; }
.ct-abandoned { background: var(--text-lighter); color: white; }

.card-body { padding: 0.9rem 1rem; }

.card-country {
  font-family: 'Advent Pro', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.15rem;
}

.card-name {
  font-family: 'Advent Pro', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.25rem;
  line-height: 1.25;
}

.card-meta { font-size: 0.68rem; color: var(--text-lighter); }

.more-wrap { text-align: center; margin-top: 2.5rem; }

.more-btn {
  display: inline-block;
  padding: 0.65rem 2rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  color: var(--text);
  font-family: 'Advent Pro', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.more-btn:hover { border-color: var(--orange); color: var(--orange); }

/* ═══════ SINGLE HOUSE ═══════ */
.single-hero {
  margin-top: 60px;
  height: 400px;
  position: relative;
  overflow: hidden;
}

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

.single-hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 3rem;
  background: linear-gradient(to top, rgba(10,16,24,0.88), transparent);
  color: white;
}

.single-hero-overlay .country {
  font-family: 'Advent Pro', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 0.3rem;
}

.single-hero-overlay h1 {
  font-size: 2.5rem;
  font-weight: 400;
}

.single-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
}

/* Data sidebar */
.data-sidebar {}

.data-grid {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.d-cell {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--off);
}

.d-cell:last-child { border-bottom: none; }

.d-lbl {
  font-family: 'Advent Pro', sans-serif;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-lighter);
  margin-bottom: 0.15rem;
}

.d-val {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.status-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-family: 'Advent Pro', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: white;
}

/* Map */
.map-embed {
  width: 100%;
  height: 250px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Timeline */
.history-section h2 {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}

.tl {
  border-left: 2px solid var(--border);
  padding-left: 1.5rem;
  margin-left: 0.5rem;
}

.tl-item {
  position: relative;
  padding-bottom: 1.5rem;
}

.tl-item::before {
  content: '';
  position: absolute;
  left: calc(-1.5rem - 5px);
  top: 0.35rem;
  width: 8px; height: 8px;
  background: var(--orange);
  border-radius: 50%;
  border: 2px solid var(--white);
}

.tl-date {
  font-family: 'Advent Pro', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 0.2rem;
}

.tl-text {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.gallery-grid img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s;
}

.gallery-grid img:hover { transform: scale(1.03); }

/* Sources */
.sources-list {
  list-style: none;
  padding: 0;
}

.sources-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
}

.sources-list li:last-child { border-bottom: none; }
.sources-list a { color: var(--orange); }
.sources-list a:hover { text-decoration: underline; }

/* ═══════ INTRO BAND ═══════ */
.intro-band {
  background: var(--off);
  border-bottom: 1px solid var(--border);
  padding: 4rem 3rem;
  text-align: center;
}

.intro-band h2 { font-size: 1.7rem; font-weight: 500; margin-bottom: 0.4rem; }
.intro-band .sub { font-size: 0.85rem; color: var(--text-light); margin-bottom: 2.5rem; }

.intro-carousel {
  max-width: 500px;
  margin: 0 auto 2rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.intro-ufo {
  font-size: 5rem;
  animation: ufoFly 5s ease-in-out infinite;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.1));
  line-height: 1;
}

/* (UFO under about removed) */

@keyframes ufoFly {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(3deg); }
}

.arr {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-light);
  transition: all 0.2s;
  user-select: none;
}

.arr:hover { border-color: var(--orange); color: var(--orange); }
.arr-l { left: calc(50% - 160px); }
.arr-r { right: calc(50% - 160px); }

.intro-text {
  font-size: 0.9rem;
  color: var(--text);
  max-width: 530px;
  margin: 0 auto;
  line-height: 1.7;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.5rem;
}

.dot-i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.dot-i.on { background: var(--orange); }

/* ═══════ STATS SECTION ═══════ */
.stats-section {
  padding: 4rem 3rem;
  text-align: center;
}

.stats-section h2 { font-size: 1.7rem; font-weight: 500; margin-bottom: 0.4rem; }
.stats-section .sub { font-size: 0.85rem; color: var(--text-light); margin-bottom: 3rem; }

.stats-row {
  display: flex;
  justify-content: center;
  gap: 5rem;
  flex-wrap: wrap;
}

.stat-big {
  font-family: 'Advent Pro', sans-serif;
  font-size: 3.5rem;
  font-weight: 400;
  line-height: 1;
}

.c-orange { color: #d19a31; }
.c-teal { color: var(--teal); }
.c-blue { color: var(--blue); }

.stat-desc {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.4rem;
  max-width: 140px;
  line-height: 1.4;
}

/* ═══════ CONNECT ═══════ */
.connect {
  background: var(--space);
  color: var(--white);
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.connect::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1px 1px at 12% 30%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 35% 70%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 60% 20%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 85% 55%, rgba(255,255,255,0.3), transparent);
  pointer-events: none;
}

.connect-inner { position: relative; z-index: 2; }

.connect h2 { font-size: 1.7rem; font-weight: 500; margin-bottom: 0.8rem; }

.connect-form {
  max-width: 340px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.connect-input {
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  color: var(--white);
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
  text-align: center;
}

.connect-input::placeholder { color: rgba(255,255,255,0.25); }
.connect-input:focus { border-color: var(--teal); }

.connect-btn {
  padding: 0.75rem;
  background: var(--orange);
  color: white;
  border: none;
  border-radius: 6px;
  font-family: 'Advent Pro', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.connect-btn:hover { background: var(--orange-hover); }

/* ═══════ FOOTER ═══════ */
.site-footer {
  background: #111820;
  color: rgba(255,255,255,0.4);
  padding: 3rem;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand { font-size: 0.85rem; line-height: 1.7; }

.footer-brand .fname {
  font-family: 'Advent Pro', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.footer-col h4 {
  font-family: 'Advent Pro', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  margin-bottom: 0.8rem;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-size: 0.8rem;
  margin-bottom: 0.45rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  max-width: 1000px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
}

/* ═══════ PAGINATION ═══════ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.pagination a, .pagination span {
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
  text-decoration: none;
  transition: all 0.2s;
}

.pagination a:hover { border-color: var(--orange); color: var(--orange); }
.pagination .current { background: var(--orange); color: white; border-color: var(--orange); }

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 1000px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .topnav { padding: 0 1.5rem; }
  .topnav-links { display: none; }
  .hero-inner { padding: 3rem 2.5rem; }
  .single-content { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 700px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stats-row { gap: 2.5rem; }
  .hero h1 { font-size: 1.8rem; }
  .hero-inner { padding: 2.5rem 1.5rem; }
  .houses-section, .stats-section, .intro-band, .connect { padding: 3rem 1.5rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .cards-grid { grid-template-columns: 1fr; }
  .topnav-right { display: none; }
}
