/* SmartCare Companion — shared vision-friendly base styles */
:root {
  --scc-text: #1a1a1a;
  --scc-bg: #f8f9fa;
}

body.scc-body {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--scc-text);
  background-color: var(--scc-bg);
}

.scc-body .navbar-brand {
  font-size: 1.35rem;
  font-weight: 700;
}

/* Global nav: always reach home */
.scc-nav-home {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--scc-text);
  text-decoration: none;
  padding: 0.45rem 1rem;
  border-radius: 0.5rem;
  border: 2px solid #ced4da;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.scc-nav-home:hover {
  background-color: #e9ecef;
  color: var(--scc-text);
}

.scc-nav-home:focus-visible {
  outline: 3px solid #0d6efd;
  outline-offset: 2px;
}

.scc-nav-home[aria-current="page"] {
  border-color: #0d6efd;
  background-color: #e7f1ff;
  color: #0a58ca;
}

.scc-hero-title {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.scc-lead {
  font-size: 1.35rem;
  max-width: 42rem;
}

/* Confirm page: slightly larger lead for readability */
.scc-lead-confirm {
  font-size: 1.5rem;
  line-height: 1.5;
  max-width: 40rem;
}

@media (min-width: 768px) {
  .scc-lead-confirm {
    font-size: 1.6rem;
  }
}

.scc-btn-main {
  min-height: 3.25rem;
  padding-left: 2rem;
  padding-right: 2rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.scc-hero-img {
  max-height: 22rem;
  object-fit: cover;
  width: 100%;
}

/* Landing: hospital photo + mic */
.scc-landing-hospital {
  max-height: min(50vh, 28rem);
  width: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
}

.scc-mic-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.scc-mic-link:hover .scc-mic-circle {
  background-color: #e7f1ff;
  border-color: #0d6efd;
}

.scc-mic-circle {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  background-color: #e9ecef;
  border: 3px solid #dee2e6;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.scc-mic-icon {
  width: 3rem;
  height: 3rem;
  color: #0d6efd;
}

.scc-mic-text {
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 600;
  line-height: 1.35;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}

.scc-card-img {
  height: 12rem;
  object-fit: cover;
  width: 100%;
}

.scc-time-btn {
  min-height: 3.5rem;
  font-size: 1.2rem;
  font-weight: 600;
}

/* Choose specialty: large clickable images */
.scc-specialty-tile {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.08);
  border: 3px solid #e9ecef;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.scc-specialty-tile:hover,
.scc-specialty-tile:focus-visible {
  border-color: #0d6efd;
  box-shadow: 0 0.5rem 1.25rem rgba(13, 110, 253, 0.25);
  transform: translateY(-2px);
  color: inherit;
}

.scc-specialty-tile:focus-visible {
  outline: 3px solid #0d6efd;
  outline-offset: 2px;
}

.scc-specialty-img {
  width: 100%;
  height: clamp(10rem, 22vw, 14rem);
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (min-width: 768px) {
  .scc-specialty-img {
    height: clamp(11rem, 18vw, 15rem);
  }
}

.scc-specialty-label {
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-weight: 700;
  text-align: center;
  padding: 0.75rem 0.5rem 1rem;
  line-height: 1.25;
  background: #fff;
  border-top: 1px solid #e9ecef;
}

@media (min-width: 768px) {
  .scc-specialty-label {
    padding: 1rem 0.35rem 1.1rem;
  }
}

/* Need help: mic + phone tiles */
.scc-help-tile .scc-specialty-label {
  border-top: none;
}

.scc-help-panel {
  padding: 2rem 1rem 1.5rem;
  min-height: 14rem;
}

.scc-help-caption {
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
}

.scc-phone-circle {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  background-color: #e8f5e9;
  border: 3px solid #c3e6cb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.scc-help-tile:hover .scc-phone-circle,
.scc-help-tile:focus-visible .scc-phone-circle {
  background-color: #d1e7dd;
  border-color: #198754;
}

.scc-phone-icon {
  width: 3rem;
  height: 3rem;
  color: #198754;
}

/* Confirmation screen: Get help + Call family */
.scc-q-circle {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  background-color: #fff3cd;
  border: 3px solid #ffecb5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: #856404;
}

.scc-confirm-next:hover .scc-q-circle,
.scc-confirm-next:focus-visible .scc-q-circle {
  background-color: #ffe69c;
  border-color: #ffc107;
}

.scc-confirm-next:hover .scc-phone-circle,
.scc-confirm-next:focus-visible .scc-phone-circle {
  background-color: #d1e7dd;
  border-color: #198754;
}

button.scc-confirm-next {
  cursor: pointer;
}

.scc-confirm-next:focus-visible {
  outline: 3px solid #0d6efd;
  outline-offset: 2px;
}
