/* BK Home Photos - Main Stylesheet */

/* Size-adjusted fallback fonts to minimize FOUT shift */
@font-face {
  font-family: 'Playfair Fallback';
  src: local('Georgia');
  size-adjust: 112%;
  ascent-override: 95%;
  descent-override: 22%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'PT Serif Fallback';
  src: local('Georgia');
  size-adjust: 105%;
  ascent-override: 95%;
  descent-override: 25%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'Karla Fallback';
  src: local('Arial');
  size-adjust: 96%;
  ascent-override: 95%;
  descent-override: 22%;
  line-gap-override: 0%;
}

/* CSS Variables */
:root {
  --color-primary: #e99361;
  --color-primary-dark: #d67d4a;
  --color-primary-darker: #c46a38;
  --color-black: #000000;
  --color-charcoal: #4a4a4a;
  --color-white: #ffffff;
  --color-beige: #f7e8d3;
  --color-beige-light: #fce5cc;
  --color-gray: #666666;
  
  --font-heading: 'Playfair Display', 'Playfair Fallback', Georgia, serif;
  --font-body: 'PT Serif', 'PT Serif Fallback', Georgia, serif;
  --font-ui: 'Karla', 'Karla Fallback', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --max-width: 1200px;
  --header-height: 80px;
}

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

/* Remove default tap highlight on mobile */
* {
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-black);
  background-color: var(--color-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-style: normal;
  line-height: 1.2;
  color: var(--color-black);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 1.75rem);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==================== HEADER ==================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background-color: var(--color-white);
  border-bottom: 1px solid #eee;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-black);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.logo:hover {
  color: var(--color-black);
  text-decoration: none;
}

.logo-img {
  height: 54px;
  width: auto;
  image-rendering: auto;
  -ms-interpolation-mode: bicubic;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

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

.nav-links a {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-black);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-black);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hide mobile menu CTA on desktop */
.mobile-menu-cta {
  display: none;
}

.header-cta {
  background-color: var(--color-primary);
  color: white;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.header-cta:hover {
  background-color: #d4824f;
  color: white;
  text-decoration: none;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-black);
  margin: 6px 0;
  transition: all 0.3s ease;
}

/* ==================== HERO CAROUSEL ==================== */
.hero-carousel {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Shimmer loading effect for hero */
.hero-slides::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
  background-size: 200% 100%;
  animation: shimmer-dark 1.5s infinite ease-in-out;
  z-index: 0;
}

.hero-carousel.loaded .hero-slides::before {
  display: none;
}

@keyframes shimmer-dark {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-color: #333;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
}

.hero-carousel .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.40);
  z-index: 1;
}

.hero-carousel .hero-content {
  position: relative;
  z-index: 2;
  width: min(980px, 92vw);
  margin: 0 auto;
  margin-bottom: 12vh;
  text-align: center;
}

.hero-carousel .hero-title {
  font-family: var(--font-heading);
  color: var(--color-white);
  margin-bottom: 32px;
  line-height: 1.1;
}

.hero-carousel .hero-title .hero-title-top {
  display: block;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 300;
  margin-bottom: 12px;
}

.hero-carousel .hero-title .hero-title-bottom {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(3.5rem, 10vw, 7rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 600;
}

.hero-subtitle {
  display: block;
  width: 100%;
  max-width: 900px;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 26px;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.86);
  margin: 16px auto 32px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

/* Hero Navigation Arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 3;
  color: var(--color-white);
}

.hero-carousel:hover .hero-arrow {
  opacity: 1;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hero-arrow.prev {
  left: 24px;
}

.hero-arrow.next {
  right: 24px;
}

/* Hero Navigation Dots */
.hero-nav {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 3;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dot:hover {
  background-color: rgba(255, 255, 255, 0.7);
}

.hero-dot.active {
  background-color: var(--color-white);
  transform: scale(1.2);
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 32px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-primary-darker);
  color: var(--color-white);
  text-decoration: none;
}

.btn-primary.hero-cta:hover {
  background-color: #d17442;
}

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

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  text-decoration: none;
}

/* ==================== SLIDER ==================== */
.slider {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 500px;
  overflow: hidden;
  background-color: #f5f5f5;
  -webkit-tap-highlight-color: transparent;
}

/* Shimmer loading effect */
.slider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite ease-in-out;
  z-index: 0;
}

