/* ===========================================================
   Hana Queiroz — Portfolio
   Static rebuild of the original Wix site (English version)
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --color-bg: #ffffff;
  --color-text: #000000;
  --color-text-secondary: #444444;
  --color-muted: #808080;
  --color-highlight: #ede9e1;
  --color-placeholder: #eceff1;
  --color-border: #000000;
  --font-display: 'Poppins', sans-serif; /* stand-in for Lulo Clean Bold / Avenir Heavy */
  --font-body: 'Poppins', sans-serif;    /* stand-in for Avenir Light / Helvetica Light */
  --font-serif: 'Libre Baskerville', serif;
  --max-width: 1160px;
  --nav-height: 56px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
}

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

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

p { margin: 0 0 1em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------- Header ---------- */

.site-header {
  padding-top: 56px;
}

.logo {
  text-align: center;
  color: var(--color-text);
  padding-bottom: 56px;
}

.logo a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-icon { flex-shrink: 0; }

.logo-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 0.01em;
  color: var(--color-text);
}

.main-nav {
  display: flex;
  border-top: 1px solid #e2e2e2;
  border-bottom: 1px solid #e2e2e2;
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.main-nav li {
  flex: 1;
  text-align: center;
}

.main-nav a {
  display: block;
  padding: 18px 10px;
  font-size: 15px;
  color: var(--color-text-secondary);
  letter-spacing: 0.02em;
}

.main-nav li.active a {
  background: var(--color-highlight);
  color: var(--color-text);
}

.main-nav a:hover {
  background: var(--color-highlight);
}

.social-fixed {
  position: fixed;
  right: 24px;
  top: 40%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 40;
}

.social-fixed a {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-fixed img { width: 20px; height: 20px; }

/* ---------- Footer ---------- */

.site-footer {
  text-align: center;
  padding: 60px 20px 40px;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.site-footer p { margin: 2px 0; }

.back-to-top {
  display: block;
  text-align: center;
  padding: 30px 0 0;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
  cursor: pointer;
}

.back-to-top:hover { color: var(--color-text); }

/* ---------- Works listing (home page) ---------- */

.works-list {
  max-width: var(--max-width);
  margin: 60px auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.work-entry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.work-entry .work-media { position: relative; }

.work-entry .carousel {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-placeholder);
}

.work-entry .carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-category {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.03em;
  margin: 0 0 6px;
}

.work-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  margin: 0 0 18px;
}

.work-text {
  border-left: 2px solid var(--color-text);
  padding-left: 30px;
}

.work-text p {
  text-align: justify;
  font-size: 15px;
}

.work-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--color-text);
  padding-bottom: 2px;
}

@media (max-width: 780px) {
  .work-entry { grid-template-columns: 1fr; }
  .social-fixed { display: none; }
}

/* ---------- Carousel (shared component) ---------- */

.carousel { position: relative; }

.carousel-track { width: 100%; height: 100%; position: relative; }

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.carousel-slide.active { opacity: 1; }

.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.7);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.carousel-arrow.prev { left: 10px; }
.carousel-arrow.next { right: 10px; }

.carousel-counter {
  position: absolute;
  bottom: 10px;
  right: 14px;
  font-size: 12px;
  color: #fff;
  background: rgba(0,0,0,0.45);
  padding: 2px 8px;
  border-radius: 10px;
  z-index: 5;
}

/* ---------- Project detail pages ---------- */

.project-hero {
  max-width: var(--max-width);
  margin: 40px auto 0;
  padding: 0 40px;
  text-align: center;
}

.project-nav-arrows {
  display: flex;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

.project-nav-arrows a {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
}

.project-nav-arrows a:hover { color: var(--color-text); }

.project-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 34px;
  margin: 20px 0 6px;
}

.project-category {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 40px;
}

.project-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 40px;
}

.project-section.narrow { max-width: 860px; }

.project-section p {
  text-align: justify;
  font-size: 15px;
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}

.section-subheading {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  margin-bottom: 16px;
}

.gallery {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--color-placeholder);
  margin-bottom: 20px;
  overflow: hidden;
}

.gallery.tall { aspect-ratio: 4 / 5; }
.gallery.wide { aspect-ratio: 21 / 9; }

.gallery-caption {
  font-size: 13px;
  color: var(--color-text-secondary);
  text-align: center;
  margin-top: -10px;
  margin-bottom: 30px;
}

.numbered-notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.numbered-notes .note { display: flex; gap: 10px; font-size: 14px; }
.numbered-notes .note .num { font-family: var(--font-display); font-weight: 700; }

