/*
  Components: buttons, cards, expertise items, principle list, nav
  toggle, and sketch illustrations.
*/

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

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

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

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

.btn--ghost:hover {
  border-color: var(--color-red);
  color: var(--color-red-bright);
}

.btn--large {
  width: 100%;
  padding: 14px 22px;
  font-size: 1rem;
}

/* ---------- Hero profile panel ---------- */

.hero__profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.hero__photo-frame {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--color-surface);
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__profile-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- Card grid (services) ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.card {
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
  padding: 24px;
  border-radius: var(--radius);
  border-left: 2px solid var(--color-border);
  transition: border-left-color 0.15s ease;
}

.card:hover {
  border-left-color: var(--color-red);
}

.card__title {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.card__desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.card__desc:last-child {
  margin-bottom: 0;
}

/* ---------- Tag groups (about: technologies / business domains) ---------- */

.tag-groups {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
}

.tag-group__label {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin: 0 0 12px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text-muted);
  background-color: var(--color-surface);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.tag:hover {
  border-color: var(--color-red);
  color: var(--color-red-bright);
}

/* ---------- Hero punchline ---------- */

.hero__punchline {
  margin-top: 20px;
}

.hero__punchline-line {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin: 0 0 4px;
}

.hero__punchline-line:last-child {
  margin-bottom: 0;
}

/* ---------- Expertise items ---------- */

.expertise-item__title {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.expertise-item__desc {
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.expertise-item__art .sketch svg {
  width: 100%;
  height: auto;
}

/* ---------- Principle list (approach) ---------- */

.principle-list {
  margin-top: 48px;
  border-top: 1px solid var(--color-border-soft);
}

.principle {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--color-border-soft);
  align-items: baseline;
}

.principle__index {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--color-grey-light);
}

.principle__title {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.principle__desc {
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* ---------- Nav toggle (mobile hamburger) ---------- */

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle__bar {
  width: 22px;
  height: 2px;
  background-color: var(--color-text);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Sketch illustrations ---------- */

.sketch svg {
  stroke: var(--color-red-bright);
  overflow: visible;
}

.sketch svg .sketch-grey {
  stroke: var(--color-grey-light);
}

.sketch svg .sketch-fill {
  fill: var(--color-bg-alt);
}
