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

:root {
  --primary: #1a8a7a;
  --primary-hover: #157568;
  --bg: #f4f5f7;
  --card: #ffffff;
  --border: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;
  --secondary-bg: #f1f5f4;
  --highlight: #f59e0b;
  --font-display: "Playfair Display", serif;
  --font-body: "DM Sans", sans-serif;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ── HEADER ── */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 16px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.logo span {
  color: var(--primary);
}

.header-tagline {
  font-size: 13px;
  color: var(--muted);
}

.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--secondary-bg);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

/* ── LAYOUT ── */
main {
  max-width: 1152px;
  margin: 0 auto;
  padding: 32px 16px;
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.left-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.right-col {
  width: 300px;
  flex-shrink: 0;
  position: sticky;
  top: 72px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── PROFILE HERO ── */
.profile-hero {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.avatar-wrap img {
  width: 144px;
  height: 176px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  display: block;
}

.badge-check {
  position: absolute;
  bottom: -10px;
  right: -10px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-check svg {
  width: 16px;
  height: 16px;
}

.profile-info {
  flex: 1;
}

.profile-name {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
}

.profile-title {
  font-size: 16px;
  color: var(--muted);
  margin-top: 4px;
}

.profile-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.profile-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.profile-meta svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.rating-score {
  font-weight: 600;
  color: var(--text);
}

.profile-meta a {
  color: #6b7280;
}

.star-icon {
  color: var(--highlight);
  fill: var(--highlight);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag {
  padding: 4px 12px;
  background: #e8edec;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}

/* ── HIGHLIGHTS ── */
.highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.highlight-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.highlight-card .hl-star {
  font-size: 18px;
  color: var(--highlight);
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}

.highlight-card p {
  font-size: 13px;
}

/* ── SECTION CARD ── */
.section-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

/* ── EXPERTISE TABLE ── */
.expertise-row {
  display: flex;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.expertise-row:last-child {
  border-bottom: none;
}

.exp-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  width: 148px;
  flex-shrink: 0;
  padding-top: 1px;
}

.aff-row {
  display: flex;
  gap: 25px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.aff-row:last-child {
  border-bottom: none;
}

.aff-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  flex-shrink: 0;
  padding-top: 1px;
  cursor: pointer;
}

.aff-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.aff-card img {
  width: 70px;
  height: 40px;
  object-fit: contain;
}

.exp-value {
  font-size: 13px;
  color: var(--text);
  flex: 1;
}

.bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.bullet-list li::before {
  content: "•";
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0px;
}

/* ── TRACK RECORD ── */
.track-row {
  display: flex;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.track-row:last-child {
  border-bottom: none;
}

.track-date {
  font-size: 13px;
  font-family: monospace;
  color: var(--muted);
  width: 128px;
  flex-shrink: 0;
}

.track-role {
  font-size: 13px;
  color: var(--text);
}

/* ── REVIEWS ── */
.review-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.review-row:last-child {
  border-bottom: none;
}

.review-author {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  width: 192px;
  flex-shrink: 0;
}

.review-text {
  font-size: 13px;
  color: var(--muted);
  flex: 1;
}

.review-link {
  font-size: 13px;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── SIDEBAR CARDS ── */
.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s;
}

.service-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.service-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--secondary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}

.service-icon svg {
  width: 16px;
  height: 16px;
}

.service-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.service-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-amount {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

.price-unit {
  font-size: 13px;
  color: var(--muted);
}

.price-sub {
  font-size: 13px;
  color: var(--primary);
}

.service-meta {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}

.btn-full {
  width: 100%;
  padding: 9px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-full:hover {
  background: var(--primary-hover);
}

.how-link {
  font-size: 12px;
  color: var(--primary);
  text-align: center;
  display: block;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  margin-top: 64px;
}

.footer-inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 20px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 13px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--text);
  text-decoration: none;
}

@media (max-width: 900px) {
  main {
    flex-direction: column;
  }

  .right-col {
    width: 100%;
    position: static;
  }

  .highlights {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .profile-hero {
    flex-direction: column;
  }

  .highlights {
    grid-template-columns: 1fr;
  }

  .review-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-tagline {
    display: none;
  }
}
