/*
Theme Name: Hassanity Property
Author: Hassan
Description: A premium, bold real estate theme.
Version: 1.0.0
*/

:root {
  --color-dark: #1a1a1a;
  --color-light: #ffffff;
  --color-accent: #fcdccb; /* Peach */
  --color-accent-text: #1a1a1a;
  --color-footer-bg: #333333;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --container-width: 1240px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--color-light);
  color: var(--color-dark);
  line-height: 1.6;
}

/* Front Page Hero */
.hero-split {
  display: flex;
  min-height: 650px;
}

.hero-image {
  flex: 1.2;
  position: relative;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: scaleIn 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero-content {
  flex: 0.8;
  background-color: var(--color-accent);
  padding: 5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-label {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
  color: #666;
}

.hero-title {
  font-size: 3.2rem;
  margin: 0 0 1.5rem;
  line-height: 1.15;
  font-weight: 400;
}

.hero-subtitle {
  color: #555;
  line-height: 1.7;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 1rem;
}

.btn-dark {
  background: var(--color-dark);
  color: white;
  padding: 1rem 2rem;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-dark:hover {
  background: #333;
  color: white;
}

.btn-outline-dark {
  background: transparent;
  color: var(--color-dark);
  border: 2px solid var(--color-dark);
  padding: 1rem 2rem;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all 0.3s ease;
}

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

.hero-link {
  font-weight: 500;
  color: var(--color-dark);
  text-decoration: none;
  transition: color 0.3s;
}

.hero-link:hover {
  color: #666;
}

/* Featured Section */
.featured-section {
  padding: 6rem 0;
  background: #fafafa;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 1rem;
}

.section-heading {
  font-size: 3rem;
  font-weight: 400;
  margin: 0 0 1rem;
}

.heading-line {
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin: 0 auto;
}

/* Masonry Grid */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 200px;
  gap: 1.5rem;
}

.masonry-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  grid-row: span 1;
}

.masonry-item.tall {
  grid-row: span 2;
}

.masonry-link {
  display: block;
  height: 100%;
}

.masonry-image {
  height: 100%;
}

.masonry-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.masonry-item:hover .masonry-image img {
  transform: scale(1.08);
}

.masonry-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  color: white;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.masonry-item:hover .masonry-overlay {
  opacity: 1;
}

.masonry-overlay h3 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  font-weight: 500;
}

.masonry-overlay p {
  font-size: 0.9rem;
  margin: 0 0 1rem;
  opacity: 0.9;
}

.masonry-btn {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-accent);
}

@media (max-width: 900px) {
  .masonry-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
}

@media (max-width: 600px) {
  .masonry-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }

  .masonry-item.tall {
    grid-row: span 1;
  }

  .masonry-overlay {
    opacity: 1;
  }
}

/* Legacy featured-grid fallback */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

.featured-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.featured-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.featured-card-link {
  text-decoration: none;
  color: inherit;
}

.featured-card-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.featured-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-card:hover .featured-card-image img {
  transform: scale(1.05);
}

.featured-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.featured-card:hover .featured-card-overlay {
  opacity: 1;
}

.view-property {
  color: white;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  font-weight: 500;
}

.featured-card-body {
  padding: 2rem;
}

.featured-card-body h3 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  font-weight: 500;
}

.featured-card-body p {
  color: #666;
  margin: 0;
  line-height: 1.6;
}

.section-cta {
  text-align: center;
  margin-top: 3rem;
}

/* About / Stats Section */
.about-split {
  display: flex;
  align-items: stretch;
}

.about-image {
  flex: 1;
  min-height: 600px;
  background-size: cover;
  background-position: center;
}

.about-text {
  flex: 1;
  padding: 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.about-text h2 {
  font-size: 2.8rem;
  font-weight: 400;
  margin: 1rem 0 1.5rem;
}

.about-text > p {
  max-width: 500px;
  margin: 0 auto 3rem;
  color: #666;
  line-height: 1.8;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  max-width: 450px;
  margin: 0 auto;
}

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

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  margin-bottom: 0.5rem;
  color: var(--color-dark);
}

.stat-label {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  color: #888;
}

/* Newsletter */
.newsletter-section {
  padding: 5rem 0;
  background: var(--color-accent);
}

.newsletter-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.newsletter-text h2 {
  font-size: 2.5rem;
  margin: 0 0 0.5rem;
  font-weight: 400;
}

.newsletter-text p {
  color: #555;
  margin: 0;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  flex: 1;
  max-width: 500px;
}

