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

:root {
  --background: #f9f7e8;
  --foreground: #3f170f;
  --muted: #f1ebdd;
  --muted-foreground: #7a6455;
  --border: #e2d8c5;
  --accent: #c4703c;
  --accent-strong: #a85a2c;
  --accent-foreground: #fdfaf3;
}

[data-theme="dark"] {
  --background: #1a110d;
  --foreground: #f9f7e8;
  --muted: #241811;
  --muted-foreground: #b8a08e;
  --border: #3a2820;
  --accent: #d8834b;
  --accent-strong: #e79a63;
  --accent-foreground: #1a110d;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography */
.text-minimal {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.text-architectural {
  letter-spacing: -0.02em;
}

/* Navigation */
.navigation {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(249, 247, 232, 1);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}

[data-theme="dark"] .navigation {
  background: rgba(26, 17, 13, 0.95);
}

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin-left: 1.5rem;
}

.theme-toggle:hover {
  border-color: var(--foreground);
}

.theme-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: var(--foreground);
  stroke-width: 1.5;
  fill: none;
}

.theme-toggle .sun-icon {
  display: block;
}

.theme-toggle .moon-icon {
  display: none;
}

[data-theme="dark"] .theme-toggle .sun-icon {
  display: none;
}

[data-theme="dark"] .theme-toggle .moon-icon {
  display: block;
}

.nav-actions {
  display: flex;
  align-items: center;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 2.5rem;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--foreground);
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: url('../images/hero-property.jpg') center/cover no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(63, 23, 15, 0.85) 0%, rgba(120, 62, 32, 0.6) 50%, rgba(26, 17, 13, 0.9) 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 56rem;
  padding: 0 1.5rem;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 300;
  color: white;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out;
}

.hero p {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
  letter-spacing: 0.05em;
  max-width: 42rem;
  margin: 0 auto 3rem;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-foreground);
  padding: 1rem 2rem;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: all 0.3s ease;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-btn:hover {
  background: var(--accent-strong);
  transform: translateY(-2px);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: fadeInUp 1s ease-out 0.6s both;
}

.scroll-line {
  width: 1px;
  height: 4rem;
  background: rgba(255, 236, 216, 0.5);
  margin: 0 auto;
}

.scroll-text {
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 1rem;
  transform: rotate(90deg);
}

/* Services Section */
.services {
  padding: 8rem 0;
  background: var(--background);
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem 5rem;
}

.service-item {
  display: flex;
  gap: 1.5rem;
}

.service-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.service-icon svg {
  width: 2rem;
  height: 2rem;
  stroke: var(--muted-foreground);
  stroke-width: 1.5;
  fill: none;
}

.service-number {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
}

.service-title {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.service-desc {
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* About Section */
.about {
  padding: 8rem 0;
  background: var(--muted);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

.about-text p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.approach-item {
  border-left: 2px solid var(--foreground);
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.approach-item h5 {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.approach-item p {
  color: var(--muted-foreground);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}

.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.stat-value {
  font-size: 1.875rem;
  font-weight: 300;
}

/* Portfolio Section */
.portfolio {
  padding: 8rem 0;
  background: var(--muted);
}

.portfolio-header {
  text-align: center;
  margin-bottom: 5rem;
}

.portfolio-header p {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 42rem;
  margin: 1.5rem auto 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

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

.portfolio-image {
  position: relative;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #a85a2c 0%, #35201a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

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

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-overlay span {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.8);
}

.portfolio-item h4 {
  font-size: 1.25rem;
  font-weight: 300;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.portfolio-item p {
  color: var(--muted-foreground);
}

/* Featured Property */
.property-feature {
  max-width: 1100px;
  margin: 0 auto;
}

.property-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
}

.property-hero img {
  width: 100%;
  height: clamp(280px, 55vw, 560px);
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.property-hero:hover img {
  transform: scale(1.03);
}

.property-hero-info {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
  color: #fff;
}

.property-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.property-hero-info h3 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.property-hero-info p {
  max-width: 38rem;
  opacity: 0.9;
}

.property-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.property-meta > div {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.meta-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
}

.meta-value {
  font-size: 1.05rem;
  color: var(--foreground);
}

.property-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.property-gallery figure {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
}

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

.property-gallery figure:hover img {
  transform: scale(1.05);
}

.property-gallery figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 0.65rem 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

/* Contact Section */
.contact {
  padding: 8rem 0;
  background: var(--background);
}

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

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

.contact-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
  line-height: 1.2;
}

.contact-info {
  margin-bottom: 2rem;
}

.contact-info h4 {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.contact-info a,
.contact-info address {
  font-size: 1.25rem;
  color: var(--foreground);
  text-decoration: none;
  font-style: normal;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: var(--muted-foreground);
}

.social-links a {
  display: block;
  font-size: 1.25rem;
  color: var(--foreground);
  text-decoration: none;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--muted-foreground);
}

.contact-text {
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.contact-text p {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

/* Footer */
.footer {
  margin-top: 8rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer p {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--muted-foreground);
  text-transform: uppercase;
}

/* Animations */
/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
  animation: fadeIn 0.2s ease-out;
}

.lightbox-image {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  user-select: none;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-close {
  top: 1.5rem;
  right: 1.5rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  font-size: 1.75rem;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 600px) {
  .lightbox-nav { width: 2.75rem; height: 2.75rem; font-size: 1.5rem; }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}

body.lightbox-open { overflow: hidden; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--foreground);
  margin-left: 1rem;
}

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

  .mobile-menu-btn {
    display: block;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--background);
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border);
  }
}


/* Brand accents */
.nav-links a:hover { color: var(--accent); }
.section-label { color: var(--accent); }
.service-number { color: var(--accent); }
.service-icon svg { stroke: var(--accent); }
.property-tag { color: var(--accent); }
.approach-item { border-left: 2px solid var(--accent); padding-left: 1rem; }
.contact-info a { color: var(--accent); }
.social-links a:hover { color: var(--accent); }
.stat-value { color: var(--accent); }
