/* 
  Ashford Estates - Premium Luxury Stylesheet
  Theme: Midnight Luxury (Charcoal, Obsidian Black, Champagne Gold, Glassmorphism)
*/

/* Custom Variables */
:root {
  --bg-primary: #0a0b0d;
  --bg-secondary: #121418;
  --bg-glass: rgba(18, 20, 24, 0.7);
  --bg-glass-heavy: rgba(10, 11, 13, 0.9);
  
  --color-gold: #d4af37;
  --color-gold-hover: #f3cf65;
  --color-gold-muted: rgba(212, 175, 55, 0.6);
  --color-gold-glow: rgba(212, 175, 55, 0.3);
  
  --text-primary: #f5f5f7;
  --text-secondary: #e2e2e7;
  --text-muted: #a1a1a6;
  
  --color-error: #cf4f4f;
  --color-error-bg: rgba(207, 79, 79, 0.1);
  --color-success: #4fcf85;
  --color-success-bg: rgba(79, 207, 133, 0.1);
  
  --border-glass: rgba(212, 175, 55, 0.12);
  --border-glass-light: rgba(255, 255, 255, 0.08);
  
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Montserrat', sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  
  --slider-pos: 50%;
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  background-color: var(--bg-primary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

button, input, select, textarea {
  font-family: inherit;
  background: none;
  border: none;
  outline: none;
  color: inherit;
}

/* Typography & Accent Elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.gold-text {
  color: var(--color-gold);
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--color-gold);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 400;
  margin-bottom: 16px;
}

.title-accent-line {
  width: 60px;
  height: 2px;
  background-color: var(--color-gold);
  margin-bottom: 24px;
}

.title-accent-line.center {
  margin-left: auto;
  margin-right: auto;
}

.section-description {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
}

.lead-text {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.body-text {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.max-600 {
  max-width: 600px;
}

.max-800 {
  max-width: 800px;
}

.text-center {
  text-align: center;
}

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

/* Helpers & Container */
.container {
  width: 90%;
  max-width: 1320px;
  margin: 0 auto;
}

.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.align-center {
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-gold {
  background-color: var(--color-gold);
  color: var(--bg-primary);
  border: 1px solid var(--color-gold);
}

.btn-gold:hover {
  background-color: var(--color-gold-hover);
  border-color: var(--color-gold-hover);
  box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

.btn-outline-gold {
  background: transparent;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
}

.btn-outline-gold:hover {
  background-color: var(--color-gold);
  color: var(--bg-primary);
  box-shadow: 0 5px 20px rgba(212, 175, 55, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--text-primary);
}

.btn-block {
  width: 100%;
}

/* Glassmorphic Header styling */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 24px 0;
  transition: var(--transition-smooth);
}

.main-header.scrolled {
  padding: 12px 0;
  background-color: var(--bg-glass);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-container {
  width: 90%;
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 18px;
  letter-spacing: 0.15em;
  font-weight: 500;
}

.logo-symbol {
  color: var(--color-gold);
  font-size: 20px;
  text-shadow: 0 0 10px var(--color-gold-glow);
}

.logo-text {
  color: var(--text-primary);
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-link {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-gold);
  transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
  color: var(--color-gold);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
}

.hamburger {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  position: relative;
  transition: var(--transition-smooth);
}

.hamburger::before, .hamburger::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  left: 0;
  transition: var(--transition-smooth);
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

/* Active Nav Toggle */
.nav-toggle.open .hamburger {
  background-color: transparent;
}
.nav-toggle.open .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}
.nav-toggle.open .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

/* Hero Section with Scroll Shrink Card */
.hero-scroll-wrapper {
  height: 200vh;
  position: relative;
  background-color: var(--bg-primary);
}

.hero-sticky-container {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-primary);
}

.hero-card {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  transform-origin: center center;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border-radius: 0px;
  will-change: transform;
}

.hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(10, 11, 13, 0.4) 0%, rgba(10, 11, 13, 0.8) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-tagline {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--color-gold);
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  color: var(--text-primary);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.hero-divider {
  width: 80px;
  height: 2px;
  background-color: var(--color-gold);
  margin-bottom: 30px;
  box-shadow: 0 0 10px var(--color-gold-glow);
}

.hero-subtitle {
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 40px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.8;
}

.mouse-icon {
  width: 24px;
  height: 40px;
  border: 1px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
}

.mouse-wheel {
  display: block;
  width: 4px;
  height: 8px;
  background-color: var(--color-gold);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translate(-50%, 0);
  animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
  0% {
    transform: translate(-50%, 0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, 16px);
    opacity: 0;
  }
}

.scroll-text {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Native CSS Scroll Animation */
@supports (animation-timeline: scroll()) {
  @keyframes shrinkHero {
    from {
      transform: scale(1);
      border-radius: 0px;
      box-shadow: 0 0 0 rgba(212, 175, 55, 0);
    }
    to {
      transform: scale(0.85);
      border-radius: 24px;
      box-shadow: 0 20px 80px var(--color-gold-glow);
    }
  }

  .hero-card {
    animation-name: shrinkHero;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
    animation-timeline: scroll(root);
    animation-range: 0px 100vh;
  }
}

/* Vision Section */
.vision-section {
  padding: 120px 0;
  background-color: var(--bg-primary);
  position: relative;
  z-index: 10;
}

.vision-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--color-gold);
}

.stat-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

.vision-image-block {
  position: relative;
  padding: 20px;
}

.focal-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  z-index: 2;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.focal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-accent-border {
  position: absolute;
  top: -10px;
  right: -10px;
  bottom: 50px;
  left: 50px;
  border: 1px solid var(--color-gold);
  border-radius: 8px;
  z-index: 1;
  pointer-events: none;
}

.floating-glass-badge {
  position: absolute;
  bottom: 40px;
  left: -20px;
  z-index: 3;
  background-color: var(--bg-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  padding: 20px 24px;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.badge-icon {
  color: var(--color-gold);
  font-size: 14px;
  margin-bottom: 6px;
}

.badge-title {
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--text-primary);
}

.badge-subtitle {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Before/After Comparison Section */
.transformation-section {
  padding: 120px 0;
  background-color: var(--bg-secondary);
}

.transformation-section .section-description {
  margin: 0 auto 50px;
}

.before-after-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-glass-light);
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
}

.before-after-container:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 4px;
}

