/* Modern Heritage Theme Variables */
:root {
  --color-primary: #1a3c34; /* Deep Forest Green */
  --color-secondary: #c07a5f; /* Terracotta/Brick */
  --color-accent: #d4af37; /* Brass */
  --color-bg: #f9f7f2; /* Cream/Paper */
  --color-text: #2d2d2d;
  --color-text-light: #666666;
  --color-white: #ffffff;

  --font-heading: "Playfair Display", serif;
  --font-body: "Plus Jakarta Sans", sans-serif;

  --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 600;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

section {
  padding: 100px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography Utilities */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-secondary);
  display: block;
  margin-bottom: 1rem;
}

.section-tag {
  display: inline-block;
  padding: 5px 15px;
  border: 1px solid var(--color-accent);
  border-radius: 50px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  color: var(--color-primary);
}

/* Navbar */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: all 0.3s ease;
  mix-blend-mode: difference;
  color: var(--color-white);
}

nav.scrolled {
  background: rgba(26, 60, 52, 0.95);
  padding: 15px 50px;
  mix-blend-mode: normal;
  backdrop-filter: blur(10px);
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-secondary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.btn-nav {
  border: 1px solid var(--color-white);
  padding: 8px 20px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-nav:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%; /* For parallax */
  background-size: cover;
  background-position: center;
  z-index: -2;
  transform: translateY(0);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Darker gradient for better text contrast */
  background: linear-gradient(rgba(0,0,0,0.5), rgba(26, 60, 52, 0.85));
  z-index: -1;
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 3rem;
  opacity: 1; /* Increased from 0.9 */
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 3rem;
  background: rgba(0,0,0,0.2); /* Subtle backing */
  padding: 20px 40px;
  border-radius: 8px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.1);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat .number {
  font-family: var(--font-heading);
  font-size: 2.5rem; /* Slightly larger */
  color: var(--color-white); /* Changed from secondary to white for max contrast */
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  font-weight: 700;
}

.stat .label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-accent); /* Gold for the label instead */
  font-weight: 600;
}

.separator {
  width: 1px;
  height: 50px;
  background: rgba(255, 255, 255, 0.3);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-secondary);
  color: var(--color-white);
  padding: 15px 30px;
  border-radius: 4px;
  font-weight: 600;
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.btn-primary:hover {
  background: #a6654e;
  transform: translateY(-3px);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  opacity: 0.7;
  animation: bounce 2s infinite;
}

.mouse {
  width: 26px;
  height: 40px;
  border: 2px solid var(--color-white);
  border-radius: 20px;
  position: relative;
}

.mouse::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--color-white);
  border-radius: 50%;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

/* Intro Section */
.grid-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.intro-text h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--color-primary);
}

.highlight-box {
  margin-top: 30px;
  padding: 20px;
  border-left: 3px solid var(--color-secondary);
  background: rgba(192, 122, 95, 0.1);
}

.image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 20px 20px 0 var(--color-primary);
}

.image-wrapper img {
  transition: transform 0.8s var(--ease-out);
}

.image-wrapper:hover img {
  transform: scale(1.05);
}

/* Details Section */
.bg-cream {
  background-color: #efece6;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.detail-card {
  background: var(--color-bg);
  padding: 30px;
  border-radius: 8px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.detail-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.detail-card .icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.detail-card h3 {
  margin-bottom: 15px;
  color: var(--color-primary);
}

/* Gallery Section - Advanced Masonry */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px; /* Base row height */
    grid-auto-flow: dense; /* Fills gaps */
    gap: 15px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    z-index: 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Mosaic Spans */
.item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.item-tall {
    grid-column: span 1;
    grid-row: span 2;
}
.item-tall-2 {
    grid-column: span 1;
    grid-row: span 2;
}

.item-wide {
    grid-column: span 2;
    grid-row: span 1;
}
.item-wide-2 {
    grid-column: span 2;
    grid-row: span 1;
}

/* Lightbox Styles */
.lightbox {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(26, 60, 52, 0.95); /* Forest Green tint */
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

.lightbox-caption {
    margin-top: 15px;
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: 300;
    transition: 0.3s;
    cursor: pointer;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--color-secondary);
}

@keyframes zoomIn {
    from {transform: scale(0.9); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

/* Responsive Mosaic */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    
    .item-large, .item-tall, .item-wide, .item-tall-2, .item-wide-2 {
        grid-column: span 1;
        grid-row: span 1;
        height: 300px;
    }
}

/* Location */
.bg-dark {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.grid-location {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.location-list {
  margin: 30px 0;
}

.loc-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.loc-item .time {
  background: var(--color-secondary);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.map-placeholder {
  width: 100%;
  height: 400px;
  background: #2a4c44;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  opacity: 0.8;
}

/* Footer */
.footer {
  padding: 100px 0 50px;
  background: var(--color-bg);
  text-align: center;
}

.footer h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--color-primary);
}

.price-tag {
  font-size: 2.5rem;
  font-family: var(--font-heading);
  color: var(--color-secondary);
  margin: 30px 0;
}

.big-btn {
  padding: 20px 40px;
  font-size: 1.2rem;
}

.small-print {
  margin-top: 50px;
  font-size: 0.8rem;
  color: var(--color-text-light);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.1s;
  animation-delay: 0.1s;
}
.delay-2 {
  transition-delay: 0.2s;
  animation-delay: 0.2s;
}
.delay-3 {
  transition-delay: 0.3s;
  animation-delay: 0.3s;
}
.delay-4 {
  transition-delay: 0.4s;
  animation-delay: 0.4s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero-stats {
    gap: 15px;
  }
  .stat .number {
    font-size: 1.5rem;
  }

  .grid-intro,
  .grid-location {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .item-1,
  .item-2,
  .item-3,
  .item-4 {
    grid-column: span 1;
    grid-row: span 1;
    height: 250px;
  }
}