.newsletter-form input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.newsletter-form button {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .hero-split {
    flex-direction: column;
    min-height: auto;
  }

  .hero-image {
    min-height: 0;
    flex: none;
  }

  .hero-image img {
    height: auto;
    width: 100%;
  }

  .hero-content {
    padding: 3rem 2rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    width: 100%;
  }

  .hero-actions .btn-dark {
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }

  .hero-actions .hero-link {
    text-align: center;
  }

  .about-split {
    flex-direction: column;
  }

  .about-image {
    min-height: 0;
    height: auto;
  }

  .about-image img {
    height: auto;
    width: 100%;
  }

  .about-text {
    padding: 3rem 2rem;
  }

  .newsletter-content {
    flex-direction: column;
    text-align: center;
  }

  .newsletter-form {
    flex-direction: column;
    width: 100%;
  }
}

/* Featured Listing Grid (Complex Layout) */
.latest-topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto; /* Two rows implied */
  gap: 2rem;
  margin-top: 2rem;
}

.listing-item {
  border: 1px solid #eee;
  padding: 1rem;
}

.listing-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.listing-title {
  font-size: 1.4rem;
  text-transform: uppercase;
  margin-top: 1rem;
  line-height: 1.2;
}

/* Realtor Banner Card */
.realtor-card {
  grid-column: 3;
  grid-row: 1 / span 2; /* Span 2 rows */
  background: url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80')
    center/cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
  color: white;
  position: relative;
}

.realtor-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.realtor-content {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .hero-split,
  .about-split {
    flex-direction: column;
  }

  .hero-content,
  .about-text {
    padding: 3rem 1.5rem;
  }
  .latest-topics-grid {
    grid-template-columns: 1fr;
  }
  .realtor-card {
    grid-column: 1;
    grid-row: auto;
    min-height: 400px;
  }
}

/* --- ANIMATIONS & PREMIUM EFFECTS --- */

/* Scroll Reveal Base Class */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

/* Staggered Delays */
.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* Premium Card Interactions */
.listing-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.listing-item:hover img {
  transform: scale(1.05);
}

.listing-item:hover .listing-title {
  color: var(--color-accent-text); /* Highlight on hover */
}

/* Hero Enhancements */
.hero-image img {
  /* Parallax effect will be handled by simple scale or CSS attachment if background, 
       but for img tag we can add a subtle scale animation on load */
  animation: scaleIn 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes scaleIn {
  from {
    transform: scale(1.1);
  }
  to {
    transform: scale(1);
  }
}

/* Lightbox Enhancements */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-accent);
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
.site-header {
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.site-title {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Navigation Bar */
.main-nav-bar {
  padding: 1rem 0;
  background: white;
  border-bottom: 1px solid #eee;
}

.nav-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.nav-wrapper ul,
.main-navigation ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
}

.nav-wrapper a,
.main-navigation a {
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  white-space: nowrap;
}

.header-social {
  position: absolute;
  right: 2rem;
}

.header-social a {
  color: var(--color-dark);
}

@media (max-width: 768px) {
  .header-social {
    display: none;
  }

  .nav-wrapper {
    justify-content: center;
  }

  .nav-wrapper ul {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .nav-wrapper a {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--color-dark);
  color: var(--color-light);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--color-accent);
  color: var(--color-light);
}

/* Property Archive Grid */
.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 3rem;
}

.property-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.4s ease;
}

.property-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

.property-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.property-card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}

.property-card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.property-card:hover .property-card-image::after {
  opacity: 1;
}

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

.property-card:hover .property-card-image img {
  transform: scale(1.08);
}

.property-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
}

.property-card-body {
  padding: 2rem;
}

.property-card-title {
  font-size: 1.5rem;
  margin: 0 0 1rem 0;
  font-weight: 500;
  line-height: 1.3;
}

.property-card-excerpt {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.property-card-btn {
  display: inline-block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-dark);
  font-weight: 500;
  transition: color 0.3s ease;
}

.property-card:hover .property-card-btn {
  color: var(--color-accent-text);
}

@media (max-width: 768px) {
  .property-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Pagination */
.pagination .page-numbers {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  margin: 0 0.25rem;
  text-decoration: none;
  transition: all 0.3s;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--color-dark);
  color: white;
  border-color: var(--color-dark);
}