.image-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.slider-image-wrapper {
  width: 100%;
  height: 100%;
}

.slider-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.after-layer {
  z-index: 1;
}

.before-layer {
  z-index: 2;
  /* Clipped based on variable --slider-pos */
  clip-path: inset(0 calc(100% - var(--slider-pos, 50%)) 0 0);
}

.image-label {
  position: absolute;
  bottom: 24px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 4px;
  background-color: rgba(10, 11, 13, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  pointer-events: none;
  z-index: 3;
}

.label-before {
  left: 24px;
  border-left: 2px solid var(--color-gold);
}

.label-after {
  right: 24px;
  border-right: 2px solid var(--color-gold);
}

/* Slider Handle styling */
.slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--slider-pos, 50%);
  width: 0;
  z-index: 4;
  pointer-events: none;
}

.slider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1px;
  width: 2px;
  background-color: var(--color-gold);
  box-shadow: 0 0 10px var(--color-gold-glow);
}

.slider-button {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--bg-primary);
  border: 2px solid var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  pointer-events: auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6), 0 0 10px var(--color-gold-glow);
  transition: transform 0.2s, background-color 0.2s, border-color 0.2s;
}

.slider-button:hover, .slider-button:active {
  transform: translate(-50%, -50%) scale(1.1);
  background-color: var(--color-gold);
  border-color: var(--color-gold-hover);
}

.slider-button:hover .slider-icon, .slider-button:active .slider-icon {
  color: var(--bg-primary);
}

.slider-icon {
  color: var(--color-gold);
  font-size: 16px;
  transition: color 0.2s;
}

