/* =====================================================================
   Sofia Carvalho — Portfolio stylesheet
   Style: one column; charcoal banner with gold accents, elegant serif
   headings, warm off-white page (hospitality / tourism feel)
   ---------------------------------------------------------------------
   1. Colours & tokens   2. Base   3. Top bar & progress line
   4. Banner   5. Sections   6. Experience filters & jobs
   7. International Experience band   8. Education
   9. Skills, languages & more   10. Footer
   11. Languages (EN/PT)   12. Animations
   ===================================================================== */

/* 1. COLOURS & TOKENS — change colours here */
:root {
  --charcoal:      #1E1B19;   /* banner & footer */
  --on-dark:       #F3EDE5;   /* text on dark backgrounds */
  --on-dark-muted: #BFB5AA;
  --gold:          #D4A64A;   /* accent: lines, dots, buttons */
  --gold-text:     #85600F;   /* gold for text on light background (WCAG AA) */
  --gold-soft:     #F4EAD6;   /* International band background */
  --ink:           #211D1A;   /* main text */
  --ink-muted:     #5E564F;
  --bg:            #FBF8F3;   /* page background */
  --surface:       #FFFFFF;
  --line:          #EAE2D6;
  --shadow:        0 10px 30px rgba(33, 29, 26, .08);

  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: "Cormorant Garamond", Georgia, serif;

  --topbar-height: 60px;
}

/* 2. BASE */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-height) + 1rem); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; line-height: 1.2; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 3px; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  padding: .6rem 1rem; background: var(--charcoal); color: #fff; border-radius: 8px;
}
.skip-link:focus { top: .75rem; }

.icon {
  width: 1.1em; height: 1.1em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

.container { width: 100%; max-width: 980px; margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 768px) { .container { padding-inline: 2rem; } }

/* 3. TOP BAR & READING-PROGRESS LINE */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(30, 27, 25, .96);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--on-dark);
}
.topbar__inner { display: flex; align-items: center; gap: 1.5rem; height: var(--topbar-height); }
.topbar__brand {
  font-family: var(--font-heading); font-weight: 600; font-size: 1.35rem;
  text-decoration: none; margin-right: auto;
}
.topbar__links { display: none; gap: .25rem; }
.topbar__links a {
  display: block; padding: .35rem .7rem;
  font-size: .9rem; font-weight: 600; color: var(--on-dark-muted); text-decoration: none;
  transition: color .2s;
}
.topbar__links a:hover, .topbar__links a.is-active { color: var(--gold); }
@media (min-width: 760px) { .topbar__links { display: flex; } }

.lang-toggle {
  min-width: 46px; height: 34px; padding: 0 .8rem;
  border: 1px solid rgba(243, 237, 229, .3); border-radius: 6px;
  background: transparent; color: var(--on-dark);
  font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  cursor: pointer; transition: border-color .2s, color .2s;
}
.lang-toggle:hover { border-color: var(--gold); color: var(--gold); }

.progress { height: 3px; background: rgba(243, 237, 229, .08); }
.progress__bar {
  display: block; height: 100%; width: 100%;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left;
}

/* 4. BANNER — photo, name, profile, contacts */
.banner { background: var(--charcoal); color: var(--on-dark); padding: 3.5rem 0 4rem; }
.banner__inner { display: grid; gap: 2rem; justify-items: center; text-align: center; }
@media (min-width: 760px) {
  .banner { padding: 5rem 0 5.5rem; }
  .banner__inner { grid-template-columns: auto 1fr; gap: 3.5rem; align-items: center; justify-items: start; text-align: left; }
}

.photo {
  width: 180px; height: 180px;
  border-radius: 50%; overflow: hidden;
  outline: 1.5px solid var(--gold); outline-offset: 7px;
}
@media (min-width: 760px) { .photo { width: 220px; height: 220px; } }
/* The photo is full-length, so it is zoomed in on the face */
.photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 55% 0%;
  transform: scale(1.75); transform-origin: 53% 14%;
}

