:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #161616;
  --bg-card-hover: #1c1c1c;
  --text-primary: #f5f0eb;
  --text-secondary: #9a938b;
  --text-muted: #5a554f;
  --accent: #d4a574;
  --accent-light: #e8c9a4;
  --accent-dark: #b8864e;
  --commercial: #6b8f71;
  --commercial-bg: rgba(107, 143, 113, 0.12);
  --residential: #7a8ba8;
  --residential-bg: rgba(122, 139, 168, 0.12);
  --border: #222222;
  --border-light: #2a2a2a;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ==================== HERO ==================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(212, 165, 116, 0.06) 0%, transparent 60%),
    linear-gradient(180deg, #0a0a0a 0%, #0d0d0d 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 60px,
      rgba(212, 165, 116, 0.03) 60px,
      rgba(212, 165, 116, 0.03) 61px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 60px,
      rgba(212, 165, 116, 0.03) 60px,
      rgba(212, 165, 116, 0.03) 61px
    );
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 70%, rgba(212, 165, 116, 0.04) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  padding: 0 24px;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent);
  border: 1px solid rgba(212, 165, 116, 0.25);
  padding: 8px 20px;
  margin-bottom: 40px;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ==================== STATS ==================== */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 24px;
  background: var(--bg-secondary);
}

.stats-grid {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 0 24px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border-light);
}

/* ==================== SHARED SECTION STYLES ==================== */
.section-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

/* ==================== SERVICES ==================== */
.services {
  padding: 100px 24px;
  background: var(--bg-primary);
}

.services-container {
  max-width: 1080px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 40px 36px;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.service-card:hover {
  background: var(--bg-card-hover);
}

.service-card.commercial:hover {
  border-color: var(--commercial);
}

.service-card.residential:hover {
  border-color: var(--residential);
}

.service-icon {
  color: var(--accent);
  margin-bottom: 24px;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 1px;
  background: var(--accent-dark);
}

/* ==================== PROJECTS ==================== */
.projects {
  padding: 100px 24px;
  background: var(--bg-secondary);
}

.projects-container {
  max-width: 1080px;
  margin: 0 auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.2s ease;
}

.project-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-light);
}

/* Project Visual - Building/House Illustration */
.project-visual {
  height: 180px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}

.commercial-visual {
  background: linear-gradient(180deg, rgba(107, 143, 113, 0.05) 0%, var(--bg-card) 100%);
}

.residential-visual {
  background: linear-gradient(180deg, rgba(122, 139, 168, 0.05) 0%, var(--bg-card) 100%);
}

/* Building stages (commercial) */
.building-stages {
  position: relative;
  width: 80px;
  height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.building-ground {
  width: 100%;
  height: 4px;
  background: var(--text-muted);
  border-radius: 1px;
}

.building-frame {
  width: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 8px,
    rgba(107, 143, 113, 0.3) 8px,
    rgba(107, 143, 113, 0.3) 10px
  ),
  repeating-linear-gradient(
    90deg,
    transparent,
    transparent 18px,
    rgba(107, 143, 113, 0.3) 18px,
    rgba(107, 143, 113, 0.3) 20px
  );
  border: 1px solid rgba(107, 143, 113, 0.4);
  position: absolute;
  bottom: 4px;
  transition: height 0.5s ease;
}

.building-fill {
  width: 100%;
  background: linear-gradient(180deg, rgba(107, 143, 113, 0.15) 0%, rgba(107, 143, 113, 0.3) 100%);
  position: absolute;
  bottom: 4px;
  transition: height 0.5s ease;
}

/* House stages (residential) */
.house-stages {
  position: relative;
  width: 90px;
  height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.house-ground {
  width: 100%;
  height: 4px;
  background: var(--text-muted);
  border-radius: 1px;
}

.house-frame {
  width: 100%;
  background: rgba(122, 139, 168, 0.2);
  border: 1px solid rgba(122, 139, 168, 0.4);
  position: absolute;
  bottom: 4px;
  clip-path: polygon(0% 30%, 50% 0%, 100% 30%, 100% 100%, 0% 100%);
  transition: height 0.5s ease;
}

.house-fill {
  width: 100%;
  background: linear-gradient(180deg, rgba(122, 139, 168, 0.1) 0%, rgba(122, 139, 168, 0.25) 100%);
  position: absolute;
  bottom: 4px;
  clip-path: polygon(0% 30%, 50% 0%, 100% 30%, 100% 100%, 0% 100%);
  transition: height 0.5s ease;
}

/* Progress bar */
.project-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 0;
}

.progress-bar {
  flex: 1;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.5s ease;
}

.progress-pct {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  min-width: 36px;
  text-align: right;
}

/* Project info */
.project-info {
  padding: 12px 16px 20px;
}

.project-type {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  margin-bottom: 6px;
}

.commercial-tag {
  color: var(--commercial);
  background: var(--commercial-bg);
}

.residential-tag {
  color: var(--residential);
  background: var(--residential-bg);
}

.project-info h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
}

/* ==================== LOCATIONS ==================== */
.locations {
  padding: 100px 24px;
  background: var(--bg-primary);
}

.locations-container {
  max-width: 1080px;
  margin: 0 auto;
}

.locations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}

.location-card {
  border: 1px solid var(--border);
  padding: 40px 36px;
  background: var(--bg-card);
  transition: border-color 0.3s ease;
}

.location-card:hover {
  border-color: var(--accent-dark);
}

.location-marker {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.location-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.location-role {
  font-size: 0.85rem;
  color: var(--accent-dark);
  font-weight: 500;
  margin-bottom: 12px;
}

.location-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==================== CLOSING ==================== */
.closing {
  padding: 120px 24px;
  background:
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(212, 165, 116, 0.06) 0%, transparent 60%),
    var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.closing-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.closing-quote h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.closing-attribution {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ==================== FOOTER ==================== */
.site-footer {
  padding: 40px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
}

.footer-container {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-nap {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-nap strong {
  color: var(--text-secondary);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.footer-legal p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Photo cover for project cards with uploaded images */
.project-photo-wrap {
  height: 180px;
  background-size: cover;
  background-position: center;
}

/* Empty project slot card */
.project-card-empty {
  opacity: 0.4;
  pointer-events: none;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .stats-grid {
    flex-wrap: wrap;
    gap: 24px;
  }

  .stat-item {
    flex: 0 0 45%;
    padding: 12px 0;
  }

  .stat-divider {
    display: none;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .locations-grid {
    grid-template-columns: 1fr;
  }

  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .footer-legal {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .hero-badge {
    font-size: 0.65rem;
    padding: 6px 14px;
  }

  .service-card {
    padding: 28px 24px;
  }

  .location-card {
    padding: 28px 24px;
  }
}