.slider-button:active {
  cursor: grabbing;
}

/* Dedicated Galleries styling */
.gallery-section {
  padding: 120px 0;
  background-color: var(--bg-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.gallery-section:nth-of-type(even) {
  background-color: var(--bg-secondary);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
}

/* Grids */
.gallery-grid {
  display: grid;
  gap: 30px;
}

.grid-3col {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4col {
  grid-template-columns: repeat(4, 1fr);
}

/* Gallery Card Design */
.gallery-card {
  background-color: var(--bg-glass);
  border: 1px solid var(--border-glass-light);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.gallery-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glass);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 15px rgba(212, 175, 55, 0.08);
}

.card-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background-color: #121418;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-card:hover .gallery-image {
  transform: scale(1.06);
}

.card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-location {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 8px;
}

.card-title {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.card-desc {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 16px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

/* Bedroom Amenities list style */
.bedroom-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 16px;
}

.bedroom-amenities span {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-gold);
  background-color: rgba(212, 175, 55, 0.06);
  padding: 4px 10px;
  border-radius: 2px;
  border: 1px solid rgba(212, 175, 55, 0.12);
}

/* Interior Collage Layout (Asymmetrical) */
.interior-collage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(260px, auto);
  gap: 24px;
}

.collage-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-glass-light);
  min-height: 280px;
}

.collage-card.span-large {
  grid-column: span 2;
  grid-row: span 2;
}

.collage-card.span-wide {
  grid-column: span 2;
  grid-row: span 1;
}

.collage-card .card-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.collage-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(10, 11, 13, 0.1) 0%, rgba(10, 11, 13, 0.95) 100%);
  z-index: 2;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
}

.collage-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 8px;
}

.collage-title {
  font-size: 1.6rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.collage-desc {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 480px;
  transform: translateY(15px);
  opacity: 0;
  transition: var(--transition-smooth);
}

/* Hover effects for Collage Card */
.collage-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid var(--color-gold);
  border-radius: 8px;
  opacity: 0;
  z-index: 3;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.collage-card:hover::after {
  opacity: 0.3;
}

.collage-card:hover .gallery-image {
  transform: scale(1.05);
}

.collage-card:hover .collage-desc {
  transform: translateY(0);
  opacity: 1;
}

/* Contact Section & Acquisition Form */
.contact-section {
  position: relative;
  padding: 140px 0;
  background-color: var(--bg-primary);
  overflow: hidden;
}

.contact-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.contact-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(10, 11, 13, 0.98) 30%, rgba(10, 11, 13, 0.8) 100%);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 40px;
}

.detail-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.detail-icon {
  font-size: 24px;
  color: var(--color-gold);
  line-height: 1;
  text-shadow: 0 0 10px var(--color-gold-glow);
}

.detail-item h4 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.detail-item p {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-muted);
}

.contact-form-block {
  display: flex;
  justify-content: flex-end;
}

.glass-form-card {
  width: 100%;
  max-width: 500px;
  background-color: var(--bg-glass-heavy);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
}

.glass-form-card h3 {
  font-size: 1.8rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-instruction {
  font-size: 12px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* Form controls styling */
.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input, 
.form-group select, 
.form-group textarea {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 18px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 300;
  transition: var(--transition-smooth);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23d4af37' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 12px;
}

.form-group select option {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
  border-color: var(--color-gold);
  background-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.15);
}

/* Valid & Invalid Validation styles */
.form-group.invalid input,
.form-group.invalid select,
.form-group.invalid textarea {
  border-color: var(--color-error);
  box-shadow: 0 0 8px rgba(207, 79, 79, 0.15);
}

.form-group.valid input,
.form-group.valid select,
.form-group.valid textarea {
  border-color: var(--color-gold-muted);
}

.error-message {
  display: block;
  font-size: 10px;
  color: var(--color-error);
  margin-top: 6px;
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: opacity 0.3s, height 0.3s;
}

.form-group.invalid .error-message {
  opacity: 1;
  height: auto;
}

/* Footer Section */
.main-footer {
  background-color: #050608;
  padding: 80px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-brand-tagline {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-muted);
  margin-top: 16px;
  max-width: 260px;
}

.footer-links h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-muted);
}

