/*
 * RYDER Team Members — Front-end Stylesheet
 * Scoped with .rt- prefix to avoid conflicts
 */

:root {
  --rs-brown: #2A1E06;
  --rs-gold: #C8A96E;
  --rs-gold-light: #D4BC8B;
  --rs-gold-dark: #A8874E;
  --rs-gold-muted: rgba(200,169,110,.35);
  --rs-ivory: #FAF7F2;
  --rs-cream: #F4EDE2;
  --rs-sand: #E8DFD0;
  --rs-parchment: #F0E8DA;
  --rs-text: #3A2F1E;
  --rs-text-secondary: #6B5D4A;
  --rs-text-muted: #8C7E6A;
  --rt-font: 'Optima','Palatino Linotype','Book Antiqua','Palatino','Georgia',serif;
}

/* ── Scroll reveal ── */
.rt-rv { opacity: 0; transform: translateY(24px); transition: opacity .75s cubic-bezier(.22,1,.36,1), transform .75s cubic-bezier(.22,1,.36,1); }
.rt-rv.rt-vis { opacity: 1; transform: translateY(0); }

/* ── HERO ── */
.rt-page-hero {
  position: relative;
  height: 54vh;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
/* Full-width breakout — escapes any theme content-width container */
.rt-hero-fullwidth {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.rt-hero-bg {
  position: absolute;
  inset: 0;
  /* background-image set via inline style from PHP (uses page featured image) */
  background: #2a1e06 center 35% / cover no-repeat;
}
.rt-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(42,30,6,.45) 0%, rgba(42,30,6,.15) 40%, rgba(42,30,6,.75) 100%);
}
.rt-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 clamp(20px,5vw,60px);
}
.rt-breadcrumb {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.38);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--rt-font);
}
.rt-breadcrumb a { color: rgba(255,255,255,.38); text-decoration: none; transition: color .3s; }
.rt-breadcrumb a:hover { color: var(--rs-gold); }
.rt-page-hero h1 {
  font-size: clamp(28px,4.2vw,58px);
  font-weight: 400;
  color: #fff;
  line-height: 1.1;
  margin: 0 0 14px;
  font-family: var(--rt-font);
  animation: rtFadeUp .8s .2s both;
}
.rt-page-hero h1 em { font-style: italic; color: var(--rs-gold-light); }
.rt-hero-sub {
  font-size: clamp(13px,1.1vw,15.5px);
  color: rgba(255,255,255,.68);
  line-height: 1.85;
  max-width: 680px;
  margin: 0 auto;
  font-family: var(--rt-font);
  animation: rtFadeUp .8s .4s both;
}

@keyframes rtFadeUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }

/* ── SECTION INTRO ── */
.rt-section-intro {
  text-align: center;
  padding: 56px clamp(20px,5vw,80px) 40px;
  max-width: 800px;
  margin: 0 auto;
  font-family: var(--rt-font);
}
.rt-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--rs-text-muted);
  margin-bottom: 16px;
}
.rt-section-intro h2 {
  font-size: clamp(24px,3vw,42px);
  font-weight: 400;
  color: var(--rs-brown);
  line-height: 1.2;
  margin: 0 0 14px;
}
.rt-section-intro h2 em { font-style: italic; color: var(--rs-gold-dark); }
.rt-section-intro p {
  font-size: clamp(13px,1.1vw,15.5px);
  color: var(--rs-text-secondary);
  line-height: 1.9;
}

/* ── DEPT FILTER TABS ── */
.rt-dept-tabs-wrap {
  padding: 0 clamp(20px,5vw,80px) 40px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}
.rt-dept-tab {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 9px 20px;
  border: 1.5px solid var(--rs-sand);
  background: transparent;
  color: var(--rs-text-secondary);
  cursor: pointer;
  transition: all .2s;
  font-family: var(--rt-font);
}
.rt-dept-tab:hover { border-color: var(--rs-gold-dark); color: var(--rs-text); }
.rt-dept-tab.active { background: var(--rs-brown); border-color: var(--rs-brown); color: var(--rs-gold); }

