/* ============================================
   SLOW CASA — Global Stylesheet
   Edit this file to update styles sitewide
   ============================================ */


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

:root {
  --white: #ffffff;
  --black: #0f0f0f;
  --grey-1: #888888;
  --grey-2: #bbbbbb;
  --grey-3: #e8e8e8;
  --grey-4: #f5f5f3;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --archivo: 'Archivo Black', sans-serif;
  --playfair: 'Playfair Display', Georgia, serif;
}

html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body { font-family: var(--sans); background: var(--white); color: var(--black); min-height: 100vh; }
a { color: inherit; text-decoration: none; }

/* NAV — default (white background pages) */
nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 28px 48px;
  border-bottom: 0.5px solid var(--grey-3);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 100;
}

/* NAV — hero overlay variant (homepage) */
nav.hero-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 28px 48px;
  border-bottom: 0.5px solid rgba(255,255,255,0.2);
  position: fixed;
  top: 0; left: 0; right: 0;
  background: transparent;
  transition: background 0.4s, border-color 0.4s;
  z-index: 100;
}

nav.hero-nav.scrolled {
  background: var(--white);
  border-bottom: 0.5px solid var(--grey-3);
}

/* WORDMARK — sitewide */
.wordmark {
  font-family: var(--archivo);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--black);
  text-transform: uppercase;
}

nav.hero-nav .wordmark {
  color: var(--white);
  transition: color 0.4s;
}

nav.hero-nav.scrolled .wordmark { color: var(--black); }

/* NAV LINKS */
.nav-links { display: flex; gap: 32px; list-style: none; justify-content: flex-end; }
.nav-links a { font-size: 13px; color: var(--grey-1); letter-spacing: 0.03em; transition: color 0.2s; }
.nav-links a:hover { color: var(--black); }

nav.hero-nav .nav-links a { color: rgba(255,255,255,0.8); }
nav.hero-nav .nav-links a:hover { color: var(--white); }
nav.hero-nav.scrolled .nav-links a { color: var(--grey-1); }
nav.hero-nav.scrolled .nav-links a:hover { color: var(--black); }

/* FOOTER — sitewide */
footer {
  padding: 32px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 0.5px solid var(--grey-3);
}

.footer-word {
  font-family: var(--archivo);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey-1);
}

.footer-links { display: flex; gap: 28px; }
.footer-links a { font-size: 12px; color: var(--grey-1); transition: color 0.2s; }
.footer-links a:hover { color: var(--black); }

/* PROPERTY CARDS — shared */
.property-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.property-card { cursor: pointer; }
.property-card:hover .card-img img { transform: scale(1.03); }
.card-img { width: 100%; aspect-ratio: 4/3; overflow: hidden; margin-bottom: 16px; background: var(--grey-4); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; display: block; }
.card-img-placeholder { width: 100%; height: 100%; background: var(--grey-4); }
.card-location { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey-1); margin-bottom: 6px; }
.card-name { font-size: 15px; font-weight: 500; margin-bottom: 4px; line-height: 1.3; }
.card-detail { font-size: 13px; color: var(--grey-1); line-height: 1.5; margin-bottom: 12px; }
.card-tag { display: inline-block; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey-1); border: 0.5px solid var(--grey-3); padding: 4px 10px; }

/* SECTION HEADERS — shared */
.section { max-width: 1200px; margin: 0 auto; padding: 0 48px 80px; }
.section-header { display: flex; justify-content: space-between; align-items: baseline; border-top: 0.5px solid var(--grey-3); padding-top: 20px; margin-bottom: 40px; }
.section-label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey-1); }
.section-link { font-size: 12px; color: var(--grey-1); cursor: pointer; transition: color 0.2s; }
.section-link:hover { color: var(--black); }

/* LOADING / SKELETON */
.loading { grid-column: 1 / -1; text-align: center; padding: 48px; font-size: 13px; color: var(--grey-1); letter-spacing: 0.06em; }
.skeleton { background: var(--grey-4); animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ANIMATIONS */
.fade-in { opacity: 0; transform: translateY(12px); animation: fadeIn 0.6s ease forwards; }
@keyframes fadeIn { to { opacity: 1; transform: translateY(0); } }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* MOBILE */
@media (max-width: 768px) {
  nav { padding: 20px 24px; }
  .nav-links { display: none; }
  .section { padding: 0 24px 56px; }
  .property-grid { grid-template-columns: 1fr; gap: 40px; }
  footer { flex-direction: column; gap: 20px; padding: 32px 24px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 16px; }
}
