/* ==========================================================================
   Tiny House Pod - Parallax, Motion & Advanced Graphical Effects
   ========================================================================== */

/* --------------------------------------------------------------------------
   Background Ambient Orbs & Canvas Grid
   -------------------------------------------------------------------------- */
.bg-ambient-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  transition: transform 0.2s ease-out;
  will-change: transform;
}

.orb-primary {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #52b788 0%, rgba(45, 106, 79, 0.1) 70%);
}

.orb-terracotta {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, #e07a5f 0%, rgba(200, 109, 81, 0.1) 70%);
}

.orb-amber {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #e9c46a 0%, rgba(212, 163, 115, 0.1) 70%);
}

/* Subtle Architectural Grid Lines in Background */
.architectural-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.dark-section .architectural-grid {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

/* --------------------------------------------------------------------------
   Parallax Hero Section
   -------------------------------------------------------------------------- */
.hero-parallax {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + 2rem);
  padding-bottom: 4.5rem;
  overflow: hidden;
  background: linear-gradient(180deg, #f7f3ed 0%, #ebe4d8 100%);
}

.hero-content-wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-lead-text {
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-lead-text strong {
  color: var(--text-dark);
  font-weight: 600;
}

.hero-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-dark);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* Visual Showcase Container (Image Card with Parallax Depth) */
.hero-visual-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: visible;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(18, 24, 21, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  background: var(--bg-surface);
}

.hero-image {
  width: 100%;
  height: 100%;
  max-height: 540px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
  transform: scale(1.02);
}

.hero-image-wrapper:hover .hero-image {
  transform: scale(1.06);
}

/* Floating Badges on Hero Image */
.floating-badge {
  position: absolute;
  padding: 0.9rem 1.3rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  z-index: 3;
  animation: floatSlow 6s ease-in-out infinite;
}

.floating-badge.badge-top-right {
  top: 6%;
  right: -5%;
  animation-delay: 0s;
}

.floating-badge.badge-bottom-left {
  bottom: 8%;
  left: -6%;
  animation-delay: 2.5s;
}

.floating-badge-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-badge-icon svg {
  width: 20px;
  height: 20px;
}

.floating-badge-text {
  display: flex;
  flex-direction: column;
}

.floating-badge-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
}

.floating-badge-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Interactive Glassmorphism Cards
   -------------------------------------------------------------------------- */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.glass-panel-dark {
  background: var(--glass-dark-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-dark-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  color: var(--text-light);
}

/* Parallax Depth Layer */
[data-parallax-depth] {
  will-change: transform;
  transition: transform 0.15s cubic-bezier(0.2, 0.9, 0.3, 1);
}

/* --------------------------------------------------------------------------
   Scroll Animations
   -------------------------------------------------------------------------- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --------------------------------------------------------------------------
   Keyframe Animations
   -------------------------------------------------------------------------- */
@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(0.8deg);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(1.08);
  }
}

/* --------------------------------------------------------------------------
   Workshop Page Elements
   -------------------------------------------------------------------------- */
.workshop-hero-banner {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  background-color: var(--bg-dark);
  color: var(--text-light);
  overflow: hidden;
  padding-top: calc(var(--nav-height) + 3rem);
  padding-bottom: 5rem;
}

.workshop-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  opacity: 0.45;
  filter: brightness(0.85);
  pointer-events: none;
  transform: translateY(0);
  will-change: transform;
}

.workshop-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, 
    rgba(18, 24, 21, 0.6) 0%, 
    rgba(18, 24, 21, 0.85) 60%, 
    var(--bg-dark) 100%);
}

.workshop-schedule-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border-left: 5px solid var(--primary);
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
  transition: transform var(--transition-normal);
}

.workshop-schedule-card:hover {
  transform: translateX(6px);
}

.workshop-schedule-day {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.workshop-info-stat {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--bg-surface-alt);
  border-radius: var(--radius-md);
}

.workshop-info-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Contact Page Elements & Parallax Background Sketch
   -------------------------------------------------------------------------- */
.contact-hero-parallax-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + 2.5rem);
  padding-bottom: 5.5rem;
  overflow: hidden;
  background-color: #f7f4ee;
}

.contact-sketch-bg-wrap {
  position: absolute;
  top: -25%;
  left: 0;
  width: 100%;
  height: 165%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.contact-sketch-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  opacity: 0.86;
  filter: contrast(1.16) brightness(0.97);
  will-change: transform;
  transform: scale(1.45) translate3d(0, 0, 0);
  transform-origin: center 42%;
}

.contact-sketch-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, 
    rgba(247, 244, 238, 0.95) 0%, 
    rgba(247, 244, 238, 0.86) 48%, 
    rgba(247, 244, 238, 0.20) 75%, 
    rgba(247, 244, 238, 0.45) 100%);
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 1024px) {
  .contact-sketch-overlay {
    background: rgba(247, 244, 238, 0.88);
  }
  .contact-sketch-bg {
    transform: scale(1.22) translate3d(0, 0, 0);
  }
}

.contact-grid-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
}

.contact-form-card {
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 50px rgba(18, 24, 21, 0.08);
}

.contact-spotlight-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 45px rgba(18, 24, 21, 0.08);
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
}

.blueprint-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.blueprint-feature-item:last-child {
  border-bottom: none;
}

.blueprint-pin-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 700;
}

/* Lightbox Modal */
.blueprint-modal {
  position: fixed;
  inset: 0;
  background: rgba(18, 24, 21, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.blueprint-modal.active {
  display: flex;
  opacity: 1;
}

.blueprint-modal-content {
  position: relative;
  max-width: 850px;
  width: 100%;
  max-height: 90vh;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
}

.blueprint-modal-img {
  width: 100%;
  height: auto;
  max-height: 75vh;
  object-fit: contain;
  display: block;
  background: #ffffff;
}

.blueprint-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: var(--bg-surface-alt);
  border-bottom: 1px solid var(--border-light);
}

.blueprint-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-dark);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
}

.blueprint-modal-close:hover {
  background: rgba(0,0,0,0.08);
}

.contact-note-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  background: rgba(45, 106, 79, 0.08);
  border: 1px solid rgba(45, 106, 79, 0.15);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: var(--primary-dark);
  margin-top: 1.25rem;
  line-height: 1.5;
}

/* Form Styles */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-sm);
  background: white;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dark);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
}

/* Form Feedback Alerts */
.form-status {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-top: 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  animation: fadeIn 0.3s ease;
}

.form-status.success {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #a5d6a7;
}

.form-status.error {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #ffebee;
  color: #b71c1c;
  border: 1px solid #ffcdd2;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   Responsive Styles for Parallax & Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-content-wrap {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .floating-badge.badge-top-right {
    right: 2%;
    top: 2%;
  }
  .floating-badge.badge-bottom-left {
    left: 2%;
    bottom: 2%;
  }
}

@media (max-width: 768px) {
  .hero-parallax {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 1.5rem);
    padding-bottom: 3.5rem;
  }
  .floating-badge {
    position: static;
    margin-top: 1rem;
    animation: none;
  }
  .hero-visual-frame {
    margin-top: 1.5rem;
  }
  .orb {
    display: none; /* reduce paint overhead on mobile */
  }
  .sketch-overlay-tag {
    position: static;
    margin: 1rem;
    border-radius: var(--radius-sm);
  }
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}
