/* ============================================================
   PAGES.CSS: Shared styles for Team & Contact pages
   Inherits refresh.css tokens and base styles.
   ============================================================ */

/* ============== PAGE HERO (shared inner-page banner) ============== */
.page-hero {
  background: var(--gfs-paper);
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-hero .label {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gfs-graphite);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.page-hero .label::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--gfs-green-500);
}
.page-title {
  font-family: var(--font-h1);
  font-weight: 600;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gfs-black);
  margin: 0 0 16px;
}
.page-title .accent { color: var(--gfs-green-600); }

/* ============== TEAM PAGE ============== */
.team-section {
  padding: 80px 0;
  background: #fff;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  align-items: start;          /* cards size to their own content (no forced stretch) */
}
.team-card {
  display: flex;
  gap: 24px;
  padding: 32px;
  background: var(--gfs-paper);
  border: 1px solid var(--gfs-fog);
  border-radius: 4px;
  transition: box-shadow var(--dur-base) var(--ease-standard);
}
.team-card:hover {
  box-shadow: var(--shadow-md);
}
.team-card-photo {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: var(--gfs-mist);
}
.team-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}
.team-photo-initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gfs-graphite);
  background: var(--gfs-mist);
  z-index: 0;
}
.team-photo-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-standard);
}
.team-card:hover .team-photo-hover {
  opacity: 1;
}
.team-card-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gfs-black);
  margin: 0 0 4px;
  line-height: 1.2;
}
.team-title {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--gfs-green-700);
  margin-bottom: 2px;
}
.team-role {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gfs-steel);
  margin-bottom: 12px;
}
.team-card-body p {
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.6;
  color: var(--gfs-graphite);
  margin: 0 0 10px;
}

/* Collapsible bio (uses native <details>) */
.team-bio {
  margin: 0 0 12px;
}
.team-bio summary {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gfs-green-700);
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  user-select: none;
  transition: color var(--dur-fast) var(--ease-standard);
}
.team-bio summary::-webkit-details-marker { display: none; }
.team-bio summary::after {
  content: '';
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--dur-base) var(--ease-standard);
}
.team-bio[open] summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}
.team-bio summary:hover { color: var(--gfs-green-900); }
.team-bio summary:focus-visible {
  outline: 2px solid var(--gfs-green-700);
  outline-offset: 4px;
  border-radius: 2px;
}
.team-bio[open] p {
  margin-top: 10px;
  animation: bioFadeIn var(--dur-base) var(--ease-standard);
}
@keyframes bioFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.team-email {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--gfs-green-700);
  font-weight: 500;
}
.team-email:hover { color: var(--gfs-green-900); }

/* ============== CONTACT PAGE ============== */
.contact-section {
  padding: 80px 0;
  background: #fff;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 28px;
  border-left: 2px solid var(--gfs-green-500);
  padding-left: 28px;
}
.contact-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gfs-green-700);
  margin-bottom: 6px;
}
.contact-value {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.5;
  color: var(--gfs-ink);
}
.contact-value a { color: var(--gfs-ink); }
.contact-value a:hover { color: var(--gfs-green-700); }

.building-map {
  border: 1px solid var(--gfs-fog);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 24px;
  background: #fff;
}
.building-map img {
  width: 100%;
  height: auto;
  display: block;
}

.parking-card {
  background: var(--gfs-paper);
  border: 1px solid var(--gfs-fog);
  border-radius: 4px;
  padding: 32px;
}
.parking-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gfs-black);
  margin: 0 0 12px;
}
.parking-card p {
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.6;
  color: var(--gfs-graphite);
  margin: 0 0 20px;
}
.parking-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.parking-option {
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.55;
  color: var(--gfs-graphite);
  padding-left: 16px;
  border-left: 2px solid var(--gfs-fog);
}
.parking-option strong {
  color: var(--gfs-ink);
  font-weight: 600;
}

/* ============== WHAT WE OFFER (services.html) ============== */
/* Hero modifier - reuses .page-hero base; constrains line length on title */
.services-hero .page-title { max-width: 18ch; }