/* ── TEAM GRID ── */
.rt-team-section {
  padding: 0 clamp(20px,5vw,80px) 72px;
  max-width: 1300px;
  margin: 0 auto;
}
.rt-team-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
}
@media (max-width: 1080px) { .rt-team-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px)  { .rt-team-grid { grid-template-columns: 1fr; } }

/* ── TEAM CARD ── */
.rt-team-card {
  background: #fff;
  border: 1px solid var(--rs-sand);
  overflow: hidden;
  transition: box-shadow .35s, transform .35s, border-color .35s;
  display: none;
  flex-direction: column;
}
.rt-team-card.visible { display: flex; }
.rt-team-card:hover { transform: translateY(-4px); box-shadow: 0 14px 44px rgba(42,30,6,.1); border-color: var(--rs-gold-muted); }

.rt-card-photo { position: relative; overflow: hidden; height: 320px; }
.rt-card-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s; display: block; }
.rt-team-card:hover .rt-card-photo img { transform: scale(1.04); }
.rt-card-photo-placeholder {
  width: 100%; height: 100%;
  background: var(--rs-parchment);
  display: flex; align-items: center; justify-content: center;
  font-size: 64px; color: var(--rs-gold);
  font-family: var(--rt-font);
}

.rt-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; font-family: var(--rt-font); }
.rt-card-role { font-size: 9px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--rs-text-muted); margin-bottom: 8px; line-height: 1.4; }
.rt-card-name { font-size: clamp(15px,1.4vw,20px); font-weight: 600; color: var(--rs-brown); line-height: 1.2; margin: 0 0 12px; }
.rt-card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.rt-card-tag { font-size: 8px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--rs-text-secondary); background: var(--rs-parchment); border: 1px solid var(--rs-sand); padding: 3px 9px; }
.rt-card-desc { font-size: 12.5px; color: var(--rs-text-secondary); line-height: 1.75; }

/* ── WHY SECTION ── */
.rt-why-section { background: var(--rs-brown); padding: 60px clamp(20px,5vw,80px); }
.rt-why-inner { max-width: 1200px; margin: 0 auto; }
.rt-why-head { text-align: center; margin-bottom: 44px; }
.rt-why-head h2 { font-size: clamp(20px,2.2vw,32px); font-weight: 400; color: var(--rs-cream); margin: 0 0 10px; font-family: var(--rt-font); }
.rt-why-rule { width: 40px; height: 1.5px; background: var(--rs-gold); margin: 0 auto; }
.rt-why-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 32px; }
@media (max-width: 900px) { .rt-why-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px) { .rt-why-grid { grid-template-columns: 1fr; } }
.rt-why-item { text-align: center; }
.rt-why-icon { font-size: 30px; margin-bottom: 14px; display: block; }
.rt-why-item h3 { font-size: clamp(13px,1.1vw,16px); font-weight: 600; color: var(--rs-gold-light); margin: 0 0 8px; font-family: var(--rt-font); }
.rt-why-item p { font-size: 12px; color: rgba(244,237,226,.6); line-height: 1.85; font-family: var(--rt-font); }

/* ── JOIN CTA ── */
.rt-join-section { background: var(--rs-parchment); border-top: 1px solid var(--rs-sand); padding: 52px clamp(20px,5vw,60px); text-align: center; }
.rt-join-section h3 { font-size: clamp(16px,1.6vw,22px); font-weight: 400; color: var(--rs-brown); margin: 0 0 10px; font-family: var(--rt-font); }
.rt-join-section p { font-size: 13px; color: var(--rs-text-muted); margin-bottom: 22px; font-family: var(--rt-font); }
.rt-btn-outline {
  display: inline-block;
  font-family: var(--rt-font);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px 34px;
  border: 1.5px solid var(--rs-gold-dark);
  color: var(--rs-gold-dark);
  text-decoration: none;
  transition: all .3s;
}
.rt-btn-outline:hover { background: var(--rs-brown); color: var(--rs-gold); border-color: var(--rs-brown); }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .rt-rv { opacity: 1; transform: none; transition: none; }
  .rt-rv.rt-vis { opacity: 1; transform: none; }
}