.role {
  font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold);
}
.name {
  margin-top: .6rem;
  font-family: var(--font-heading); font-weight: 600;
  font-size: clamp(2.8rem, 7vw, 4.2rem); line-height: 1;
}
.statement {
  margin-top: 1rem; max-width: 34ch;
  font-family: var(--font-heading); font-style: italic; font-weight: 500;
  font-size: clamp(1.25rem, 2.6vw, 1.5rem); line-height: 1.4;
  color: var(--on-dark-muted);
}

.contacts {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.75rem;
  margin-top: 1.75rem; font-size: .95rem;
}
@media (min-width: 760px) { .contacts { justify-content: flex-start; } }
.contacts li { display: flex; align-items: center; gap: .55rem; overflow-wrap: anywhere; }
.contacts .icon { color: var(--gold); }
.contacts a { text-decoration: none; }
.contacts a:hover { color: var(--gold); text-decoration: underline; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; margin-top: 2rem; padding: .65rem 1.5rem;
  border: 1.5px solid transparent; border-radius: 6px;
  font-weight: 700; font-size: .92rem; letter-spacing: .02em; text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--charcoal); }
.btn--gold:hover { background: var(--on-dark); }

/* 5. SECTIONS — generous space between sections */
.block { padding-top: 7rem; }
.block__title {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 2.5rem;
  font-family: var(--font-heading); font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 2.4rem);
}
/* thin line running to the right of each title */
.block__title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.subhead {
  margin: 0 0 1rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-text);
}

/* 6. EXPERIENCE — one clean line per job; click to open the details */
.hint { margin: -1.25rem 0 1.5rem; font-size: .9rem; color: var(--ink-muted); }

.jobs { border-top: 1px solid var(--line); }
.job { border-bottom: 1px solid var(--line); }

.job summary {
  display: grid; align-items: center; gap: .15rem 1rem;
  grid-template-columns: 1fr auto;
  padding: 1.25rem .75rem;
  cursor: pointer; list-style: none;
  border-radius: 8px;
  transition: background-color .2s;
}
.job summary::-webkit-details-marker { display: none; }
.job summary:hover { background: var(--surface); }
@media (min-width: 640px) {
  .job summary { grid-template-columns: 190px 1fr auto; gap: 1.5rem; padding: 1.35rem 1rem; }
}

.job__date {
  grid-column: 1 / -1;
  font-size: .84rem; font-weight: 600; color: var(--gold-text);
  font-variant-numeric: tabular-nums;
}
@media (min-width: 640px) { .job__date { grid-column: auto; } }

.job__main { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .75rem; }
.job__title { font-size: 1.08rem; font-weight: 700; }
.job__org { color: var(--ink-muted); font-size: .98rem; }

/* + sign that turns into − when the job is open */
.job__chevron {
  position: relative; width: 28px; height: 28px; flex-shrink: 0;
  border: 1px solid var(--line); border-radius: 50%;
  transition: background-color .2s, border-color .2s;
}
.job__chevron::before, .job__chevron::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 10px; height: 1.5px; background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform .25s;
}
.job__chevron::after { transform: translate(-50%, -50%) rotate(90deg); }
.job summary:hover .job__chevron { border-color: var(--gold); }
.job[open] .job__chevron { background: var(--charcoal); border-color: var(--charcoal); }
.job[open] .job__chevron::before, .job[open] .job__chevron::after { background: var(--gold); }
.job[open] .job__chevron::after { transform: translate(-50%, -50%) rotate(0deg); }

.job__list {
  display: grid; gap: .45rem;
  padding: 0 .75rem 1.5rem;
}
@media (min-width: 640px) { .job__list { padding: 0 1rem 1.6rem calc(190px + 2.5rem); } }
.job__list li { position: relative; max-width: 62ch; padding-left: 1.1rem; color: var(--ink-muted); }
.job__list li::before {
  content: ""; position: absolute; left: 0; top: .75em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold);
}
.now {
  display: inline-block; vertical-align: middle; margin-left: .4rem;
  padding: .05rem .55rem; border-radius: 999px;
  background: #E3F2E8; color: #1F6B3E;
  font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}

