@theme {
  --color-bronze: #8B7355;
  --color-bronze-light: #a08968;
  --color-bronze-dark: #6b5940;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

/* Base */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: #1c1917;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 300;
}

/* Nav */
.nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background-color 500ms ease, box-shadow 500ms ease;
}

.nav-fixed.scrolled {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.nav-fixed.scrolled .nav-link {
  color: #1c1917;
}

.nav-fixed.scrolled .nav-logo {
  color: #1c1917;
}

/* Nav links */
.nav-link {
  color: #fff;
  text-decoration: none;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 300ms ease;
  font-weight: 400;
}

.nav-link:hover {
  color: var(--color-bronze);
}

.nav-logo {
  color: #fff;
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  transition: color 300ms ease;
}

/* Dark nav variant (for pages without hero) */
.nav-dark .nav-link,
.nav-dark .nav-logo {
  color: #1c1917;
}

.nav-dark.scrolled .nav-link,
.nav-dark.scrolled .nav-logo {
  color: #1c1917;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: #fafaf9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  color: #1c1917;
  text-decoration: none;
  transition: color 300ms ease;
}

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

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 110;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background-color: currentColor;
  transition: transform 300ms ease, opacity 300ms ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .nav-links-desktop {
    display: none;
  }
}

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  background-color: #d6d3d1;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.4) 100%);
}

.hero-content {
  position: absolute;
  bottom: 4rem;
  left: 2rem;
  color: #fff;
  z-index: 1;
}

@media (min-width: 768px) {
  .hero-content {
    bottom: 5rem;
    left: 4rem;
  }
}

@media (min-width: 1024px) {
  .hero-content {
    left: 6rem;
  }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* Project card */
.project-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.project-card-image {
  width: 100%;
  aspect-ratio: 4/3;
  background-color: #d6d3d1;
  background-size: cover;
  background-position: center;
  transition: transform 700ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #78716c;
  font-size: 0.875rem;
}

.project-card:hover .project-card-image {
  transform: scale(1.02);
}

.project-card-info {
  padding: 1rem 0;
}

.project-card-info h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.project-card-info p {
  font-size: 0.8125rem;
  color: #78716c;
}

/* Full-width project card */
.project-card-full .project-card-image {
  aspect-ratio: 21/9;
}

/* Page hero (shorter, for inner pages) */
.page-hero {
  position: relative;
  height: 70vh;
  min-height: 400px;
  overflow: hidden;
}

.page-hero-image {
  position: absolute;
  inset: 0;
  background-color: #d6d3d1;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #78716c;
  font-size: 0.875rem;
}

/* Gallery */
.gallery-grid {
  display: grid;
  gap: 1rem;
}

.gallery-item {
  overflow: hidden;
  cursor: pointer;
  background-color: #e7e5e4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #78716c;
  font-size: 0.875rem;
  min-height: 250px;
}

.gallery-item.full-width {
  grid-column: 1 / -1;
  min-height: 400px;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background-color: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  background-color: #d6d3d1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a8a29e;
  font-size: 1rem;
  padding: 3rem;
  transform: scale(0.95);
  transition: transform 300ms ease;
  min-width: 60vw;
  min-height: 50vh;
}

.lightbox.open .lightbox-content {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: #fff;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.8125rem;
}

/* Floor plan section */
.floor-plan-section {
  background-color: #fafaf9;
  padding: 4rem 0;
}

.floor-plan-placeholder {
  max-width: 600px;
  margin: 0 auto;
  aspect-ratio: 4/3;
  border: 1px solid #d6d3d1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #78716c;
  font-size: 0.875rem;
}

/* Next project link */
.next-project {
  position: relative;
  height: 50vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #d6d3d1;
  text-decoration: none;
  color: #fff;
}

.next-project-bg {
  position: absolute;
  inset: 0;
  background-color: #d6d3d1;
  background-size: cover;
  background-position: center;
  transition: transform 700ms ease;
}

.next-project:hover .next-project-bg {
  transform: scale(1.02);
}

.next-project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

.next-project-text {
  position: relative;
  z-index: 1;
  text-align: center;
}

/* About section */
.about-section {
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #57534e;
  font-size: 0.875rem;
}

/* About page section */
.about-split-arch {
  background-color: #fafaf9;
}

/* Contact form */
.contact-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #d6d3d1;
  padding: 0.75rem 0;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1rem;
  color: #1c1917;
  outline: none;
  transition: border-color 300ms ease;
}

.contact-input:focus {
  border-color: var(--color-bronze);
}

.contact-input::placeholder {
  color: #a8a29e;
}

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

/* Animate-ready state */
[data-animate] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 600ms ease, transform 600ms ease;
}

[data-animate].animated {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
footer a {
  color: #78716c;
  text-decoration: none;
  transition: color 300ms ease;
}

footer a:hover {
  color: var(--color-bronze);
}

/* Selection color */
::selection {
  background-color: #8B7355;
  color: #fff;
}
