/* Highland Insurance Group — About (/about/, /es/sobre-nosotros/) and Team (/team/, /es/equipo/)
   Loaded after site.css. Uses only the site.css color/font variables. */

/* ---------- Title band (navy) ---------- */
.at-hero { background: var(--navy); color: var(--cream); text-align: center; padding: 34px 0 64px; }
.at-hero .wrap { max-width: 900px; }
.at-hero .crumbs { font-family: var(--font-head); font-size: 14px; font-weight: 600; opacity: .85; margin-bottom: 30px; text-align: left; overflow-wrap: anywhere; }
.at-hero .crumbs a { color: var(--cream); text-decoration: none; }
.at-hero .crumbs a:hover { text-decoration: underline; }
.at-hero .crumbs [aria-current] { color: var(--gold); }
.at-hero h1 { font-size: clamp(36px, 5vw, 58px); margin-bottom: 20px; }
.at-intro { font-size: 19px; max-width: 720px; margin: 0 auto; }

/* ---------- About: story ---------- */
.at-story { background: var(--cream); }
.at-story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 56px; align-items: start; }
.at-story-img { margin: 0; position: sticky; top: 24px; }
.at-story-img img { width: 100%; border-bottom: 4px solid var(--gold); }
.at-story-text p { font-size: 18px; margin-bottom: 18px; }
.at-story-text p:last-child { margin-bottom: 0; }
.at-lead { font-family: var(--font-head); font-weight: 700; font-size: 22px !important; line-height: 1.35; color: var(--navy); border-left: 3px solid var(--gold); padding-left: 18px; }

/* ---------- About: bilingual expertise ---------- */
.at-bilingual { background: var(--sand); }
.at-bil-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.at-bil-text .section-title { color: var(--gold-dark); margin-bottom: 22px; }
.at-bil-text p { font-size: 18px; margin-bottom: 16px; }
.at-more a { font-family: var(--font-head); font-weight: 700; color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.at-founders { margin: 0; max-width: 440px; justify-self: center; }
.at-founders img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 60%; }
.at-founders figcaption { font-style: italic; font-size: 16px; margin-top: 12px; text-align: center; }

/* ---------- Team grid ---------- */
.tm-team { background: var(--cream); }
.tm-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.tm-card { background: var(--white); display: flex; flex-direction: column; border-top: 3px solid var(--gold); scroll-margin-top: 20px; }
.tm-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--stone); }
.tm-body { padding: 22px 24px 26px; }
.tm-body h2 { font-size: 24px; text-align: center; }
.tm-role { font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: .02em; color: var(--gold-dark); text-align: center; margin: 6px 0 16px !important; }
.tm-body p { font-size: 16px; margin-bottom: 12px; }
.tm-body p:last-child { margin-bottom: 0; }
/* Card → profile page links (tools/build_team_pages.py) */
.tm-photo { display: block; overflow: hidden; }
.tm-photo img { transition: transform .4s; }
.tm-photo:hover img { transform: scale(1.03); }
.tm-body h2 a { color: inherit; text-decoration: none; }
.tm-body h2 a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; }
.tm-card .tm-body { flex: 1; display: flex; flex-direction: column; }
.tm-body .tm-more { margin-top: auto; padding-top: 18px; text-align: center; }
.tm-more a { font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: .02em; color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; }
.tm-more a:hover { color: var(--gold-dark); }
@media (prefers-reduced-motion: reduce) { .tm-photo img { transition: none; } .tm-photo:hover img { transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .tm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .at-hero { padding: 22px 0 52px; }
  .at-hero .crumbs { margin-bottom: 22px; font-size: 13px; }
  .at-intro { font-size: 17px; }
  .at-story-grid, .at-bil-grid { grid-template-columns: 1fr; gap: 30px; }
  .at-story-img { position: static; }
  .at-story-text p, .at-bil-text p { font-size: 17px; }
  .at-lead { font-size: 20px !important; }
}
@media (max-width: 600px) {
  .tm-grid { grid-template-columns: 1fr; gap: 28px; }
  .tm-body { padding: 20px 18px 22px; }
}
@media (max-width: 560px) {
  .hero-ctas .btn-lg { max-width: 100%; }
}
