/* Shared visual layer for public pages other than guides and calendars. */

main > section:not(.hero):not(.cta):not(.contact):not(.contact-form-section):not(.about-hero):not(.legal-card) {
  padding-top: 72px;
  padding-bottom: 72px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 44px;
  align-items: center;
}

.hero-grid h1,
.about-hero h1,
.legal-hero h1 {
  color: var(--brand-dark);
  font-family: "Poppins", sans-serif;
  font-size: clamp(36px, 4.1vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-grid h1::after,
.about-hero h1::after,
.legal-hero h1::after {
  content: "";
  display: block;
  width: 58px;
  height: 5px;
  margin-top: 20px;
  border-radius: 999px;
  background: var(--warm);
}

.lead,
.hero-grid .lead {
  color: var(--text);
  font-size: 18px;
  line-height: 1.65;
}

.summary-card,
.info-card,
.legal-card,
.hero-profile-card,
.profile-card,
.credential-card,
.publication-card,
.project-card,
.approach-card,
.stat-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  box-shadow: 0 10px 30px rgba(12, 68, 60, 0.08);
}

.summary-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
}

.summary-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.summary-card h2,
.info-card h3,
.legal-card h2,
.hero-profile-card h2 {
  color: var(--brand-dark);
  font-family: "Poppins", sans-serif;
}

.summary-item {
  border-color: var(--line);
}

.summary-item strong,
.info-card strong {
  color: var(--brand-dark);
}

.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--brand-soft);
}

.grid-2,
.grid-3,
.grid-4 {
  gap: 20px;
}

.info-card {
  padding: 25px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(12, 68, 60, 0.11);
}

.info-card li::marker {
  color: var(--accent);
}

.number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: var(--brand);
  color: white;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
}

.cta {
  padding: 64px 0;
  background: var(--brand-dark);
  color: white;
}

.cta h2,
.cta-box h2 {
  color: white;
  font-family: "Poppins", sans-serif;
  letter-spacing: -0.035em;
}

.cta p,
.cta-box p {
  color: rgba(255, 255, 255, 0.8);
}

.cta .btn:not(.btn-whatsapp) {
  border-color: rgba(255, 255, 255, 0.65);
  background: transparent;
  color: white;
}

.cta .btn:not(.btn-whatsapp):hover {
  background: white;
  color: var(--brand-dark);
}

.about-hero,
.legal-hero {
  position: relative;
  overflow: hidden;
  padding: 68px 0 60px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(155deg, var(--paper), var(--brand-soft));
}

.about-hero::after,
.legal-hero::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -120px;
  width: 270px;
  height: 270px;
  border-radius: 42px;
  background: rgba(180, 101, 74, 0.1);
  transform: rotate(18deg);
}

.about-hero .container,
.legal-hero .container {
  position: relative;
  z-index: 1;
}

.hero-profile-card,
.profile-card {
  overflow: hidden;
}

.hero-profile-card img,
.profile-card img {
  border-radius: 18px;
}

.timeline-item,
.experience-item,
.education-item {
  border-color: var(--line);
}

.timeline-item::before,
.experience-item::before {
  background: var(--brand);
}

.legal-layout {
  gap: 30px;
}

.legal-nav,
.legal-toc {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: 0 6px 20px rgba(12, 68, 60, 0.06);
}

.legal-nav a:hover,
.legal-nav a.active,
.legal-toc a:hover,
.legal-toc a.active {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.legal-card {
  padding: 28px;
}

.wall {
  padding: 72px 0;
  background: var(--paper);
}

.wall-group {
  border-color: var(--line);
}

.wall-year {
  color: var(--brand-dark);
  font-family: "Poppins", sans-serif;
}

.plaque-card,
.plaque-tile {
  border-color: var(--line);
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(12, 68, 60, 0.08);
}

.plaque-name {
  color: var(--brand-dark);
  font-family: "Poppins", sans-serif;
}

.course-pill,
.score-chip {
  border-radius: 999px;
}

.privacy-note {
  border-color: var(--line);
  background: var(--brand-soft);
  color: var(--brand-dark);
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  main > section:not(.hero):not(.cta):not(.contact):not(.contact-form-section):not(.about-hero):not(.legal-card),
  .wall {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .about-hero,
  .legal-hero {
    padding: 48px 0;
  }

  .hero-grid h1,
  .about-hero h1,
  .legal-hero h1 {
    font-size: clamp(33px, 10vw, 46px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .info-card {
    transition: none;
  }
}