/* Single Property Page */
.single-property-hero {
  height: 50vh;
  min-height: 400px;
  max-height: 550px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  color: white;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.5) 40%,
    rgba(0, 0, 0, 0.2) 100%
  );
}

.single-property-hero .hero-content {
  color: var(--color-dark);
  padding-bottom: 3rem;
}

.property-badge {
  display: inline-block;
  background: var(--color-dark);
  color: white;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border-radius: 4px;
}

.single-property-hero .hero-title {
  font-size: 3rem;
  margin: 0 0 1rem 0;
  font-weight: 500;
  color: var(--color-dark);
}

.hero-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  color: #555;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

/* Content Layout */
.property-content-wrapper {
  padding: 5rem 0;
  background: #fafafa;
}

.property-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
}

.property-main {
  background: white;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.property-section {
  margin-bottom: 3rem;
}

.property-section:last-child {
  margin-bottom: 0;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.title-line {
  flex: 1;
  height: 1px;
  background: #e0e0e0;
}

.property-description {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #555;
}

.gallery-hint {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* Sidebar */
.property-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.sidebar-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  margin-bottom: 1.5rem;
}

.contact-card-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}

.contact-card-header h3 {
  font-size: 1.8rem;
  margin: 0 0 0.5rem 0;
  font-weight: 400;
}

.contact-card-header p {
  color: #888;
  margin: 0;
}

.contact-card-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.btn-primary:hover {
  background: transparent;
  color: var(--color-dark);
}

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

.btn-outline:hover {
  border-color: var(--color-dark);
}

.btn-full {
  width: auto;
  min-width: 200px;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.contact-card-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.share-card h4 {
  margin: 0 0 1rem 0;
  font-weight: 500;
}

.share-buttons {
  display: flex;
  gap: 0.75rem;
}

.share-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f5f5f5;
  color: #666;
  transition: all 0.3s ease;
}

.share-btn:hover {
  background: var(--color-dark);
  color: white;
}

/* Gallery item overlay */
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: white;
}

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

/* Responsive */
@media (max-width: 1024px) {
  .property-layout {
    grid-template-columns: 1fr;
  }

  .property-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .single-property-hero {
    height: 50vh;
    min-height: 400px;
  }

  .single-property-hero .hero-title {
    font-size: 2.5rem;
  }

  .property-main {
    padding: 2rem;
  }

  .hero-meta {
    flex-direction: column;
    gap: 0.75rem;
  }
}

.property-details {
  padding: 5rem 0;
}

/* Masonry Gallery */
.gallery-grid {
  column-count: 3;
  column-gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  cursor: pointer;
  overflow: hidden;
  border-radius: 4px; /* Slight rounding for premium feel */
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  z-index: 2; /* Lift above others */
}

.gallery-item:hover img {
  transform: scale(1.03);
}

/* Optional: Overlay icon on hover to indicate clickability */
.gallery-item::after {
  content: '+';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-dark);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 300;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0;
}

.gallery-item:hover::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

