/* ==========================================================================
   Irish Properties WNY — Layout
   Builds on tokens defined in variables.css. Load variables.css first.
   ========================================================================== */

/* ---- Header ---- */

.site-header {
  border-bottom: 1px solid var(--color-gold);
  padding: var(--space-sm) 0;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.logo-link { display: inline-block; }

.site-nav {
  display: flex;
  gap: var(--space-md);
  font-family: var(--font-body);
  font-size: var(--text-xs);
}

.site-nav a {
  color: var(--color-ink);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.site-nav a:hover { color: var(--color-gold-dark); }

/* ---- Footer ---- */

.site-footer {
  border-top: 1px solid var(--color-gold);
  margin-top: var(--space-xl);
  padding: var(--space-md) 0;
  font-size: var(--text-xs);
  color: var(--color-ink);
  opacity: 0.75;
}

/* ---- Buttons: paired solid + outline ---- */

.btn-outline {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background: transparent;
  color: var(--color-ink);
  border: 1px solid var(--color-ink);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--text-md);
  cursor: pointer;
}
.btn-outline:hover {
  background: var(--color-ink);
  color: var(--color-ground);
}

.btn-group {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* ---- Bands: alternating section backgrounds ----
   This is the mechanism that reads as "cleanly separated sections" —
   a background-color shift, not just a divider line. */

.band {
  padding: var(--space-xl) 0;
}

.band--tint {
  background: var(--color-band);
}

.band-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ---- Property hero (top band) ---- */

.property-hero .eyebrow { margin-bottom: var(--space-xs); }

.property-hero h1 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-md);
}

.hero-split {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--space-lg);
  align-items: stretch;
}

@media (max-width: 800px) {
  .hero-split { grid-template-columns: 1fr; }
}

.hero-photo {
  position: relative;
  min-height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-ink); /* fallback when no photo exists yet */
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-overlay-text);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  opacity: 0.6;
  text-align: center;
  padding: var(--space-md);
}

.hero-photo-caption {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: var(--space-lg) var(--space-md) var(--space-md);
  background: linear-gradient(to top, rgba(32,31,29,0.75), rgba(32,31,29,0));
  color: var(--color-overlay-text);
}

.hero-photo-caption p {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  margin: 0 0 var(--space-sm);
}

.hero-photo-caption .btn { margin: 0; }

.hero-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-sm);
}

.hero-details .lead {
  font-size: var(--text-xl);
}

/* ---- Property gallery (secondary photos, below hero) ---- */

.property-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-sm);
}

.property-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ---- Description band ---- */

.property-description {
  max-width: 70ch;
}

/* ---- Amenities band ---- */

.amenities-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-xs) var(--space-md);
}

.amenities-list li::before {
  content: "\2022";
  color: var(--color-gold);
  margin-right: var(--space-xs);
}

.property-address {
  font-size: var(--text-xs);
  color: var(--color-ink);
  opacity: 0.7;
}
