/* RIME Networks Portal - portal.css */

:root {
  --color-navy: #023E8A;
  --color-navy-dark: #03045E;
  --color-orange: #FF6B35;
  --color-bg: #F8F9FA;
  --color-text: #212529;
  --color-white: #FFFFFF;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- Navbar ---- */
.navbar {
  background-color: var(--color-navy);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.navbar__logo {
  height: 40px;
  display: block;
}

.navbar__tagline {
  color: var(--color-white);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ---- Main content ---- */
main {
  flex: 1;
  padding: 3rem 1.5rem;
}

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

.page-heading {
  color: var(--color-navy);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: center;
}

.page-subtext {
  color: var(--color-text);
  font-size: 1rem;
  text-align: center;
  margin-bottom: 2.5rem;
  opacity: 0.75;
}

/* ---- Property card grid ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

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

.card {
  background-color: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 150ms ease, box-shadow 150ms ease;
  text-decoration: none;
  color: inherit;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12), 0 0 1px rgba(0, 0, 0, 0.08);
}

.card__image {
  width: 100%;
  height: 180px;
  object-fit: contain;
  display: block;
  background-color: #eef1f5;
  padding: 0.75rem;
}

.card__body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.card__name {
  color: var(--color-navy);
  font-size: 1.125rem;
  font-weight: 700;
}

.card__cta {
  display: inline-block;
  color: var(--color-orange);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 150ms ease;
  margin-top: auto;
}

.card__cta:hover {
  color: #E85F2A;
  text-decoration: underline;
}

/* ---- Other properties frame ---- */
.other-properties {
  margin-top: 1.5rem;
  background-color: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.05);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.other-properties:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12), 0 0 1px rgba(0, 0, 0, 0.08);
}

.other-properties__name {
  color: var(--color-navy);
  font-size: 1.125rem;
  font-weight: 700;
}

.other-properties__cta {
  color: var(--color-orange);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.other-properties:hover .other-properties__cta {
  color: #E85F2A;
  text-decoration: underline;
}

@media (max-width: 600px) {
  .other-properties {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---- Footer ---- */
footer {
  background-color: var(--color-navy-dark);
  color: var(--color-white);
  text-align: center;
  padding: 1.25rem 2rem;
  font-size: 0.875rem;
  opacity: 0.95;
}
