/* ============================================
   Eduardo G. Minuci — Personal Website
   Design System & Styles
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', sans-serif;
  background: #FAFAF7;
  color: #2D3142;
  line-height: 1.7;
  font-size: 17px;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
}

a {
  color: #C1440E;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #9A350B;
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 250, 247, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(45, 49, 66, 0.08);
  transition: box-shadow 0.3s;
}

.nav.scrolled {
  box-shadow: 0 2px 20px rgba(45, 49, 66, 0.08);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #2D3142;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: #2D3142;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #C1440E;
  transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: #C1440E;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #2D3142;
  transition: transform 0.3s, opacity 0.3s;
}

/* --- Section Utilities --- */
.section {
  padding: 6rem 2rem;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  color: #2D3142;
}

.section-subtitle {
  font-size: 1.05rem;
  color: #6b7084;
  margin-bottom: 3rem;
  font-weight: 400;
}

/* --- Section Dividers (gradient) --- */
.divider {
  height: 4px;
  background: linear-gradient(90deg, #FAFAF7, #C1440E 50%, #FAFAF7);
  border: none;
}

.divider--to-dark {
  height: 80px;
  background: linear-gradient(180deg, #FAFAF7, #0D1B2A);
  border: none;
}

.divider--to-light {
  height: 80px;
  background: linear-gradient(180deg, #0D1B2A, #FAFAF7);
  border: none;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 6rem;
  background: #FAFAF7;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4rem;
}

.hero-text {
  flex: 1;
}

.hero-name {
  font-size: 3.2rem;
  font-weight: 700;
  color: #2D3142;
  margin-bottom: 0.5rem;
}

.hero-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: #C1440E;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-tagline {
  font-size: 1.25rem;
  color: #6b7084;
  max-width: 520px;
  line-height: 1.7;
}

.hero-photo {
  flex-shrink: 0;
}

.hero-photo img {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #C1440E;
  box-shadow: 0 8px 30px rgba(193, 68, 14, 0.2);
}

/* --- About Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text p {
  margin-bottom: 1.2rem;
}

.about-highlights {
  background: #f3f0eb;
  border-radius: 12px;
  padding: 2rem;
}

.about-highlights h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #C1440E;
}

.about-highlights ul {
  list-style: none;
}

.about-highlights li {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(45, 49, 66, 0.08);
  font-size: 0.95rem;
}

.about-highlights li:last-child {
  border-bottom: none;
}

/* --- Dark Sections (Research, Consulting) --- */
.section--dark {
  background: #0D1B2A;
  color: #E0E1DD;
}

.section--dark .section-title {
  color: #FFFFFF;
}

.section--dark .section-subtitle {
  color: #8892a4;
}

.section--dark a {
  color: #E8915A;
}

.section--dark a:hover {
  color: #F0A87A;
}

/* --- Research Section --- */
.research-category {
  margin-bottom: 3rem;
}

.research-category h3 {
  font-size: 1.3rem;
  color: #E8915A;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(232, 145, 90, 0.25);
}

.pub-item {
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 3px solid rgba(232, 145, 90, 0.3);
}

.pub-title {
  font-weight: 600;
  color: #FFFFFF;
  font-size: 1.02rem;
}

.pub-journal {
  font-style: italic;
  color: #8892a4;
  font-size: 0.92rem;
  margin-top: 0.2rem;
}

.pub-coauthors {
  color: #6b7a8d;
  font-size: 0.88rem;
}

.pub-links a {
  font-size: 0.85rem;
  font-weight: 600;
  margin-right: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* --- Teaching Section --- */
.teaching-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.pillar-card {
  background: #f3f0eb;
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.2s;
}

.pillar-card:hover {
  transform: translateY(-3px);
}

.pillar-card h3 {
  font-size: 1.15rem;
  color: #C1440E;
  margin-bottom: 0.8rem;
}

.pillar-card p {
  font-size: 0.95rem;
  color: #4a4d5e;
}

.courses-list {
  margin-top: 2.5rem;
}

.courses-list h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.course-item {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(45, 49, 66, 0.08);
}

.course-name {
  font-weight: 600;
}

.course-code {
  color: #6b7084;
  font-size: 0.9rem;
}

/* --- Consulting Section --- */
.consulting-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background: rgba(232, 145, 90, 0.08);
  border: 1px solid rgba(232, 145, 90, 0.15);
  border-radius: 12px;
  padding: 2rem;
}

.service-card h3 {
  color: #E8915A;
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.service-card p {
  font-size: 0.95rem;
  color: #a0a8b8;
  line-height: 1.6;
}

.consulting-cta {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(232, 145, 90, 0.2);
}

.consulting-cta p {
  font-size: 1.15rem;
  color: #a0a8b8;
  margin-bottom: 0.5rem;
}

.section--dark .cv-btn {
  background: #E8915A;
  color: #0D1B2A;
}

.section--dark .cv-btn:hover {
  background: #F0A87A;
  color: #0D1B2A;
}

/* --- AI & Tools Section --- */
.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.tool-item {
  background: #f3f0eb;
  border-radius: 12px;
  padding: 2rem;
}

.tool-item h3 {
  font-size: 1.1rem;
  color: #C1440E;
  margin-bottom: 0.8rem;
}

.tool-item p {
  font-size: 0.95rem;
  color: #4a4d5e;
}

/* --- CV Section --- */
.cv-section {
  text-align: center;
  padding: 5rem 2rem;
}

.cv-btn {
  display: inline-block;
  background: #C1440E;
  color: #FFFFFF;
  padding: 1rem 2.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.2s;
  margin-top: 1.5rem;
}

.cv-btn:hover {
  background: #9A350B;
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #C1440E;
}

.contact-info p {
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.5rem;
  background: #f3f0eb;
  border-radius: 10px;
  font-weight: 500;
  transition: background 0.2s;
}

.contact-link:hover {
  background: #ebe6de;
}

/* --- Sports Commentary & Public Engagement --- */
.engagement-text {
  max-width: 720px;
}

.engagement-text p {
  font-size: 1.05rem;
  color: #4a4d5e;
  line-height: 1.7;
}

/* --- Research Topic Sub-Headings --- */
.pub-topic {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #E8915A;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px dashed rgba(232, 145, 90, 0.2);
}

.research-category .pub-topic:first-of-type {
  margin-top: 0;
}

/* --- About: Cross-link + Disclaimer --- */
.about-text .cross-link {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(45, 49, 66, 0.08);
  font-size: 1rem;
  color: #2D3142;
}

.about-text .cross-link a {
  font-weight: 600;
}

.about-text .disclaimer {
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  background: rgba(45, 49, 66, 0.03);
  border-left: 3px solid rgba(45, 49, 66, 0.15);
  border-radius: 4px;
}

.about-text .disclaimer small {
  font-size: 0.8rem;
  color: #6b7084;
  line-height: 1.6;
  display: block;
}

/* --- Workshops Section (dark) --- */
.workshop-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
  align-items: stretch;
}

/* Single-card layout: stretch and center, keep readable line length */
.workshop-grid:has(> .workshop-card:only-child) {
  grid-template-columns: 1fr;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.workshop-card {
  background: rgba(232, 145, 90, 0.08);
  border: 1px solid rgba(232, 145, 90, 0.2);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.workshop-card:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 145, 90, 0.45);
  background: rgba(232, 145, 90, 0.12);
}

.workshop-card--featured {
  background: rgba(232, 145, 90, 0.15);
  border-color: rgba(232, 145, 90, 0.4);
}

.workshop-card h3 {
  font-size: 1.15rem;
  color: #E8915A;
  margin-bottom: 0.6rem;
}

.workshop-card--featured h3 {
  font-size: 1.3rem;
  color: #F0A87A;
}

.workshop-audience {
  font-size: 0.78rem;
  font-weight: 600;
  color: #F0A87A;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.workshop-card > p {
  font-size: 0.95rem;
  color: #d1d5dc;
  line-height: 1.6;
  margin-bottom: 0;
}

.workshop-tiers {
  margin-top: auto !important;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(232, 145, 90, 0.18);
  font-size: 0.82rem !important;
  color: #8892a4 !important;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.workshop-cta {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(232, 145, 90, 0.2);
}

.workshop-cta p {
  font-size: 1.05rem;
  color: #a0a8b8;
}

/* --- Mentoring (now a light section) — overrides for service-card defaults --- */
.section:not(.section--dark) .service-card {
  background: #f3f0eb;
  border: 1px solid rgba(193, 68, 14, 0.1);
}

.section:not(.section--dark) .service-card h3 {
  color: #C1440E;
}

.section:not(.section--dark) .service-card p {
  color: #4a4d5e;
}

.section:not(.section--dark) .consulting-cta {
  border-top-color: rgba(193, 68, 14, 0.18);
}

.section:not(.section--dark) .consulting-cta p {
  color: #4a4d5e;
}

/* --- Mentoring outcomes strip --- */
.mentee-outcomes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
  color: #4a4d5e;
}

.outcome-pill {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: rgba(193, 68, 14, 0.08);
  border: 1px solid rgba(193, 68, 14, 0.18);
  border-radius: 999px;
  font-size: 0.88rem;
  color: #2D3142;
  font-weight: 500;
}

.outcome-pill em {
  color: #6b7084;
  font-weight: 400;
  font-style: normal;
  margin-left: 0.25rem;
}

/* --- Footer (3-line + disclaimer) --- */
.footer {
  text-align: center;
  padding: 3rem 2rem 2rem;
  font-size: 0.9rem;
  color: #6b7084;
  border-top: 1px solid rgba(45, 49, 66, 0.08);
}

.footer-line {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #6b7084;
}

.footer-line a {
  font-weight: 600;
}

.footer-disclaimer {
  margin-top: 1.5rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.footer-disclaimer small {
  font-size: 0.78rem;
  color: #8892a4;
  line-height: 1.55;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column-reverse;
    text-align: center;
    gap: 2rem;
  }

  .hero-name {
    font-size: 2.4rem;
  }

  .hero-tagline {
    margin: 0 auto;
  }

  .hero-photo img {
    width: 200px;
    height: 200px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(250, 250, 247, 0.98);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(45, 49, 66, 0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .about-grid,
  .contact-grid,
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .teaching-pillars {
    grid-template-columns: 1fr;
  }

  .consulting-services {
    grid-template-columns: 1fr;
  }

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

  .section {
    padding: 4rem 1.5rem;
  }

  .section-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: 2rem;
  }

  .hero-photo img {
    width: 160px;
    height: 160px;
  }

  .nav-inner {
    padding: 0 1rem;
  }
}
