/* ==========================================================================
   Zivkovic & Associates — pages.css
   Page-specific layouts and components not covered by base.css.
   ========================================================================== */

/* ---- Home: value props strip ------------------------------------------- */
.value-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
}
.value-strip .item {
  display: flex;
  gap: var(--s-2);
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s-3);
  box-shadow: var(--shadow);
}
.value-strip .item svg {
  width: 30px;
  height: 30px;
  color: var(--teal);
  flex-shrink: 0;
}
.value-strip .item h3 { font-size: 1.15rem; margin-bottom: 4px; }
.value-strip .item p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---- Home: "We Buy Houses" band ---------------------------------------- */
.buy-band {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 320px;
  box-shadow: var(--shadow-lg);
}
.buy-band__copy {
  background: linear-gradient(120deg, var(--navy) 0%, var(--slate) 100%);
  color: #fff;
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--s-2);
}
.buy-band__copy .kicker { color: rgba(255, 255, 255, 0.7); }
.buy-band__copy h2 { color: #fff; }
.buy-band__copy p { color: rgba(255, 255, 255, 0.85); margin: 0; }
.buy-band__media { position: relative; min-height: 220px; }
.buy-band__media.ph { height: 100%; }
.buy-band__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- Staff grid --------------------------------------------------------- */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
}
.staff-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease;
}
.staff-card:hover { box-shadow: var(--shadow-lg); }
.staff-card__media { aspect-ratio: 1 / 1; width: 100%; overflow: hidden; }
.staff-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.staff-card__body { padding: var(--s-3); }
.staff-grid--no-media .staff-card__body { padding-top: var(--s-4); padding-bottom: var(--s-4); }
.staff-card__name { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: var(--navy); }
.staff-card__role { color: var(--teal); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; margin: 4px 0 var(--s-2); }
.staff-card__contact { font-size: 0.9rem; color: var(--muted); display: grid; gap: 4px; }
.staff-card__contact a { color: var(--teal); }
.staff-card__contact svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; color: var(--teal); }
.staff-card__email {
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 12px;
  font-size: 0.85rem;
  color: var(--teal);
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.2s ease;
}
.staff-card__email:hover { background: var(--line); }
.staff-card__email-reveal {
  display: none;
  font-size: 0.85rem;
  color: var(--teal);
}
.staff-card__email-reveal a {
  color: var(--teal);
}

/* ---- Portal login cards (residents) ------------------------------------ */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
}
.portal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s-4);
  box-shadow: var(--shadow);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
  transition: box-shadow 0.35s ease;
}
.portal-card:hover {
  box-shadow: var(--shadow-lg);
}
.portal-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--teal);
  display: grid;
  place-items: center;
}
.portal-card__icon svg { width: 32px; height: 32px; }
.portal-card h3 { margin: 0; }
.portal-card p { color: var(--muted); margin: 0; flex: 1; }

/* ---- Split layout (image + content) ------------------------------------ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
  align-items: center;
}
.split__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 280px; }
.split__media.ph, .split__media .ph { height: 100%; }
.split__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.split__body h2 { margin-bottom: var(--s-2); }
.split__body .kicker { margin-bottom: var(--s-1); display: inline-block; }

/* ---- Reasons list (numbered) ------------------------------------------- */
.reasons {
  list-style: none;
  padding: 0;
  counter-reset: reason;
  display: grid;
  gap: var(--s-2);
}
.reasons li {
  counter-increment: reason;
  position: relative;
  padding-left: 3em;
  color: var(--ink);
  min-height: 3.2em;
  display: flex;
  align-items: center;
}
.reasons li::before {
  content: counter(reason, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--teal);
}

/* ---- Office cards (contact) -------------------------------------------- */
.office-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
}
.office-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s-4);
  box-shadow: var(--shadow);
}
.office-card h3 { display: flex; align-items: center; gap: 0.5em; margin-bottom: var(--s-2); }
.office-card h3 svg { width: 22px; height: 22px; color: var(--teal); }
.office-card address { font-style: normal; color: var(--muted); line-height: 1.7; }
.office-card address a { color: var(--teal); }

/* ---- Downloads list ----------------------------------------------------- */
.download-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--s-2);
}
.download-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: var(--s-2) var(--s-3);
  color: var(--navy);
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.download-list li a:hover { border-color: var(--teal); background: var(--surface-2); }
.download-list li a svg { width: 20px; height: 20px; color: var(--teal); }

/* ---- iframe (ManageBuilding) ------------------------------------------- */
.embed-frame {
  width: 100%;
  height: 640px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--surface);
}

/* ---- Info panel --------------------------------------------------------- */
.info-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: var(--s-3);
  box-shadow: var(--shadow);
  transition: box-shadow 0.35s ease;
}
.info-panel:hover {
  box-shadow: var(--shadow-lg);
}
.info-panel h3 { margin-bottom: var(--s-1); }

/* ---- Breadcrumb --------------------------------------------------------- */
.crumbs {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--s-2);
  position: relative;
}
.crumbs a { color: rgba(255, 255, 255, 0.85); }
.crumbs a:hover { color: #fff; }
.crumbs .sep { margin: 0 0.5em; opacity: 0.5; }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 860px) {
  .value-strip { grid-template-columns: 1fr; }
  .buy-band { grid-template-columns: 1fr; }
  .buy-band__media { min-height: 200px; order: -1; }
  .split { grid-template-columns: 1fr; }
  .split__media { order: -1; min-height: 220px; }
  .staff-grid { grid-template-columns: repeat(2, 1fr); }
  .portal-grid, .office-grid { grid-template-columns: 1fr; }
  .embed-frame { height: 800px; }
}

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--s-4);
}
.sitemap-section h2 {
  font-size: 1rem;
  margin-bottom: var(--s-2);
  color: var(--teal);
}
.sitemap-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sitemap-section li {
  margin-bottom: var(--s-1);
}
.sitemap-section a {
  color: var(--ink);
  text-decoration: none;
}
.sitemap-section a:hover {
  color: var(--teal);
}

@media (max-width: 560px) {
  .staff-grid { grid-template-columns: 1fr; }
  .embed-frame { height: 800px; }
  .sitemap-grid { grid-template-columns: 1fr; }
}
