/* home.css */

/* ── Hero ─────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  min-height: calc(100vh - var(--nav-h));
  padding-top: clamp(40px, 6vh, 80px);
  padding-bottom: clamp(40px, 6vh, 80px);
}

.hero-text h1 {
  margin: 0.35rem 0 1rem;
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text);
  max-width: 420px;
  margin-bottom: 2rem !important;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hero-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-photo img {
  width: 100%;
  max-width: 420px;
  border-radius: 4px;
  border: 1px solid var(--border);
  object-fit: cover;
  aspect-ratio: 4/5;
}

/* ── About section ───────────────────────────────── */
.section-about {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(40px, 6vw, 100px);
  padding-top: var(--pad-y);
  padding-bottom: var(--pad-y);
  align-items: start;
  scroll-margin-top: calc(var(--nav-h) + 32px);
}

.about-facts {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}

.fact-row {
  display: flex;
  gap: 24px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
  flex-wrap: wrap;
}

.fact-label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 90px;
  flex-shrink: 0;
}

.fact-val {
  font-size: 0.9rem;
  color: var(--text);
}

/* ── Featured projects ───────────────────────────── */
.section-featured {
  padding-top: var(--pad-y);
  padding-bottom: var(--pad-y);
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: clamp(32px, 4vw, 56px);
  position: relative;
}

.section-header h2 { margin: 0; }

.section-link {
  position: absolute;
  right: 0;
  bottom: 0;
  font-size: 0.82rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: opacity var(--fast);
}
.section-link:hover { opacity: 0.7; }

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 48px);
}

.feat-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  transition: opacity var(--fast);
}
.feat-card:hover { opacity: 0.8; }
.feat-card:hover .feat-img-wrap img {
  transform: scale(1.02);
}

.feat-img-wrap {
  overflow: hidden;
  border-radius: 3px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.feat-img-wrap img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

.feat-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.feat-card h3 {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  margin: 0;
}
.feat-card p {
  font-size: 0.88rem;
  color: var(--dim);
  margin: 0 !important;
  line-height: 1.6;
}

/* ── Contact section ─────────────────────────────── */
.section-contact {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(40px, 6vw, 100px);
  padding-top: var(--pad-y);
  padding-bottom: var(--pad-y);
  align-items: start;
}

.contact-left p {
  font-size: 0.9rem;
  color: var(--dim);
  margin-top: 0.8rem;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  transition: color var(--fast);
}
.contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--muted);
  transition: color var(--fast);
}
.contact-item:hover { color: var(--bright); }
.contact-item:hover svg { color: var(--accent); }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 40px;
    padding-top: 48px;
    padding-bottom: 60px;
  }
  .hero-photo { order: -1; }
  .hero-photo img { max-width: 280px; aspect-ratio: 1/1; }
  .hero-sub { max-width: 100%; }

  .section-about,
  .section-contact {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .section-link { position: static; margin-top: 4px; }
}