.footer-links ul li a:hover {
  color: var(--color-gold);
  padding-left: 4px;
}

.footer-status {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--color-gold-muted);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 300;
  color: var(--text-muted);
}

.architect-credit {
  font-size: 11px;
  color: var(--color-gold-muted);
  letter-spacing: 0.05em;
}

/* Skeleton Loading Screen styling */
.skeleton {
  position: relative;
  overflow: hidden;
  background-color: #1a1c22 !important;
}

.skeleton::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.02) 20%,
    rgba(255, 255, 255, 0.06) 60%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: shimmer 1.8s infinite;
  z-index: 3;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

.skeleton img {
  opacity: 0 !important;
  visibility: hidden;
}

/* Fade-in reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Broken Image Fallback styling */
.image-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0d0f12 0%, #1c2026 50%, #13161b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--color-gold-muted);
  padding: 20px;
  box-sizing: border-box;
}

.fallback-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.fallback-icon {
  font-size: 24px;
  color: var(--color-gold);
  text-shadow: 0 0 10px var(--color-gold-glow);
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
}

.fallback-title {
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

/* Toast Notification Styles */
.toast-container {
  position: fixed;
  top: 32px;
  right: 32px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  width: calc(100% - 64px);
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  padding: 16px 20px;
  border-radius: 4px;
  background-color: var(--bg-glass-heavy);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  border: 1px solid var(--border-glass);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
  transform: translateY(-20px);
  opacity: 0;
  animation: toastIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.toast.success {
  border-left: 3px solid var(--color-gold);
}

.toast.error {
  border-left: 3px solid var(--color-error);
}

.toast-message {
  line-height: 1.5;
  font-weight: 300;
}

.toast-close {
  background: none;
  border: none;
  font-size: 16px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px;
  transition: var(--transition-smooth);
}

.toast-close:hover {
  color: var(--color-gold);
}

.toast.fade-out {
  animation: toastOut 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes toastIn {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes toastOut {
  to {
    transform: translateY(-20px);
    opacity: 0;
  }
}

/* Media Queries (Responsive Design) */

/* Large Tablets & Desktop adjustments */
@media (max-width: 1200px) {
  .footer-top-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

}

/* Tablets (1024px and down) */
@media (max-width: 1024px) {
  .grid-2col {
    gap: 40px;
  }
  
  .vision-stats {
    gap: 20px;
  }
  
  .stat-num {
    font-size: 1.8rem;
  }
  
  /* Interiors Collage -> 2-columns on tablet */
  .interior-collage-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(280px, auto);
  }
  
  .collage-card.span-large {
    grid-column: span 2;
    grid-row: span 1;
  }
  
  .collage-card.span-wide {
    grid-column: span 2;
  }
  
  .collage-desc {
    transform: translateY(0);
    opacity: 1;
  }

  /* Activate Hamburger Menu on Tablets (1024px) and below */
  .main-header {
    padding: 16px 0;
    background-color: rgba(10, 11, 13, 0.9);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .header-container {
    position: relative;
  }
  
  .nav-toggle {
    display: flex;
    order: 3;
  }
  
  .nav-menu {
    position: absolute;
    top: calc(100% + 16px);
    left: -5%;
    width: 110%;
    background-color: var(--bg-glass-heavy);
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--border-glass);
    padding: 40px 30px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: var(--transition-smooth);
    z-index: 99;
  }
  
  .nav-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  
  .nav-link {
    font-size: 14px;
  }
  
  .header-cta {
    margin-left: auto;
    margin-right: 20px;
    order: 2;
  }
  
  .header-cta .btn {
    padding: 8px 18px;
    font-size: 10px;
  }
}

/* Large Phones & Tablets (768px and down) */
@media (max-width: 768px) {
  /* Hero: shorter scroll distance on mobile for snappier feel */
  .hero-scroll-wrapper {
    height: 130vh;
  }

  /* Reduced section padding throughout */
  .vision-section,
  .gallery-section {
    padding: 80px 0;
  }

  .transformation-section {
    padding: 80px 0;
  }

  .grid-2col {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .vision-image-block {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
    /* Prevent floating badge from clipping outside the viewport */
    padding: 20px 24px;
  }

  /* Badge repositioned so it never clips the left viewport edge */
  .floating-glass-badge {
    left: 0;
    bottom: 30px;
  }
  
  /* Grids -> 2 columns on tablet */
  .grid-3col {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
  }
  
  /* Cap height on landscape tablets so the slider isn't excessively tall */
  .before-after-container {
    aspect-ratio: 4 / 3;
    max-height: 70vh;
  }
  
  .contact-bg-wrapper {
    display: none;
  }
  
  .contact-section {
    background-color: var(--bg-secondary);
    padding: 80px 0;
  }
  
  .contact-overlay {
    display: none;
  }
  
  .contact-form-block {
    justify-content: center;
  }
  
  .glass-form-card {
    padding: 30px 24px;
  }
  
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-brand {
    grid-column: span 2;
    margin-bottom: 20px;
  }

  /* Toast: position below the fixed mobile header, not at top: 32px */
  .toast-container {
    top: 80px;
    right: 16px;
    width: calc(100% - 32px);
  }
}

/* Touch devices: always show collage descriptions (no hover available) */
@media (hover: none) {
  .collage-desc {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Small Phones (480px and down) */
@media (max-width: 480px) {
  /* Further reduced padding on small phones */
  .vision-section,
  .gallery-section {
    padding: 60px 0;
  }

  .transformation-section {
    padding: 60px 0;
  }

  .contact-section {
    padding: 60px 0;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .hero-buttons .btn {
    width: 100%;
  }

  /* Hero tagline: tighten letter spacing to prevent wrapping on narrow screens */
  .hero-tagline {
    letter-spacing: 0.12em;
    font-size: 10px;
  }
  
  /* Grids -> 1 column on phone */
  .grid-3col {
    grid-template-columns: 1fr;
  }
  
  .interior-collage-grid {
    grid-template-columns: 1fr;
  }
  
  .collage-card.span-large, .collage-card.span-wide {
    grid-column: span 1;
  }

  /* Vision stats: wrap to 2-up layout on very small screens */
  .vision-stats {
    flex-wrap: wrap;
    gap: 20px 32px;
  }

  .stat-num {
    font-size: 1.6rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .footer-top-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-brand, .footer-links {
    grid-column: span 1;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  /* Before/After: use 1:1 ratio on very small screens, cap height */
  .before-after-container {
    aspect-ratio: 1 / 1;
    max-height: 85vw;
  }
}

/* Premium Preloader Styling */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-primary);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              visibility 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 1;
  visibility: visible;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.preloader-symbol {
  font-size: 40px;
  color: var(--color-gold);
  text-shadow: 0 0 20px var(--color-gold-glow);
  animation: preloaderPulse 3s infinite ease-in-out;
}

.preloader-brand {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  letter-spacing: 0.2em;
  color: var(--text-primary);
  font-weight: 300;
  margin-top: 8px;
}

.preloader-bar {
  width: 120px;
  height: 1px;
  background-color: transparent;
  margin-top: 10px;
  position: relative;
  overflow: hidden;
  border-radius: 1px;
}

.preloader-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 30%;
  background-color: var(--color-gold);
  box-shadow: 0 0 8px var(--color-gold-glow);
  animation: preloaderBarMove 2.5s infinite ease-in-out;
}

@keyframes preloaderPulse {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.15) rotate(180deg);
    opacity: 1;
  }
}

@keyframes preloaderBarMove {
  0% {
    left: -30%;
  }
  100% {
    left: 100%;
  }
}

