/*
Theme Name: Brian Hymas
Theme URI: https://brianhymas.com
Author: Brian Hymas
Author URI: https://brianhymas.com
Description: Custom theme for brianhymas.com — ported from the static mockup for side-by-side comparison with the static build. Includes all page templates for homepage, Blueprint, Buy, Sell, About, Results, Neighborhoods hub + 6 city pages, Market Update, guides, and process pages.
Version: 0.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: brianhymas
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,800;0,900;1,700;1,800&display=swap');

@font-face {
  font-family: 'IDAHO';
  src: url('fonts/IDAHO.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'AvenirBook';
  src: url('fonts/AvenirBook.ttf') format('truetype');
  font-display: swap;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'AvenirBook', system-ui, sans-serif;
  background: #faf8f5;
  color: #1f2937;
}

h1, h2, h3, .display {
  font-family: 'Playfair Display', Georgia, serif;
  letter-spacing: -0.01em;
  font-weight: 800;
}
.idaho {
  font-family: 'IDAHO', Georgia, serif;
  letter-spacing: -0.01em;
}

.hero-gradient {
  background:
    radial-gradient(ellipse at 20% 30%, rgba(190, 32, 52, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(0, 46, 93, 0.4) 0%, transparent 60%),
    linear-gradient(135deg, #001a38 0%, #002e5d 50%, #003870 100%);
}
.hero-pattern {
  background-image:
    linear-gradient(rgba(0,0,0,0.15), rgba(0,0,0,0.45)),
    url('images/hero-placeholder.svg');
  background-size: cover;
  background-position: center;
}

.btn-primary, .btn-ghost, .btn-outline {
  font-family: system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  padding: 1.1rem 2.25rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
}
.btn-primary {
  background: #BE2034;
  color: white;
  border: 1.5px solid #BE2034;
  box-shadow: 0 6px 16px rgba(190, 32, 52, 0.25), 0 2px 4px rgba(190, 32, 52, 0.15);
}
.btn-primary:hover {
  background: #9d1a2b;
  border-color: #9d1a2b;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(190, 32, 52, 0.4), 0 4px 8px rgba(190, 32, 52, 0.2);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(190, 32, 52, 0.3);
}
.btn-ghost {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: white;
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: #002e5d;
  border: 1.5px solid #002e5d;
}
.btn-outline:hover {
  background: #002e5d;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 46, 93, 0.25);
}

.card-door {
  background: white;
  border: 1px solid rgba(0, 46, 93, 0.08);
  border-radius: 4px;
  padding: 2.5rem 2rem;
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.card-door:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 46, 93, 0.12);
  border-color: rgba(0, 46, 93, 0.2);
}
.card-hero { border-top: 3px solid #BE2034; }

.numbers-grid .stat { transition: transform 0.3s ease; }
.numbers-grid .stat:hover { transform: translateY(-4px); }
.stat-number {
  font-family: 'IDAHO', Georgia, serif;
  color: #002e5d;
  line-height: 1;
  font-feature-settings: "tnum";
}

.video-carousel { position: relative; }
.video-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.video-track::-webkit-scrollbar { display: none; }
.video-card {
  flex: 0 0 calc(33.333% - 0.67rem);
  scroll-snap-align: start;
  background: #002e5d;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s ease;
  cursor: pointer;
  min-height: 240px;
  position: relative;
}
@media (max-width: 768px) {
  .video-card { flex: 0 0 calc(80% - 0.5rem); }
}
.video-card:hover { transform: scale(1.02); }
.video-thumb {
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
}
.video-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 30%, rgba(0,0,0,0.5) 100%);
}
.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(190, 32, 52, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.video-card:hover .play-icon { transform: translate(-50%, -50%) scale(1.1); }
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  border: none;
}
.carousel-arrow:hover {
  background: #002e5d;
  color: white;
  transform: translateY(-50%) scale(1.05);
}
.carousel-arrow.left { left: -24px; }
.carousel-arrow.right { right: -24px; }

.review-card {
  background: white;
  padding: 2.5rem;
  border-radius: 4px;
  border-left: 3px solid #BE2034;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  position: relative;
}
.review-card::before {
  content: '"';
  font-family: 'IDAHO', Georgia, serif;
  font-size: 5rem;
  color: rgba(190, 32, 52, 0.1);
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  line-height: 1;
}

.section-eyebrow {
  font-family: system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #BE2034;
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.nav-link {
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}
.nav-link:hover { color: white; }
.divider-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #BE2034;
  border-radius: 50%;
  margin: 0 0.75rem;
  vertical-align: middle;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slow-zoom {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.animate-fade-up { animation: fade-up 0.8s ease-out forwards; opacity: 0; }
.animate-slow-zoom { animation: slow-zoom 30s ease-in-out infinite; }

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 2px;
  font-family: 'AvenirBook', sans-serif;
  font-size: 1rem;
  background: white;
  transition: border-color 0.2s ease;
}
.form-input:focus {
  outline: none;
  border-color: #002e5d;
}
.form-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #002e5d;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.reveal-sequence > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal-sequence > *.revealed {
  opacity: 1;
  transform: translateY(0);
}

.page-header {
  background: linear-gradient(135deg, #001a38 0%, #002e5d 100%);
  color: white;
  padding: 8rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(190, 32, 52, 0.2) 0%, transparent 60%);
}

.city-card {
  position: relative;
  aspect-ratio: 4/5;
  background: #002e5d;
  overflow: hidden;
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: white;
}
.city-card-img {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #002e5d 0%, #003870 50%, #BE2034 100%);
  transition: transform 0.6s ease, opacity 0.3s ease;
  opacity: 0.55;
}
.city-card:hover .city-card-img {
  transform: scale(1.05);
  opacity: 0.35;
}
.city-card-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  z-index: 2;
}

/* WP admin bar compatibility */
.admin-bar nav#mainNav { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar nav#mainNav { top: 46px; }
}