.pdf-link {
  display: inline-block;
  margin: 10px 0 30px;
  font-size: 13px;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--color-text);
  padding-bottom: 2px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

@media (max-width: 780px) {
  .two-col { grid-template-columns: 1fr; }
}

hr.divider {
  border: none;
  border-top: 1px solid #e2e2e2;
  max-width: var(--max-width);
  margin: 20px auto;
}

/* ---------- Resume page ---------- */

.resume-header {
  max-width: 860px;
  margin: 0 auto 60px;
  padding: 0 40px;
  padding-top: 50px !important;
}

.resume-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 42px;
  letter-spacing: 0.08em;
  color: #757575;
  line-height: 1.3;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.resume-contact-line {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.9;
  margin: 0;
}

.resume-contact-line .sep { color: var(--color-muted); margin: 0 8px; }

.entry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 50px;
}

.entry-grid .entry-block,
.entry-grid .cert-entry { margin-bottom: 0; }

.entry-block { margin-bottom: 32px; }
.entry-block:last-child { margin-bottom: 0; }

.entry-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 2px;
}

.entry-subtitle {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 2px;
}

.entry-dates {
  font-size: 13px;
  color: var(--color-muted);
  font-style: italic;
  margin-bottom: 10px;
}

.entry-research-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  margin: 6px 0 12px;
}

.bullet-list {
  margin: 0;
  padding-left: 20px;
}

.bullet-list li {
  font-size: 14px;
  margin-bottom: 8px;
  text-align: justify;
}

.resume-block-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.resume-block-heading .bar {
  width: 6px;
  height: 22px;
  background: #8a8a8a;
  flex-shrink: 0;
}

.resume-block-heading h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.15em;
  color: #757575;
  margin: 0;
  text-transform: uppercase;
}

.resume-entry { margin-bottom: 26px; }

.resume-entry .place {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  margin-bottom: 2px;
}

.resume-entry .degree {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}

.resume-entry .years { font-size: 13px; color: var(--color-text-secondary); }

.contact-list p { margin: 4px 0; font-size: 14px; }

.skills-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skills-list li {
  font-size: 14px;
  margin-bottom: 8px;
}

.cert-entry { margin-bottom: 18px; }
.cert-entry .cert-name { font-weight: 500; font-size: 14px; }
.cert-entry .cert-inst { font-size: 13px; color: var(--color-text-secondary); }

/* ---------- Forms ---------- */

.form-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 40px 80px;
}

.form-heading {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: 30px;
  margin-bottom: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 26px;
}

.form-row.single { grid-template-columns: 1fr; }

.field label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}

.field input,
.field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--color-text);
  padding: 6px 2px;
  font-family: var(--font-body);
  font-size: 14px;
  background: transparent;
}

.field textarea { resize: vertical; min-height: 60px; }

.field input:focus,
.field textarea:focus { outline: none; border-bottom: 2px solid var(--color-text); }

.rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
}

.rating .stars { display: flex; gap: 4px; }

.rating .star {
  font-size: 20px;
  color: #cfcfcf;
  cursor: pointer;
}

.rating .star.selected,
.rating .star:hover { color: #b8860b; }

.rating .rating-label {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: 15px;
}

.form-submit {
  text-align: center;
  margin-top: 30px;
}

.form-submit button {
  background: none;
  border: none;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: 22px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.form-submit button:hover { border-bottom-color: var(--color-text); }

.form-note {
  text-align: center;
  font-size: 12px;
  color: var(--color-muted);
  margin-top: 14px;
}

/* ---------- About page ---------- */

.about-intro {
  max-width: var(--max-width);
  margin: 20px auto 80px;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-name {
  font-family: var(--font-serif);
  font-size: 30px;
  margin-bottom: 6px;
}

.about-role {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  margin-bottom: 26px;
}

.about-intro p { text-align: justify; }

.about-photo {
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.about-photo img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 780px) {
  .about-intro { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 20px; }
  .entry-grid { grid-template-columns: 1fr; }
}

/* ---------- Mobile nav toggle ---------- */

.nav-toggle {
  display: none;
  position: absolute;
  left: 24px;
  top: 66px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
}

@media (max-width: 640px) {
  .main-nav ul { display: none; flex-direction: column; }
  .main-nav ul.open { display: flex; }
  .main-nav li a { padding: 14px; }
  .nav-toggle { display: block; }
  .resume-name { font-size: 30px; }
}