.slider.loaded::before {
  display: none;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.slider-track {
  position: relative;
  height: 100%;
  -webkit-tap-highlight-color: transparent;
  z-index: 1;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-color: #f5f5f5;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  -webkit-tap-highlight-color: transparent;
}

.slide.active {
  opacity: 1;
}

.slider-nav {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.slider-dot.active {
  background-color: var(--color-white);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  width: 64px;
  height: 64px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: white;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
  z-index: 10;
}

.slider-arrow svg {
  width: 36px;
  height: 36px;
}

.slider:hover .slider-arrow {
  opacity: 0.8;
}

.slider-arrow:hover {
  opacity: 1;
}

.slider-arrow.prev {
  left: 24px;
}

.slider-arrow.next {
  right: 24px;
}

.slider-arrow.hidden {
  opacity: 0 !important;
  pointer-events: none;
}

/* Portfolio page slider - smaller than homepage */
.portfolio-slider {
  height: 70vh;
  min-height: 450px;
  max-height: 700px;
  margin-bottom: 40px;
}

.portfolio-slider .slide {
  cursor: pointer;
}

/* Smaller dots for portfolio slider with many slides */
.portfolio-slider .slider-nav {
  flex-wrap: wrap;
  max-width: 90%;
  justify-content: center;
}

.portfolio-slider .slider-dot {
  width: 8px;
  height: 8px;
  margin: 2px;
}

/* ==================== TESTIMONIALS ==================== */
.testimonials {
  background-color: var(--color-white);
  padding: 80px 24px 50px;
}

.testimonials-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.testimonial {
  margin-bottom: 48px;
}

.testimonial:last-child {
  margin-bottom: 0;
}

.testimonial blockquote {
  font-family: var(--font-body);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-style: normal;
  line-height: 1.8;
  color: var(--color-black);
  position: relative;
  padding: 0;
}

.testimonial .quote-mark {
  font-size: 1.2em;
  position: relative;
  top: 0.1em;
}

.testimonial cite {
  display: block;
  margin-top: 16px;
  font-family: var(--font-ui);
  font-size: 15px;
  font-style: normal;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 1px;
}

/* ==================== PAGE HEADER ==================== */
.page-header {
  padding: 40px 24px 10px;
  text-align: center;
  background-color: var(--color-white);
  scroll-margin-top: 80px;
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 8px;
  color: var(--color-black);
  margin-bottom: 0;
  display: inline-block;
}

.page-header-line {
  display: none;
}

.page-header h1::after {
  content: '';
  display: block;
  width: 140%;
  height: 1px;
  background: linear-gradient(to right, transparent, #aaa 8%, #aaa 92%, transparent);
  margin: 10px 0 0;
  margin-left: -20%;
}

/* ==================== PORTFOLIO TABS ==================== */
.portfolio-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  padding: 10px 24px 16px;
  position: sticky;
  top: 80px;
  background-color: var(--color-white);
  z-index: 99;
}

.portfolio-tab {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-gray);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 24px;
  transition: all 0.2s ease;
  outline: none;
}

.portfolio-tabs .portfolio-tab:hover {
  color: var(--color-black);
  background-color: #f0f0f0;
  text-decoration: none;
}

.portfolio-tab.active,
.portfolio-tab.active:hover,
.portfolio-tab.active:focus {
  color: var(--color-white);
  background-color: var(--color-black);
}

/* ==================== PRICING CARDS ==================== */
.pricing-section {
  padding: 30px 24px 50px;
  background-color: var(--color-white);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.pricing-subtitle {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--color-gray);
  letter-spacing: 0.05em;
  margin-top: -8px;
  margin-bottom: 10px;
}

.pricing-card h3 {
  font-family: var(--font-ui);
  font-size: 1.15rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
  color: var(--color-black);
}

.pricing-card .price {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--color-black);
  margin-bottom: 20px;
}

.pricing-card .price .currency {
  font-family: var(--font-ui);
  font-size: 0.55em;
  font-weight: 500;
  position: relative;
  top: -0.3em;
  margin-right: 1px;
}

.pricing-card .price .plus {
  font-family: var(--font-ui);
  font-size: 0.45em;
  font-weight: 500;
  position: relative;
  top: -0.5em;
  margin-left: 2px;
}

.pricing-card .btn-outline {
  display: inline-block;
  padding: 10px 32px;
  border: 2px solid var(--color-primary);
  background-color: var(--color-primary);
  color: white;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.pricing-card .btn-outline:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: white;
}

.pricing-cta {
  text-align: center;
  padding: 30px 24px 60px;
  background-color: var(--color-white);
}

.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: 2px solid var(--color-black);
  background-color: transparent;
  color: var(--color-black);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-outline-dark:hover {
  background-color: #2a2a2a;
  border-color: #2a2a2a;
  color: white;
}

.btn-outline-dark svg {
  width: 16px;
  height: 16px;
}

