/*
Theme Name: Eric López Maya
Theme URI: https://ericlopezmaya.com
Description: Ultra-minimal single-page personal theme. Typography-driven, no page builder required.
Version: 2.0.0
Author: Eric López Maya
Author URI: https://ericlopezmaya.com
License: Private
Text Domain: ericlopezmaya
*/

/* ─── RESET & BASE ─── */
:root {
  --black: #1a1a1a;
  --white: #ffffff;
  --gray-100: #f7f7f7;
  --gray-200: #e8e8e8;
  --gray-400: #999999;
  --gray-500: #777777;
  --gray-600: #555555;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 17px;
}

body {
  font-family: var(--sans);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--black);
  color: var(--white);
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ─── NAV ─── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
}

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

.nav-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--black);
}

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

.nav-links a {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-600);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--black);
}

.lang-toggle {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-400);
  cursor: pointer;
  border: 1px solid var(--gray-200);
  padding: 0.35rem 0.75rem;
  border-radius: 3px;
  transition: all 0.2s ease;
  background: transparent;
}

.lang-toggle:hover {
  color: var(--black);
  border-color: var(--black);
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  max-width: 900px;
  margin: 0 auto;
}

.hero-label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.4s forwards;
}

.hero h1 em {
  font-style: italic;
}

.hero-sub {
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--gray-600);
  max-width: 600px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.6s forwards;
}

/* ─── DIVIDER ─── */
.divider {
  width: 60px;
  height: 1px;
  background: var(--gray-200);
  margin: 0 auto;
}

/* ─── SECTIONS ─── */
.section {
  padding: 6rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 3rem;
}

/* ─── CREDENTIALS GRID ─── */
.credentials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 4rem;
  margin-bottom: 4rem;
}

.credential-item {
  padding: 1.5rem 0;
  border-top: 1px solid var(--gray-200);
}

.credential-item h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.credential-item p {
  font-size: 0.88rem;
  color: var(--gray-500);
  font-weight: 300;
  line-height: 1.5;
}

/* ─── ABOUT ─── */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.about-quote {
  font-family: var(--serif);
  font-size: 1.65rem;
  line-height: 1.4;
  letter-spacing: -0.015em;
  font-weight: 400;
  margin-bottom: 2.5rem;
}

.about-quote::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--black);
  margin-bottom: 1.5rem;
}

.about-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--gray-600);
  font-weight: 300;
}

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

.about-text a {
  color: var(--black);
  text-decoration: underline;
  text-decoration-color: var(--gray-200);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.about-text a:hover {
  text-decoration-color: var(--black);
}

/* ─── ABOUT WITH PHOTO (Option B) ─── */
.about-with-photo {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: start;
}

.about-portrait {
  width: 100%;
  object-fit: cover;
  object-position: center 10%;
  filter: grayscale(100%);
  position: sticky;
  top: 8rem;
}

.about-content-wrapper {
  max-width: 720px;
}

/* ─── CONTACT ─── */
.contact-section {
  background: var(--gray-100);
  padding: 6rem 2rem;
  text-align: center;
}

.contact-inner {
  max-width: 600px;
  margin: 0 auto;
}

.contact-section h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.contact-section p {
  font-size: 1rem;
  color: var(--gray-600);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--black);
  padding: 0.8rem 1.8rem;
  border: 1px solid var(--black);
  transition: all 0.25s ease;
}

.contact-link:hover {
  background: transparent;
  color: var(--black);
}

/* ─── FOOTER ─── */
.site-footer {
  padding: 3rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--gray-200);
}

.site-footer p {
  font-size: 0.78rem;
  color: var(--gray-400);
  font-weight: 300;
}

.site-footer a {
  font-size: 0.78rem;
  color: var(--gray-500);
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--black);
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .nav-links {
    gap: 1.5rem;
  }

  .hero {
    padding: 7rem 1.5rem 3rem;
  }

  .section {
    padding: 4rem 1.5rem;
  }

  .credentials-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-with-photo {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-portrait {
    max-width: 240px;
    position: static;
  }

  .about-quote {
    position: static;
  }

  .contact-section {
    padding: 4rem 1.5rem;
  }
}

@media (max-width: 520px) {
  html {
    font-size: 15px;
  }

  .nav-links {
    display: none;
  }

  .site-footer {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}