.c-section { background: #fff; }

/* Tab strip stays in document flow (was sticky; reverted because it
   overlapped the Nav as the user scrolled past it). */
.c-tabs-wrap {
  background: var(--gfs-paper);
  border-bottom: 1px solid var(--gfs-fog);
}
.c-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.c-tabs::-webkit-scrollbar { display: none; }
.c-tab {
  flex: 1 1 0;
  min-width: 0;
  padding: 24px 16px 22px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background var(--dur-fast) var(--ease-standard),
              border-color var(--dur-fast) var(--ease-standard),
              color var(--dur-fast) var(--ease-standard);
  font: inherit;
}
.c-tab:hover { background: rgba(0, 0, 0, 0.02); }
.c-tab.active {
  border-bottom-color: var(--gfs-green-500);
  background: #fff;
}
.c-tab:focus-visible {
  outline: 2px solid var(--gfs-green-700);
  outline-offset: -2px;
}
.c-tab-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--gfs-green-700);
  margin-bottom: 4px;
}
.c-tab-name {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gfs-charcoal);
  line-height: 1.2;
}
.c-tab.active .c-tab-name { color: var(--gfs-black); }

.c-panel {
  padding: 64px 0 80px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
}
.c-panel-eyebrow {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gfs-green-700);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.c-panel-eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--gfs-green-500);
}
.c-panel-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 56px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gfs-black);
  margin: 0 0 24px;
}
.c-panel-desc {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.7;
  color: var(--gfs-graphite);
  margin: 0 0 32px;
  max-width: 50ch;
}
.c-panel-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gfs-black);
  background: none;
  border: none;
  padding: 0 0 8px;
  border-bottom: 2px solid var(--gfs-green-500);
  cursor: pointer;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-standard);
}
.c-panel-cta:hover { color: var(--gfs-green-700); }

.c-panel-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--gfs-fog);
  border: 1px solid var(--gfs-fog);
}
.c-card {
  background: #fff;
  padding: 20px 22px;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.45;
  color: var(--gfs-charcoal);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: background var(--dur-base) var(--ease-standard);
}
.c-card:hover { background: var(--gfs-paper); }
.c-card-tick {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gfs-green-500);
  color: var(--gfs-black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  margin-top: 1px;
}

/* Mobile-only label swap: tab #1 shows the short form "Planning" instead
   of "Financial Planning" so all 5 tabs fit a phone viewport. */
.c-tab-name-short { display: none; }

/* Panel collapse + equal-flex tabs on tablet */
@media (max-width: 720px) {
  .c-tab {
    flex: 1 1 0;
    min-width: 0;
    padding: 12px 6px 10px;
    scroll-snap-align: start;
  }
  .c-tabs { scroll-snap-type: x mandatory; }

  .c-tab-name-full { display: none; }
  .c-tab-name-short { display: inline; }

  /* Soft right-edge fade. Doesn't hurt when content fits; signals
     swipeability if any tab overflows on extra-narrow viewports. */
  .c-tabs-wrap { position: relative; }
  .c-tabs-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 1px;
    width: 24px;
    background: linear-gradient(to right, rgba(246, 245, 242, 0), var(--gfs-paper));
    pointer-events: none;
  }

  .c-panel {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 0 56px;
  }
  .c-panel-right { grid-template-columns: 1fr; }
}

/* Tighter typography on phone */
@media (max-width: 520px) {
  .services-hero .page-title { font-size: 32px; }
  .c-tab { padding: 10px 4px 8px; }
  .c-tab-num { font-size: 12px; margin-bottom: 2px; }
  .c-tab-name { font-size: 10px; letter-spacing: 0.08em; }
  .c-panel-title { font-size: 34px; margin-bottom: 16px; }
  .c-panel-desc { font-size: 16px; margin-bottom: 24px; }
  .c-panel-cta { font-size: 11px; }
  .c-card { padding: 16px 18px; }
}

/* ============== RESPONSIVE ============== */
@media (max-width: 960px) {
  .page-hero { padding: 48px 0 40px; }
  .page-title { font-size: 32px; }

  .team-grid { grid-template-columns: 1fr; gap: 20px; }
  .team-card { padding: 24px; gap: 18px; }
  .team-card-photo { width: 72px; height: 72px; }
  .team-card-body h3 { font-size: 17px; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-info-block { padding-left: 20px; }
  .contact-value { font-size: 16px; }
}