/* ==================== PORTFOLIO ==================== */
.portfolio-section {
  padding: 60px 24px;
  scroll-margin-top: 100px;
}

.portfolio-slider {
  scroll-margin-top: 100px;
}

.portfolio-section h2 {
  text-align: center;
  margin-bottom: 40px;
  color: var(--color-black);
  font-style: normal !important;
}

.portfolio-content {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Matterport embed */
.matterport-embed {
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  background-color: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

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

.matterport-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  text-align: center;
  padding: 24px;
}

.matterport-placeholder h4 {
  color: var(--color-white);
  margin-bottom: 8px;
}

.matterport-placeholder p {
  font-size: 12px;
  opacity: 0.7;
}

/* Video embeds */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
}

.video-container {
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  background-color: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-embed {
  aspect-ratio: 16/9;
  background-color: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

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

.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.video-embed:hover .play-overlay {
  background: rgba(0, 0, 0, 0.5);
}

.play-overlay svg {
  opacity: 0.9;
  transition: transform 0.3s ease;
}

.video-embed:hover .play-overlay svg {
  transform: scale(1.1);
}

/* Floor plans */
.floor-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .floor-plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .floor-plans-grid {
    grid-template-columns: 1fr;
  }
}

.floor-plan-item {
  text-align: center;
  cursor: pointer;
  height: 400px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background-color: var(--color-white);
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  padding: 20px 24px 28px;
  box-sizing: border-box;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease;
}

.floor-plan-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.floor-plan-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.floor-plan-item .caption {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--color-gray);
}

