/* ----------------------------------------------------------------------------
   miguelmoura.pt — layout: header, hero, projects, contact, footer.
---------------------------------------------------------------------------- */

/* ---- language toggle ------------------------------------------------------ */

.lang-toggle {
  position: absolute;
  top: 22px;
  right: 28px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.lang-toggle button {
  background: none;
  border: none;
  padding: 4px 2px;
  font-family: var(--font-body);
  font-size: inherit;
  letter-spacing: inherit;
  color: var(--muted-dark);
  cursor: pointer;
  transition: color 0.2s ease;
}

.lang-toggle button:hover {
  color: var(--muted);
}

.lang-toggle button.active {
  color: var(--bone);
}

.lang-sep {
  color: var(--muted-dark);
}

/* ---- sections shared ------------------------------------------------------ */

main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  letter-spacing: 0.01em;
  margin: 0 0 2.5rem;
}

/* ---- hero ----------------------------------------------------------------- */

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding-top: 90px;
  padding-bottom: 3rem;
}

.hero-logo {
  display: block;
  width: clamp(300px, 38vw, 480px);
  height: auto;
  margin: 0 0 1.6rem;
}

.hero-role {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1rem, 2vw, 1.25rem);
  text-transform: uppercase;
  color: var(--bone);
  margin: 0 0 2rem;
}

.hero-bio {
  color: var(--bone);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 54ch;
}

.hero-bio p {
  margin: 0 0 1.1em;
}

.hero-bio p:last-child {
  margin-bottom: 0;
}

.hero-portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 2px;
}

/* ---- projects ------------------------------------------------------------- */

.projects {
  padding: clamp(4rem, 10vw, 8rem) 0;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.project-card {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

a.project-card:hover {
  color: var(--bone);
  transform: translateY(-4px);
}

.project-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

a.project-card:hover .project-card-bg {
  transform: scale(1.04);
}

/* darken layer between the photo and the content */
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5, 5, 5, 0.4) 0%, rgba(5, 5, 5, 0.45) 60%, rgba(5, 5, 5, 0.75) 100%);
  transition: background 0.3s ease;
}

.project-card-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: clamp(1.4rem, 3vw, 2.2rem);
}

.project-logo {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-logo img {
  max-height: clamp(90px, 13vw, 130px);
  max-width: 60%;
  width: auto;
}

.project-logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  letter-spacing: 0.09em;
}

/* Aperknot's logo IS the word: lowercase Bricolage bold, pure white */
.project-logo-aperknot {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(2.3rem, 4.6vw, 3.1rem);
  letter-spacing: 0;
  text-transform: lowercase;
  color: #ffffff;
}

.project-card-footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.project-tag {
  color: var(--bone);
  line-height: 1.6;
}

.project-visit {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--muted-dark);
  transition: color 0.3s ease;
}

a.project-card:hover .project-visit {
  color: var(--bone);
}

/* ---- contact -------------------------------------------------------------- */

.contact {
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(5rem, 12vw, 9rem);
}

.contact .section-title {
  margin-bottom: 1rem;
}

.contact-line {
  color: var(--bone);
  margin: 0 0 2rem;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 4vw, 2.2rem);
  letter-spacing: 0.01em;
  transition: color 0.3s ease;
}

.social-list {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  padding: 0;
  margin: 3rem 0 0;
}

/* bone at rest, grey on hover (the global a:hover), like the email link */
.social-list a {
  color: var(--bone);
  letter-spacing: 0.04em;
  text-decoration: none;
}

.social-list a:hover {
  color: var(--muted);
}

/* social links whose URL is still a placeholder ("#" in js/config.js) */
.social-list a.pending {
  color: var(--muted-dark);
  pointer-events: none;
}

/* ---- responsive ----------------------------------------------------------- */

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 2.5rem;
    padding-top: 130px;
  }

  .hero-portrait {
    max-width: 420px;
  }

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