/* ===== Base ===== */
:root {
  --gold: #8a6b2a;
  --navy: #333f54;
  --bg: #ffffff;
  --photo-bg: #f0f0f0;
}

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

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ===== Title ===== */
.page-title {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 72px;
}

/* ===== Profile card ===== */
.profile-card {
  display: flex;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

/* Photo container — put an <img> inside later */
.photo {
  flex: 0 0 auto;
  width: min(385px, 100%);
  aspect-ratio: 385 / 335;
  border-radius: 24px;
  background: var(--photo-bg);
  overflow: hidden;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top; /* keep the face fully in frame when cropping */
  display: block;
}

/* ===== Details ===== */
.details {
  flex: 1 1 auto;
  min-width: 0;
}

.name {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}

.role {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 32px;
}

/* ===== Contacts ===== */
.contacts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.icon {
  flex: 0 0 auto;
  display: inline-flex;
  color: var(--gold);
}

.icon svg {
  width: 28px;
  height: 28px;
}

.contact-text {
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 600;
  color: var(--navy);
  word-break: break-word;
}

/* ===== Pill buttons ===== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--gold);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.pill:hover {
  background: #6f551f;
}

.pill-icon {
  width: 15px;
  height: 15px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .page {
    padding: 32px 20px 56px;
  }

  .page-title {
    margin-bottom: 40px;
  }

  .profile-card {
    flex-direction: column;
    align-items: stretch;
  }

  .photo {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }

  .contacts {
    gap: 22px;
  }
}

@media (max-width: 420px) {
  .contact-item {
    align-items: flex-start;
  }

  .pill {
    margin-left: 42px; /* aligns under the text, past the icon */
  }
}