.floor-plan-item .caption strong {
  display: block;
  font-size: 16px;
  color: var(--color-black);
  margin-bottom: 4px;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 40px;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  -webkit-tap-highlight-color: transparent;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
  font-weight: 300;
  line-height: 1;
  transition: opacity 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.lightbox-close:hover {
  opacity: 0.7;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.lightbox:hover .lightbox-arrow {
  opacity: 0.7;
}

.lightbox-arrow:hover {
  opacity: 1;
}

.lightbox-arrow.hidden {
  display: none;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* Adjust arrows in pair-mode to center with images (accounting for labels) */
.lightbox.pair-mode .lightbox-arrow {
  top: calc(50% + 15px);
}

.lightbox-caption {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  color: white;
  font-family: var(--font-ui);
  font-size: 16px;
}

/* Lightbox pair view (before/after) */
.lightbox-pair {
  display: none;
  gap: 20px;
  max-width: 90vw;
  max-height: 85vh;
  align-items: flex-start;
}

.lightbox.active.pair-mode .lightbox-pair {
  display: flex;
}

.lightbox.active.pair-mode > #lightbox-img {
  display: none;
}

.lightbox-pair-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 50%;
}

.lightbox-label {
  color: white;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  text-align: center;
}

.lightbox-pair-item img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

@media (max-width: 768px) {
  .lightbox-pair {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  
  .lightbox-pair-item {
    max-width: 100%;
  }
  
  .lightbox-pair-item img {
    max-height: 35vh;
  }
  
  .lightbox-label {
    font-size: 12px;
    margin-bottom: 8px;
  }
}

/* Before/After */
.before-after-grid {
  display: grid;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Card container */
.before-after-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #f0f0f0;
  transition: box-shadow 0.2s ease;
}

.before-after-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.before-after-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.before-after-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}

/* Label above image - centered */
.before-after-item .label-above {
  display: block;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #555;
  margin-bottom: 10px;
}

.before-after-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Caption below pair */
.before-after-caption {
  text-align: center;
  margin-top: 16px;
  font-family: var(--font-ui);
  font-size: 15px;
  color: #666;
}

/* Section subheadline */
.section-subheadline {
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 400;
  color: #777;
  text-align: center;
  margin-top: -20px;
  margin-bottom: 40px;
}

/* Mobile */
@media (max-width: 768px) {
  .before-after-pair {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .before-after-card {
    padding: 16px;
  }
  
  /* Slightly larger label on mobile for readability */
  .before-after-item .label-above {
    font-size: 14px;
  }
}

/* ==================== FAQ ==================== */
.faq-section {
  padding: 40px 24px 20px;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #eee;
}

.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.faq-item h3 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  margin-bottom: 12px;
  color: var(--color-black);
}

.faq-item p {
  font-family: var(--font-ui);
  color: var(--color-gray);
  line-height: 1.8;
  font-size: 1.05rem;
}

.faq-item a {
  color: var(--color-primary);
  text-decoration: none;
}

.faq-item a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

/* ==================== CONTACT ==================== */
.contact-section {
  padding: 40px 24px 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto;
  align-items: center;
}

.contact-info {
  padding: 40px;
}

.contact-info p {
  font-size: 1.22rem;
  margin-bottom: 20px;
  line-height: 1.8;
  color: var(--color-gray);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-details a {
  font-family: var(--font-ui);
  font-size: 1.125rem;
  font-weight: 500;
}

.help-center-link {
  margin-top: 24px;
  font-size: 1rem;
  color: var(--color-gray);
}

.help-center-link a {
  color: var(--color-primary);
  text-decoration: none;
}

.help-center-link a:hover {
  text-decoration: underline;
}

.contact-image {
  height: 400px;
  background: linear-gradient(135deg, var(--color-beige) 0%, #e8ddd3 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* ==================== FOOTER ==================== */
.footer {
  background-color: var(--color-white);
  padding: 32px 24px;
  text-align: center;
  margin-top: auto;
}

.footer p {
  font-family: var(--font-ui);
  font-size: 14px;
  color: #888;
  letter-spacing: 0.5px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .nav-links,
  .header-cta {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .nav.active .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--color-white);
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    gap: 0;
  }
  
  .nav.active .nav-links li {
    padding: 16px 0;
    border-bottom: 1px solid #eee;
  }
  
  .nav.active .nav-links li:last-child {
    border-bottom: none;
  }
  
  .hero-carousel {
    height: 100vh;
    min-height: 500px;
  }
  
  .hero-arrow {
    width: 44px;
    height: 44px;
  }
  
  .hero-arrow.prev {
    left: 12px;
  }
  
  .hero-arrow.next {
    right: 12px;
  }
  
  .hero-nav {
    bottom: 24px;
  }
  
  .hero-subtitle {
    font-size: 20px;
    max-width: 92%;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .video-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-image {
    order: -1;
    height: 300px;
  }
}

/* ==================== UTILITY CLASSES ==================== */
.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 32px;
}

.mb-4 {
  margin-bottom: 32px;
}

/* Placeholder images styling */
.placeholder-image {
  background: linear-gradient(135deg, #e8ddd3 0%, #d4c4b0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray);
  font-family: var(--font-ui);
  font-size: 14px;
}

/* ==================== MOBILE-SPECIFIC OVERRIDES ==================== */
@media (max-width: 768px) {
  /* Header & Logo */
  .header {
    height: 60px !important;
  }
  
  .logo-img {
    height: 36px !important;
  }
  
  /* Portfolio tabs - slightly larger font */
  .portfolio-tabs {
    top: 60px !important;
    padding: 8px 12px 12px !important;
    gap: 4px 4px !important;
  }
  
  .portfolio-tab {
    font-size: 13.5px !important;
    padding: 6px 10px !important;
  }
  
  /* Mobile menu - partial overlay with backdrop */
  .mobile-menu-backdrop {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .mobile-menu-backdrop.active {
    display: block;
    opacity: 1;
  }
  
  .nav.active .nav-links {
    position: fixed !important;
    top: 60px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    padding: 8px 0 0 !important;
    background: var(--color-white) !important;
    z-index: 999 !important;
    overflow: hidden !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
    border-radius: 0 0 16px 16px !important;
  }
  
  .nav.active .nav-links li {
    padding: 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
  }
  
  .nav.active .nav-links li:last-child {
    border-bottom: none !important;
  }
  
  .nav.active .nav-links li a {
    display: block;
    padding: 16px 24px !important;
    letter-spacing: 0.5px !important;
  }
  
  /* Active page highlight */
  .nav.active .nav-links li a.active {
    color: var(--color-primary) !important;
    font-weight: 600 !important;
    position: relative;
  }
  
  .nav.active .nav-links li a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: var(--color-primary);
    border-radius: 0 2px 2px 0;
  }
  
  /* Book Now button in mobile menu */
  .nav.active .nav-links li.mobile-menu-cta {
    display: block !important;
    padding: 16px 24px 20px !important;
    border-bottom: none !important;
  }
  
  .nav.active .nav-links li.mobile-menu-cta a {
    display: block;
    background-color: var(--color-primary);
    color: white !important;
    text-align: center;
    padding: 14px 24px;
    border-radius: 6px;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: background-color 0.3s ease;
  }
  
  .nav.active .nav-links li.mobile-menu-cta a:hover {
    background-color: var(--color-primary-dark);
    text-decoration: none;
  }
  
  /* Mobile menu toggle - SVG based */
  .mobile-menu-toggle {
    position: relative !important;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: none !important;
    border: none !important;
  }
  
  .mobile-menu-toggle svg {
    display: block;
  }
  
  /* Hero carousel - medium height so dots are just slightly hidden */
  .hero-carousel {
    height: calc(100vh - 60px - 8vh) !important;
    min-height: 480px !important;
    max-height: 700px !important;
  }
  
  .hero-carousel .hero-content {
    margin-bottom: 11vh !important;
  }
  
  .hero-carousel .hero-title {
    margin-bottom: 20px !important;
  }
  
  .hero-carousel .hero-title .hero-title-top {
    margin-bottom: 8px !important;
  }
  
  .hero-slide {
    background-position: center 30% !important;
  }
  
  .hero-nav {
    bottom: 16px !important;
  }
  
  /* Page header - reduce top whitespace */
  .page-header {
    padding: 20px 24px 10px !important;
  }
  
  /* FAQ page - reduce space between header and content, but add space below title */
  .faq-section {
    padding-top: 0 !important;
    padding-bottom: 48px !important;
  }
  
  .faq-section .faq-item:first-child {
    margin-top: 16px !important;
  }
  
  /* FAQ headings - larger on mobile */
  .faq-item h3 {
    font-size: 1.6rem !important;
  }
  
  /* Pricing cards - lighter background, more padding below button */
  .pricing-card {
    background-color: #f2f2f2 !important;
    padding-bottom: 44px !important;
  }
  
  /* Pricing CTA - less padding above, more below */
  .pricing-cta {
    padding-top: 0 !important;
    margin-top: -6px !important;
    padding-bottom: 36px !important;
  }
  
  /* Contact page - more space below header */
  .contact-section {
    padding: 16px 16px 0 !important;
  }
  
  .contact-grid {
    gap: 24px !important;
  }
  
  .contact-image {
    height: 180px !important;
  }
  
  .contact-info {
    padding: 0 8px 0 !important;
    margin-top: 16px !important;
  }
  
  .contact-details {
    align-items: flex-start !important;
  }
  
  .help-center-link {
    margin-top: 16px !important;
    margin-bottom: 0 !important;
  }
  
  /* Portfolio section - reduce bottom padding */
  .portfolio-section {
    padding: 45px 24px 24px !important;
  }
  
  .portfolio-slider {
    margin-bottom: 28px !important;
  }
  
  /* Floor plan cards - less padding on mobile */
  .floor-plan-item {
    padding: 12px 12px 16px !important;
    height: 340px !important;
  }
  
  /* Matterport embed - taller on mobile */
  .matterport-embed {
    aspect-ratio: 4/3 !important;
  }
  
  /* Hide carousel arrows on mobile - swipe is expected behavior */
  .slider-arrow {
    display: none !important;
  }
  
  /* Portfolio slider - show full uncropped images on mobile */
  .portfolio-slider {
    /* Use viewport-width-based height for 3:2 aspect ratio */
    height: calc(100vw * 2 / 3) !important;
    min-height: 220px !important;
    max-height: 400px !important;
  }
  
  .portfolio-slider .slider-track {
    height: 100% !important;
  }
  
  .portfolio-slider .slide {
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
  }
  
  .portfolio-slider .slider-nav {
    display: none !important;
  }
  
  /* Footer - more padding below copyright */
  .footer {
    padding: 12px 24px 32px !important;
  }
  
  /* Lightbox - larger image with arrows outside */
  .lightbox {
    touch-action: pan-x pan-y !important;
    padding: 50px 8px 50px !important;
  }
  
  .lightbox .lightbox-arrow {
    opacity: 0.8 !important;
    background: none !important;
    border-radius: 0 !important;
    width: auto !important;
    height: auto !important;
    padding: 8px !important;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)) !important;
  }
  
  .lightbox .lightbox-arrow svg {
    width: 24px !important;
    height: 24px !important;
  }
  
  .lightbox .lightbox-arrow:active {
    opacity: 1 !important;
  }
  
  .lightbox .lightbox-prev {
    left: 0 !important;
  }
  
  .lightbox .lightbox-next {
    right: 0 !important;
  }
  
  .lightbox .lightbox-arrow.hidden {
    opacity: 0 !important;
    pointer-events: none !important;
  }
  
  .lightbox img#lightbox-img {
    max-width: calc(100% - 64px) !important;
    max-height: 85vh !important;
  }
  
  /* Lightbox pair view (before/after) - match single image width */
  .lightbox .lightbox-pair {
    max-width: calc(100% - 64px) !important;
    margin: 0 auto !important;
  }
  
  .lightbox .lightbox-pair-item {
    max-width: 100% !important;
  }
  
  .lightbox .lightbox-pair-item img {
    max-width: 100% !important;
  }
}