@media (max-width: 768px) {
  .gallery-grid {
    column-count: 2;
    column-gap: 1rem;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    column-count: 1;
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  max-width: 80vw;
  max-height: 90vh;
  position: relative;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  z-index: 2002;
  line-height: 1;
}

.lightbox-nav {
  background: transparent;
  border: none;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  padding: 2rem;
  z-index: 2001;
  transition: transform 0.2s, color 0.2s;
  user-select: none;
}

.lightbox-nav:hover {
  color: var(--color-accent);
  transform: scale(1.1);
}

.lightbox-nav.prev {
  position: fixed;
  left: 1rem;
}

.lightbox-nav.next {
  position: fixed;
  right: 1rem;
}

@media (max-width: 768px) {
  .lightbox-nav {
    font-size: 2rem;
    padding: 1rem;
    background: rgba(
      0,
      0,
      0,
      0.3
    ); /* Add background for visibility on mobile */
    border-radius: 50%;
  }
  .lightbox-nav.prev {
    left: 0.5rem;
  }
  .lightbox-nav.next {
    right: 0.5rem;
  }
}

/* ===== ABOUT PAGE ===== */

/* About Hero */
.about-hero {
  height: 50vh;
  min-height: 400px;
  background: url('assets/images/about.jpg') center/cover;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.about-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.about-hero-content {
  position: relative;
  z-index: 2;
}

.page-label {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.page-title {
  font-size: 4rem;
  margin: 0 0 1rem;
  font-weight: 400;
}

.page-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Story Section */
.about-story {
  padding: 6rem 0;
}

.story-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.story-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.story-image img {
  width: 100%;
  height: auto;
  display: block;
}

.story-content h2 {
  font-size: 2.5rem;
  font-weight: 400;
  margin: 1rem 0 1.5rem;
}

.story-content p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.story-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

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

.story-stat .stat-number {
  font-size: 2.5rem;
  display: block;
}

.story-stat .stat-label {
  font-size: 0.75rem;
}

/* Values Section */
.about-values {
  padding: 6rem 0;
  background: #fafafa;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.value-card {
  background: white;
  padding: 3rem 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.value-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-dark);
}

.value-card h3 {
  font-size: 1.3rem;
  margin: 0 0 1rem;
  font-weight: 500;
}

.value-card p {
  color: #666;
  line-height: 1.7;
  margin: 0;
  font-size: 0.95rem;
}

/* Team Section */
.about-team {
  padding: 6rem 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

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

.member-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-member:hover .member-image img {
  transform: scale(1.1);
}

.member-info h4 {
  font-size: 1.2rem;
  margin: 0 0 0.3rem;
  font-weight: 500;
}

.member-info span {
  color: #888;
  font-size: 0.9rem;
}

/* About CTA */
.about-cta {
  padding: 6rem 0;
  background: var(--color-dark);
  color: white;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.8rem;
  font-weight: 400;
  margin: 0 0 1rem;
}

.cta-content p {
  opacity: 0.8;
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-outline-light {
  background: transparent;
  color: white;
  border: 2px solid white;
  padding: 1rem 2rem;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all 0.3s ease;
}

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

/* About Responsive */
@media (max-width: 768px) {
  .page-title {
    font-size: 2.5rem;
  }

  .story-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .story-stats {
    flex-wrap: wrap;
    gap: 2rem;
  }

  .story-stat {
    flex: 1;
    min-width: 100px;
  }

  .cta-content h2 {
    font-size: 2rem;
  }
}

/* ===== CONTACT PAGE ===== */

.contact-hero {
  height: 40vh;
  min-height: 300px;
  background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.contact-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.contact-hero-content {
  position: relative;
  z-index: 2;
}

.contact-section {
  padding: 5rem 0;
  background: #fafafa;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
}

.contact-form-wrapper {
  background: white;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.contact-form-wrapper h2 {
  font-size: 2rem;
  font-weight: 400;
  margin: 0 0 0.5rem;
}

.form-intro {
  color: #666;
  margin-bottom: 2rem;
}

.form-success {
  text-align: center;
  padding: 3rem;
}

.form-success svg {
  color: #22c55e;
  margin-bottom: 1.5rem;
}

.form-success h3 {
  font-size: 1.8rem;
  margin: 0 0 1rem;
}

.form-success p {
  color: #666;
  margin-bottom: 2rem;
}

.form-error {
  background: #fef2f2;
  color: #dc2626;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border-left: 4px solid #dc2626;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

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

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-dark);
  box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
}

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

.btn-submit {
  width: 100%;
  padding: 1.2rem 2rem;
  font-size: 1rem;
  cursor: pointer;
}

.contact-info {
  align-self: start;
}

.info-card {
  background: white;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  margin-bottom: 1.5rem;
}

.info-card h3 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  font-weight: 500;
}

.info-card > p {
  color: #666;
  margin-bottom: 2rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-icon {
  width: 48px;
  height: 48px;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-item strong {
  display: block;
  margin-bottom: 0.25rem;
}

.info-item p {
  margin: 0;
  color: #666;
}

.hours-card h4 {
  font-size: 1.2rem;
  margin: 0 0 1.5rem;
  font-weight: 500;
}

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

.hours-card li {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
}

.hours-card li:last-child {
  border-bottom: none;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

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

  .contact-form-wrapper {
    padding: 2rem;
  }
}

/* Header Social */
.header-social {
  flex: 1;
  text-align: right;
}

.header-social a {
  color: var(--color-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .header-social {
    display: none;
  }
}

/* Footer Styles */
.site-footer {
  background: var(--color-footer-bg);
  color: white;
  padding: 5rem 0;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
}

.footer-col {
  flex: 1;
  min-width: 280px;
}

.footer-col h3 {
  color: white;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.footer-col p {
  opacity: 0.8;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.footer-col-right {
  text-align: right;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: background 0.3s ease;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.25);
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.contact-item svg {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .footer-col-right {
    text-align: left;
  }

  .contact-item {
    justify-content: flex-start;
  }
}
