/* 833 Salem Ave — Custom Styles */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* Custom color palette */
:root {
  --navy: #1B2A4A;
  --navy-light: #2A3D66;
  --warm-white: #FAFAF7;
  --gold: #C5A55A;
  --gold-light: #D4BA7A;
  --gold-dark: #A68A3E;
  --text-dark: #1a1a1a;
  --text-muted: #6B7280;
  --border: #E5E7EB;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--warm-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
}

.font-playfair {
  font-family: 'Playfair Display', serif;
}

/* Hero section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(27, 42, 74, 0.3) 0%,
    rgba(27, 42, 74, 0.5) 50%,
    rgba(27, 42, 74, 0.7) 100%
  );
  z-index: 1;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 2rem;
}

/* Sticky navigation */
.nav-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s ease;
}

.nav-sticky.scrolled {
  background-color: rgba(27, 42, 74, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.nav-sticky:not(.scrolled) {
  background-color: transparent;
}

/* Gold accent line */
.gold-line {
  width: 60px;
  height: 2px;
  background-color: var(--gold);
  margin: 1rem auto;
}

.gold-line-left {
  width: 60px;
  height: 2px;
  background-color: var(--gold);
  margin: 1rem 0;
}

/* Section styling */
.section-padding {
  padding: 5rem 1.5rem;
}

@media (min-width: 768px) {
  .section-padding {
    padding: 7rem 2rem;
  }
}

/* Highlight cards */
.highlight-card {
  text-align: center;
  padding: 2rem 1rem;
}

.highlight-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

.highlight-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  border-radius: 4px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: brightness(1.05);
}

.gallery-item .gallery-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: white;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-label {
  opacity: 1;
}

/* Feature the first gallery item (hero kitchen) */
.gallery-grid .gallery-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

@media (max-width: 767px) {
  .gallery-grid .gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }
}

/* Floor description cards */
.floor-card {
  border-left: 3px solid var(--gold);
  padding-left: 1.5rem;
  margin-bottom: 2rem;
}

.floor-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--navy);
}

.floor-card ul {
  list-style: none;
  padding: 0;
}

.floor-card li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.floor-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  background-color: var(--gold);
  border-radius: 50%;
}

/* Contact form */
.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background-color: white;
}

.form-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(197, 165, 90, 0.15);
}

.form-input::placeholder {
  color: #9CA3AF;
}

/* Buttons */
.btn-gold {
  display: inline-block;
  padding: 0.875rem 2.5rem;
  background-color: var(--gold);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-gold:hover {
  background-color: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(197, 165, 90, 0.35);
}

.btn-outline {
  display: inline-block;
  padding: 0.875rem 2.5rem;
  background-color: transparent;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid white;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-outline:hover {
  background-color: white;
  color: var(--navy);
}

.btn-navy {
  display: inline-block;
  padding: 0.875rem 2.5rem;
  background-color: var(--navy);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-navy:hover {
  background-color: var(--navy-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(27, 42, 74, 0.35);
}

/* Feature list icons */
.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(197, 165, 90, 0.1);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Map container */
.map-container {
  position: relative;
  width: 100%;
  padding-bottom: 50%;
  border-radius: 8px;
  overflow: hidden;
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Mobile phone sticky CTA */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background-color: var(--navy);
  padding: 0.75rem 1rem;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  .mobile-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }

  body {
    padding-bottom: 70px;
  }
}

/* Mobile nav */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background-color: rgba(27, 42, 74, 0.98);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  color: white;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.mobile-menu a:hover {
  color: var(--gold);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Divider */
.section-divider {
  max-width: 1200px;
  margin: 0 auto;
  border: 0;
  border-top: 1px solid var(--border);
}

/* Floorplan embed */
.floorplan-container {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Stats banner */
.stats-banner {
  background-color: var(--navy);
  color: white;
}

.stats-banner .stat-item {
  text-align: center;
  padding: 1.5rem 1rem;
}

.stats-banner .stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold);
}

.stats-banner .stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 0.25rem;
  opacity: 0.8;
}

/* GLightbox custom overrides */
.glightbox-clean .gslide-description {
  background: var(--navy) !important;
}

.glightbox-clean .gslide-title {
  font-family: 'Playfair Display', serif !important;
  color: white !important;
}

/* Print styles for brochure */
@media print {
  .nav-sticky, .mobile-cta, .mobile-menu {
    display: none !important;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .fade-in {
    transition: none;
    opacity: 1;
    transform: none;
  }
  .gallery-item img {
    transition: none;
  }
}

/* Form success/error states */
.form-success {
  background-color: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
  padding: 1rem;
  border-radius: 4px;
  text-align: center;
}

.form-error {
  background-color: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  padding: 1rem;
  border-radius: 4px;
  text-align: center;
}
