/* Jenkins Hyundai of Ocala — Service Advisor pages
   Mobile-first, designed for a 390px-wide phone and GitHub Pages. */

:root {
  --bg: #2b2b2b;
  --navy: #0b3a74;
  --navy-hover: #124a91;
  --navy-press: #08305f;
  --white: #ffffff;
  --text: #ffffff;
  --muted: #c9c9c9;
  --btn-text: #1a1a1a;
  --radius: 12px;
  --page: 430px;
  --pad: 20px;
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
  --font: "Montserrat", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  background: var(--bg);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 600;
  line-height: 1.4;
  display: flex;
  justify-content: center;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

.page {
  width: 100%;
  max-width: var(--page);
  padding: calc(22px + env(safe-area-inset-top, 0px)) var(--pad) calc(36px + env(safe-area-inset-bottom, 0px));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

.logo-card {
  background: var(--white);
  border-radius: 16px;
  padding: 14px 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 26px;
  width: 100%;
  box-shadow: var(--shadow);
}

.logo-card img {
  width: 100%;
  max-width: 280px;
  height: auto;
}

.welcome {
  text-align: center;
  font-weight: 800;
  font-size: 1.32rem;
  letter-spacing: -0.025em;
  line-height: 1.3;
  margin: 0 0 10px;
}

.choose {
  text-align: center;
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
  color: #f0f0f0;
}

/* ----- Advisor list ----- */

.advisor-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

/* ----- Buttons ----- */

.btn {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  border-radius: var(--radius);
  padding: 13px 16px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  min-height: 54px;
  line-height: 1.25;
  box-shadow: var(--shadow);
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.btn:active {
  transform: scale(0.99);
}

.btn .icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover,
.btn-navy:focus-visible {
  background: var(--navy-hover);
}

.btn-navy:active {
  background: var(--navy-press);
}

.btn-navy:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.btn-white {
  background: var(--white);
  color: var(--btn-text);
}

.btn-white:hover,
.btn-white:focus-visible {
  background: #f3f5f8;
}

.btn-white:focus-visible {
  outline: 2px solid #8ab4e8;
  outline-offset: 2px;
}

.btn-full {
  width: 100%;
  margin-bottom: 10px;
  justify-content: flex-start;
}

.btn-full .label {
  flex: 1;
  text-align: center;
  padding-right: 22px; /* optically center next to the left icon */
}

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.row-2 .btn {
  justify-content: center;
  padding-left: 12px;
  padding-right: 12px;
}

/* ----- Advisor profile ----- */

.photo {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  object-fit: cover;
  margin: 4px auto 18px;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
  background: #3a3a3a;
}

.advisor-name {
  text-align: center;
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 8px;
}

.store {
  text-align: center;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  margin: 0;
}

.title {
  text-align: center;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 2px 0 22px;
}

.spanish {
  display: block;
  margin-top: 4px;
  font-weight: 700;
  font-size: 0.82rem;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.back {
  display: block;
  text-align: center;
  color: #dddddd;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  margin: 16px 0 0;
  padding: 8px;
}

.back:hover,
.back:focus-visible {
  color: #ffffff;
  outline: none;
}

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

.site-footer {
  margin-top: auto;
  padding-top: 28px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 500;
  color: #b3b3b3;
  line-height: 1.55;
  letter-spacing: 0.01em;
}

.site-footer a {
  color: #d5d5d5;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}

.site-footer .nowrap {
  white-space: nowrap;
}

/* ----- 404 ----- */

.not-found {
  text-align: center;
  padding: 12px 0 8px;
}

.not-found h1 {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}

.not-found p {
  color: var(--muted);
  font-weight: 500;
  margin: 0 0 22px;
}

/* ----- Reduced motion ----- */

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
  .btn:active {
    transform: none;
  }
}