/* 7. INTERNATIONAL EXPERIENCE BAND */
.intl {
  margin-top: 7rem;
  padding: 5.5rem 0 6rem;
  background:
    radial-gradient(rgba(133, 96, 15, .12) 1.2px, transparent 1.2px) 0 0 / 20px 20px,
    var(--gold-soft);
  border-block: 1px solid #E8D9B8;
}
.intl__eyebrow {
  text-align: center;
  font-size: .75rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-text);
}
.intl__title {
  margin-top: .5rem; text-align: center;
  font-family: var(--font-heading); font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.1rem);
}
.intl__title::after {
  content: ""; display: block; width: 56px; height: 2px; margin: 1rem auto 0;
  background: var(--gold);
}

.activities {
  display: grid; gap: 1rem; margin-top: 3rem;
}
@media (min-width: 760px) { .activities { grid-template-columns: 1fr 1fr; } }
/* Activity cards lift and turn white on hover */
.activity {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.35rem 1.4rem;
  background: rgba(255, 255, 255, .75); border: 1px solid #E8D9B8; border-radius: 12px;
  transition: background-color .25s, border-color .25s, box-shadow .25s;
}
.activity:hover { background: var(--surface); border-color: var(--gold); box-shadow: var(--shadow); }
.activity__icon {
  display: grid; place-items: center; flex-shrink: 0;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--charcoal); color: var(--gold);
}
.activity p { padding-top: .45rem; }

/* 8. EDUCATION */
.edu { display: grid; gap: 1rem; }
@media (min-width: 700px) { .edu { grid-template-columns: 1fr 1fr; } }
.edu__card {
  padding: 1.6rem 1.6rem 1.75rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  transition: box-shadow .25s, transform .25s;
}
.edu__card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.edu__year {
  display: inline-block; padding: .1rem .7rem; border-radius: 999px;
  background: var(--gold-soft); color: var(--gold-text);
  font-weight: 700; font-size: .82rem;
}
.edu__title { margin-top: .9rem; font-size: 1.15rem; font-weight: 700; line-height: 1.4; }
.edu__school { margin-top: .4rem; color: var(--ink-muted); font-size: .96rem; }

/* 9. SKILLS, LANGUAGES & MORE */
.two-col { display: grid; gap: 2.5rem; }
@media (min-width: 760px) { .two-col { grid-template-columns: 1.3fr 1fr; gap: 4rem; } }

.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chips li {
  padding: .45rem 1.05rem; border-radius: 6px;
  background: var(--surface); border: 1px solid var(--line);
  font-weight: 600; font-size: .95rem;
  transition: border-color .2s, color .2s;
}
.chips li:hover { border-color: var(--gold); color: var(--gold-text); }

.languages { display: grid; gap: .9rem; max-width: 320px; }
.languages li {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-bottom: .9rem; border-bottom: 1px solid var(--line); font-weight: 600;
}
.languages li:last-child { border-bottom: 0; padding-bottom: 0; }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.dots i.on { background: var(--gold); }

.more { display: grid; gap: 1rem; max-width: 70ch; }
.more li { position: relative; padding-left: 1.6rem; }
.more li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 10px; height: 10px; border: 2px solid var(--gold); border-radius: 50%;
}

/* 10. SUPPORTED BY (logos on white, as they have white backgrounds) + FOOTER */
.supporters {
  margin-top: 6rem; padding: 2.25rem 0;
  background: var(--surface); border-top: 1px solid var(--line);
}
.supporters__cap {
  margin: 0 0 1.25rem; text-align: center;
  font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted);
}
.supporters__logos {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.5rem 3rem;
}
.supporters__logos img { display: block; width: auto; }
.supporters__erasmus { height: 64px; }
.supporters__foundation { height: 96px; }
@media (max-width: 480px) {
  .supporters__erasmus { height: 52px; }
  .supporters__foundation { height: 84px; }
}
.supporters + .site-footer { margin-top: 0; }

.site-footer {
  margin-top: 6rem; padding: 1.75rem 0;
  background: var(--charcoal); color: var(--on-dark-muted); font-size: .9rem;
}
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; }
.site-footer a:hover { color: var(--gold); }

/* 11. LANGUAGES — hide the language that is not selected */
html[lang="en"] [data-lang="pt"],
html[lang="pt"] [data-lang="en"] { display: none !important; }

/* 12. ANIMATIONS */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover, .edu__card:hover { transform: none; }
}
