/* ============================================================
   EcoWear – Team Page (Isolated Stylesheet)
   Namespace: .ew-team-*
   Loaded ONLY on team.html.
   Does not modify or depend on team-specific styles elsewhere.
   ============================================================ */

/* ----- Scoped reset (only within team page) ----- */
.ew-team-page,
.ew-team-page *,
.ew-team-page *::before,
.ew-team-page *::after {
  box-sizing: border-box;
}

.ew-team-page {
  overflow-x: hidden;
  background: #faf7f0;
}

/* Override possible global `img { max-width: 100% }` for our portraits */
.ew-team-page img {
  max-width: none;
}

/* Neutralize any inherited link styling */
.ew-team-page a {
  text-decoration: none;
  color: inherit;
}

/* Neutralize possible global heading colors so our values always win */
.ew-team-page h1,
.ew-team-page h2,
.ew-team-page h3,
.ew-team-page h4,
.ew-team-page p {
  margin: 0;
  font-family: inherit;
}

/* =========================================================
   1. HERO
   ========================================================= */
.ew-team-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  text-align: center;
}

/* Center every direct text element symmetrically */
.ew-team-hero-label,
.ew-team-hero__label,
.ew-team-hero h1,
.ew-team-hero p {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.ew-team-hero-label,
.ew-team-hero__label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #3d6238;
  font-weight: 600;
  margin-bottom: 24px;
}

/* Higher specificity + explicit cap to defeat any leftover cached rule */
.ew-team-page .ew-team-hero h1 {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 32px;
  text-align: center;
  text-wrap: balance;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: #1f3723;
}

.ew-team-hero p {
  max-width: 820px;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.65;
  color: #4a4a48;
}

/* =========================================================
   2. TEAM GRID
   ========================================================= */
.ew-team-grid-section {
  background: #faf7f0;
}

.ew-team-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px 120px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 640px) {
  .ew-team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .ew-team-grid { grid-template-columns: repeat(4, 1fr); }
}

/* =========================================================
   3. TEAM CARD
   ========================================================= */
.ew-team-card {
  background: #f8f5ee;
  border: 1px solid rgba(31, 55, 35, 0.12);
  border-radius: 32px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ew-team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 70px rgba(31, 55, 35, 0.14);
  border-color: rgba(31, 55, 35, 0.24);
}

/* =========================================================
   4. PORTRAIT
   ========================================================= */
.ew-team-card__portrait {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 24px;
  border: 5px solid #1f3723;
  background: #ebe1c8;
  flex-shrink: 0;
  position: relative;
}

.ew-team-card__img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
  margin: 0;
  transition: transform 0.5s ease;
}

.ew-team-card:hover .ew-team-card__img {
  transform: scale(1.06);
}

/* =========================================================
   5. CARD CONTENT
   ========================================================= */
.ew-team-card__name {
  font-size: 22px;
  font-weight: 700;
  color: #1f3723;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 6px;
}

.ew-team-card__role {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: #3d6238;
  margin: 0 0 6px;
}

.ew-team-card__function {
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  margin: 0 0 20px;
}

.ew-team-card__email {
  display: inline-block;
  font-size: 14px;
  color: #4a4a48;
  word-break: break-word;
  margin: 0 0 24px;
  transition: color 0.2s ease;
}

.ew-team-card__email:hover {
  color: #1f3723;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* =========================================================
   6. CARD BUTTON
   ========================================================= */
.ew-team-card__btn {
  background: #1f3723;
  color: #ffffff;
  padding: 14px 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  margin-top: auto;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(31, 55, 35, 0.20);
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.ew-team-card__btn:hover {
  background: #2d4a2a;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(31, 55, 35, 0.28);
}

.ew-team-card__btn:focus-visible {
  outline: 2px solid #1f3723;
  outline-offset: 3px;
}

/* =========================================================
   7. CONTACT BLOCK
   ========================================================= */
.ew-team-contact {
  background: #f5efe1;
  padding: 80px 24px 100px;
}

.ew-team-contact__card {
  max-width: 680px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid rgba(31, 55, 35, 0.10);
  border-radius: 32px;
  padding: 60px 40px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.06);
}

.ew-team-contact__label {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #3d6238;
  font-weight: 600;
  margin-bottom: 16px;
}

.ew-team-contact__title {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #1f3723;
  font-weight: 700;
  margin: 0 0 14px;
}

.ew-team-contact__text {
  font-size: 17px;
  line-height: 1.6;
  color: #4a4a48;
  margin: 0 auto 32px;
  max-width: 480px;
}

.ew-team-contact__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1f3723;
  color: #ffffff;
  padding: 16px 32px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 28px rgba(31, 55, 35, 0.22);
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.ew-team-contact__btn:hover {
  background: #2d4a2a;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(31, 55, 35, 0.30);
}

.ew-team-contact__details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(31, 55, 35, 0.12);
}

.ew-team-contact__phone {
  font-size: 17px;
  font-weight: 600;
  color: #1f3723;
}

.ew-team-contact__phone:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ew-team-contact__address {
  font-size: 15px;
  line-height: 1.55;
  color: #1a1a1a;
  margin: 0;
}

/* =========================================================
   8. RESPONSIVE FINE-TUNING
   ========================================================= */
@media (max-width: 560px) {
  .ew-team-hero { padding: 110px 20px 60px; }
  .ew-team-grid { padding: 24px 20px 80px; gap: 24px; }
  .ew-team-card { padding: 32px 24px; }
  .ew-team-contact { padding: 60px 20px 80px; }
  .ew-team-contact__card { padding: 44px 28px; }
}

/* =========================================================
   9. REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .ew-team-card,
  .ew-team-card__img,
  .ew-team-card__btn,
  .ew-team-contact__btn,
  .ew-team-card__email {
    transition: none !important;
  }
  .ew-team-card:hover { transform: none; }
  .ew-team-card:hover .ew-team-card__img { transform: none; }
  .ew-team-card__btn:hover,
  .ew-team-contact__btn:hover { transform: none; }
}
